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

Function TestQWriterUZ

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

Source from the content-addressed store, hash-verified

147}
148
149func TestQWriterUZ(t *testing.T) {
150 testQWriter(t, func(wn, we *QWriter) string {
151 s := "\u0000" + `foo<>&'" bar
152 </script>=;\/+%йцу`
153 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"
154 wn.UZ([]byte(s))
155 we.UZ([]byte(s))
156 return expectedS
157 })
158}
159
160func TestQWriterV(t *testing.T) {
161 testQWriter(t, func(wn, we *QWriter) string {

Callers

nothing calls this directly

Calls 2

testQWriterFunction · 0.85
UZMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…