Home / Function/ shouldGiveOK() — fiber Function Reference

shouldGiveOK() — fiber Function Reference

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

Function go FiberCore Adapters calls 1 called by 4

Entity Profile

Dependency Diagram

graph TD
  b84cfa43_3829_3325_7bf1_bf0168edaf69["shouldGiveOK()"]
  06fd3a09_de22_eff7_9240_dbc4380b44fd["healthcheck_test.go"]
  b84cfa43_3829_3325_7bf1_bf0168edaf69 -->|defined in| 06fd3a09_de22_eff7_9240_dbc4380b44fd
  9bf73fa8_2f13_70b4_a237_3ff6f9375e43["Test_HealthCheck_Strict_Routing_Default()"]
  9bf73fa8_2f13_70b4_a237_3ff6f9375e43 -->|calls| b84cfa43_3829_3325_7bf1_bf0168edaf69
  73ae6fdf_3d7f_521c_a618_3a8488b96caf["Test_HealthCheck_Default()"]
  73ae6fdf_3d7f_521c_a618_3a8488b96caf -->|calls| b84cfa43_3829_3325_7bf1_bf0168edaf69
  eaed5afb_df1b_1c61_228f_5b9b90874a15["Test_HealthCheck_Custom()"]
  eaed5afb_df1b_1c61_228f_5b9b90874a15 -->|calls| b84cfa43_3829_3325_7bf1_bf0168edaf69
  bc1ee68b_070e_f596_6e19_7cc53eaef72e["Test_HealthCheck_Custom_Nested()"]
  bc1ee68b_070e_f596_6e19_7cc53eaef72e -->|calls| b84cfa43_3829_3325_7bf1_bf0168edaf69
  39ed6e88_2b54_5567_940e_8e84f06cd1ad["shouldGiveStatus()"]
  b84cfa43_3829_3325_7bf1_bf0168edaf69 -->|calls| 39ed6e88_2b54_5567_940e_8e84f06cd1ad
  style b84cfa43_3829_3325_7bf1_bf0168edaf69 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/healthcheck/healthcheck_test.go lines 21–24

func shouldGiveOK(t *testing.T, app *fiber.App, path string) {
	t.Helper()
	shouldGiveStatus(t, app, path, fiber.StatusOK)
}

Domain

Subdomains

Frequently Asked Questions

What does shouldGiveOK() do?
shouldGiveOK() is a function in the fiber codebase, defined in middleware/healthcheck/healthcheck_test.go.
Where is shouldGiveOK() defined?
shouldGiveOK() is defined in middleware/healthcheck/healthcheck_test.go at line 21.
What does shouldGiveOK() call?
shouldGiveOK() calls 1 function(s): shouldGiveStatus.
What calls shouldGiveOK()?
shouldGiveOK() is called by 4 function(s): Test_HealthCheck_Custom, Test_HealthCheck_Custom_Nested, Test_HealthCheck_Default, Test_HealthCheck_Strict_Routing_Default.

Analyze Your Own Codebase

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

Try Supermodel Free