OpenWalnut  1.4.0
Public Member Functions
WLogEntryTest Class Reference

Unit tests our log messages. More...

#include <WLogEntry_test.h>

+ Inheritance diagram for WLogEntryTest:

List of all members.

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.
void testEmptyStringAsFormatString (void)
 If an empty format string is given, then an empty string should be returned.
void testUnkownLogLevel (void)
 If ever an unknown log level was used to construct the entry then no replacement should be done.

Detailed Description

Unit tests our log messages.

Definition at line 37 of file WLogEntry_test.h.


Member Function Documentation

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().

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().

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().


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