Home / Function/ TestState_GetInt32() — fiber Function Reference

TestState_GetInt32() — fiber Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

state_test.go lines 182–199

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

	st.Set("int32", int32(3000))
	i, ok := st.GetInt32("int32")
	require.True(t, ok)
	require.Equal(t, int32(3000), i)

	st.Set("wrong", "not int32")
	i, ok = st.GetInt32("wrong")
	require.False(t, ok)
	require.Equal(t, int32(0), i)

	i, ok = st.GetInt32("missing")
	require.False(t, ok)
	require.Equal(t, int32(0), i)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free