Skip to content

Commit 3abd0f0

Browse files
committed
pkg/fuzzer/queue: add Status.String
Otherwise it's hard to understand in error messages what 1/2/3 mean.
1 parent fe048bb commit 3abd0f0

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

pkg/fuzzer/queue/queue.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ func (r *Result) GlobFiles() []string {
213213

214214
type Status int
215215

216+
//go:generate go run golang.org/x/tools/cmd/stringer -type Status
216217
const (
217218
Success Status = iota
218219
ExecFailure // For e.g. serialization errors.

pkg/fuzzer/queue/status_string.go

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/tools/tools.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ import (
1414
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
1515
_ "github.com/google/keep-sorted"
1616
_ "github.com/vektra/mockery/v2"
17+
_ "golang.org/x/tools/cmd/stringer"
1718
)

0 commit comments

Comments
 (0)