syzkaller/pkg/report/stub.go
Dmitry Vyukov d9ec038e02 pkg/report: refactor argument passing
We now pass 5 arguments through a bunch of functions,
this is quite inconvinient when the set of arguments changes.
Incapsulate all arguments in a struct and pass/store it as a whole.
2019-07-23 09:15:43 +02:00

28 lines
562 B
Go

// 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 report
type stub struct {
*config
}
func ctorStub(cfg *config) (Reporter, []string, error) {
ctx := &stub{
config: cfg,
}
return ctx, nil, nil
}
func (ctx *stub) ContainsCrash(output []byte) bool {
panic("not implemented")
}
func (ctx *stub) Parse(output []byte) *Report {
panic("not implemented")
}
func (ctx *stub) Symbolize(rep *Report) error {
panic("not implemented")
}