MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / TEST

Function TEST

source/MRTest/MRSpdlog.cpp:5–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <MRPch/MRSpdlog.h>
4
5TEST( MRPch, Spdlog )
6{
7 // check for correct type casts on macOS
8 auto consoleSink = std::make_shared<spdlog::sinks::stdout_color_sink_mt>();
9 auto sink = std::dynamic_pointer_cast<spdlog::sinks::sink>( consoleSink );
10 auto castedSink = std::dynamic_pointer_cast<spdlog::sinks::stdout_color_sink_mt>( sink );
11 EXPECT_TRUE( castedSink );
12
13 // check that log file is present
14 EXPECT_FALSE( MR::Logger::instance().getLogFileName().empty() );
15}

Callers

nothing calls this directly

Calls 3

instanceFunction · 0.85
getLogFileNameMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected