Fix fuzzer (LoadString does not exist), and mention it in the README.
This commit is contained in:
Thomas Pelletier
2017-10-21 19:23:38 -07:00
committed by GitHub
parent 6d858869d3
commit 8c31c2ec65
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -114,6 +114,11 @@ You have to make sure two kind of tests run:
You can run both of them using `./test.sh`.
### Fuzzing
The script `./fuzz.sh` is available to
run [go-fuzz](https://github.com/dvyukov/go-fuzz) on go-toml.
## Versioning
Go-toml follows [Semantic Versioning](http://semver.org/). The supported version
+1 -1
View File
@@ -19,7 +19,7 @@ func Fuzz(data []byte) int {
panic(err)
}
tree, err = LoadString(str)
tree, err = Load(str)
if err != nil {
if tree != nil {
panic("tree must be nil if there is an error")