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.hh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libutil/tests/hash.hh b/src/libutil/tests/hash.hh
new file mode 100644
index 000000000..1f9fa59ae
--- /dev/null
+++ b/src/libutil/tests/hash.hh
@@ -0,0 +1,16 @@
+#pragma once
+///@file
+
+#include <rapidcheck/gen/Arbitrary.h>
+
+#include <hash.hh>
+
+namespace rc {
+using namespace nix;
+
+template<>
+struct Arbitrary<Hash> {
+ static Gen<Hash> arbitrary();
+};
+
+}