Skip to content

Extend fuzz tests #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Extend fuzz tests #196

wants to merge 1 commit into from

Conversation

panmari
Copy link
Collaborator

@panmari panmari commented Jul 4, 2025

Covering more methods for CellUnion and add a rudimentary fuzz test for polygon.

Covering more methods for CellUnion and add a rudimentary fuzz test for polygon.
if got := p.Area(); got < 0 {
t.Errorf("Area() = %v, want >= 0. Polygon: %v", got, p)
}
// TODO: Test more methods on Polygon.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the rationale for

  1. one file with all fuzz tests (or all decoding related fuzz tests)?
  2. having monolithic FuzzFoo tests rather than testing properties independently?
    ?

http://go/unit-testing-practices?polyglot=go#behavior-testing-examples

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.

2 participants