Debian Codegraph @

v2/test/run_test.go

raw
1 package test
2
3 import "testing"
4
5 func Test_new_result_on_run(t *testing.T) {
6 given, _, _ := newRunTest(t)
7
8 given.a_result_is_added()
9 }
10
11 func Test_properties_on_a_run(t *testing.T) {
12 given, when, then := newRunTest(t)
13
14 expected := `{"tool":{"driver":{"name":"driver1","rules":[]}},"results":[],"properties":{"boolean_key":false,"string_key":"string_value"}}`
15
16 given.properties_added_to_a_run()
17 when.the_run_is_json()
18 then.string_is_as_expected(expected)
19 }