spdlog
Loading...
Searching...
No Matches
Classes | Functions | Variables
test_pattern_formatter.cpp File Reference

Go to the source code of this file.

#include "includes.h"
#include "test_sink.h"

Classes

class  custom_test_flag
 

Functions

template<typename... Args>
static std::string log_to_str (const std::string &msg, const Args &...args)
 
 TEST_CASE ("custom eol", "[pattern_formatter]")
 
 TEST_CASE ("empty format", "[pattern_formatter]")
 
 TEST_CASE ("empty format2", "[pattern_formatter]")
 
 TEST_CASE ("level", "[pattern_formatter]")
 
 TEST_CASE ("short level", "[pattern_formatter]")
 
 TEST_CASE ("name", "[pattern_formatter]")
 
 TEST_CASE ("date MM/DD/YY ", "[pattern_formatter]")
 
 TEST_CASE ("color range test1", "[pattern_formatter]")
 
 TEST_CASE ("color range test2", "[pattern_formatter]")
 
 TEST_CASE ("color range test3", "[pattern_formatter]")
 
 TEST_CASE ("color range test4", "[pattern_formatter]")
 
 TEST_CASE ("color range test5", "[pattern_formatter]")
 
 TEST_CASE ("color range test6", "[pattern_formatter]")
 
 TEST_CASE ("level_left_padded", "[pattern_formatter]")
 
 TEST_CASE ("level_right_padded", "[pattern_formatter]")
 
 TEST_CASE ("level_center_padded", "[pattern_formatter]")
 
 TEST_CASE ("short level_left_padded", "[pattern_formatter]")
 
 TEST_CASE ("short level_right_padded", "[pattern_formatter]")
 
 TEST_CASE ("short level_center_padded", "[pattern_formatter]")
 
 TEST_CASE ("left_padded_short", "[pattern_formatter]")
 
 TEST_CASE ("right_padded_short", "[pattern_formatter]")
 
 TEST_CASE ("center_padded_short", "[pattern_formatter]")
 
 TEST_CASE ("left_padded_huge", "[pattern_formatter]")
 
 TEST_CASE ("left_padded_max", "[pattern_formatter]")
 
 TEST_CASE ("paddinng_truncate", "[pattern_formatter]")
 
 TEST_CASE ("padding_truncate_funcname", "[pattern_formatter]")
 
 TEST_CASE ("padding_funcname", "[pattern_formatter]")
 
 TEST_CASE ("clone-default-formatter", "[pattern_formatter]")
 
 TEST_CASE ("clone-default-formatter2", "[pattern_formatter]")
 
 TEST_CASE ("clone-formatter", "[pattern_formatter]")
 
 TEST_CASE ("clone-formatter-2", "[pattern_formatter]")
 
 TEST_CASE ("clone-custom_formatter", "[pattern_formatter]")
 
 TEST_CASE ("short filename formatter-1", "[pattern_formatter]")
 
 TEST_CASE ("short filename formatter-2", "[pattern_formatter]")
 
 TEST_CASE ("short filename formatter-3", "[pattern_formatter]")
 
 TEST_CASE ("full filename formatter", "[pattern_formatter]")
 
 TEST_CASE ("custom flags", "[pattern_formatter]")
 
 TEST_CASE ("custom flags-padding", "[pattern_formatter]")
 
 TEST_CASE ("custom flags-exception", "[pattern_formatter]")
 

Variables

static const char *const test_path = "/a/b//myfile.cpp"
 

Function Documentation

◆ log_to_str()

template<typename... Args>
static std::string log_to_str ( const std::string msg,
const Args &...  args 
)
static

Definition at line 8 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [1/39]

TEST_CASE ( "center_padded_short"  ,
""  [pattern_formatter] 
)

Definition at line 187 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [2/39]

TEST_CASE ( "clone-custom_formatter"  ,
""  [pattern_formatter] 
)

Definition at line 352 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [3/39]

TEST_CASE ( "clone-default-formatter"  ,
""  [pattern_formatter] 
)

Definition at line 264 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [4/39]

TEST_CASE ( "clone-default-formatter2"  ,
""  [pattern_formatter] 
)

Definition at line 279 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [5/39]

TEST_CASE ( "clone-formatter"  ,
""  [pattern_formatter] 
)

Definition at line 294 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [6/39]

TEST_CASE ( "clone-formatter-2"  ,
""  [pattern_formatter] 
)

Definition at line 308 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [7/39]

