- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestPathToPrefix (0.16 sec)
-
src/cmd/internal/objabi/path_test.go
{"golang.org/x/tools/godoc", "golang.org/x/tools/godoc"}, {"foo.bar/baz.quux", "foo.bar/baz%2equux"}, {"", ""}, {"%foo%bar", "%25foo%25bar"}, {"\x01\x00\x7F☺", "%01%00%7f%e2%98%ba"}, } func TestPathToPrefix(t *testing.T) { for _, tc := range escapeTests { if got := PathToPrefix(tc.Path); got != tc.Escaped { t.Errorf("expected PathToPrefix(%s) = %s, got %s", tc.Path, tc.Escaped, got) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 13:56:25 UTC 2023 - 2.3K bytes - Viewed (0)