OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WLogEntryTest Class Reference

Unit tests our log messages. More...

#include <WLogEntry_test.h>

+ Inheritance diagram for WLogEntryTest:
+ Collaboration diagram for WLogEntryTest:

Public Member Functions

void testFormatStringReplacement (void)
 If given a format string of the form: "%t :: %l :: %m" then the log message will replace t with time of logging and l with level of logging and m with the message itself. More...
 
void testEmptyStringAsFormatString (void)
 If an empty format string is given, then an empty string should be returned. More...
 
void testUnkownLogLevel (void)
 If ever an unknown log level was used to construct the entry then no replacement should be done. More...
 

Detailed Description

Unit tests our log messages.

Definition at line 37 of file WLogEntry_test.h.

Member Function Documentation

◆ testEmptyStringAsFormatString()

void WLogEntryTest::testEmptyStringAsFormatString ( void  )
inline

If an empty format string is given, then an empty string should be returned.

Definition at line 59 of file WLogEntry_test.h.

References WLogEntry::getLogString().

+ Here is the call graph for this function:

◆ testFormatStringReplacement()

void WLogEntryTest::testFormatStringReplacement ( void  )
inline

If given a format string of the form: "%t :: %l :: %m" then the log message will replace t with time of logging and l with level of logging and m with the message itself.

Definition at line 45 of file WLogEntry_test.h.

References WLogEntry::getLogString().

+ Here is the call graph for this function:

◆ testUnkownLogLevel()

void WLogEntryTest::testUnkownLogLevel ( void  )
inline

If ever an unknown log level was used to construct the entry then no replacement should be done.

Definition at line 69 of file WLogEntry_test.h.

References WLogEntry::getLogString().

+ Here is the call graph for this function:

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