1
0
mirror of https://github.com/prometheus-community/postgres_exporter.git synced 2025-08-11 02:43:02 +03:00

Gofmt the code.

This commit is contained in:
Will Rouesnel
2017-02-25 01:08:36 +11:00
parent ff8e0c5382
commit 5211415ebe
3 changed files with 22 additions and 22 deletions

View File

@@ -3,8 +3,8 @@
package main
import (
"testing"
. "gopkg.in/check.v1"
"testing"
"github.com/blang/semver"
)
@@ -12,7 +12,7 @@ import (
// Hook up gocheck into the "go test" runner.
func Test(t *testing.T) { TestingT(t) }
type FunctionalSuite struct{
type FunctionalSuite struct {
e *Exporter
}
@@ -24,9 +24,9 @@ func (s *FunctionalSuite) SetUpSuite(c *C) {
func (s *FunctionalSuite) TestSemanticVersionColumnDiscard(c *C) {
testMetricMap := map[string]map[string]ColumnMapping{
"test_namespace" : map[string]ColumnMapping{
"metric_which_stays" : {COUNTER, "This metric should not be eliminated", nil, nil},
"metric_which_discards" : {COUNTER, "This metric should be forced to DISCARD", nil, nil},
"test_namespace": {
"metric_which_stays": {COUNTER, "This metric should not be eliminated", nil, nil},
"metric_which_discards": {COUNTER, "This metric should be forced to DISCARD", nil, nil},
},
}
@@ -84,4 +84,4 @@ func (s *FunctionalSuite) TestSemanticVersionColumnDiscard(c *C) {
false,
)
}
}
}