Skip to content

test(bpf): finish table-driving decode_test.go (#139)#214

Open
Anushreer22 wants to merge 1 commit into
optiqor:mainfrom
Anushreer22:test/bpf-table-driven-decode-139
Open

test(bpf): finish table-driving decode_test.go (#139)#214
Anushreer22 wants to merge 1 commit into
optiqor:mainfrom
Anushreer22:test/bpf-table-driven-decode-139

Conversation

@Anushreer22

Copy link
Copy Markdown
Contributor

Converts all remaining decode tests to table‑driven format.

Changes

  • internal/bpf/decode_test.go — all event decode tests now use []struct{ name, raw, want, wantErr } with t.Run and t.Parallel(). Every test covers exact size, short buffer (decode error), and oversized buffer.

Testing

  • go test ./internal/bpf/ -run "TestDecode" -v passes all cases.
  • Build requirement: linux (eBPF tests).

Closes #139

@Anushreer22 Anushreer22 requested a review from btwshivam as a code owner June 10, 2026 15:25
@Anushreer22 Anushreer22 force-pushed the test/bpf-table-driven-decode-139 branch from 9f2746c to b5ccfaa Compare June 10, 2026 15:27
@github-actions github-actions Bot added level:intermediate 50-200 lines or 3-5 files (auto-applied) testing Tests and test coverage area/bpf eBPF programs and loaders labels Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/bpf eBPF programs and loaders level:intermediate 50-200 lines or 3-5 files (auto-applied) testing Tests and test coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(bpf): finish table-driving decode_test.go

1 participant