#include <characterization.hh>
|
void | readTest (PathView testStem, auto &&test) |
|
void | writeTest (PathView testStem, auto &&test, auto &&readFile2, auto &&writeFile2) |
|
void | writeTest (PathView testStem, auto &&test) |
|
|
virtual std::filesystem::path | goldenMaster (PathView testStem) const =0 |
|
Mixin class for writing characterization tests
◆ goldenMaster()
virtual std::filesystem::path nix::CharacterizationTest::goldenMaster |
( |
PathView | testStem | ) |
const |
|
protectedpure virtual |
◆ readTest()
void nix::CharacterizationTest::readTest |
( |
PathView | testStem, |
|
|
auto && | test ) |
|
inline |
Golden test for reading
- Parameters
-
test | hook 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
-
test | hook that produces contents of the file and does the actual work |
The documentation for this class was generated from the following file:
- /home/buildozer/aports/community/nix/src/nix-2.26.3/src/libutil-test-support/tests/characterization.hh