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

Method getFuzzer

lib/generation/Generator.cpp:200–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200const Fuzzer *Generator::getFuzzer(std::string Name) const {
201
202 auto Iter = std::find_if(Fuzzers.begin(), Fuzzers.end(),
203 [Name](const std::shared_ptr<Fuzzer> &F) {
204 assert(F && "Unexpected Program State");
205 return F->getName() == Name;
206 });
207
208 if (Iter == Fuzzers.end())
209 return nullptr;
210 return Iter->get();
211}
212
213const GenLoader &Generator::getLoader() const { return Loader; }
214

Callers

nothing calls this directly

Calls 5

find_ifFunction · 0.85
beginMethod · 0.80
endMethod · 0.80
getNameMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected