diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-25 21:42:59 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-25 21:42:59 +0200 |
| commit | 78dfb8ad0f844099280d102407449da0b456a84e (patch) | |
| tree | a81c3a52da96dded745ceeb282ee6b7bc155849d /internal/ior_test.go | |
| parent | e052410210c177aa5afd749605694b8200fa8c4c (diff) | |
Wire probe manager into tracepoint attach flow
Diffstat (limited to 'internal/ior_test.go')
| -rw-r--r-- | internal/ior_test.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/internal/ior_test.go b/internal/ior_test.go index 7f7eb20..43e8091 100644 --- a/internal/ior_test.go +++ b/internal/ior_test.go @@ -11,9 +11,16 @@ type fakeTracepointProgram struct { attachErr error } -func (p *fakeTracepointProgram) attachTracepoint(_, _ string) error { +type fakeTracepointLink struct{} + +func (fakeTracepointLink) Destroy() error { return nil } + +func (p *fakeTracepointProgram) attachTracepoint(_, _ string) (tracepointLink, error) { p.attachCalls++ - return p.attachErr + if p.attachErr != nil { + return nil, p.attachErr + } + return fakeTracepointLink{}, nil } type fakeTracepointModule struct { |
