(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestCompressionAfterRecorder(t *testing.T) { |
| 23 | var expectedReply = payload{Username: "Makis"} |
| 24 | |
| 25 | app := iris.New() |
| 26 | app.Use(func(ctx iris.Context) { |
| 27 | ctx.Record() |
| 28 | ctx.Next() |
| 29 | }) |
| 30 | app.Use(iris.Compression) |
| 31 | |
| 32 | app.Get("/", func(ctx iris.Context) { |
| 33 | ctx.JSON(expectedReply) |
| 34 | }) |
| 35 | |
| 36 | e := httptest.New(t, app) |
| 37 | testBody(t, e.GET("/"), expectedReply) |
| 38 | } |
| 39 | |
| 40 | func TestCompressionBeforeRecorder(t *testing.T) { |
| 41 | var expectedReply = payload{Username: "Makis"} |
nothing calls this directly
no test coverage detected
searching dependent graphs…