TEST_CASE ( "color range test1"  ,
""  [pattern_formatter] 
)

Definition at line 62 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [8/39]

TEST_CASE ( "color range test2"  ,
""  [pattern_formatter] 
)

Definition at line 77 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [9/39]

TEST_CASE ( "color range test3"  ,
""  [pattern_formatter] 
)

Definition at line 89 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [10/39]

TEST_CASE ( "color range test4"  ,
""  [pattern_formatter] 
)

Definition at line 100 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [11/39]

TEST_CASE ( "color range test5"  ,
""  [pattern_formatter] 
)

Definition at line 113 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [12/39]

TEST_CASE ( "color range test6"  ,
""  [pattern_formatter] 
)

Definition at line 124 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [13/39]

TEST_CASE ( "custom eol"  ,
""  [pattern_formatter] 
)

Definition at line 21 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [14/39]

TEST_CASE ( "custom flags"  ,
""  [pattern_formatter] 
)

Definition at line 424 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [15/39]

TEST_CASE ( "custom flags-exception"  ,
""  [pattern_formatter] 
)

Definition at line 450 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [16/39]

TEST_CASE ( "custom flags-padding"  ,
""  [pattern_formatter] 
)

Definition at line 437 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [17/39]

TEST_CASE ( "date MM/DD/YY "  ,
""  [pattern_formatter] 
)

Definition at line 53 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [18/39]

TEST_CASE ( "empty format"  ,
""  [pattern_formatter] 
)

Definition at line 28 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [19/39]

TEST_CASE ( "empty format2"  ,
""  [pattern_formatter] 
)

Definition at line 33 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [20/39]

TEST_CASE ( "full filename formatter"  ,
""  [pattern_formatter] 
)

Definition at line 413 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [21/39]

TEST_CASE ( "left_padded_huge"  ,
""  [pattern_formatter] 
)

Definition at line 193 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [22/39]

TEST_CASE ( "left_padded_max"  ,
""  [pattern_formatter] 
)

Definition at line 202 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [23/39]

TEST_CASE ( "left_padded_short"  ,
""  [pattern_formatter] 
)

Definition at line 175 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [24/39]

TEST_CASE ( "level"  ,
""  [pattern_formatter] 
)

Definition at line 38 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [25/39]

TEST_CASE ( "level_center_padded"  ,
""  [pattern_formatter] 
)

Definition at line 151 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [26/39]

TEST_CASE ( "level_left_padded"  ,
""  [pattern_formatter] 
)

Definition at line 139 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [27/39]

TEST_CASE ( "level_right_padded"  ,
""  [pattern_formatter] 
)

Definition at line 145 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [28/39]

TEST_CASE ( "name"  ,
""  [pattern_formatter] 
)

Definition at line 48 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [29/39]

TEST_CASE ( "padding_funcname"  ,
""  [pattern_formatter] 
)

Definition at line 247 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [30/39]

TEST_CASE ( "padding_truncate_funcname"  ,
""  [pattern_formatter] 
)

Definition at line 230 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [31/39]

TEST_CASE ( "paddinng_truncate"  ,
""  [pattern_formatter] 
)

Definition at line 213 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [32/39]

TEST_CASE ( "right_padded_short"  ,
""  [pattern_formatter] 
)

Definition at line 181 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [33/39]

TEST_CASE ( "short filename formatter-1"  ,
""  [pattern_formatter] 
)

Definition at line 380 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [34/39]

TEST_CASE ( "short filename formatter-2"  ,
""  [pattern_formatter] 
)

Definition at line 391 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [35/39]

TEST_CASE ( "short filename formatter-3"  ,
""  [pattern_formatter] 
)

Definition at line 402 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [36/39]

TEST_CASE ( "short level"  ,
""  [pattern_formatter] 
)

Definition at line 43 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [37/39]

TEST_CASE ( "short level_center_padded"  ,
""  [pattern_formatter] 
)

Definition at line 169 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [38/39]

TEST_CASE ( "short level_left_padded"  ,
""  [pattern_formatter] 
)

Definition at line 157 of file test_pattern_formatter.cpp.

◆ TEST_CASE() [39/39]

TEST_CASE ( "short level_right_padded"  ,
""  [pattern_formatter] 
)

Definition at line 163 of file test_pattern_formatter.cpp.

Variable Documentation

◆ test_path

const char* const test_path = "/a/b//myfile.cpp"
static

Definition at line 377 of file test_pattern_formatter.cpp.