summaryrefslogtreecommitdiff
path: root/internal/eventloop_error_handling_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-22 09:58:59 +0300
committerPaul Buetow <paul@buetow.org>2026-05-22 09:58:59 +0300
commit88b9ea74d880207c8af46b3defc03a0777293a83 (patch)
tree50f3076bd93bd556f8f01ba7759ef872c36617d9 /internal/eventloop_error_handling_test.go
parentb0914837b96afb99971e600d6c46e55875f04854 (diff)
4c extract event kind runtime registry
Diffstat (limited to 'internal/eventloop_error_handling_test.go')
-rw-r--r--internal/eventloop_error_handling_test.go24
1 files changed, 2 insertions, 22 deletions
diff --git a/internal/eventloop_error_handling_test.go b/internal/eventloop_error_handling_test.go
index 0851ff6..4ac5525 100644
--- a/internal/eventloop_error_handling_test.go
+++ b/internal/eventloop_error_handling_test.go
@@ -146,28 +146,8 @@ func TestProcessRawEventMalformedKnownTypeDoesNotPanicAndNotifies(t *testing.T)
}
}
-func TestDecodeRawEventMalformedNotifies(t *testing.T) {
- el := mustNewEventLoop(t, eventLoopConfig{})
- warnings := make(chan string, 1)
- el.warningCb = func(message string) { warnings <- message }
-
- decoded, ok := decodeRawEvent(el, types.ENTER_OPEN_EVENT, []byte{byte(types.ENTER_OPEN_EVENT)}, types.NewOpenEventFast)
- if ok || decoded != nil {
- t.Fatalf("expected malformed raw event decode to fail, got ok=%v decoded=%v", ok, decoded)
- }
-
- select {
- case msg := <-warnings:
- if msg == "" {
- t.Fatalf("expected non-empty warning message")
- }
- default:
- t.Fatalf("expected warning notification")
- }
-}
-
-// unknownEvent is a minimal event.Event stub used to exercise the default
-// branch of handleTracepointExit (an enter-event type not covered by any case).
+// unknownEvent is a minimal event.Event stub used to exercise the missing
+// runtime-kind path in handleTracepointExit.
type unknownEvent struct{}
func (unknownEvent) String() string { return "unknownEvent" }