Home / Function/ Test_ETag_NoBody() — fiber Function Reference

Test_ETag_NoBody() — fiber Function Reference

Architecture documentation for the Test_ETag_NoBody() function in etag_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  ca2628c4_e50d_c59f_ab95_98a3e6f0aafe["Test_ETag_NoBody()"]
  dfd9dd18_1de2_7880_57b0_aa8836ab099f["etag_test.go"]
  ca2628c4_e50d_c59f_ab95_98a3e6f0aafe -->|defined in| dfd9dd18_1de2_7880_57b0_aa8836ab099f
  style ca2628c4_e50d_c59f_ab95_98a3e6f0aafe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/etag/etag_test.go lines 63–76

func Test_ETag_NoBody(t *testing.T) {
	t.Parallel()
	app := fiber.New()

	app.Use(New())

	app.Get("/", func(_ fiber.Ctx) error {
		return nil
	})

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

Domain

Subdomains

Frequently Asked Questions

What does Test_ETag_NoBody() do?
Test_ETag_NoBody() is a function in the fiber codebase, defined in middleware/etag/etag_test.go.
Where is Test_ETag_NoBody() defined?
Test_ETag_NoBody() is defined in middleware/etag/etag_test.go at line 63.

Analyze Your Own Codebase

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

Try Supermodel Free