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

Function TestQWriterSZ

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

Source from the content-addressed store, hash-verified

81}
82
83func TestQWriterSZ(t *testing.T) {
84 testQWriter(t, func(wn, we *QWriter) string {
85 s := "\u0000" + `foo<>&'" bar
86 </script>=;\/+%йцу`
87 expectedS := "\x00foo<>&'\" bar\n\t</script>=;\\/+%йцу\x00foo&lt;&gt;&amp;&#39;&quot; bar\n\t&lt;/script&gt;=;\\/+%йцу"
88 wn.SZ([]byte(s))
89 we.SZ([]byte(s))
90 return expectedS
91 })
92}
93
94func TestQWriterQ(t *testing.T) {
95 testQWriter(t, func(wn, we *QWriter) string {

Callers

nothing calls this directly

Calls 2

testQWriterFunction · 0.85
SZMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…