diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-05-07 15:42:28 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-05-07 15:42:28 +0200 |
| commit | 55a5e98a0a47bfac3653abb2d8f8f7b56d56685f (patch) | |
| tree | 6140b35bd59fb7104a1bf603fd01190e9df8204e /pkg/ifuzz/ifuzz_test.go | |
| parent | df6e2fb6dfe75e1b622641d180f399011dc77769 (diff) | |
pkg/ifuzz: move generated code to a separate package
This helps to ignore generated code with gometalinter.
There is currently no other way:
https://github.com/alecthomas/gometalinter/issues/270
Update #538
Diffstat (limited to 'pkg/ifuzz/ifuzz_test.go')
| -rw-r--r-- | pkg/ifuzz/ifuzz_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/ifuzz/ifuzz_test.go b/pkg/ifuzz/ifuzz_test.go index 0d9a41c56..bc5408a6f 100644 --- a/pkg/ifuzz/ifuzz_test.go +++ b/pkg/ifuzz/ifuzz_test.go @@ -1,13 +1,16 @@ // Copyright 2017 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -package ifuzz +package ifuzz_test import ( "encoding/hex" "math/rand" "testing" "time" + + . "github.com/google/syzkaller/pkg/ifuzz" + _ "github.com/google/syzkaller/pkg/ifuzz/generated" ) func TestMode(t *testing.T) { |
