MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / testFunctionExists

Method testFunctionExists

src/tester.cpp:464–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464bool Tester::testFunctionExists(Script& s)
465{
466 for(Declaration* d: s.getDeclarations()) {
467 auto* func=dynamic_cast<Function*>(d);
468 if(func && func->getName()=="test")
469 return true;
470 }
471
472 return false;
473}
474#endif

Callers

nothing calls this directly

Calls 2

getDeclarationsMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected