Skip to content

refactor(libstore): expose DummyStoreImpl in header for testability#14221

Closed
lovesegfault wants to merge 1 commit intoNixOS:masterfrom
lovesegfault:expose-dummy-store-impl
Closed

refactor(libstore): expose DummyStoreImpl in header for testability#14221
lovesegfault wants to merge 1 commit intoNixOS:masterfrom
lovesegfault:expose-dummy-store-impl

Conversation

@lovesegfault
Copy link
Member

Motivation

Move DummyStoreImpl from dummy-store.cc to dummy-store-impl.hh to allow
tests to inherit from it and use gmock for method mocking.

Context

Needed for: #14219


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Move DummyStoreImpl from dummy-store.cc to dummy-store-impl.hh to allow
tests to inherit from it and use gmock for method mocking.
@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Oct 12, 2025
@lovesegfault lovesegfault requested a review from xokdvium October 12, 2025 01:34
@Ericson2314
Copy link
Member

See what I wrote in #14219 (comment) dummy store is already a mock store in some sense. I don't really get why we need this or gmock, but perhaps I'm missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants