aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/tests/hash.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/tests/hash.hh')
-rw-r--r--src/libutil/tests/hash.hh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libutil/tests/hash.hh b/src/libutil/tests/hash.hh
new file mode 100644
index 000000000..9e9650e6e
--- /dev/null
+++ b/src/libutil/tests/hash.hh
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <rapidcheck/gen/Arbitrary.h>
+
+#include <hash.hh>
+
+namespace rc {
+using namespace nix;
+
+template<>
+struct Arbitrary<Hash> {
+ static Gen<Hash> arbitrary();
+};
+
+}