Merge pull request #153 from realzeitmedia/gofmt

gofmt
This commit is contained in:
Fabian Reinartz 2015-08-03 14:00:14 +02:00
commit b09846cc89
1 changed files with 7 additions and 7 deletions

View File

@ -19,18 +19,18 @@ package text
import "bytes" import "bytes"
// Fuzz text metric parser with with github.com/dvyukov/go-fuzz: // Fuzz text metric parser with with github.com/dvyukov/go-fuzz:
// //
// go-fuzz-build github.com/prometheus/client_golang/text // go-fuzz-build github.com/prometheus/client_golang/text
// go-fuzz -bin text-fuzz.zip -workdir fuzz // go-fuzz -bin text-fuzz.zip -workdir fuzz
// //
// Further input samples should go in the folder fuzz/corpus. // Further input samples should go in the folder fuzz/corpus.
func Fuzz(in []byte) int { func Fuzz(in []byte) int {
parser := Parser{} parser := Parser{}
_, err := parser.TextToMetricFamilies(bytes.NewReader(in)) _, err := parser.TextToMetricFamilies(bytes.NewReader(in))
if err != nil { if err != nil {
return 0 return 0
} }
return 1 return 1
} }