The Battle for Wesnoth  1.15.3+dev
Macros | Functions
TimeTest.cpp File Reference
#include "TimeTest.h"
Include dependency graph for TimeTest.cpp:

Go to the source code of this file.

Macros

#define EXPECT_INVALID(t, x...)
 

Functions

 TEST_F (TimeTest, testConstructors)
 
 TEST_F (TimeTest, testArithm)
 
 TEST_F (TimeTest, testDiff)
 
 TEST_F (TimeTest, testNow)
 
 TEST_F (TimeTest, testSpan)
 
void readdTest (date_time smaller, date_time bigger)
 
 TEST_F (TimeTest, testDateTime)
 

Macro Definition Documentation

◆ EXPECT_INVALID

#define EXPECT_INVALID (   t,
  x... 
)
Value:
do { \
t d(x); \
EXPECT_FALSE(d.is_valid()); \
} while(false)
#define d

Definition at line 11 of file TimeTest.cpp.

Referenced by TEST_F().

Function Documentation

◆ readdTest()

void readdTest ( date_time  smaller,
date_time  bigger 
)

Definition at line 210 of file TimeTest.cpp.

References mariadb::date_time::add(), and mariadb::date_time::time_between().

Referenced by TEST_F().

◆ TEST_F() [1/6]

TEST_F ( TimeTest  ,
testConstructors   
)

Definition at line 16 of file TimeTest.cpp.

References a, b, c, d, e, EXPECT_INVALID, f, g, h, i, mariadb::time::str_time(), and mariadb::value::time.

◆ TEST_F() [2/6]

TEST_F ( TimeTest  ,
testArithm   
)

◆ TEST_F() [3/6]

TEST_F ( TimeTest  ,
testDiff   
)

◆ TEST_F() [4/6]

TEST_F ( TimeTest  ,
testNow   
)

Definition at line 150 of file TimeTest.cpp.

◆ TEST_F() [5/6]

TEST_F ( TimeTest  ,
testSpan   
)

◆ TEST_F() [6/6]

TEST_F ( TimeTest  ,
testDateTime   
)