package main import ( "testing" "github.com/kataras/iris/v12/httptest" ) func TestNewConditionalHandler(t *testing.T) { app := newApp() e := httptest.New(t, app) e.GET("/api/v1/users").Expect().Status(httptest.StatusOK). Body().IsEqual("requested: /api/v1/users") e.GET("/api/v1/users").WithQuery("admin", "true").Expect().Status(httptest.StatusOK). Body().IsEqual("