Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

dep: update TestReadManifest to actually check prune options #1567

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ func TestReadManifest(t *testing.T) {
if !reflect.DeepEqual(got.Ignored, want.Ignored) {
t.Error("Valid manifest's ignored did not parse as expected")
}
if !reflect.DeepEqual(got.PruneOptions, want.PruneOptions) {
t.Error("Valid manifest's prune options did not parse as expected")
t.Error(got.PruneOptions, want.PruneOptions)
}
}

func TestWriteManifest(t *testing.T) {
Expand Down
12 changes: 12 additions & 0 deletions testdata/manifest/golden.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ ignored = ["github.com/foo/bar"]
branch = "master"
name = "github.com/golang/dep"
source = "https://github.com/golang/dep"

[prune]
non-go = true

[[prune.project]]
name = "github.com/golang/dep"
non-go = false

[[prune.project]]
name = "github.com/babble/brook"
non-go = false
go-tests = true