(t *testing.T)
| 22 | const testUserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_0_0) AppleWebKit/500.00 (KHTML, like Gecko) Chrome/100.0.0.0" |
| 23 | |
| 24 | func Test_Template(t *testing.T) { |
| 25 | var a = assert.NewAssertion(t) |
| 26 | |
| 27 | wafInstance, err := waf.Template() |
| 28 | if err != nil { |
| 29 | t.Fatal(err) |
| 30 | } |
| 31 | |
| 32 | testTemplate1010(a, t, wafInstance) |
| 33 | testTemplate2001(a, t, wafInstance) |
| 34 | testTemplate3001(a, t, wafInstance) |
| 35 | testTemplate4001(a, t, wafInstance) |
| 36 | testTemplate5001(a, t, wafInstance) |
| 37 | testTemplate6001(a, t, wafInstance) |
| 38 | testTemplate7010(a, t, wafInstance) |
| 39 | testTemplate20001(a, t, wafInstance) |
| 40 | } |
| 41 | |
| 42 | func Test_Template2(t *testing.T) { |
| 43 | reader := bytes.NewReader([]byte(strings.Repeat("HELLO", 1024))) |
nothing calls this directly
no test coverage detected