diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-01-29 12:37:32 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-01-29 13:52:57 -0500 |
commit | ec0c0efec6d7eed868b424434748b97651e02bcc (patch) | |
tree | 29ced9d126d9db8eced4e0ab380a990dbda51885 /src/libstore/tests/path.cc | |
parent | 6772e9ed0ac7853cefdeb6b354c81cba531829f2 (diff) |
Allow unit test infra to be reused across libs' tests
This allows using Arbitrary "instances" defined in libstore-tests in
libexpr-tests, something we will leverage in a moment.
Diffstat (limited to 'src/libstore/tests/path.cc')
-rw-r--r-- | src/libstore/tests/path.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libstore/tests/path.cc b/src/libstore/tests/path.cc index 8ea252c92..2fc6d7e48 100644 --- a/src/libstore/tests/path.cc +++ b/src/libstore/tests/path.cc @@ -7,7 +7,8 @@ #include "path-regex.hh" #include "store-api.hh" -#include "libstoretests.hh" +#include "tests/libstore.hh" +#include "tests/path.hh" namespace nix { @@ -73,11 +74,6 @@ void showValue(const StorePath & p, std::ostream & os) { namespace rc { using namespace nix; -template<> -struct Arbitrary<StorePath> { - static Gen<StorePath> arbitrary(); -}; - Gen<StorePath> Arbitrary<StorePath>::arbitrary() { auto len = *gen::inRange<size_t>(1, StorePath::MaxPathLen); |