1
0
mirror of https://github.com/Oxalide/vsphere-influxdb-go.git synced 2023-10-10 13:36:51 +02:00
vsphere-influxdb-go/vendor/github.com/influxdata/influxdb/stress/v2/stress_client/directive_test.go
2017-10-25 20:52:40 +00:00

21 lines
375 B
Go

package stressClient
import (
"testing"
)
func TestNewDirective(t *testing.T) {
tr := NewTracer(map[string]string{})
prop := "foo_prop"
val := "foo_value"
dir := NewDirective(prop, val, tr)
got := dir.Property
if prop != got {
t.Errorf("expected: %v\ngot: %v\n", prop, got)
}
got = dir.Value
if val != got {
t.Errorf("expected: %v\ngot: %v\n", val, got)
}
}