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

Function assertOnBranch

mob_test.go:2277–2282  ·  view source on GitHub ↗
(t *testing.T, branch string)

Source from the content-addressed store, hash-verified

2275}
2276
2277func assertOnBranch(t *testing.T, branch string) {
2278 currentBranch := gitCurrentBranch()
2279 if currentBranch.Name != branch {
2280 failWithFailure(t, "on branch "+branch, "on branch "+currentBranch.String())
2281 }
2282}
2283
2284func assertOutputContains(t *testing.T, output *string, contains string) {
2285 currentOutput := *output

Calls 3

gitCurrentBranchFunction · 0.85
StringMethod · 0.80
failWithFailureFunction · 0.70

Tested by

no test coverage detected