Home / Function/ Test_HealthCheck_Next() — fiber Function Reference

Test_HealthCheck_Next() — fiber Function Reference

Architecture documentation for the Test_HealthCheck_Next() function in healthcheck_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  3d1c4db5_7723_fa31_8105_c78b160cb7ca["Test_HealthCheck_Next()"]
  06fd3a09_de22_eff7_9240_dbc4380b44fd["healthcheck_test.go"]
  3d1c4db5_7723_fa31_8105_c78b160cb7ca -->|defined in| 06fd3a09_de22_eff7_9240_dbc4380b44fd
  7c7febee_2f94_5956_c222_a338763a6a5f["shouldGiveNotFound()"]
  3d1c4db5_7723_fa31_8105_c78b160cb7ca -->|calls| 7c7febee_2f94_5956_c222_a338763a6a5f
  style 3d1c4db5_7723_fa31_8105_c78b160cb7ca fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/healthcheck/healthcheck_test.go lines 163–183

func Test_HealthCheck_Next(t *testing.T) {
	t.Parallel()

	app := fiber.New()

	checker := New(Config{
		Next: func(_ fiber.Ctx) bool {
			return true
		},
	})

	app.Get(LivenessEndpoint, checker)
	app.Get(ReadinessEndpoint, checker)
	app.Get(StartupEndpoint, checker)

	// This should give not found since there are no other handlers to execute
	// so it's like the route isn't defined at all
	shouldGiveNotFound(t, app, "/readyz")
	shouldGiveNotFound(t, app, "/livez")
	shouldGiveNotFound(t, app, "/startupz")
}

Domain

Subdomains

Frequently Asked Questions

What does Test_HealthCheck_Next() do?
Test_HealthCheck_Next() is a function in the fiber codebase, defined in middleware/healthcheck/healthcheck_test.go.
Where is Test_HealthCheck_Next() defined?
Test_HealthCheck_Next() is defined in middleware/healthcheck/healthcheck_test.go at line 163.
What does Test_HealthCheck_Next() call?
Test_HealthCheck_Next() calls 1 function(s): shouldGiveNotFound.

Analyze Your Own Codebase

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

Try Supermodel Free