| 57 | {} |
| 58 | |
| 59 | size_t SolidityCustomMutatorInterface::generate() |
| 60 | { |
| 61 | std::string testCase = generator->generateTestProgram(); |
| 62 | solAssert( |
| 63 | !testCase.empty() && data, |
| 64 | "Solc custom mutator: Invalid mutant or memory pointer" |
| 65 | ); |
| 66 | size_t mutantSize = std::min(testCase.size(), maxMutantSize - 1); |
| 67 | mempcpy(data, testCase.data(), mutantSize); |
| 68 | return mutantSize; |
| 69 | } |
no test coverage detected