subsurface/tests
Berthold Stoeger 810903bdb9 Import: pass a dive table to process_imported_dives()
Dives were directly imported into the global dive table and then
merged in process_imported_dives(). Make this interface more flexible,
by passing an independent dive table.

The dive table of the to-be-imported dives will be sorted and merged.
Then each dive is inserted in a one-by-one manner to into the global
dive table.

This actually introduces (at least) two functional changes:
1) If a new dive spans two old dives, it will only be merged to the
   first dive. But this seems like a pathological case, which is of
   dubious value anyway.
2) Dives unrelated to the import will not be merged. The old code
   would happily merge dives that were not even close to the
   newly imported dives. A surprising behavior.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-10-06 19:47:06 -07:00
..
.gitignore tests: add .gitignore to ignore qmlc files 2018-07-12 17:12:56 +02:00
CMakeLists.txt tests: change testqml to allow direct register of C++ objects 2018-09-11 17:22:58 -07:00
testdivesiteduplication.cpp Parse: pass dive_table argument to parse_file() 2018-08-23 10:17:12 -07:00
testdivesiteduplication.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testgitstorage.cpp Core: split process_dives() in post-import and post-load versions 2018-09-23 11:50:53 -07:00
testgitstorage.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testgpscoords.cpp Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testgpscoords.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testmerge.cpp Import: pass a dive table to process_imported_dives() 2018-10-06 19:47:06 -07:00
testmerge.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testparse.cpp Parser: parse text-based files into arbitrary table 2018-09-28 15:06:00 -07:00
testparse.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testparseperformance.cpp core/settings ... : remove qPref* includes in qPref.h 2018-09-11 17:25:00 -07:00
testparseperformance.h Add performance test case 2018-08-31 06:33:46 -07:00
testpicture.cpp Parse: pass dive_table argument to parse_file() 2018-08-23 10:17:12 -07:00
testpicture.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testplan.cpp Optional anonymization upon export 2018-09-13 08:16:54 -07:00
testplan.h Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testprofile.cpp Parse: pass dive_table argument to parse_file() 2018-08-23 10:17:12 -07:00
testprofile.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testqml.cpp tests: change testqml to allow direct register of C++ objects 2018-09-11 17:22:58 -07:00
testqml.h tests: change testqml to allow direct register of C++ objects 2018-09-11 17:22:58 -07:00
testqPrefCloudStorage.cpp Clean up merge issues 2018-09-11 18:00:44 -07:00
testqPrefCloudStorage.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefDisplay.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefDisplay.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefDiveComputer.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefDiveComputer.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefDivePlanner.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefDivePlanner.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefFacebook.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefFacebook.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefGeneral.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefGeneral.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefGeocoding.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefGeocoding.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefLanguage.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefLanguage.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefLocationService.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefLocationService.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefPartialPressureGas.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefPartialPressureGas.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefProxy.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefProxy.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefTechnicalDetails.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefTechnicalDetails.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefUnits.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefUnits.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefUpdateManager.cpp tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefUpdateManager.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testrenumber.cpp Import: pass a dive table to process_imported_dives() 2018-10-06 19:47:06 -07:00
testrenumber.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testtaglist.cpp Change taglist_get_tagstring to support 'unlimited' tag list size 2018-04-09 07:59:51 -07:00
testtaglist.h Change taglist_get_tagstring to support 'unlimited' tag list size 2018-04-09 07:59:51 -07:00
testunitconversion.cpp Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testunitconversion.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
tst_qPref.qml tests: update qml test cases 2018-09-11 17:25:00 -07:00
tst_qPrefCloudStorage.qml Clean up merge issues 2018-09-11 18:00:44 -07:00
tst_qPrefDisplay.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefDiveComputer.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefDivePlanner.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefFacebook.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefGeneral.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefGeocoding.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefLanguage.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefLocationService.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefPartialPressureGas.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefProxy.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefTechnicalDetails.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefUnits.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00
tst_qPrefUpdateManager.qml tests: add signal test to call tst_qPref*qml 2018-09-11 17:25:00 -07:00