Home | History | Annotate | Download | only in fuzzing

Lines Matching full:stable_test

42 struct stable_test {
46 stable_test(uint8_t k) : key(k), payload(0) {}
47 stable_test(uint8_t k, size_t p) : key(k), payload(p) {}
50 void swap(stable_test &lhs, stable_test &rhs)
59 bool operator () (const stable_test &lhs, const stable_test &rhs) const
67 bool operator () (const stable_test &lhs, const stable_test &rhs) const
75 bool operator () (const stable_test &lhs, const stable_test &rhs) const
81 bool operator==(const stable_test &lhs, const stable_test &rhs)
98 struct is_even<stable_test>
100 bool operator () (const stable_test &t) const
107 typedef std::vector<stable_test> StableVec;
180 input.push_back(stable_test(data[i], i));
239 input.push_back(stable_test(data[i], i));
241 auto iter = std::stable_partition(working.begin(), working.end(), is_even<stable_test>());
243 if (!std::all_of (working.begin(), iter, is_even<stable_test>())) return 1;
244 if (!std::none_of(iter, working.end(), is_even<stable_test>())) return 2;