mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches
timeUtils_test.cpp File Reference

Tests time and date utilities. More...

Tests time and date utilities.

Definition in file timeUtils_test.cpp.

#include "../../catch2/catch.hpp"
#include "../../../include/sys/timeUtils.hpp"

Go to the source code of this file.

Functions

 TEST_CASE ("Verify operation of get_curr_time", "[timeutils]")
 TEST_CASE ("Formatting MJD timestamps as ISO8601", "[timeutils][hciReduce]")
 Verifies MJD-to-ISO8601 formatting used for HCI coadd header timestamps.
 TEST_CASE ("Verify operation of thread sleep functions", "[timeutils]")
 TEST_CASE ("Verify operation of timespecAddNsec", "[timeutils]")
 TEST_CASE ("Verify parsing of a formatted time string", "[timeutils]")
 TEST_CASE ("Verify calculation of MJD", "[timeutils]")
 TEST_CASE ("Verify parsing of an ISO 8601 time string", "[timeutils]")
 TEST_CASE ("Verify conversion of an ISO 8601 time string to MJD", "[timeutils]")
 TEST_CASE ("Reject invalid Gregorian calendar dates", "[timeutils]")
 Verifies calendar conversion errors are returned to callers.
 TEST_CASE ("Format UTC timestamps as ISO8601", "[timeutils]")
 Verifies ISO8601 formatting for epoch, fractional, and current timestamps.
 TEST_CASE ("Handle ISO8601 broken-down-time failures", "[timeutils]")
 Verifies ISO8601 formatting reports broken-down-time failures safely.
 TEST_CASE ("Format compact UTC timestamps", "[timeutils]")
 Verifies compact UTC timestamp formatting and its failure result.
 TEST_CASE ("Convert UTC timespecs to TAI MJD", "[timeutils]")
 Verifies UTC timespec conversion to split TAI MJD values.
 TEST_CASE ("Report UTC-to-TAI conversion failures", "[timeutils]")
 Verifies UTC-to-TAI conversion propagates all external operation failures.
 TEST_CASE ("Average timespec values", "[timeutils]")
 Verifies averaging normalized timespec values.
 TEST_CASE ("Compare timespec values", "[timeutils]")
 Verifies all timespec comparison relations by seconds and nanoseconds.
 TEST_CASE ("Apply arithmetic offsets to timespec values", "[timeutils]")
 Verifies arithmetic addition and subtraction normalize timespec values.
 TEST_CASE ("Read a generic monotonic clock value", "[timeutils]")
 Verifies the generic current-time template with a monotonic clock.