MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / repoHasMarkers

Function repoHasMarkers

Libraries/Testing/Testing.cpp:219–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219static bool repoHasMarkers(StringSpan path)
220{
221 if (!isAbsoluteNative(path) || !pathExistsDirectory(path))
222 return false;
223
224 StringPath marker;
225 if (!pathJoin(marker, path, "SC.cpp"))
226 return false;
227 if (!pathExistsFile(marker.view()))
228 return false;
229 if (!pathJoin(marker, path, "SC.sh"))
230 return false;
231 return pathExistsFile(marker.view());
232}
233
234static bool normalizeNativePath(StringSpan path, StringPath& normalizedPath)
235{

Callers 1

validateLibraryRootFunction · 0.85

Calls 5

isAbsoluteNativeFunction · 0.85
pathExistsDirectoryFunction · 0.85
pathJoinFunction · 0.85
pathExistsFileFunction · 0.85
viewMethod · 0.45

Tested by

no test coverage detected