File tree 4 files changed +6
-5
lines changed
4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
package pure
2
2
============
3
- <img align =" right " src =" https://raw.githubusercontent.com/go-playground/pure/master/logo.png " >![ Project status] ( https://img.shields.io/badge/version-5.0.1 -green.svg )
3
+ <img align =" right " src =" https://raw.githubusercontent.com/go-playground/pure/master/logo.png " >![ Project status] ( https://img.shields.io/badge/version-5.0.2 -green.svg )
4
4
[ ![ Build Status] ( https://travis-ci.org/go-playground/pure.svg?branch=master )] ( https://travis-ci.org/go-playground/pure )
5
5
[ ![ Coverage Status] ( https://coveralls.io/repos/github/go-playground/pure/badge.svg?branch=master )] ( https://coveralls.io/github/go-playground/pure?branch=master )
6
6
[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/go-playground/pure )] ( https://goreportcard.com/report/github.com/go-playground/pure )
Original file line number Diff line number Diff line change 1
1
module github.com/go-playground/pure
2
2
3
3
require (
4
- github.com/go-playground/pkg v0.0.0-20190513231740-fa00488a1202
4
+ github.com/go-playground/pkg v0.0.0-20190513234448-af45a46936e9
5
5
gopkg.in/go-playground/assert.v1 v1.2.1
6
6
)
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ github.com/go-playground/pkg v0.0.0-20190511145249-fa4bcb050f1d h1:dLyXECWWFoQAp
4
4
github.com/go-playground/pkg v0.0.0-20190511145249-fa4bcb050f1d /go.mod h1:Wg1j+HqWLhhVIfYdaoOuBzdutBEVcqwvBxgFZRWbybk =
5
5
github.com/go-playground/pkg v0.0.0-20190513231740-fa00488a1202 h1:jcKZzz6ZD5IIQCG6TqMSvo/316htYd0fUz6zBXXUexE =
6
6
github.com/go-playground/pkg v0.0.0-20190513231740-fa00488a1202 /go.mod h1:Wg1j+HqWLhhVIfYdaoOuBzdutBEVcqwvBxgFZRWbybk =
7
+ github.com/go-playground/pkg v0.0.0-20190513234448-af45a46936e9 h1:SMJgXE/ouCVX21NWAS6yfOmwPn8HvT1Ty4UAGWGr60w =
8
+ github.com/go-playground/pkg v0.0.0-20190513234448-af45a46936e9 /go.mod h1:Wg1j+HqWLhhVIfYdaoOuBzdutBEVcqwvBxgFZRWbybk =
7
9
github.com/go-playground/pkg v1.0.1 h1:EsBCgjDTrlaLCflFChT2Q/M4unQQS6DnBDvHTA+fVAI =
8
10
gopkg.in/go-playground/assert.v1 v1.2.1 h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXadIrXTM =
9
11
gopkg.in/go-playground/assert.v1 v1.2.1 /go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE =
Original file line number Diff line number Diff line change @@ -501,8 +501,7 @@ func TestClientIP(t *testing.T) {
501
501
502
502
func TestJSON (t * testing.T ) {
503
503
504
- jsonData := `{"id":1,"name":"Patient Zero"}
505
- `
504
+ jsonData := `{"id":1,"name":"Patient Zero"}`
506
505
callbackFunc := "CallbackFunc"
507
506
508
507
p := New ()
@@ -566,7 +565,7 @@ func TestJSON(t *testing.T) {
566
565
567
566
Equal (t , w .Code , http .StatusOK )
568
567
Equal (t , w .Header ().Get (httpext .ContentType ), httpext .ApplicationJSON )
569
- Equal (t , w .Body .String (), callbackFunc + "(" + jsonData [: len ( jsonData ) - 1 ] + ");" )
568
+ Equal (t , w .Body .String (), callbackFunc + "(" + jsonData + ");" )
570
569
571
570
r , _ = http .NewRequest (http .MethodGet , "/badjsonp" , nil )
572
571
w = httptest .NewRecorder ()
You can’t perform that action at this time.
0 commit comments