| 23 | |
| 24 | namespace mdf::test { |
| 25 | TEST(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 | |
| 43 | TEST(CreateFileList, TestBasicFunction) { |
| 44 | auto& arguments = ProgramArgument::Instance(); |
nothing calls this directly
no test coverage detected