(t *testing.T)
| 114 | } |
| 115 | |
| 116 | func TestQWriterJ(t *testing.T) { |
| 117 | testQWriter(t, func(wn, we *QWriter) string { |
| 118 | s := "\u0000" + `foo<>&'" bar |
| 119 | </script>=;\/+%йцу` |
| 120 | expectedS := "\\u0000foo\\u003c>&\\u0027\\\" bar\\n\\t\\u003c/script>=;\\\\/+%йцу\\u0000foo\\u003c>&\\u0027\\" bar\\n\\t\\u003c/script>=;\\\\/+%йцу" |
| 121 | wn.J(s) |
| 122 | we.J(s) |
| 123 | return expectedS |
| 124 | }) |
| 125 | } |
| 126 | |
| 127 | func TestQWriterJZ(t *testing.T) { |
| 128 | testQWriter(t, func(wn, we *QWriter) string { |
nothing calls this directly
no test coverage detected
searching dependent graphs…