MCPcopy
hub / github.com/valyala/quicktemplate / TestQWriterQ

Function TestQWriterQ

writer_test.go:94–103  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

92}
93
94func TestQWriterQ(t *testing.T) {
95 testQWriter(t, func(wn, we *QWriter) string {
96 s := "\u0000" + `foo<>&'" bar
97 </script>=;\/+%йцу`
98 expectedS := "\"\\u0000foo\\u003c>&\\u0027\\\" bar\\n\\t\\u003c/script>=;\\\\/+%йцу\"&quot;\\u0000foo\\u003c&gt;&amp;\\u0027\\&quot; bar\\n\\t\\u003c/script&gt;=;\\\\/+%йцу&quot;"
99 wn.Q(s)
100 we.Q(s)
101 return expectedS
102 })
103}
104
105func TestQWriterQZ(t *testing.T) {
106 testQWriter(t, func(wn, we *QWriter) string {

Callers

nothing calls this directly

Calls 2

testQWriterFunction · 0.85
QMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…