testPatternMatcher 测试用的 PatternMatcher
| 530 | |
| 531 | // testPatternMatcher 测试用的 PatternMatcher |
| 532 | type testPatternMatcher struct { |
| 533 | mu sync.RWMutex |
| 534 | supportedTypes []string |
| 535 | memories []*logic.LogicMemory |
| 536 | err error |
| 537 | eventProcessed bool |
| 538 | lastEventType string |
| 539 | } |
| 540 | |
| 541 | func (m *testPatternMatcher) MatchEvent(ctx context.Context, event logic.Event) ([]*logic.LogicMemory, error) { |
| 542 | m.mu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected