diff options
| author | Paul Morie <pmorie@gmail.com> | 2015-04-24 18:02:52 -0400 |
|---|---|---|
| committer | Paul Morie <pmorie@gmail.com> | 2015-04-27 09:25:17 -0400 |
| commit | ef8d5722be698e57886b2c47df2bdddb9d37da9e (patch) | |
| tree | 129f85157280ce3942ce9c0598c9d57d86da05c4 /api_changes.md | |
| parent | 77e469b2870d2fda54fa2555d63edf5965cc26b8 (diff) | |
Add hint re: fuzzer to api changes doc
Diffstat (limited to 'api_changes.md')
| -rw-r--r-- | api_changes.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/api_changes.md b/api_changes.md index be02e16c..d68a776f 100644 --- a/api_changes.md +++ b/api_changes.md @@ -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`. |
