| 339 | } // namespace |
| 340 | |
| 341 | TEST_F(ResourceCompilerTest, testEscapePath) |
| 342 | { |
| 343 | // Test escapePath function |
| 344 | std::string path1("/tmp/path (space)/rc"); |
| 345 | escapePath(path1); |
| 346 | // Test escapePath #1 |
| 347 | ASSERT_EQ(path1, "/tmp/path\\ \\(space\\)/rc"); |
| 348 | |
| 349 | std::string path2("/tmp/foo/bar"); |
| 350 | escapePath(path2); |
| 351 | // Test escapePath #2 |
| 352 | ASSERT_EQ(path2, "/tmp/foo/bar"); |
| 353 | |
| 354 | std::string path3("/home/runner/CppMicroServices/us builds (Unix " |
| 355 | "make)/bin/usResourceCompiler"); |
| 356 | escapePath(path3); |
| 357 | // Test escapePath #3 |
| 358 | ASSERT_EQ(path3, |
| 359 | "/home/runner/CppMicroServices/us\\ builds\\ " |
| 360 | "\\(Unix\\ make\\)/bin/usResourceCompiler"); |
| 361 | |
| 362 | #ifndef US_PLATFORM_WINDOWS |
| 363 | escapePath(tempdir); |
| 364 | escapePath(rcbinpath); |
| 365 | #endif |
| 366 | } |
| 367 | |
| 368 | TEST_F(ResourceCompilerTest, testManifestAdd) |
| 369 | { |
nothing calls this directly
no test coverage detected