spdlog
Loading...
Searching...
No Matches
Macros | Functions
test_async.cpp File Reference

Go to the source code of this file.

#include "includes.h"
#include "spdlog/async.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "test_sink.h"

Macros

#define TEST_FILENAME   "test_logs/async_test.log"
 

Functions

 TEST_CASE ("basic async test ", "[async]")
 
 TEST_CASE ("discard policy ", "[async]")
 
 TEST_CASE ("discard policy using factory ", "[async]")
 
 TEST_CASE ("flush", "[async]")
 
 TEST_CASE ("async periodic flush", "[async]")
 
 TEST_CASE ("tp->wait_empty() ", "[async]")
 
 TEST_CASE ("multi threads", "[async]")
 
 TEST_CASE ("to_file", "[async]")
 
 TEST_CASE ("to_file multi-workers", "[async]")
 

Macro Definition Documentation

◆ TEST_FILENAME

#define TEST_FILENAME   "test_logs/async_test.log"

Definition at line 6 of file test_async.cpp.

Function Documentation

◆ TEST_CASE() [1/9]

TEST_CASE ( "async periodic flush"  ,
""  [async] 
)

Definition at line 85 of file test_async.cpp.

◆ TEST_CASE() [2/9]

TEST_CASE ( "basic async test "  ,
""  [async] 
)

Definition at line 8 of file test_async.cpp.

◆ TEST_CASE() [3/9]

TEST_CASE ( "discard policy "  ,
""  [async] 
)

Definition at line 29 of file test_async.cpp.

◆ TEST_CASE() [4/9]

TEST_CASE ( "discard policy using factory "  ,
""  [async] 
)

Definition at line 46 of file test_async.cpp.

◆ TEST_CASE() [5/9]

TEST_CASE ( "flush"  ,
""  [async] 
)

Definition at line 65 of file test_async.cpp.

◆ TEST_CASE() [6/9]

TEST_CASE ( "multi threads"  ,
""  [async] 
)

Definition at line 117 of file test_async.cpp.

◆ TEST_CASE() [7/9]

TEST_CASE ( "to_file multi-workers"  ,
""  [async] 
)

Definition at line 172 of file test_async.cpp.

◆ TEST_CASE() [8/9]

TEST_CASE ( "to_file"  ,
""  [async] 
)

Definition at line 149 of file test_async.cpp.

◆ TEST_CASE() [9/9]

TEST_CASE ( "tp->wait_empty() "  ,
""  [async] 
)

Definition at line 98 of file test_async.cpp.