Debian Codegraph @

stress/v2/stress_client/directive_test.go

raw symbols SCIP
1 package stressClient
2
3 import (
4 "testing"
5 )
6
7 func TestNewDirective(t *testing.T) {
8 tr := NewTracer(map[string]string{})
9 prop := "foo_prop"
10 val := "foo_value"
11 dir := NewDirective(prop, val, tr)
12 got := dir.Property
13 if prop != got {
14 t.Errorf("expected: %v\ngot: %v\n", prop, got)
15 }
16 got = dir.Value
17 if val != got {
18 t.Errorf("expected: %v\ngot: %v\n", val, got)
19 }
20 }