testdata/fuzz is for inputs that have caused a failure and you want to keep
around so that they are ~always run, to prevent regressions.
-fuzzcache is more like a log of useful things it has tried, so it doesn't
waste resources going over the same/similar inputs
see `go help cache`

- sean


On Wed, Apr 27, 2022 at 1:36 AM will....@gmail.com <will.fau...@gmail.com>
wrote:

> `go help clean` says:
>
>
>
>
>
>
> *The -fuzzcache flag causes clean to remove files stored in the Go
> buildcache for fuzz testing. The fuzzing engine caches files that
> expandcode coverage, so removing them may make fuzzing less effective
> untilnew inputs are found that provide the same coverage. These files
> aredistinct from those stored in testdata directory; clean does not
> removethose files.*
>
> What's the difference between the fuzz cache in the testdata/fuzz
> directory in your own package, and this "Go build cache for fuzz testing"?
> Is it duplicating testdata/fuzz per package? And where is it?
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/3a699718-196f-48b8-a414-19f6d8835d35n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/3a699718-196f-48b8-a414-19f6d8835d35n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAGabyPoARenp18qCTXj2H8p8T5mHiRxt8c5NakTKXBTGfPriMw%40mail.gmail.com.

Reply via email to