File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11package pure
22============
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 )
44[ ![ Build Status] ( https://travis-ci.org/go-playground/pure.svg?branch=master )] ( https://travis-ci.org/go-playground/pure )
55[ ![ Coverage Status] ( https://coveralls.io/repos/github/go-playground/pure/badge.svg?branch=master )] ( https://coveralls.io/github/go-playground/pure?branch=master )
66[ ![ 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 11module github.com/go-playground/pure
22
33require (
4- github.com/go-playground/pkg v0.0.0-20190513231740-fa00488a1202
4+ github.com/go-playground/pkg v0.0.0-20190513234448-af45a46936e9
55 gopkg.in/go-playground/assert.v1 v1.2.1
66)
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
44github.com/go-playground/pkg v0.0.0-20190511145249-fa4bcb050f1d /go.mod h1:Wg1j+HqWLhhVIfYdaoOuBzdutBEVcqwvBxgFZRWbybk =
55github.com/go-playground/pkg v0.0.0-20190513231740-fa00488a1202 h1:jcKZzz6ZD5IIQCG6TqMSvo/316htYd0fUz6zBXXUexE =
66github.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 =
79github.com/go-playground/pkg v1.0.1 h1:EsBCgjDTrlaLCflFChT2Q/M4unQQS6DnBDvHTA+fVAI =
810gopkg.in/go-playground/assert.v1 v1.2.1 h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXadIrXTM =
911gopkg.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) {
501501
502502func TestJSON (t * testing.T ) {
503503
504- jsonData := `{"id":1,"name":"Patient Zero"}
505- `
504+ jsonData := `{"id":1,"name":"Patient Zero"}`
506505 callbackFunc := "CallbackFunc"
507506
508507 p := New ()
@@ -566,7 +565,7 @@ func TestJSON(t *testing.T) {
566565
567566 Equal (t , w .Code , http .StatusOK )
568567 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 + ");" )
570569
571570 r , _ = http .NewRequest (http .MethodGet , "/badjsonp" , nil )
572571 w = httptest .NewRecorder ()
You can’t perform that action at this time.
0 commit comments