You've already forked postgres_exporter
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:
@@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user