(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…