1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-17 01:43:02 +02:00

exposed default binder, tag for binding query params

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-12-10 08:38:27 -08:00
parent 20954afd66
commit 0e7a9c1d49
4 changed files with 16 additions and 14 deletions

View File

@ -105,10 +105,10 @@ func TestBinderUnsupportedMediaType(t *testing.T) {
testBinderError(t, strings.NewReader(invalidContent), MIMEApplicationJSON)
}
func TestBinderbindForm(t *testing.T) {
func TestBinderbindData(t *testing.T) {
ts := new(binderTestStruct)
b := new(binder)
b.bindData(ts, values)
b := new(DefaultBinder)
b.bindData(ts, values, "form")
assertBinderTestStruct(t, ts)
}