(t *testing.T)
| 708 | } |
| 709 | |
| 710 | func TestClientLastCommit(t *testing.T) { |
| 711 | client := Client{ |
| 712 | RepoDir: "./fixtures/simple.git", |
| 713 | } |
| 714 | c, err := client.LastCommit(context.Background()) |
| 715 | assert.NoError(t, err) |
| 716 | assert.Equal(t, "6f1a2405cace1633d89a79c74c65f22fe78f9659", c.Sha) |
| 717 | assert.Equal(t, "Second commit", c.Title) |
| 718 | } |
| 719 | |
| 720 | func TestClientCommitBody(t *testing.T) { |
| 721 | client := Client{ |
nothing calls this directly
no test coverage detected