- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestSplitPath (0.56 sec)
-
src/os/os_unix_test.go
} func TestNewFileInvalid(t *testing.T) { t.Parallel() const negOne = ^uintptr(0) if f := NewFile(negOne, "invalid"); f != nil { t.Errorf("NewFile(-1) got %v want nil", f) } } func TestSplitPath(t *testing.T) { t.Parallel() for _, tt := range []struct{ path, wantDir, wantBase string }{ {"a", ".", "a"}, {"a/", ".", "a"}, {"a//", ".", "a"}, {"a/b", "a", "b"}, {"a/b/", "a", "b"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:32:43 UTC 2023 - 11.5K bytes - Viewed (0)