MCPcopy Index your code
hub / github.com/google/go-github / TestRun

Function TestRun

tools/structfield/structfield_test.go:14–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func TestRun(t *testing.T) {
15 t.Parallel()
16 testdata := analysistest.TestData()
17 plugin, _ := New(map[string]any{
18 "allowed-tag-names": []any{
19 "JSONFieldName.Query",
20 "URLFieldName.Query",
21 },
22 "allowed-tag-types": []any{
23 "JSONFieldType.Exception",
24 "URLFieldType.Exception",
25 },
26 })
27 analyzers, _ := plugin.BuildAnalyzers()
28 analysistest.Run(t, testdata, analyzers[0], "has-warnings", "no-warnings")
29}

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
BuildAnalyzersMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…