(t *testing.T, repo *Repository, commit *Commit)
| 100 | } |
| 101 | |
| 102 | func createTestNote(t *testing.T, repo *Repository, commit *Commit) (*Note, *Oid) { |
| 103 | loc, err := time.LoadLocation("Europe/Berlin") |
| 104 | sig := &Signature{ |
| 105 | Name: "alice", |
| 106 | Email: "alice@example.com", |
| 107 | When: time.Date(2015, 01, 05, 13, 0, 0, 0, loc), |
| 108 | } |
| 109 | |
| 110 | noteId, err := repo.Notes.Create("", sig, sig, commit.Id(), "I am a note\n", false) |
| 111 | checkFatal(t, err) |
| 112 | |
| 113 | note, err := repo.Notes.Read("", commit.Id()) |
| 114 | checkFatal(t, err) |
| 115 | |
| 116 | return note, noteId |
| 117 | } |
no test coverage detected
searching dependent graphs…