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

Function TestQWriterU

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

Source from the content-addressed store, hash-verified

136}
137
138func TestQWriterU(t *testing.T) {
139 testQWriter(t, func(wn, we *QWriter) string {
140 s := "\u0000" + `foo<>&'" bar
141 </script>=;\/+%йцу`
142 expectedS := "%00foo%3C%3E%26%27%22+bar%0A%09%3C%2Fscript%3E%3D%3B%5C%2F%2B%25%D0%B9%D1%86%D1%83%00foo%3C%3E%26%27%22+bar%0A%09%3C%2Fscript%3E%3D%3B%5C%2F%2B%25%D0%B9%D1%86%D1%83"
143 wn.U(s)
144 we.U(s)
145 return expectedS
146 })
147}
148
149func TestQWriterUZ(t *testing.T) {
150 testQWriter(t, func(wn, we *QWriter) string {

Callers

nothing calls this directly

Calls 2

testQWriterFunction · 0.85
UMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…