(t *testing.T)
| 5830 | } |
| 5831 | |
| 5832 | func Test_Ctx_SaveFileToStorage_NilFileHeader(t *testing.T) { |
| 5833 | t.Parallel() |
| 5834 | |
| 5835 | app := New() |
| 5836 | storage := memory.New() |
| 5837 | |
| 5838 | ctx := app.AcquireCtx(&fasthttp.RequestCtx{}) |
| 5839 | defer app.ReleaseCtx(ctx) |
| 5840 | |
| 5841 | err := ctx.SaveFileToStorage(nil, "test", storage) |
| 5842 | |
| 5843 | require.Error(t, err) |
| 5844 | require.ErrorIs(t, err, ErrFileHeaderNil) |
| 5845 | } |
| 5846 | |
| 5847 | func Test_Ctx_SaveFile_NilFileHeader(t *testing.T) { |
| 5848 | t.Parallel() |
nothing calls this directly
no test coverage detected