(t *testing.T)
| 92 | } |
| 93 | |
| 94 | func TestQWriterQ(t *testing.T) { |
| 95 | testQWriter(t, func(wn, we *QWriter) string { |
| 96 | s := "\u0000" + `foo<>&'" bar |
| 97 | </script>=;\/+%йцу` |
| 98 | expectedS := "\"\\u0000foo\\u003c>&\\u0027\\\" bar\\n\\t\\u003c/script>=;\\\\/+%йцу\""\\u0000foo\\u003c>&\\u0027\\" bar\\n\\t\\u003c/script>=;\\\\/+%йцу"" |
| 99 | wn.Q(s) |
| 100 | we.Q(s) |
| 101 | return expectedS |
| 102 | }) |
| 103 | } |
| 104 | |
| 105 | func TestQWriterQZ(t *testing.T) { |
| 106 | testQWriter(t, func(wn, we *QWriter) string { |
nothing calls this directly
no test coverage detected
searching dependent graphs…