(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestCreateNote(t *testing.T) { |
| 11 | t.Parallel() |
| 12 | repo := createTestRepo(t) |
| 13 | defer cleanupTestRepo(t, repo) |
| 14 | |
| 15 | commitId, _ := seedTestRepo(t, repo) |
| 16 | |
| 17 | commit, err := repo.LookupCommit(commitId) |
| 18 | checkFatal(t, err) |
| 19 | |
| 20 | note, noteId := createTestNote(t, repo, commit) |
| 21 | |
| 22 | compareStrings(t, "I am a note\n", note.Message()) |
| 23 | compareStrings(t, noteId.String(), note.Id().String()) |
| 24 | compareStrings(t, "alice", note.Author().Name) |
| 25 | compareStrings(t, "alice@example.com", note.Author().Email) |
| 26 | compareStrings(t, "alice", note.Committer().Name) |
| 27 | compareStrings(t, "alice@example.com", note.Committer().Email) |
| 28 | } |
| 29 | |
| 30 | func TestNoteIterator(t *testing.T) { |
| 31 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…