| 5 | |
| 6 | std::wstring const RobocopyTest::ApplicationName = Env::GetFolderPath(Env::SpecialFolder::System32) + L"\\robocopy.exe"; |
| 7 | bool RobocopyTest::Run(std::vector<TestOperation> const& paths) |
| 8 | { |
| 9 | std::vector<Process<wchar_t>> processes; |
| 10 | for (auto const& item : paths) |
| 11 | { |
| 12 | processes.push_back( |
| 13 | Process<wchar_t>{ |
| 14 | ApplicationName, |
| 15 | item.operation == TestOperation::Operation::Copy? |
| 16 | std::format(LR"("{}" "{}" /E /MT:64)", item.source, item.destination) : |
| 17 | std::format(LR"("{}" "{}" /E /MT:64 /MOVE)", item.source, item.destination) |
| 18 | } |
| 19 | ); |
| 20 | } |
| 21 | WaitForAllProcesses<wchar_t>(processes); |
| 22 | return true; |
| 23 | } |
| 24 | |
| 25 | std::string RobocopyTest::GetName() const |
| 26 | { |
nothing calls this directly
no outgoing calls
no test coverage detected