diff options
author | 2023-05-09 11:29:37 -0700 | |
---|---|---|
committer | 2023-05-09 11:29:37 -0700 | |
commit | 2ef9d6a10e40c34a186cc6f1a081e9210169656b (patch) | |
tree | e504345a626ebc5bfc3e08854907d7382fd1cd19 /config_test.go | |
parent | eda20020c3391cf0a9aed04af1c349afbac66f90 (diff) | |
download | sally-2ef9d6a10e40c34a186cc6f1a081e9210169656b.tar.gz sally-2ef9d6a10e40c34a186cc6f1a081e9210169656b.tar.zst sally-2ef9d6a10e40c34a186cc6f1a081e9210169656b.zip |
Remove branch from PackageConfig struct (#93)
* Remove branch from PackageConfig struct
With #92, branch is no longer necessary from PackageConfig
struct since go-source tag was removed.
This removes Branch field from PackageConfig.
* update README
Diffstat (limited to 'config_test.go')
-rw-r--r-- | config_test.go | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/config_test.go b/config_test.go index 6587295..0eb93e2 100644 --- a/config_test.go +++ b/config_test.go @@ -29,26 +29,7 @@ packages: pkg, ok := config.Packages["grpc"] assert.True(t, ok) - assert.Equal(t, pkg, PackageConfig{Repo: "github.com/grpc/grpc-go", Branch: "main"}) -} - -func TestParseDefaultBranch(t *testing.T) { - path, clean := TempFile(t, ` - -url: google.golang.org -packages: - grpc: - repo: github.com/grpc/grpc-go - -`) - defer clean() - - config, err := Parse(path) - assert.NoError(t, err) - - pkg, ok := config.Packages["grpc"] - assert.True(t, ok) - assert.Equal(t, pkg, PackageConfig{Repo: "github.com/grpc/grpc-go", Branch: "master"}) + assert.Equal(t, pkg, PackageConfig{Repo: "github.com/grpc/grpc-go"}) } func TestParsePackageLevelURL(t *testing.T) { @@ -102,7 +83,7 @@ packages: pkg, ok := config.Packages["grpc"] assert.True(t, ok) - assert.Equal(t, PackageConfig{Repo: "github.com/grpc/grpc-go", Branch: "master"}, pkg) + assert.Equal(t, PackageConfig{Repo: "github.com/grpc/grpc-go"}, pkg) }) } } |