Skip to content
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

testing,internal/fuzz: Whether to support printing random corpus in the future #51745

Open
gcggcg opened this issue Mar 17, 2022 · 2 comments
Open
Labels
NeedsInvestigation
Milestone

Comments

@gcggcg
Copy link

@gcggcg gcggcg commented Mar 17, 2022

###Whether to support printing random corpus in the future, so that we can check which data has been tested .Since I found that the Print didn't work even if I added fmt.Print, I wanted an error-like interrupt to Print out what I wanted to Print.

@heschi
Copy link
Contributor

@heschi heschi commented Mar 17, 2022

@heschi heschi added the NeedsInvestigation label Mar 17, 2022
@heschi heschi added this to the Backlog milestone Mar 17, 2022
@c-seeger
Copy link

@c-seeger c-seeger commented Mar 22, 2022

was trying to use fmt.Sprintf to construct the input string for the function to test until I realised i can't use fmt.
e.g.

f.Add("test")
f.Fuzz(func(t *testing.T), s string) {
  s := fmt.Sprintf("...%s", s)
  FuncToFuzz(s)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation
Projects
None yet
Development

No branches or pull requests

3 participants