MCPcopy Create free account
hub / github.com/astercloud/aster / testPatternMatcher

Struct testPatternMatcher

pkg/middleware/logic_memory_test.go:532–539  ·  view source on GitHub ↗

testPatternMatcher 测试用的 PatternMatcher

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected