subsurface/tests
Berthold Stoeger 7c9f46acd2 Core: remove MAX_CYLINDERS restriction
Instead of using fixed size arrays, use a new cylinder_table structure.
The code copies the weightsystem code, but is significantly more complex
because cylinders are such an integral part of the core.

Two functions to access the cylinders were added:
get_cylinder() and get_or_create_cylinder()
The former does a simple array access and supposes that the cylinder
exists. The latter is used by the parser(s) and if a cylinder with
the given id does not exist, cylinders up to that id are generated.

One point will make C programmers cringe: the cylinder structure is
passed by value. This is due to the way the table-macros work. A
refactoring of the table macros is planned. It has to be noted that
the size of a cylinder_t is 64 bytes, i.e. 8 long words on a 64-bit
architecture, so passing on the stack is probably not even significantly
slower than passing as reference.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-11-09 19:19:04 +01:00
..
.gitignore tests: add .gitignore to ignore qmlc files 2018-07-12 17:12:56 +02:00
CMakeLists.txt Convert the atmospheric pressure in the Information Tab to an editable field 2019-05-15 07:37:14 -07:00
testAirPressure.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
testAirPressure.h Convert the atmospheric pressure in the Information Tab to an editable field 2019-05-15 07:37:14 -07:00
testdivesiteduplication.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
testdivesiteduplication.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testgitstorage.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -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
testhelper.cpp Tests: allow compilation with older Qt versions 2018-10-12 08:22:44 -07:00
testhelper.h Bluetooth: add helper to separate BT name and address 2018-10-12 08:22:44 -07:00
testmerge.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
testmerge.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testparse.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
testparse.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testparseperformance.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
testparseperformance.h Add performance test case 2018-08-31 06:33:46 -07:00
testpicture.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
testpicture.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testplan.cpp Core: remove MAX_CYLINDERS restriction 2019-11-09 19:19:04 +01:00
testplan.h A test for gases used in the planner 2018-10-30 15:33:43 +01:00
testprofile.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
testprofile.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testqml.cpp Cleanup: make qPref::registerQML() static 2019-04-04 09:29:45 -07:00
testqml.h tests: change testqml to allow direct register of C++ objects 2018-09-11 17:22:58 -07:00
testqPrefCloudStorage.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefCloudStorage.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefDisplay.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefDisplay.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefDiveComputer.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefDiveComputer.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefDivePlanner.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefDivePlanner.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefGeneral.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefGeneral.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefGeocoding.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefGeocoding.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefLanguage.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefLanguage.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefLocationService.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefLocationService.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefPartialPressureGas.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefPartialPressureGas.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefProxy.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefProxy.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefTechnicalDetails.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefTechnicalDetails.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefUnits.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefUnits.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testqPrefUpdateManager.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefUpdateManager.h tests: add signal test to call testqPref*cpp 2018-09-11 17:25:00 -07:00
testrenumber.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
testrenumber.h Whitespace cleanup tests 2018-07-26 16:32:51 +03:00
testtaglist.cpp Cleanup: move tag functions into own translation unit 2019-06-19 13:11:10 -07:00
testtaglist.h Change taglist_get_tagstring to support 'unlimited' tag list size 2018-04-09 07:59:51 -07:00
testunitconversion.cpp Cleanup: remove pointless call to get_units 2019-10-27 07:35:46 -07:00
testunitconversion.h Whitespace cleanup tests 2018-07-26 16:32:51 +03: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: remove testing of download_mode 2018-10-15 19:46:18 +02:00
tst_qPrefDivePlanner.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