MCPcopy Create free account
hub / github.com/black-sliver/PopTracker / FuzzSetDir

Function FuzzSetDir

test/core/test_zip.cpp:280–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280static void FuzzSetDir(const std::string_view data)
281{
282 Zip zip(SAMPLE_ZIP_PATH);
283 assert(zip.isValid());
284 zip.setDir(std::string(data));
285 for (const auto&[type, _]: zip.list(true)) {
286 (void)type;
287 assert(type == Zip::EntryType::FILE || type == Zip::EntryType::DIR);
288 }
289 for (const auto&[type, _]: zip.list(false)) {
290 (void)type;
291 assert(type == Zip::EntryType::FILE || type == Zip::EntryType::DIR);
292 }
293}
294
295static void FuzzFilename(const std::string_view data)
296{

Callers

nothing calls this directly

Calls 4

stringFunction · 0.85
listMethod · 0.80
isValidMethod · 0.45
setDirMethod · 0.45

Tested by

no test coverage detected