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

Function assertCleanGitStatus

mob_test.go:2333–2340  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2331}
2332
2333func assertCleanGitStatus(t *testing.T) {
2334 status := gitStatus()
2335 if len(status) != 0 {
2336 _, file, line, _ := runtime.Caller(1)
2337 fmt.Printf("\033[31m%s:%d:\n\n\texpected a clean git status, but contained %s\"\n", filepath.Base(file), line, status)
2338 t.FailNow()
2339 }
2340}
2341
2342func equals(t *testing.T, exp, act interface{}) {
2343 if !reflect.DeepEqual(exp, act) {

Calls 1

gitStatusFunction · 0.85

Tested by

no test coverage detected