diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-12-09 18:05:58 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-10 16:37:01 +0100 |
| commit | ba64d006de17a5bfa0c99e4b96711ba42f82e199 (patch) | |
| tree | 9625242c1510aef3b4ff0d793b885e66f1b29914 /prog/mutation_test.go | |
| parent | 95fe19c19e596446412626b048d950de6ce8c886 (diff) | |
prog: implement strict parsing mode
Add bulk of checks for strict parsing mode.
Probably not complete, but we can extend then in future as needed.
Turns out we can't easily use it for serialized programs
as they omit default args and during deserialization it looks like missing args.
Diffstat (limited to 'prog/mutation_test.go')
| -rw-r--r-- | prog/mutation_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/mutation_test.go b/prog/mutation_test.go index 3f5d4f10b..a29191539 100644 --- a/prog/mutation_test.go +++ b/prog/mutation_test.go @@ -44,7 +44,7 @@ func TestMutateRandom(t *testing.T) { if bytes.Equal(data, data1) { continue } - if _, err := target.Deserialize(data1, Strict); err != nil { + if _, err := target.Deserialize(data1, NonStrict); err != nil { t.Fatalf("Deserialize failed after Mutate: %v\n%s", err, data1) } continue next |
