MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / assertCommitsOnBranch

Function assertCommitsOnBranch

mob_test.go:2178–2184  ·  view source on GitHub ↗
(t *testing.T, commits int, branchName string)

Source from the content-addressed store, hash-verified

2176}
2177
2178func 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
2186func assertCommitLogContainsMessage(t *testing.T, branchName string, commitMessage string) {
2187 logMessages := silentgit("log", branchName, "--oneline")

Calls 2

silentgitFunction · 0.85
failWithFailureFunction · 0.70

Tested by

no test coverage detected