MCPcopy
hub / github.com/redis/go-redis / TestConnStateMachine_GetState

Function TestConnStateMachine_GetState

internal/pool/conn_state_test.go:11–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestConnStateMachine_GetState(t *testing.T) {
12 sm := NewConnStateMachine()
13
14 if state := sm.GetState(); state != StateCreated {
15 t.Errorf("expected initial state to be CREATED, got %s", state)
16 }
17}
18
19func TestConnStateMachine_Transition(t *testing.T) {
20 sm := NewConnStateMachine()

Callers

nothing calls this directly

Calls 2

GetStateMethod · 0.95
NewConnStateMachineFunction · 0.85

Tested by

no test coverage detected