(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func TestStructErrorHandler(t *testing.T) { |
| 67 | b := New() |
| 68 | s := b.Struct(&testStructErrorHandler{}, 0) |
| 69 | |
| 70 | app := iris.New() |
| 71 | app.Get("/{errText:string}", s.MethodHandler("Handle", 0)) |
| 72 | |
| 73 | expectedErrText := "an error" |
| 74 | e := httptest.New(t, app) |
| 75 | e.GET("/" + expectedErrText).Expect().Status(httptest.StatusConflict).Body().IsEqual(expectedErrText) |
| 76 | } |
| 77 | |
| 78 | type ( |
| 79 | testServiceInterface1 interface { |
nothing calls this directly
no test coverage detected
searching dependent graphs…