aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/tests/value/context.hh
blob: c0bc97ba3c4680c1dfcdb7707ce60fe8faf0d529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
///@file

#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();
};

}