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

Function assertCommitLogContainsMessage

mob_test.go:2186–2191  ·  view source on GitHub ↗
(t *testing.T, branchName string, commitMessage string)

Source from the content-addressed store, hash-verified

2184}
2185
2186func assertCommitLogContainsMessage(t *testing.T, branchName string, commitMessage string) {
2187 logMessages := silentgit("log", branchName, "--oneline")
2188 if !strings.Contains(logMessages, commitMessage) {
2189 failWithFailure(t, "git log contains '"+commitMessage+"'", logMessages)
2190 }
2191}
2192
2193func assertCommitLogNotContainsMessage(t *testing.T, branchName string, commitMessage string) {
2194 logMessages := silentgit("log", branchName, "--oneline")

Calls 2

silentgitFunction · 0.85
failWithFailureFunction · 0.70

Tested by

no test coverage detected