Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::CharacterizationTest Struct Referenceabstract

#include <characterization.hh>

Inheritance diagram for nix::CharacterizationTest:
nix::JsonCharacterizationTest< T > nix::ProtoTest< Proto, protocolDir > nix::VersionedProtoTest< Proto, protocolDir >

Public Member Functions

virtual std::filesystem::path goldenMaster (std::string_view testStem) const =0
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)

Detailed Description

Mixin class for writing characterization tests

Member Function Documentation

◆ goldenMaster()

virtual std::filesystem::path nix::CharacterizationTest::goldenMaster ( std::string_view testStem) const
pure virtual

While the "golden master" for this characterization test is located. It should not be shared with any other test.

◆ readTest()

void nix::CharacterizationTest::readTest ( std::string_view testStem,
auto && test )
inline

Golden test for reading

Parameters
testhook that takes the contents of the file and does the actual work

◆ writeTest() [1/2]

void nix::CharacterizationTest::writeTest ( std::string_view testStem,
auto && test )
inline

Specialize to std::string

◆ writeTest() [2/2]

void nix::CharacterizationTest::writeTest ( std::string_view testStem,
auto && test,
auto && readFile2,
auto && writeFile2 )
inline

Golden test for writing

Parameters
testhook that produces contents of the file and does the actual work

The documentation for this struct was generated from the following file: