| 118 | } |
| 119 | |
| 120 | Valdi::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 | |
| 136 | Valdi::Path resolveOpenSourceTestPath(const std::string& path) { |
| 137 | // Runfiles layouts differ between the standalone Valdi workspace and the |
no test coverage detected