(t *testing.T, commits int, branchName string)
| 2176 | } |
| 2177 | |
| 2178 | func assertCommitsOnBranch(t *testing.T, commits int, branchName string) { |
| 2179 | result := silentgit("rev-list", "--count", branchName) |
| 2180 | number, _ := strconv.Atoi(result) |
| 2181 | if number != commits { |
| 2182 | failWithFailure(t, strconv.Itoa(commits)+" commits in "+workingDir, strconv.Itoa(number)+" commits in "+workingDir) |
| 2183 | } |
| 2184 | } |
| 2185 | |
| 2186 | func assertCommitLogContainsMessage(t *testing.T, branchName string, commitMessage string) { |
| 2187 | logMessages := silentgit("log", branchName, "--oneline") |
no test coverage detected