(t *testing.T)
| 3083 | } |
| 3084 | |
| 3085 | func Test_App_SetTLSHandler(t *testing.T) { |
| 3086 | t.Parallel() |
| 3087 | tlsHandler := &TLSHandler{clientHelloInfo: &tls.ClientHelloInfo{ |
| 3088 | ServerName: "example.golang", |
| 3089 | }} |
| 3090 | |
| 3091 | app := New() |
| 3092 | app.SetTLSHandler(tlsHandler) |
| 3093 | |
| 3094 | c := app.AcquireCtx(&fasthttp.RequestCtx{}) |
| 3095 | defer app.ReleaseCtx(c) |
| 3096 | |
| 3097 | require.Equal(t, "example.golang", c.ClientHelloInfo().ServerName) |
| 3098 | } |
| 3099 | |
| 3100 | func Test_App_AddCustomRequestMethod(t *testing.T) { |
| 3101 | t.Parallel() |
nothing calls this directly
no test coverage detected