mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Bring fuzzer error handling in line.
This commit is contained in:
parent
9eb2e98509
commit
981b636004
|
@ -49,7 +49,6 @@ const (
|
|||
// lives in github.com/prometheus/client_golang/text.
|
||||
func FuzzParseMetric(in []byte) int {
|
||||
_, err := ParseMetric(string(in))
|
||||
|
||||
if err == nil {
|
||||
return fuzzInteresting
|
||||
}
|
||||
|
@ -60,7 +59,6 @@ func FuzzParseMetric(in []byte) int {
|
|||
// Fuzz the metric selector parser.
|
||||
func FuzzParseMetricSelector(in []byte) int {
|
||||
_, err := ParseMetricSelector(string(in))
|
||||
|
||||
if err == nil {
|
||||
return fuzzInteresting
|
||||
}
|
||||
|
@ -71,7 +69,6 @@ func FuzzParseMetricSelector(in []byte) int {
|
|||
// Fuzz the expression parser.
|
||||
func FuzzParseExpr(in []byte) int {
|
||||
_, err := ParseExpr(string(in))
|
||||
|
||||
if err == nil {
|
||||
return fuzzInteresting
|
||||
}
|
||||
|
@ -82,7 +79,6 @@ func FuzzParseExpr(in []byte) int {
|
|||
// Fuzz the parser.
|
||||
func FuzzParseStmts(in []byte) int {
|
||||
_, err := ParseStmts(string(in))
|
||||
|
||||
if err == nil {
|
||||
return fuzzInteresting
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue