-
Notifications
You must be signed in to change notification settings - Fork 66
/
exe_go118.go
48 lines (39 loc) · 1.19 KB
/
exe_go118.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package testscript
import (
"reflect"
"testing"
"time"
)
func mainStart() *testing.M {
// Note: testing.MainStart acquired an extra argument in Go 1.18.
return testing.MainStart(nopTestDeps{}, nil, nil, nil, nil)
}
// Note: corpusEntry is an anonymous struct type used by some method stubs.
type corpusEntry = struct {
Parent string
Path string
Data []byte
Values []interface{}
Generation int
IsSeed bool
}
// Note: CoordinateFuzzing was added in Go 1.18.
func (nopTestDeps) CoordinateFuzzing(time.Duration, int64, time.Duration, int64, int, []corpusEntry, []reflect.Type, string, string) error {
return nil
}
// Note: RunFuzzWorker was added in Go 1.18.
func (nopTestDeps) RunFuzzWorker(func(corpusEntry) error) error {
return nil
}
// Note: ReadCorpus was added in Go 1.18.
func (nopTestDeps) ReadCorpus(string, []reflect.Type) ([]corpusEntry, error) {
return nil, nil
}
// Note: CheckCorpus was added in Go 1.18.
func (nopTestDeps) CheckCorpus([]interface{}, []reflect.Type) error {
return nil
}
// Note: ResetCoverage was added in Go 1.18.
func (nopTestDeps) ResetCoverage() {}
// Note: SnapshotCoverage was added in Go 1.18.
func (nopTestDeps) SnapshotCoverage() {}