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

Function TestUnknownEventError

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

Source from the content-addressed store, hash-verified

29}
30
31func TestUnknownEventError(t *testing.T) {
32 event := "invalid event"
33 e := UnknownEventError{Event: event}
34 if e.Error() != "event "+e.Event+" does not exist" {
35 t.Error("UnknownEventError string mismatch")
36 }
37}
38
39func TestInTransitionError(t *testing.T) {
40 event := "in transition"

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…