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

Function TestQWriterJ

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

Source from the content-addressed store, hash-verified

114}
115
116func TestQWriterJ(t *testing.T) {
117 testQWriter(t, func(wn, we *QWriter) string {
118 s := "\u0000" + `foo<>&'" bar
119 </script>=;\/+%йцу`
120 expectedS := "\\u0000foo\\u003c>&\\u0027\\\" bar\\n\\t\\u003c/script>=;\\\\/+%йцу\\u0000foo\\u003c&gt;&amp;\\u0027\\&quot; bar\\n\\t\\u003c/script&gt;=;\\\\/+%йцу"
121 wn.J(s)
122 we.J(s)
123 return expectedS
124 })
125}
126
127func TestQWriterJZ(t *testing.T) {
128 testQWriter(t, func(wn, we *QWriter) string {

Callers

nothing calls this directly

Calls 2

testQWriterFunction · 0.85
JMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…