(t *testing.T, err error, errorMessage string)
| 2163 | } |
| 2164 | |
| 2165 | func assertError(t *testing.T, err error, errorMessage string) { |
| 2166 | if err == nil { |
| 2167 | failWithFailure(t, errorMessage, "No Error thrown") |
| 2168 | } |
| 2169 | if err.Error() != errorMessage { |
| 2170 | failWithFailure(t, errorMessage, err.Error()) |
| 2171 | } |
| 2172 | } |
| 2173 | |
| 2174 | func assertCommits(t *testing.T, commits int) { |
| 2175 | assertCommitsOnBranch(t, commits, "HEAD") |
no test coverage detected