Home / Function/ Test_Listen_Print_Route() — fiber Function Reference

Test_Listen_Print_Route() — fiber Function Reference

Architecture documentation for the Test_Listen_Print_Route() function in listen_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  27615a06_d832_528b_799a_e7f27b9f62e1["Test_Listen_Print_Route()"]
  edd60c6a_f37d_c392_5301_d2d5a002990a["listen_test.go"]
  27615a06_d832_528b_799a_e7f27b9f62e1 -->|defined in| edd60c6a_f37d_c392_5301_d2d5a002990a
  e606935d_5140_5f32_e530_9b041f7f3116["captureOutput()"]
  27615a06_d832_528b_799a_e7f27b9f62e1 -->|calls| e606935d_5140_5f32_e530_9b041f7f3116
  style 27615a06_d832_528b_799a_e7f27b9f62e1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

listen_test.go lines 833–843

func Test_Listen_Print_Route(t *testing.T) {
	app := New()
	app.Get("/", emptyHandler).Name("routeName")
	printRoutesMessage := captureOutput(func() {
		app.printRoutesMessage()
	})
	require.Contains(t, printRoutesMessage, MethodGet)
	require.Contains(t, printRoutesMessage, "/")
	require.Contains(t, printRoutesMessage, "emptyHandler")
	require.Contains(t, printRoutesMessage, "routeName")
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_Listen_Print_Route() do?
Test_Listen_Print_Route() is a function in the fiber codebase, defined in listen_test.go.
Where is Test_Listen_Print_Route() defined?
Test_Listen_Print_Route() is defined in listen_test.go at line 833.
What does Test_Listen_Print_Route() call?
Test_Listen_Print_Route() calls 1 function(s): captureOutput.

Analyze Your Own Codebase

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

Try Supermodel Free