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

Method addInput

lib/generation/ProtobufMutator.cpp:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void ProtobufMutator::addInput(FuzzInput &Input) {
26 FuzzVarDecls.emplace_back(genFuzzVarDecl(Input));
27 FuzzVarAssigns.emplace_back(genFuzzVarAssign(Input));
28 if (!Input.getDef().ArrayLen) {
29 assert(Input.getFTGType().getRealType() && "Unexpected Program State");
30 if (!Descriptor.addField(*Input.getFTGType().getRealType(),
31 Input.getProtoVarName()))
32 assert(false && "Unexpected Program State");
33 }
34}
35
36void ProtobufMutator::genEntry(const std::string &OutDir,
37 const std::string &FileName,

Callers 2

TEST_FFunction · 0.80
ASSERT_DEATHFunction · 0.80

Calls 4

getDefMethod · 0.80
getRealTypeMethod · 0.80
addFieldMethod · 0.80
getProtoVarNameMethod · 0.80

Tested by 2

TEST_FFunction · 0.64
ASSERT_DEATHFunction · 0.64