(t *testing.T)
| 22 | } |
| 23 | |
| 24 | func TestParse(t *testing.T) { |
| 25 | registry := location.NewRegistry() |
| 26 | registry.Register(testFactory()) |
| 27 | |
| 28 | path := "local:example" |
| 29 | u, err := location.Parse(registry, path) |
| 30 | test.OK(t, err) |
| 31 | test.Equals(t, "local", u.Scheme) |
| 32 | test.Equals(t, any(&testConfig{loc: path}), u.Config) |
| 33 | } |
| 34 | |
| 35 | func TestParseFallback(t *testing.T) { |
| 36 | fallbackTests := []string{ |
nothing calls this directly
no test coverage detected