forked from mirror/go-json
Fix escaped vm
This commit is contained in:
parent
1342fd2042
commit
1657b0e50e
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
3317
encode_vm_escaped.go
3317
encode_vm_escaped.go
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue