Home / Function/ Test_Logger_ErrorOutput_WithoutColor() — fiber Function Reference

Test_Logger_ErrorOutput_WithoutColor() — fiber Function Reference

Architecture documentation for the Test_Logger_ErrorOutput_WithoutColor() function in logger_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  4e28bd4d_2612_2f5f_922d_813f7acc9a68["Test_Logger_ErrorOutput_WithoutColor()"]
  97b45bc9_01a3_2a9a_4c94_9de1344ca94c["logger_test.go"]
  4e28bd4d_2612_2f5f_922d_813f7acc9a68 -->|defined in| 97b45bc9_01a3_2a9a_4c94_9de1344ca94c
  style 4e28bd4d_2612_2f5f_922d_813f7acc9a68 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/logger/logger_test.go lines 418–432

func Test_Logger_ErrorOutput_WithoutColor(t *testing.T) {
	t.Parallel()
	o := new(fakeErrorOutput)
	app := fiber.New()

	app.Use(New(Config{
		Stream:        o,
		DisableColors: true,
	}))

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

Domain

Subdomains

Frequently Asked Questions

What does Test_Logger_ErrorOutput_WithoutColor() do?
Test_Logger_ErrorOutput_WithoutColor() is a function in the fiber codebase, defined in middleware/logger/logger_test.go.
Where is Test_Logger_ErrorOutput_WithoutColor() defined?
Test_Logger_ErrorOutput_WithoutColor() is defined in middleware/logger/logger_test.go at line 418.

Analyze Your Own Codebase

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

Try Supermodel Free