Fix escaped vm

This commit is contained in:
Masaaki Goshima 2021-03-06 19:06:11 +09:00
parent 1342fd2042
commit 1657b0e50e
7 changed files with 1823 additions and 2010 deletions

View File

@ -1839,7 +1839,7 @@ func TestCoverArray(t *testing.T) {
}
for _, test := range tests {
for _, indent := range []bool{false} {
for _, htmlEscape := range []bool{false} {
for _, htmlEscape := range []bool{true, false} {
var buf bytes.Buffer
enc := json.NewEncoder(&buf)
enc.SetEscapeHTML(htmlEscape)

View File

@ -1766,7 +1766,7 @@ func TestCoverInt(t *testing.T) {
}
for _, test := range tests {
for _, indent := range []bool{false} {
for _, htmlEscape := range []bool{false} {
for _, htmlEscape := range []bool{true, false} {
var buf bytes.Buffer
enc := json.NewEncoder(&buf)
enc.SetEscapeHTML(htmlEscape)

View File

@ -1839,7 +1839,7 @@ func TestCoverMap(t *testing.T) {
}
for _, test := range tests {
for _, indent := range []bool{false} {
for _, htmlEscape := range []bool{false} {
for _, htmlEscape := range []bool{true, false} {
var buf bytes.Buffer
enc := json.NewEncoder(&buf)
enc.SetEscapeHTML(htmlEscape)

View File

@ -3526,7 +3526,7 @@ func TestCoverMarshalJSON(t *testing.T) {
}
for _, test := range tests {
for _, indent := range []bool{false} {
for _, htmlEscape := range []bool{false} {
for _, htmlEscape := range []bool{true, false} {
var buf bytes.Buffer
enc := json.NewEncoder(&buf)
enc.SetEscapeHTML(htmlEscape)

View File

@ -3526,7 +3526,7 @@ func TestCoverMarshalText(t *testing.T) {
}
for _, test := range tests {
for _, indent := range []bool{false} {
for _, htmlEscape := range []bool{false} {
for _, htmlEscape := range []bool{true, false} {
var buf bytes.Buffer
enc := json.NewEncoder(&buf)
enc.SetEscapeHTML(htmlEscape)

View File

@ -1839,7 +1839,7 @@ func TestCoverSlice(t *testing.T) {
}
for _, test := range tests {
for _, indent := range []bool{false} {
for _, htmlEscape := range []bool{false} {
for _, htmlEscape := range []bool{true, false} {
var buf bytes.Buffer
enc := json.NewEncoder(&buf)
enc.SetEscapeHTML(htmlEscape)

File diff suppressed because it is too large Load Diff