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

Function failWithFailure

mob_test.go:2349–2353  ·  view source on GitHub ↗
(t *testing.T, exp interface{}, act interface{})

Source from the content-addressed store, hash-verified

2347}
2348
2349func failWithFailure(t *testing.T, exp interface{}, act interface{}) {
2350 _, file, line, _ := runtime.Caller(1)
2351 fmt.Printf("\033[31m%s:%d:\n\n\texp: %#v\n\n\tgot: %#v\033[39m\n\n", filepath.Base(file), line, exp, act)
2352 t.FailNow()
2353}
2354
2355func checkoutAndPushBranch(branch string) {
2356 git("checkout", "-b", branch)

Callers 15

assertNoErrorFunction · 0.70
assertErrorFunction · 0.70
assertCommitsOnBranchFunction · 0.70
assertFileExistFunction · 0.70
createFileInPathFunction · 0.70
ensureDirectoryExistsFunction · 0.70
removeFileFunction · 0.70
moveFileFunction · 0.70
readFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected