2023-01-29 18:52:38 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <rapidcheck/gen/Arbitrary.h>
|
|
|
|
|
|
|
|
#include <value/context.hh>
|
|
|
|
|
|
|
|
namespace rc {
|
|
|
|
using namespace nix;
|
|
|
|
|
2023-01-30 15:55:08 +00:00
|
|
|
template<>
|
|
|
|
struct Arbitrary<NixStringContextElem::Opaque> {
|
|
|
|
static Gen<NixStringContextElem::Opaque> arbitrary();
|
|
|
|
};
|
|
|
|
|
|
|
|
template<>
|
|
|
|
struct Arbitrary<NixStringContextElem::Built> {
|
|
|
|
static Gen<NixStringContextElem::Built> arbitrary();
|
|
|
|
};
|
|
|
|
|
|
|
|
template<>
|
|
|
|
struct Arbitrary<NixStringContextElem::DrvDeep> {
|
|
|
|
static Gen<NixStringContextElem::DrvDeep> arbitrary();
|
|
|
|
};
|
|
|
|
|
2023-01-29 18:52:38 +00:00
|
|
|
template<>
|
|
|
|
struct Arbitrary<NixStringContextElem> {
|
|
|
|
static Gen<NixStringContextElem> arbitrary();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|