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

Function TestInTransitionError

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

Source from the content-addressed store, hash-verified

37}
38
39func TestInTransitionError(t *testing.T) {
40 event := "in transition"
41 e := InTransitionError{Event: event}
42 if e.Error() != "event "+e.Event+" inappropriate because previous transition did not complete" {
43 t.Error("InTransitionError string mismatch")
44 }
45}
46
47func TestNotInTransitionError(t *testing.T) {
48 e := NotInTransitionError{}

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…