MCPcopy Create free account
hub / github.com/Samsung/UTopia / addFuzzer

Method addFuzzer

lib/generation/FuzzGenReporter.cpp:39–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void FuzzGenReporter::addFuzzer(const Fuzzer &F) {
40 auto UT = F.getUT();
41 auto UTFileName =
42 util::getNormalizedPath(fs::path(UT.getFilePath()).filename().string());
43 addUT(F.getName(), UTFileName, F.getRelativeUTDir(), F.getStatus());
44
45 for (auto &APICall : UT.getAPICalls()) {
46 auto APIName = APICall.Name;
47 auto APICallStatus = NOT_FUZZABLE_UNIDENTIFIED;
48
49 auto APIArgs = APICall.Args;
50 for (auto &APIArg : APIArgs) {
51 for (auto DefID : APIArg.DefIDs) {
52 if (F.isFuzzableInput(DefID)) {
53 APICallStatus = F.getStatus();
54 break;
55 }
56 }
57 }
58 addAPI(APIName, APICallStatus, F.getName());
59 }
60}
61
62void FuzzGenReporter::addNoInputAPI(std::string APIName) {
63 auto *APIReport = getAPIReport(APIName);

Callers 1

exportReportJsonMethod · 0.80

Calls 6

getNormalizedPathFunction · 0.85
getRelativeUTDirMethod · 0.80
getStatusMethod · 0.80
isFuzzableInputMethod · 0.80
getFilePathMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected