@@ -210,17 +210,17 @@ func TestContextPath(t *testing.T) {
210210 assert .Equal (t , "/users/:uid/files/:fid" , c .Path ())
211211}
212212
213- func TestContextQuery (t * testing.T ) {
213+ func TestContextQueryParam (t * testing.T ) {
214214 q := make (url.Values )
215215 q .Set ("name" , "joe" )
216216 q .Set ("email" , "joe@labstack.com" )
217217 req := test .NewRequest (GET , "/?" + q .Encode (), nil )
218218 c := NewContext (req , nil , New ())
219- assert .Equal (t , "joe" , c .Query ("name" ))
220- assert .Equal (t , "joe@labstack.com" , c .Query ("email" ))
219+ assert .Equal (t , "joe" , c .QueryParam ("name" ))
220+ assert .Equal (t , "joe@labstack.com" , c .QueryParam ("email" ))
221221}
222222
223- func TestContextForm (t * testing.T ) {
223+ func TestContextFormValue (t * testing.T ) {
224224 f := make (url.Values )
225225 f .Set ("name" , "joe" )
226226 f .Set ("email" , "joe@labstack.com" )
@@ -229,8 +229,8 @@ func TestContextForm(t *testing.T) {
229229 req .Header ().Add (ContentType , ApplicationForm )
230230
231231 c := NewContext (req , nil , New ())
232- assert .Equal (t , "joe" , c .Form ("name" ))
233- assert .Equal (t , "joe@labstack.com" , c .Form ("email" ))
232+ assert .Equal (t , "joe" , c .FormValue ("name" ))
233+ assert .Equal (t , "joe@labstack.com" , c .FormValue ("email" ))
234234}
235235
236236func TestContextNetContext (t * testing.T ) {
0 commit comments