Home / Function/ Test_KeyAuth_ConfigDefault_NoConfig() — fiber Function Reference

Test_KeyAuth_ConfigDefault_NoConfig() — fiber Function Reference

Architecture documentation for the Test_KeyAuth_ConfigDefault_NoConfig() function in config_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  d5dba6f9_69d0_250e_fd4b_498df7529e0a["Test_KeyAuth_ConfigDefault_NoConfig()"]
  8aae4338_4e3e_efb4_a059_7f764e2fe50b["config_test.go"]
  d5dba6f9_69d0_250e_fd4b_498df7529e0a -->|defined in| 8aae4338_4e3e_efb4_a059_7f764e2fe50b
  style d5dba6f9_69d0_250e_fd4b_498df7529e0a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/keyauth/config_test.go lines 14–21

func Test_KeyAuth_ConfigDefault_NoConfig(t *testing.T) {
	t.Parallel()
	// The New function will call configDefault with no arguments
	// which will panic because ConfigDefault.Validator is nil.
	assert.PanicsWithValue(t, "fiber: keyauth middleware requires a validator function", func() {
		New()
	}, "Calling New() without a validator should panic")
}

Domain

Subdomains

Frequently Asked Questions

What does Test_KeyAuth_ConfigDefault_NoConfig() do?
Test_KeyAuth_ConfigDefault_NoConfig() is a function in the fiber codebase, defined in middleware/keyauth/config_test.go.
Where is Test_KeyAuth_ConfigDefault_NoConfig() defined?
Test_KeyAuth_ConfigDefault_NoConfig() is defined in middleware/keyauth/config_test.go at line 14.

Analyze Your Own Codebase

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

Try Supermodel Free