diff options
Diffstat (limited to 'config_test.go')
-rw-r--r-- | config_test.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/config_test.go b/config_test.go index e87954b..eb6c463 100644 --- a/config_test.go +++ b/config_test.go @@ -51,6 +51,26 @@ packages: assert.Equal(t, pkg, Package{Repo: "github.com/grpc/grpc-go", Branch: "master"}) } +func TestParsePackageLevelURL(t *testing.T) { + path, clean := TempFile(t, ` + +url: google.golang.org +packages: + grpc: + repo: github.com/grpc/grpc-go + url: go.uber.org + +`) + defer clean() + + config, err := Parse(path) + assert.NoError(t, err) + + pkg, ok := config.Packages["grpc"] + assert.True(t, ok) + assert.Equal(t, pkg.URL, "go.uber.org") +} + func TestParseGodocServer(t *testing.T) { tests := []struct { give string |