Skip to content

Add tests for the webhook event decoders - #304

Merged
cpanato merged 1 commit into
mainfrom
test/model-decoders
Oct 9, 2026
Merged

cpanato merged 1 commit into
mainfrom
test/model-decoders

Conversation

@cpanato

@cpanato cpanato commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Adds table/field tests for PingEventFromJSON, CheckRunEventFromJSON, WorkflowJobEventFromJSON and WorkflowRunEventFromJSON: valid payloads decode the fields the exporter relies on (org, repo, branch, runner group, workflow name, timestamps...), and empty, malformed, truncated, wrong-typed or non-object input returns a nil event.

model/ coverage goes from 0% to 100%. main.go is left out: it is flag wiring only.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
@cpanato
cpanato merged commit b1c2ad7 into main Oct 9, 2026
3 checks passed
@cpanato
cpanato deleted the test/model-decoders branch October 9, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant