In internal/inflect/inflect.go, the <dispatcher> placeholder for message.EventKind is substituted with dogma.EventRecorder:
message.EventKind: {
// ...
"<dispatcher>": "dogma.EventRecorder",
},
dogma.EventRecorder was removed in a prior release (see CHANGELOG). This means error messages and suggestions that use <dispatcher> in an event context — such as the hint in expectation.messagecommon.go:
s.AppendListItem(inflect.Sprint(t.kind, "verify the logic within the code that uses the <dispatcher>"))
…will render stale/incorrect interface names to the user.
The substitution should be updated to reflect the current Dogma API. The test files expectation.message.eventcall_test.go and expectation.messagetype.eventcall_test.go also hardcode dogma.EventRecorder in expected output and will need updating.
Also, action.call.go references dogma.EventRecorder in a doc comment (lines 13 and 21) and should be corrected.
In
internal/inflect/inflect.go, the<dispatcher>placeholder formessage.EventKindis substituted withdogma.EventRecorder:dogma.EventRecorderwas removed in a prior release (see CHANGELOG). This means error messages and suggestions that use<dispatcher>in an event context — such as the hint inexpectation.messagecommon.go:…will render stale/incorrect interface names to the user.
The substitution should be updated to reflect the current Dogma API. The test files
expectation.message.eventcall_test.goandexpectation.messagetype.eventcall_test.goalso hardcodedogma.EventRecorderin expected output and will need updating.Also,
action.call.goreferencesdogma.EventRecorderin a doc comment (lines 13 and 21) and should be corrected.