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

#include <characterization.hh>

Inheritance diagram for nix::CharacterizationTest:
nix::ProtoTest< CommonProto, commonProtoDir > nix::ProtoTest< ServeProto, protocolDir > nix::ProtoTest< WorkerProto, protocolDir > nix::DerivationAdvancedAttrsTest nix::DerivationTest nix::GitTest nix::NarInfoTest nix::PathInfoTest nix::ProtoTest< Proto, protocolDir > nix::StoreReferenceTest

Public Member Functions

void readTest (PathView testStem, auto &&test)
 
void writeTest (PathView testStem, auto &&test, auto &&readFile2, auto &&writeFile2)
 
void writeTest (PathView testStem, auto &&test)
 

Protected Member Functions

virtual std::filesystem::path goldenMaster (PathView testStem) const =0
 

Detailed Description

Mixin class for writing characterization tests

Member Function Documentation

◆ goldenMaster()

virtual std::filesystem::path nix::CharacterizationTest::goldenMaster ( PathView testStem) const
protectedpure virtual

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

Implemented in nix::DerivationAdvancedAttrsTest, nix::DerivationTest, and nix::GitTest.

◆ readTest()

void nix::CharacterizationTest::readTest ( PathView 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 ( PathView testStem,
auto && test )
inline

Specialize to std::string

◆ writeTest() [2/2]

void nix::CharacterizationTest::writeTest ( PathView 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 class was generated from the following file: