MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / TEST

Function TEST

lib/mdflib/mdf2csv/test/testcreatefiles.cpp:25–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24namespace mdf::test {
25TEST(CreateFileList, TestProperties) {
26 auto& arguments = ProgramArgument::Instance();
27 arguments.Clear();
28
29 LogToConsole logger;
30 MDF_INFO() << "This should be shown";
31 arguments.NonInteractive(true);
32 MDF_INFO() << "This should NOT be shown";
33 arguments.NonInteractive(false);
34
35 CreateFileList file_list;
36
37 const auto temp_path = temp_directory_path().string();
38 EXPECT_TRUE(file_list.OutputPath().empty());
39 file_list.OutputPath(temp_path);
40 EXPECT_EQ(temp_path, file_list.OutputPath());
41}
42
43TEST(CreateFileList, TestBasicFunction) {
44 auto& arguments = ProgramArgument::Instance();

Callers

nothing calls this directly

Calls 9

NonInteractiveMethod · 0.80
emptyMethod · 0.80
OutputPathMethod · 0.80
MakeFileListMethod · 0.80
FilesOkMethod · 0.80
ConvertMdfFileMethod · 0.80
ClearMethod · 0.45
appendMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected