souffle  2.0.2-371-g6315b36
Functions
testutil Namespace Reference

Functions

template<typename T >
std::vector< T > generateRandomVector (const size_t vectorSize, const int seed=3)
 
template<class T >
void ignore (const T &)
 

Function Documentation

◆ generateRandomVector()

template<typename T >
std::vector<T> testutil::generateRandomVector ( const size_t  vectorSize,
const int  seed = 3 
)

Definition at line 45 of file test.h.

51  { return distribution(randomGenerator); });
52  return values;
53  } else {
54  std::uniform_int_distribution<T> distribution(
55  std::numeric_limits<T>::lowest(), std::numeric_limits<T>::max());
56  std::generate(values.begin(), values.end(),
57  [&distribution, &randomGenerator]() { return distribution(randomGenerator); });
58  return values;
59  }
60 }
61 
62 // easy function to suppress unused var warnings (when we REALLY don't need to use them!)
63 template <class T>
64 void ignore(const T&) {}
65 } // namespace testutil
66 

◆ ignore()

template<class T >
void testutil::ignore ( const T &  )

Definition at line 70 of file test.h.

71 {

Referenced by souffle::test::TEST().

ignore
std::set< const Atom * > ignore
Definition: Ground.cpp:169