MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Test_Template

Function Test_Template

internal/waf/template_test.go:24–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22const testUserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_0_0) AppleWebKit/500.00 (KHTML, like Gecko) Chrome/100.0.0.0"
23
24func 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
42func Test_Template2(t *testing.T) {
43 reader := bytes.NewReader([]byte(strings.Repeat("HELLO", 1024)))

Callers

nothing calls this directly

Calls 9

TemplateFunction · 0.92
testTemplate1010Function · 0.85
testTemplate2001Function · 0.85
testTemplate3001Function · 0.85
testTemplate4001Function · 0.85
testTemplate5001Function · 0.85
testTemplate6001Function · 0.85
testTemplate7010Function · 0.85
testTemplate20001Function · 0.85

Tested by

no test coverage detected