|
Nix 2.35.2
Nix, the purely functional package manager; unstable internal interfaces
|
Public Member Functions | |
| bool | operator== (const BuildTrace &) const=default |
Public Attributes | |
| std::map< SingleDerivedPath::Built, StorePath > | dict |
A simple in-memory derived build trace. (e.g. we have SingleDerivedPath::Built not StorePath keys, because that is how the tryResolved callback works.)
For a real-world build trace, derived build traces are much more work to get correct, and should be at most a caching layer atop an underlying source-of-truth build trace. (This is as described in the manual.)
However, this is just for some simple in-memory unit tests, with tiny amounts of data we can hand-review, so it's fine. The point is unit testing tryResolve, not unit testing "deep queries" from a non-derived build trace (what is done in outputs-query.cc) anyways — that would be a separate unit test.