LUMIERA.clone/tests/basics
Ichthyostega 50c602ec3f Library: rectify clipping of time::Duration (see #1263)
This is a deep refactoring to allow to represent the distance
between all valid time points as a time::Offset or time::Duration.

By design this is possible, since Time::MAX was defined as 1/30 of
the maximum value technically representable as int64_t. However,
introducing a different limiter for offsets and durations turns
out difficult, due to the inconsistencies in the exiting hierarchy
of temporal entities. Which in turn seems to stem from the unfortunate
decision to make time entities immutable, see #1261

Since the limiter is hard wired into the `time::TimeValue` constructor,
we are forced to create a "backdoor" of sorts, to pass up values
with different limiting from child classes. This would not be so
much of a problem if calculations weren't forced to go through `TimeVar`,
which does not distinguish between time points and time durations.

This solution rearranges all checks to be performed now by time::Offset,
while time::Duration will only take the absolute value at construction,
based on the fact that there is no valid construction path to yield
a duration which does not go through an offset first.

Later, when we're ready to sort out the implementation base of time values
(see #1258), this design issue should be revisited
- either we'll allow derived classes explicitly to invoke the limiter functions
- or we may be able to have an automatic conversion path from clearly
  marked base implementation types, in which case we wouldn't use the
  buildRaw_() and _raw() "backdoor" functions any more...
2022-12-05 00:58:32 +01:00
..
time Library: rectify clipping of time::Duration (see #1263) 2022-12-05 00:58:32 +01:00
call-queue-test.cpp Global-Layer-Renaming: adjust namespace qualification 2018-11-15 23:59:23 +01:00
dependency-configuration-test.cpp DOC: some doxygen fixes 2018-09-14 21:06:14 +02:00
dependency-factory-test.cpp Reorganise some tests 2018-03-31 17:12:45 +02:00
diagnostic-context-test.cpp C++17: some related clean-up 2020-02-21 23:55:09 +01:00
DIR_INFO reorganise test suite compartments 2014-10-17 20:02:25 +02:00
singleton-subclass-test.cpp Modernise Unknown Exception handler and Exception messages 2018-04-02 01:48:51 +02:00
singleton-test.cpp Reorganise some tests 2018-03-31 17:12:45 +02:00
singleton-testmock-test.cpp Reorganise some tests 2018-03-31 17:12:45 +02:00
stream-type-basics-test.cpp Global-Layer-Renaming: rename namespaces 2018-11-15 23:55:13 +01:00
stream-type-lifecycle-test.cpp Global-Layer-Renaming: rename namespaces 2018-11-15 23:55:13 +01:00
test-target-obj.hpp Reorganise some tests 2018-03-31 17:12:45 +02:00
teststreamtypes.hpp Library: clarify usage of the basic time scale 2018-12-10 00:12:52 +01:00
typed-counter-test.cpp Global-Layer-Renaming: adjust namespace qualification 2018-11-15 23:59:23 +01:00
typed-family-member-id-test.cpp Library: helper to produce threadsafe member-IDs for a family of objects 2017-01-14 03:07:48 +01:00
visitingtool-concept.cpp Doxygen Fixes (#1062) 2017-04-02 04:22:51 +02:00
visitingtool-extended-test.cpp Doxygen: magically insert a reference to the test class 2017-02-22 03:17:18 +01:00
visitingtool-test.cpp Doxygen: magically insert a reference to the test class 2017-02-22 03:17:18 +01:00
zombie-check-test.cpp FailureHandling: improved ZombieCheck 2018-10-01 05:51:21 +02:00