mirror of
https://github.com/nikdoof/vsphere-influxdb-go.git
synced 2025-12-21 06:29:21 +00:00
add vendoring with go dep
This commit is contained in:
26
vendor/github.com/influxdata/influxdb/services/meta/config_test.go
generated
vendored
Normal file
26
vendor/github.com/influxdata/influxdb/services/meta/config_test.go
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
package meta_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/BurntSushi/toml"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
)
|
||||
|
||||
func TestConfig_Parse(t *testing.T) {
|
||||
// Parse configuration.
|
||||
var c meta.Config
|
||||
if _, err := toml.Decode(`
|
||||
dir = "/tmp/foo"
|
||||
logging-enabled = false
|
||||
`, &c); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// Validate configuration.
|
||||
if c.Dir != "/tmp/foo" {
|
||||
t.Fatalf("unexpected dir: %s", c.Dir)
|
||||
} else if c.LoggingEnabled {
|
||||
t.Fatalf("unexpected logging enabled: %v", c.LoggingEnabled)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user