aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/corpus
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-07-24 12:08:49 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-07-24 14:39:45 +0000
commit49e6369fe732c0f81e5b03b36e345afbf3c79a15 (patch)
tree651e322e41a8084abd6f2c80e4f9b7ff50a1dfe9 /pkg/corpus
parent1f032c27c8158e44723253179928104813d45cdc (diff)
pkg/stat: rename package name to singular form
Go package names should generally be singular form: https://go.dev/blog/package-names https://rakyll.org/style-packages https://groups.google.com/g/golang-nuts/c/buBwLar1gNw
Diffstat (limited to 'pkg/corpus')
-rw-r--r--pkg/corpus/corpus.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/pkg/corpus/corpus.go b/pkg/corpus/corpus.go
index af5754273..8b70b0cfd 100644
--- a/pkg/corpus/corpus.go
+++ b/pkg/corpus/corpus.go
@@ -10,7 +10,7 @@ import (
"github.com/google/syzkaller/pkg/cover"
"github.com/google/syzkaller/pkg/hash"
"github.com/google/syzkaller/pkg/signal"
- "github.com/google/syzkaller/pkg/stats"
+ "github.com/google/syzkaller/pkg/stat"
"github.com/google/syzkaller/prog"
)
@@ -24,9 +24,9 @@ type Corpus struct {
cover cover.Cover // total coverage of all items
updates chan<- NewItemEvent
*ProgramsList
- StatProgs *stats.Val
- StatSignal *stats.Val
- StatCover *stats.Val
+ StatProgs *stat.Val
+ StatSignal *stat.Val
+ StatCover *stat.Val
}
func NewCorpus(ctx context.Context) *Corpus {
@@ -40,12 +40,12 @@ func NewMonitoredCorpus(ctx context.Context, updates chan<- NewItemEvent) *Corpu
updates: updates,
ProgramsList: &ProgramsList{},
}
- corpus.StatProgs = stats.New("corpus", "Number of test programs in the corpus", stats.Console,
- stats.Link("/corpus"), stats.Graph("corpus"), stats.LenOf(&corpus.progs, &corpus.mu))
- corpus.StatSignal = stats.New("signal", "Fuzzing signal in the corpus",
- stats.LenOf(&corpus.signal, &corpus.mu))
- corpus.StatCover = stats.New("coverage", "Source coverage in the corpus", stats.Console,
- stats.Link("/cover"), stats.Prometheus("syz_corpus_cover"), stats.LenOf(&corpus.cover, &corpus.mu))
+ corpus.StatProgs = stat.New("corpus", "Number of test programs in the corpus", stat.Console,
+ stat.Link("/corpus"), stat.Graph("corpus"), stat.LenOf(&corpus.progs, &corpus.mu))
+ corpus.StatSignal = stat.New("signal", "Fuzzing signal in the corpus",
+ stat.LenOf(&corpus.signal, &corpus.mu))
+ corpus.StatCover = stat.New("coverage", "Source coverage in the corpus", stat.Console,
+ stat.Link("/cover"), stat.Prometheus("syz_corpus_cover"), stat.LenOf(&corpus.cover, &corpus.mu))
return corpus
}