Lines Matching refs:mutation
193 Mutation mutation() const { return sampler_.selected().mutation; } in mutation() function in protobuf_mutator::__anonb2429a380111::MutationSampler
197 assert(mutation() != Mutation::None || in Sample()
276 void Try(const FieldInstance& field, Mutation mutation) { in Try() argument
277 assert(mutation != Mutation::None); in Try()
278 if (!allowed_mutations_[static_cast<size_t>(mutation)]) return; in Try()
279 sampler_.Try(kDefaultMutateWeight, {field, mutation}); in Try()
289 Result(const FieldInstance& f, Mutation m) : field(f), mutation(m) {} in Result()
292 Mutation mutation = Mutation::None; member
702 MutationSampler mutation(keep_initialized_, mutations, &random_); in MutateImpl() local
703 for (Message* message : messages) mutation.Sample(message); in MutateImpl()
705 switch (mutation.mutation()) { in MutateImpl()
709 CreateField()(mutation.field(), size_increase_hint, sources, this); in MutateImpl()
712 MutateField()(mutation.field(), size_increase_hint, sources, this); in MutateImpl()
715 DeleteField()(mutation.field()); in MutateImpl()
718 CreateDefaultField()(mutation.field()); in MutateImpl()
719 DataSourceSampler source_sampler(mutation.field(), &random_, in MutateImpl()
723 if (!IsProto3SimpleField(*mutation.field().descriptor())) in MutateImpl()
727 CopyField()(source_sampler.field(), mutation.field()); in MutateImpl()
731 DataSourceSampler source_sampler(mutation.field(), &random_, in MutateImpl()
735 CopyField()(source_sampler.field(), mutation.field()); in MutateImpl()
744 mutations[static_cast<size_t>(mutation.mutation())] = false; in MutateImpl()