test: comments unused code

上级 16386f44
...@@ -2,7 +2,6 @@ package cocatest ...@@ -2,7 +2,6 @@ package cocatest
import ( import (
"encoding/json" "encoding/json"
"io"
"reflect" "reflect"
) )
...@@ -18,16 +17,16 @@ func JSONBytesEqual(a, b []byte) (bool, error) { ...@@ -18,16 +17,16 @@ func JSONBytesEqual(a, b []byte) (bool, error) {
return reflect.DeepEqual(j2, j), nil return reflect.DeepEqual(j2, j), nil
} }
func JSONEqual(a, b io.Reader) (bool, error) { //func JSONEqual(a, b io.Reader) (bool, error) {
var j, j2 interface{} // var j, j2 interface{}
d := json.NewDecoder(a) // d := json.NewDecoder(a)
if err := d.Decode(&j); err != nil { // if err := d.Decode(&j); err != nil {
return false, err // return false, err
} // }
d = json.NewDecoder(b) // d = json.NewDecoder(b)
if err := d.Decode(&j2); err != nil { // if err := d.Decode(&j2); err != nil {
return false, err // return false, err
} // }
return reflect.DeepEqual(j2, j), nil // return reflect.DeepEqual(j2, j), nil
} //}
//
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册