MCPcopy Create free account
hub / github.com/HexHive/NASS / PickValueInArray

Method PickValueInArray

fuzz/include/FuzzedDataProvider.h:303–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301// Returns a copy of the value selected from the given fixed-size |array|.
302template <typename T, size_t size>
303T FuzzedDataProvider::PickValueInArray(const T (&array)[size]) {
304 static_assert(size > 0, "The array must be non empty.");
305 return array[ConsumeIntegralInRange<size_t>(0, size - 1)];
306}
307
308template <typename T, size_t size>
309T FuzzedDataProvider::PickValueInArray(const std::array<T, size> &array) {

Callers 1

TESTFunction · 0.80

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by 1

TESTFunction · 0.64