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

Function recordAttempt

Libraries/Testing/Testing.cpp:246–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246static void recordAttempt(StartupAttempt* attempts, size_t maxAttempts, size_t& numAttempts, const char* source,
247 StringSpan candidate)
248{
249 if (numAttempts >= maxAttempts)
250 return;
251 attempts[numAttempts].source = source;
252 if (attempts[numAttempts].path.assign(candidate))
253 {
254 numAttempts++;
255 }
256}
257
258static bool validateLibraryRoot(StringSpan path) { return repoHasMarkers(path); }
259

Callers 3

resolveLibraryRootFunction · 0.85

Calls 1

assignMethod · 0.45

Tested by

no test coverage detected