(t *testing.T)
| 147 | } |
| 148 | |
| 149 | func 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 | |
| 160 | func TestQWriterV(t *testing.T) { |
| 161 | testQWriter(t, func(wn, we *QWriter) string { |
nothing calls this directly
no test coverage detected
searching dependent graphs…