Commit Graph

7 Commits

Author SHA1 Message Date
sorki
265d25256d core: split signature/narSignature parser/builder 2023-12-06 16:25:38 +01:00
sorki
4e224c3f43 tests: custom Arbitrary OutputsSpec producing nonempty OutputsSpec_Names 2023-12-06 16:25:38 +01:00
sorki
91befa2a3c core: fix parseDerivedPath breaking when StoreDir contains exclamation mark 2023-12-06 16:25:38 +01:00
squalus
7850a38b3a core: add signatureToText function and tests
- make NarSignature's Show instance more legible
- add Arbitrary instance for NarSignature
- add roundtrip quickcheck tests for NarSignature encoding
2023-11-24 12:55:54 -08:00
Richard Marko
ee40d47a67 tests: add Test.Hspec.Nix.roundtrip 2023-11-20 09:22:05 +01:00
Richard Marko
541abd1e20 core: Base, wrap comment, trim whitespace 2023-11-20 09:22:05 +01:00
Richard Marko
42f56f504f hnix-store-tests: init
Split from `-core` so it doesn't depend on quickcheck,
generic-arbitrary and quickcheck-instances that could propagate downstrem.
Also allows users to defined their own.

With all roundtrip property tests.

Later this should also absorb test nix-store/daemon harness from
`-remote` so it can be reused by others.
2023-11-20 09:22:05 +01:00