Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::ProtoTest< Proto, protocolDir > Class Template Reference
Inheritance diagram for nix::ProtoTest< Proto, protocolDir >:
nix::CharacterizationTest nix::VersionedProtoTest< Proto, protocolDir >

Public Member Functions

template<typename T>
void readJsonTest (std::string_view testStem, const T &expected)
template<typename T>
void writeJsonTest (std::string_view testStem, const T &decoded)
Public Member Functions inherited from nix::CharacterizationTest
void readTest (std::string_view testStem, auto &&test)
void writeTest (std::string_view testStem, auto &&test, auto &&readFile2, auto &&writeFile2)
void writeTest (std::string_view testStem, auto &&test)

Public Attributes

std::string storeDir = "/nix/store"
StoreDirConfig store {storeDir}

Member Function Documentation

◆ readJsonTest()

template<class Proto, const char * protocolDir>
template<typename T>
void nix::ProtoTest< Proto, protocolDir >::readJsonTest ( std::string_view testStem,
const T & expected )
inline

Golden test for T JSON reading

◆ writeJsonTest()

template<class Proto, const char * protocolDir>
template<typename T>
void nix::ProtoTest< Proto, protocolDir >::writeJsonTest ( std::string_view testStem,
const T & decoded )
inline

Golden test for T JSON write


The documentation for this class was generated from the following file:
  • libstore-test-support/include/nix/store/tests/protocol.hh