aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/path.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-19 00:26:06 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-23 07:05:50 -0500
commit018e2571aad8c68c80207f84b6b20695f20e5c40 (patch)
tree786df005464ec975d2781c0f47822700487684e8 /src/libstore/path.hh
parent685395332d75713bc7aca0c6408fc1b9d2c14bc5 (diff)
Test store paths, with property tests
The property test in fact found a bug: we were excluding numbers!
Diffstat (limited to 'src/libstore/path.hh')
-rw-r--r--src/libstore/path.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/path.hh b/src/libstore/path.hh
index 8e1cb5e55..6a8f027f9 100644
--- a/src/libstore/path.hh
+++ b/src/libstore/path.hh
@@ -16,6 +16,8 @@ public:
/* Size of the hash part of store paths, in base-32 characters. */
constexpr static size_t HashLen = 32; // i.e. 160 bits
+ constexpr static size_t MaxPathLen = 211;
+
StorePath() = delete;
StorePath(std::string_view baseName);