Merge pull request #7314 from pmorie/doc

Add hint re: fuzzer to api changes doc
This commit is contained in:
Rohit Jnagal 2015-04-27 12:40:32 -07:00
commit 5ccad95c49
1 changed files with 3 additions and 1 deletions

View File

@ -236,7 +236,9 @@ assumptions. If you have added any fields which need very careful formatting
"this slice will always have at least 1 element", you may get an error or even
a panic from the `serialization_test`. If so, look at the diff it produces (or
the backtrace in case of a panic) and figure out what you forgot. Encode that
into the fuzzer's custom fuzz functions.
into the fuzzer's custom fuzz functions. Hint: if you added defaults for a field,
that field will need to have a custom fuzz function that ensures that the field is
fuzzed to a non-empty value.
The fuzzer can be found in `pkg/api/testing/fuzzer.go`.