google / google/buzzer

Errors returned from ebpf apis should be exported for better testing/development practices

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
477
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Currently in the codebase we do a lot of `return fmt.Errorf(...)` which is convenient but makes making sure that an error is a certain type a lot harder and creates fragile conditions for testing where we rely a lot on error strings.

Ideally we should have a list of errors somewhere that we export to users that can then go ahead and use those errors for comparisons, assertions, etc.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.