BoosterSeat  0.1
A C++ library that includes common utilities that are used in other projects.
time_class_test.cpp File Reference
#include <BoosterSeat/sleep.hpp>
#include <BoosterSeat/time.hpp>
#include "gtest/gtest.h"
#include <iostream>
Include dependency graph for time_class_test.cpp:

Functions

 TEST (bst_time, basic_string)
 
 TEST (bst_time, constructors)
 
 TEST (bst_time, getters)
 
 TEST (bst_time, greaterThanLessThanOperators)
 
 TEST (bst_time, secondsFromNow)
 
 TEST (bst_time, setToNow)
 

Function Documentation

◆ TEST() [1/6]

TEST ( bst_time  ,
constructors   
)

References bst::Time::secondsFromNow(), and bst::Time::toString().

Here is the call graph for this function:

◆ TEST() [2/6]

TEST ( bst_time  ,
basic_string   
)

References bst::Time::fromString(), and bst::Time::toString().

Here is the call graph for this function:

◆ TEST() [3/6]

TEST ( bst_time  ,
getters   
)

References bst::Time::fromString(), bst::Time::getDay(), bst::Time::getHour(), bst::Time::getMinute(), bst::Time::getMonth(), bst::Time::getSecond(), and bst::Time::getYear().

Here is the call graph for this function:

◆ TEST() [4/6]

TEST ( bst_time  ,
setToNow   
)

References bst::Time::getDay(), bst::Time::getHour(), bst::Time::getMinute(), bst::Time::getMonth(), bst::Time::getSecond(), bst::Time::getYear(), bst::clck::now(), and bst::Time::setToNow().

Here is the call graph for this function:

◆ TEST() [5/6]

TEST ( bst_time  ,
greaterThanLessThanOperators   
)

References bst::Time::fromString().

Here is the call graph for this function:

◆ TEST() [6/6]

TEST ( bst_time  ,
secondsFromNow   
)

References bst::Time::fromString(), bst::Time::secondsFromNow(), bst::Time::setToNow(), and bst::sleep().

Here is the call graph for this function: