mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
Make a few more things use StoreDirConfig instead of Store
This commit is contained in:
parent
316fef35dc
commit
79fb9b0d3c
11 changed files with 45 additions and 38 deletions
|
|
@ -25,7 +25,7 @@ public:
|
|||
CharacterizationTest::readTest(testStem, [&](const auto & encoded) {
|
||||
T got = ({
|
||||
StringSource from{encoded};
|
||||
CommonProto::Serialise<T>::read(*store, CommonProto::ReadConn{.from = from});
|
||||
CommonProto::Serialise<T>::read(store, CommonProto::ReadConn{.from = from});
|
||||
});
|
||||
|
||||
ASSERT_EQ(got, expected);
|
||||
|
|
@ -40,7 +40,7 @@ public:
|
|||
{
|
||||
CharacterizationTest::writeTest(testStem, [&]() -> std::string {
|
||||
StringSink to;
|
||||
CommonProto::Serialise<T>::write(*store, CommonProto::WriteConn{.to = to}, decoded);
|
||||
CommonProto::Serialise<T>::write(store, CommonProto::WriteConn{.to = to}, decoded);
|
||||
return to.s;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ VERSIONED_CHARACTERIZATION_TEST(
|
|||
}),
|
||||
({
|
||||
ValidPathInfo info{
|
||||
*LibStoreTest::store,
|
||||
store,
|
||||
"foo",
|
||||
FixedOutputInfo{
|
||||
.method = FileIngestionMethod::NixArchive,
|
||||
|
|
|
|||
|
|
@ -516,7 +516,7 @@ VERSIONED_CHARACTERIZATION_TEST(
|
|||
}),
|
||||
({
|
||||
ValidPathInfo info{
|
||||
*LibStoreTest::store,
|
||||
store,
|
||||
"foo",
|
||||
FixedOutputInfo{
|
||||
.method = FileIngestionMethod::NixArchive,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue