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