Nix 2.35.2
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nlohmann::TryResolveTest Class Reference
Inheritance diagram for nlohmann::TryResolveTest:

Classes

struct  BuildTrace

Protected Member Functions

std::filesystem::path goldenMaster (std::string_view testStem) const override
void exportRefGraphSubpathTest (std::string_view stem, const Derivation &drv, const StructuredAttrs *parsed)
void resolveExpect (std::string_view stem, const Derivation &drv, const BuildTrace &buildTrace, const BasicDerivation &expected)

Static Protected Member Functions

static DerivationOutput caFloatingOutput ()
static auto makeCallback (const BuildTrace &table)

Protected Attributes

EnableExperimentalFeature caFeature {"ca-derivations"}

Member Function Documentation

◆ caFloatingOutput()

DerivationOutput nix::TryResolveTest::caFloatingOutput ( )
inlinestaticprotected

Just here because we do this a few times in a tests.

◆ exportRefGraphSubpathTest()

void nix::TryResolveTest::exportRefGraphSubpathTest ( std::string_view stem,
const Derivation & drv,
const StructuredAttrs * parsed )
protected

Helper for the exportReferencesGraph + placeholder subpath tests.

Test that derivationOptionsFromStructuredAttrs can parse exportReferencesGraph entries that reference a CA derivation output with a subpath appended (e.g. ${dep}/foo), and that the parsed options resolve correctly.

Regression test for #15003: the placeholder + subpath was not found in the placeholder map (exact-match only), and the fallback to toStorePath() failed because placeholders don't start with /nix/store/.

◆ makeCallback()

auto nix::TryResolveTest::makeCallback ( const BuildTrace & table)
inlinestaticprotected

Build a callback from a BuildTrace lookup.

◆ resolveExpect()

void nix::TryResolveTest::resolveExpect ( std::string_view stem,
const Derivation & drv,
const BuildTrace & buildTrace,
const BasicDerivation & expected )
inlineprotected

Checkpoint before/buildTrace/after and assert the resolved derivation matches expected.


The documentation for this class was generated from the following file:
  • /builddir/build/BUILD/nix-2.35.2-build/nix-2.35.2/src/libstore-tests/derivations.cc