(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func TestQWriterSZ(t *testing.T) { |
| 84 | testQWriter(t, func(wn, we *QWriter) string { |
| 85 | s := "\u0000" + `foo<>&'" bar |
| 86 | </script>=;\/+%йцу` |
| 87 | expectedS := "\x00foo<>&'\" bar\n\t</script>=;\\/+%йцу\x00foo<>&'" bar\n\t</script>=;\\/+%йцу" |
| 88 | wn.SZ([]byte(s)) |
| 89 | we.SZ([]byte(s)) |
| 90 | return expectedS |
| 91 | }) |
| 92 | } |
| 93 | |
| 94 | func TestQWriterQ(t *testing.T) { |
| 95 | testQWriter(t, func(wn, we *QWriter) string { |
nothing calls this directly
no test coverage detected
searching dependent graphs…