MCPcopy
hub / github.com/looplab/fsm / TestNotInTransitionError

Function TestNotInTransitionError

errors_test.go:47–52  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestNotInTransitionError(t *testing.T) {
48 e := NotInTransitionError{}
49 if e.Error() != "transition inappropriate because no state change in progress" {
50 t.Error("NotInTransitionError string mismatch")
51 }
52}
53
54func TestNoTransitionError(t *testing.T) {
55 e := NoTransitionError{}

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…