Home / Function/ Test_Ctx_SendFile_404() — fiber Function Reference

Test_Ctx_SendFile_404() — fiber Function Reference

Architecture documentation for the Test_Ctx_SendFile_404() function in ctx_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  2c1806f6_126f_4dd5_c70e_429c9404c7cb["Test_Ctx_SendFile_404()"]
  7b3d4933_5ae3_f84d_ff6d_0cb34e268026["ctx_test.go"]
  2c1806f6_126f_4dd5_c70e_429c9404c7cb -->|defined in| 7b3d4933_5ae3_f84d_ff6d_0cb34e268026
  style 2c1806f6_126f_4dd5_c70e_429c9404c7cb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

ctx_test.go lines 5456–5470

func Test_Ctx_SendFile_404(t *testing.T) {
	t.Parallel()
	app := New()
	app.Get("/", func(c Ctx) error {
		return c.SendFile("ctx12.go")
	})

	resp, err := app.Test(httptest.NewRequest(MethodGet, "/", http.NoBody))
	require.NoError(t, err)
	require.Equal(t, StatusNotFound, resp.StatusCode)

	body, err := io.ReadAll(resp.Body)
	require.NoError(t, err)
	require.Equal(t, "sendfile: file ctx12.go not found", string(body))
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_Ctx_SendFile_404() do?
Test_Ctx_SendFile_404() is a function in the fiber codebase, defined in ctx_test.go.
Where is Test_Ctx_SendFile_404() defined?
Test_Ctx_SendFile_404() is defined in ctx_test.go at line 5456.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free