mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
fix all _examples to the newest mvc, add comments to those examples and add a package-level .Configure in order to make it easier for new users. Add a deprecated panic if app.Controller is used with a small tutorial and future resource link so they can re-write their mvc app's definitions
Former-commit-id: bf07696041be9e3d178ce3c42ccec2df4bfdb2af
This commit is contained in:
@@ -50,7 +50,9 @@ func TestPathParamBinder(t *testing.T) {
|
||||
t.Fatalf("expected the param 'username' to be '%s' but got '%s'", expectedUsername, got)
|
||||
}
|
||||
|
||||
// test the non executed if param not found.
|
||||
/* this is useless, we don't need to check if ctx.Stopped
|
||||
inside bindings, this is middleware's job.
|
||||
// test the non executed if param not found -> this is already done in Iris if real context, so ignore it.
|
||||
executed = false
|
||||
got = ""
|
||||
|
||||
@@ -63,4 +65,5 @@ func TestPathParamBinder(t *testing.T) {
|
||||
if executed {
|
||||
t.Fatalf("expected the handler to not be executed")
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user