(t *testing.T)
| 136 | } |
| 137 | |
| 138 | func 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 | |
| 149 | func TestQWriterUZ(t *testing.T) { |
| 150 | testQWriter(t, func(wn, we *QWriter) string { |
nothing calls this directly
no test coverage detected
searching dependent graphs…