From aa53338ddbcf6a7c0173789c78608df50839e15b Mon Sep 17 00:00:00 2001 From: edef Date: Wed, 1 May 2024 11:50:40 +0000 Subject: test(tvix/castore/path): test the null byte case Change-Id: Ia4ceaf56f6cb4d8ed1ad935c77b3898d711da73a Reviewed-on: https://cl.tvl.fyi/c/depot/+/11568 Tested-by: BuildkiteCI Reviewed-by: flokli --- tvix/castore/src/path.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'tvix/castore/src/path.rs') diff --git a/tvix/castore/src/path.rs b/tvix/castore/src/path.rs index 4a6d82f68158..dfbf92232557 100644 --- a/tvix/castore/src/path.rs +++ b/tvix/castore/src/path.rs @@ -208,6 +208,7 @@ mod test { #[case::dotdot_middle("a/../b")] #[case::dot_end("a/b/.")] #[case::dotdot_end("a/b/..")] + #[case::null("fo\0o")] pub fn from_str_fail(#[case] s: &str) { s.parse::().expect_err("must fail"); } -- cgit 1.4.1