Debian Codegraph @

test/run_test.go

raw symbols SCIP
1 package testscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/test`/
2
3 import "testingscip-go gomod github.com/golang/go/src go1.16 testing/"
4
5 func Test_new_result_on_runscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/test`/Test_new_result_on_run().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
6 given, _, _ := newRunTestscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/test`/newRunTest().(t)
7
8 given.a_result_is_addedscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/test`/runTest#a_result_is_added().()
9 }
10
11 func Test_properties_on_a_runscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/test`/Test_properties_on_a_run().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) {
12 given, when, then := newRunTestscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/test`/newRunTest().(t)
13
14 expected := `{"tool":{"driver":null},"results":[],"properties":{"boolean_key":false,"string_key":"string_value"}}`
15
16 given.properties_added_to_a_runscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/test`/runTest#properties_added_to_a_run().()
17 when.the_run_is_jsonscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/test`/runTest#the_run_is_json().()
18 then.string_is_as_expectedscip-go gomod github.com/owenrumney/go-sarif . `github.com/owenrumney/go-sarif/test`/runTest#string_is_as_expected().(expected)
19 }