mavtables  0.2.1
MAVLink router and firewall.
Functions
test_Logger.cpp File Reference
#include <ctime>
#include <iomanip>
#include <sstream>
#include <catch.hpp>
#include "Logger.hpp"
#include "utility.hpp"
#include "common.hpp"
Include dependency graph for test_Logger.cpp:

Go to the source code of this file.

Functions

 TEST_CASE ("The Logger level can be set and retrieved with the static 'level' " "method", "[Logger]")
 
 TEST_CASE ("The Logger can log to stdout with the static 'log' method if the " " logger's level is the same or higher than the loglevel of the " "message.", "[Logger]")
 
 TEST_CASE ("All logged messages have a timestamp (this can sometimes fail if " "the clock ticks over a second during the test).", "[Logger]")
 

Function Documentation

◆ TEST_CASE() [1/3]

TEST_CASE ( "The Logger level can be set and retrieved with the static 'level' " "method"  ,
""  [Logger] 
)

Definition at line 30 of file test_Logger.cpp.

◆ TEST_CASE() [2/3]

TEST_CASE ( "The Logger can log to stdout with the static 'log' method if the " " logger's level is the same or higher than the loglevel of the " "message."  ,
""  [Logger] 
)

Definition at line 45 of file test_Logger.cpp.

◆ TEST_CASE() [3/3]

TEST_CASE ( "All logged messages have a timestamp (this can sometimes fail if " "the clock ticks over a second during the test)."  ,
""  [Logger] 
)

Definition at line 99 of file test_Logger.cpp.

References Logger::level(), and Logger::log().

Here is the call graph for this function: