MCPcopy Create free account
hub / github.com/Snapchat/Valdi / resolveTestPath

Function resolveTestPath

valdi/test/utils/valdi_test_utils.cpp:120–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120Valdi::Path resolveTestPath(const std::string& path) {
121 char cwdBuffer[PATH_MAX];
122 (void)::getcwd(cwdBuffer, PATH_MAX);
123
124 auto basePath = Valdi::Path(cwdBuffer);
125
126#ifndef BUCK_TEST
127 basePath.append("src");
128#endif
129 basePath.append("valdi");
130 basePath.append(path);
131 basePath.normalize();
132
133 return basePath;
134}
135
136Valdi::Path resolveOpenSourceTestPath(const std::string& path) {
137 // Runfiles layouts differ between the standalone Valdi workspace and the

Callers 1

getProtoDataMethod · 0.50

Calls 3

appendMethod · 0.65
PathClass · 0.50
normalizeMethod · 0.45

Tested by

no test coverage detected