testMatcher 测试用的 PatternMatcher
| 462 | |
| 463 | // testMatcher 测试用的 PatternMatcher |
| 464 | type testMatcher struct { |
| 465 | supportedTypes []string |
| 466 | memories []*LogicMemory |
| 467 | err error |
| 468 | } |
| 469 | |
| 470 | func (m *testMatcher) MatchEvent(ctx context.Context, event Event) ([]*LogicMemory, error) { |
| 471 | if m.err != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected