ringbuffer_sink: replaced last_raw() and last_formatted() with drain_raw() and drain_formatted() and added tests

This commit is contained in:
gabime
2023-09-01 16:23:09 +03:00
parent d8829e7714
commit 8f7400731e
3 changed files with 95 additions and 20 deletions

View File

@@ -44,7 +44,9 @@ set(SPDLOG_UTESTS_SOURCES
test_cfg.cpp
test_time_point.cpp
test_stopwatch.cpp
test_circular_q.cpp)
test_circular_q.cpp
test_ringbuffer_sink.cpp
)
if(NOT SPDLOG_NO_EXCEPTIONS)
list(APPEND SPDLOG_UTESTS_SOURCES test_errors.cpp)