| 80 | |
| 81 | template <typename... Callables> |
| 82 | size_t CallOneOf(FuzzedDataProvider& fuzzed_data_provider, Callables... callables) |
| 83 | { |
| 84 | constexpr size_t call_size{sizeof...(callables)}; |
| 85 | static_assert(call_size >= 1); |
| 86 | const size_t call_index{fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, call_size - 1)}; |
| 87 | |
| 88 | size_t i{0}; |
| 89 | ((i++ == call_index ? callables() : void()), ...); |
| 90 | return call_size; |
| 91 | } |
| 92 | |
| 93 | template <typename Collection> |
| 94 | auto& PickValue(FuzzedDataProvider& fuzzed_data_provider, Collection& col) |
no outgoing calls
no test coverage detected