(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestCreateTag(t *testing.T) { |
| 10 | t.Parallel() |
| 11 | repo := createTestRepo(t) |
| 12 | defer cleanupTestRepo(t, repo) |
| 13 | |
| 14 | commitId, _ := seedTestRepo(t, repo) |
| 15 | |
| 16 | commit, err := repo.LookupCommit(commitId) |
| 17 | checkFatal(t, err) |
| 18 | |
| 19 | tagId := createTestTag(t, repo, commit) |
| 20 | |
| 21 | tag, err := repo.LookupTag(tagId) |
| 22 | checkFatal(t, err) |
| 23 | |
| 24 | compareStrings(t, "v0.0.0", tag.Name()) |
| 25 | compareStrings(t, "This is a tag", tag.Message()) |
| 26 | compareStrings(t, commitId.String(), tag.TargetId().String()) |
| 27 | } |
| 28 | |
| 29 | func TestCreateTagLightweight(t *testing.T) { |
| 30 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…