summaryrefslogtreecommitdiff
path: root/integrationtests/pidfd_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-13 19:42:30 +0300
committerPaul Buetow <paul@buetow.org>2026-05-13 19:42:30 +0300
commit16e413799363871c1efd73527fba299dfdfadfd3 (patch)
tree36627063d7d0b80f824cc9abe6848d860b082c3e /integrationtests/pidfd_test.go
parent0b454f367374e8cb97927627dacd0f1b216fe5ad (diff)
refactor: extract outputFormatter collaborator from eventLoop
The printCb and warningCb function fields on eventLoop bundled two distinct concerns (pair emission and warning delivery) directly on the event-processing struct. This commit extracts them into a dedicated outputFormatter type that owns these callbacks plus emit() and notifyWarning() helper methods. outputFormatter is embedded (not pointed-to) in eventLoop so that existing call sites — including tests that write el.printCb = ... and el.warningCb = ... directly — require no changes beyond the three struct-literal sites in eventloop_filter_test.go that used field initialiser syntax. fdTracker and commResolver were already proper collaborator types; only the output concern needed extraction. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'integrationtests/pidfd_test.go')
0 files changed, 0 insertions, 0 deletions