mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
9f5a944107
- We add a dive while offline. - On a different computer (here simulated by a different local cache) we add a different file. - Now we go back to the previous local cache (the one where we added a different dive in the first step) and take that online (i.e., connect to cloud storage). Now both of the new dives should have been added to our data file. This is a rather trivial test with no conflict and a straight forward merge. We need to add a lot more test cases to make sure this works as expected and doesn't leave the user with a corrupt state. Ideally whatever happens, the user should never see an error... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
16 lines
297 B
C++
16 lines
297 B
C++
#ifndef TESTGITSTORAGE_H
|
|
#define TESTGITSTORAGE_H
|
|
|
|
#include <QTest>
|
|
|
|
class TestGitStorage : public QObject
|
|
{
|
|
Q_OBJECT
|
|
private slots:
|
|
void testGitStorageLocal();
|
|
void testGitStorageCloud();
|
|
void testGitStorageCloudOfflineSync();
|
|
void testGitStorageCloudMerge();
|
|
};
|
|
|
|
#endif // TESTGITSTORAGE_H
|