MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / TEST_F

Function TEST_F

framework/test/gtest/ResourceCompilerTest.cpp:341–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339} // namespace
340
341TEST_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
368TEST_F(ResourceCompilerTest, testManifestAdd)
369{

Callers

nothing calls this directly

Calls 15

escapePathFunction · 0.85
createDirHierarchyFunction · 0.85
runExecutableFunction · 0.85
testExistsFunction · 0.85
ChangeDirectoryFunction · 0.85
createManifestFileFunction · 0.85
ZipFileClass · 0.85
createDummyBundleFunction · 0.85
containsBundleZipFileFunction · 0.85
toStyledStringFunction · 0.85
getManifestContentFunction · 0.85

Tested by

no test coverage detected