diff options
| author | Mikael Voss <mvs@nyantec.com> | 2025-03-03 17:19:00 +0100 |
|---|---|---|
| committer | Mikael Voss <mvs@nyantec.com> | 2025-03-05 10:30:08 +0100 |
| commit | 6e2e984af0a2f3197ff9ca6897a11fabdeb67ea7 (patch) | |
| tree | 18702656ca52b2e0c80050f22b40b444a814f758 /lib/path/tests | |
| parent | trojan-go: init at 0.10.6 (#373125) (diff) | |
| download | nixpkgs-6e2e984af0a2f3197ff9ca6897a11fabdeb67ea7.tar.gz | |
lib/path: allow CA paths in hasStorePathPrefix
Diffstat (limited to 'lib/path/tests')
| -rw-r--r-- | lib/path/tests/unit.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/path/tests/unit.nix b/lib/path/tests/unit.nix index 903e8ff0acff..a52b4f44e51d 100644 --- a/lib/path/tests/unit.nix +++ b/lib/path/tests/unit.nix @@ -137,6 +137,16 @@ let expected = true; }; + # Test paths for contentâaddressed derivations + testHasStorePathPrefixExample7 = { + expr = hasStorePathPrefix (/. + "/1121rp0gvr1qya7hvy925g5kjwg66acz6sn1ra1hca09f1z5dsab"); + expected = true; + }; + testHasStorePathPrefixExample8 = { + expr = hasStorePathPrefix (/. + "/1121rp0gvr1qya7hvy925g5kjwg66acz6sn1ra1hca09f1z5dsab/foo/bar"); + expected = true; + }; + # Test examples from the lib.path.subpath.isValid documentation testSubpathIsValidExample1 = { expr = subpath.isValid null; |
