forked from lix-project/lix
560142fec0
This is a nice idea that @roberth requested. If we could factor our a generic `std::variant` impl as a follow-up it would be even better!
30 lines
593 B
C++
30 lines
593 B
C++
#pragma once
|
|
|
|
#include <rapidcheck/gen/Arbitrary.h>
|
|
|
|
#include <value/context.hh>
|
|
|
|
namespace rc {
|
|
using namespace nix;
|
|
|
|
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();
|
|
};
|
|
|
|
template<>
|
|
struct Arbitrary<NixStringContextElem> {
|
|
static Gen<NixStringContextElem> arbitrary();
|
|
};
|
|
|
|
}
|