Skip to content

Commit

Permalink
test: improves coverage for annotated tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Apr 12, 2024
1 parent d117f83 commit b6bea9e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vcs/tags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ func createTestRepo(t *testing.T) string {
if err != nil {
t.Fatal(err)
}

// lightweight tag
_, err = repo.CreateTag("0.0.1", c1, nil)
if err != nil {
t.Fatal(err)
Expand All @@ -165,7 +167,11 @@ func createTestRepo(t *testing.T) string {
if err != nil {
t.Fatal(err)
}
_, err = repo.CreateTag("0.1.0", c2, nil)

// annotated tag
_, err = repo.CreateTag("0.1.0", c2, &git.CreateTagOptions{
Message: "annotated tag 0.1.0",
})
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit b6bea9e

Please sign in to comment.