C++ Utilities  4.17.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Public Member Functions | List of all members
ChronoTests Class Reference

The ChronoTests class tests classes and methods of the ChronoUtilities namespace. More...

Inheritance diagram for ChronoTests:
[legend]
Collaboration diagram for ChronoTests:
[legend]

Public Member Functions

void setUp ()
 
void tearDown ()
 
void testDateTime ()
 Tests most important DateTime features. More...
 
void testTimeSpan ()
 Tests most important TimeSpan features. More...
 
void testOperators ()
 Tests operators of DateTime / TimeSpan. More...
 
void testPeriod ()
 Tests Period. More...
 
void testHashing ()
 Tests hashing DateTime / TimeSpan by using in a set. More...
 

Detailed Description

The ChronoTests class tests classes and methods of the ChronoUtilities namespace.

Remarks
Before comitting any changes to this test, run with different timezones to prevent mistakes like timezone-dependent checks. (Eg. set environment variable TZ to different values like 'UTC' or 'America/Los_Angeles'.)

Definition at line 68 of file chronotests.cpp.

Member Function Documentation

◆ setUp()

void ChronoTests::setUp ( )
inline

Definition at line 78 of file chronotests.cpp.

◆ tearDown()

void ChronoTests::tearDown ( )
inline

Definition at line 81 of file chronotests.cpp.

◆ testDateTime()

void ChronoTests::testDateTime ( )

Tests most important DateTime features.

Definition at line 97 of file chronotests.cpp.

◆ testHashing()

void ChronoTests::testHashing ( )

Tests hashing DateTime / TimeSpan by using in a set.

Definition at line 260 of file chronotests.cpp.

◆ testOperators()

void ChronoTests::testOperators ( )

Tests operators of DateTime / TimeSpan.

Definition at line 225 of file chronotests.cpp.

◆ testPeriod()

void ChronoTests::testPeriod ( )

Tests Period.

Definition at line 240 of file chronotests.cpp.

◆ testTimeSpan()

void ChronoTests::testTimeSpan ( )

Tests most important TimeSpan features.

Definition at line 184 of file chronotests.cpp.


The documentation for this class was generated from the following file: