1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-19 02:47:04 +00:00

ok the new mvc system works great, all tests done and almost x3 smaller LOC used plus new three awesome features:) - next commit will be commenting out and replace the mvc package with the new mvc2

Former-commit-id: 552095d29256a1116849cc6054c82001e790e705
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-12-10 07:00:51 +02:00
parent e02da3d442
commit ed79f0c3cd
31 changed files with 1344 additions and 1572 deletions

View File

@@ -4,6 +4,7 @@ package mvc2_test
import (
"fmt"
"reflect"
"testing"
"github.com/kataras/iris"
@@ -69,19 +70,10 @@ var (
)
func TestMakeHandler(t *testing.T) {
// binders := []*InputBinder{
// // #1
// MustMakeFuncInputBinder(testBinderFuncUserStruct),
// // #2
// MustMakeServiceInputBinder(testBinderService),
// // #3
// MustMakeFuncInputBinder(testBinderFuncParam),
// }
var (
h1 = MustMakeHandler(testConsumeUserHandler, testBinderFuncUserStruct)
h2 = MustMakeHandler(testConsumeServiceHandler, testBinderService)
h3 = MustMakeHandler(testConsumeParamHandler, testBinderFuncParam)
h1 = MustMakeHandler(testConsumeUserHandler, reflect.ValueOf(testBinderFuncUserStruct))
h2 = MustMakeHandler(testConsumeServiceHandler, reflect.ValueOf(testBinderService))
h3 = MustMakeHandler(testConsumeParamHandler, reflect.ValueOf(testBinderFuncParam))
)
testAppWithMvcHandlers(t, h1, h2, h3)