mirror of
https://github.com/Oxalide/vsphere-influxdb-go.git
synced 2023-10-10 13:36:51 +02:00
21 lines
375 B
Go
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)
|
||
|
}
|
||
|
}
|