1
1
Fork 0
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:
John Ericson 2025-08-15 14:55:47 -04:00
parent 316fef35dc
commit 79fb9b0d3c
11 changed files with 45 additions and 38 deletions

View file

@ -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;
});
}

View file

@ -275,7 +275,7 @@ VERSIONED_CHARACTERIZATION_TEST(
}),
({
ValidPathInfo info{
*LibStoreTest::store,
store,
"foo",
FixedOutputInfo{
.method = FileIngestionMethod::NixArchive,

View file

@ -516,7 +516,7 @@ VERSIONED_CHARACTERIZATION_TEST(
}),
({
ValidPathInfo info{
*LibStoreTest::store,
store,
"foo",
FixedOutputInfo{
.method = FileIngestionMethod::NixArchive,