forked from lix-project/lix
ecd3e4ebd7
Also put proper comparison methods on `DerivedPath` and `NixStringContextElem`, which is needed for the tests but good in general.
29 lines
357 B
C++
29 lines
357 B
C++
#pragma once
|
|
|
|
#include <rapidcheck/gen/Arbitrary.h>
|
|
|
|
#include <path.hh>
|
|
|
|
namespace nix {
|
|
|
|
struct StorePathName {
|
|
std::string name;
|
|
};
|
|
|
|
}
|
|
|
|
namespace rc {
|
|
using namespace nix;
|
|
|
|
template<>
|
|
struct Arbitrary<StorePathName> {
|
|
static Gen<StorePathName> arbitrary();
|
|
};
|
|
|
|
template<>
|
|
struct Arbitrary<StorePath> {
|
|
static Gen<StorePath> arbitrary();
|
|
};
|
|
|
|
}
|