| 228 | } |
| 229 | |
| 230 | std::string ProtobufMutator::copyMutationEnumType(const Type &MutationType, |
| 231 | const FuzzInput &Input) { |
| 232 | assert(MutationType.isEnumType() && "Unexpected Program State"); |
| 233 | auto LocalVarName = Input.getProtoVarName(); |
| 234 | return SrcGenerator::genAssignStmt( |
| 235 | LocalVarName, "static_cast<" + MutationType.getTypeName() + ">(" + |
| 236 | getProtoVarVal(LocalVarName) + ")"); |
| 237 | } |
| 238 | |
| 239 | std::string ProtobufMutator::getProtoVarVal(const std::string &VarName) { |
| 240 | return DescriptorObjName + "." + VarName + "()"; |
nothing calls this directly
no test coverage detected