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

Public Member Functions

template<typename T>
void readProtoTest (std::string_view testStem, typename Proto::Version version, T expected)
template<typename T>
void writeProtoTest (std::string_view testStem, typename Proto::Version version, const T &decoded)
Public Member Functions inherited from nix::ProtoTest< Proto, protocolDir >
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)

Additional Inherited Members

Public Attributes inherited from nix::ProtoTest< Proto, protocolDir >
std::string storeDir = "/nix/store"
StoreDirConfig store {storeDir}

Member Function Documentation

◆ readProtoTest()

template<class Proto, const char * protocolDir>
template<typename T>
void nix::VersionedProtoTest< Proto, protocolDir >::readProtoTest ( std::string_view testStem,
typename Proto::Version version,
T expected )
inline

Golden test for T reading

◆ writeProtoTest()

template<class Proto, const char * protocolDir>
template<typename T>
void nix::VersionedProtoTest< Proto, protocolDir >::writeProtoTest ( std::string_view testStem,
typename Proto::Version version,
const T & decoded )
inline

Golden test for T write


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