Home / Function/ TestState_Keys() — fiber Function Reference

TestState_Keys() — fiber Function Reference

Architecture documentation for the TestState_Keys() function in state_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  e4a75e71_756d_6fbc_a313_9322a8fffa96["TestState_Keys()"]
  040d1690_51eb_9416_23b2_7b1543e92d65["state_test.go"]
  e4a75e71_756d_6fbc_a313_9322a8fffa96 -->|defined in| 040d1690_51eb_9416_23b2_7b1543e92d65
  style e4a75e71_756d_6fbc_a313_9322a8fffa96 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

state_test.go lines 419–430

func TestState_Keys(t *testing.T) {
	t.Parallel()
	st := newState()

	keys := []string{"one", "two", "three"}
	for _, k := range keys {
		st.Set(k, k)
	}

	returnedKeys := st.Keys()
	require.ElementsMatch(t, keys, returnedKeys)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does TestState_Keys() do?
TestState_Keys() is a function in the fiber codebase, defined in state_test.go.
Where is TestState_Keys() defined?
TestState_Keys() is defined in state_test.go at line 419.

Analyze Your Own Codebase

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

Try Supermodel Free