fix(cli/test): improve filtering DX (#18847)

Co-authored-by: DonIsaac <22823424+DonIsaac@users.noreply.github.com>
This commit is contained in:
Don Isaac
2025-04-09 16:41:32 -07:00
committed by GitHub
parent 9f023d7471
commit 1d6bdf745b
6 changed files with 322 additions and 220 deletions

View File

@@ -28,6 +28,7 @@ pub const PathString = packed struct {
return @as([*:0]u8, @ptrFromInt(@as(usize, @intCast(this.ptr))))[0..this.len :0];
}
/// Create a PathString from a borrowed slice. No allocation occurs.
pub inline fn init(str: []const u8) @This() {
@setRuntimeSafety(false); // "cast causes pointer to be null" is fine here. if it is null, the len will be 0.