C++ Utilities 5.16.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 functions provided by the files inside the chrono directory. 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 functions provided by the files inside the chrono directory.

Remarks
Before committing 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 70 of file chronotests.cpp.

Member Function Documentation

◆ setUp()

void ChronoTests::setUp ( )
inline

Definition at line 80 of file chronotests.cpp.

◆ tearDown()

void ChronoTests::tearDown ( )
inline

Definition at line 83 of file chronotests.cpp.

◆ testDateTime()

void ChronoTests::testDateTime ( )

Tests most important DateTime features.

Definition at line 99 of file chronotests.cpp.

◆ testHashing()

void ChronoTests::testHashing ( )

Tests hashing DateTime / TimeSpan by using in a set.

Definition at line 310 of file chronotests.cpp.

◆ testOperators()

void ChronoTests::testOperators ( )

Tests operators of DateTime / TimeSpan.

Definition at line 270 of file chronotests.cpp.

◆ testPeriod()

void ChronoTests::testPeriod ( )

Tests Period.

Definition at line 290 of file chronotests.cpp.

◆ testTimeSpan()

void ChronoTests::testTimeSpan ( )

Tests most important TimeSpan features.

Definition at line 229 of file chronotests.cpp.


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