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

Function assertError

mob_test.go:2165–2172  ·  view source on GitHub ↗
(t *testing.T, err error, errorMessage string)

Source from the content-addressed store, hash-verified

2163}
2164
2165func assertError(t *testing.T, err error, errorMessage string) {
2166 if err == nil {
2167 failWithFailure(t, errorMessage, "No Error thrown")
2168 }
2169 if err.Error() != errorMessage {
2170 failWithFailure(t, errorMessage, err.Error())
2171 }
2172}
2173
2174func assertCommits(t *testing.T, commits int) {
2175 assertCommitsOnBranch(t, commits, "HEAD")

Callers 5

TestTimerNumberLessThen1Function · 0.85
TestTimerNotANumberFunction · 0.85
TestBreakTimerNotANumberFunction · 0.85

Calls 1

failWithFailureFunction · 0.70

Tested by

no test coverage detected