mirror of
https://github.com/NixOS/nix
synced 2025-07-01 12:37:59 +02:00
Unit test the "common protocol" too
Copy the relevant tests to ensure the new interfaces added in the last commit are tested. Perhaps I should try to deduplicat these tests some more. However its not clear how to do that outside of a big ugly C++ macro. https://github.com/google/googletest/blob/main/docs/advanced.md has some stuff but it is cumbersome and I didn't figure it out yet. This is done in a separate commit in order to be sure that the first commit really didn't change any behavior; if we changed the implementation and the tests at once, it would be harder to tell whether or not some behavioral changes slipped in what is supposed to be a "pure refactor". Co-Authored-By: Valentin Gagarin <valentin.gagarin@tweag.io>
This commit is contained in:
parent
be81764320
commit
4de54b2190
13 changed files with 280 additions and 73 deletions
BIN
unit-test-data/libstore/common-protocol/content-address.bin
Normal file
BIN
unit-test-data/libstore/common-protocol/content-address.bin
Normal file
Binary file not shown.
BIN
unit-test-data/libstore/common-protocol/drv-output.bin
Normal file
BIN
unit-test-data/libstore/common-protocol/drv-output.bin
Normal file
Binary file not shown.
Binary file not shown.
BIN
unit-test-data/libstore/common-protocol/optional-store-path.bin
Normal file
BIN
unit-test-data/libstore/common-protocol/optional-store-path.bin
Normal file
Binary file not shown.
BIN
unit-test-data/libstore/common-protocol/realisation.bin
Normal file
BIN
unit-test-data/libstore/common-protocol/realisation.bin
Normal file
Binary file not shown.
BIN
unit-test-data/libstore/common-protocol/set.bin
Normal file
BIN
unit-test-data/libstore/common-protocol/set.bin
Normal file
Binary file not shown.
BIN
unit-test-data/libstore/common-protocol/store-path.bin
Normal file
BIN
unit-test-data/libstore/common-protocol/store-path.bin
Normal file
Binary file not shown.
BIN
unit-test-data/libstore/common-protocol/string.bin
Normal file
BIN
unit-test-data/libstore/common-protocol/string.bin
Normal file
Binary file not shown.
BIN
unit-test-data/libstore/common-protocol/vector.bin
Normal file
BIN
unit-test-data/libstore/common-protocol/vector.bin
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue