MCPcopy Create free account
hub / github.com/devfeel/dotweb / TestRuntimeStore_SessionCount

Function TestRuntimeStore_SessionCount

session/store_runtime_test.go:146–157  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

144}
145
146func TestRuntimeStore_SessionCount(t *testing.T) {
147 // Use a separate store for this test
148 testStore := NewRuntimeStore(NewDefaultRuntimeConfig())
149 testValue := make(map[interface{}]interface{})
150 testValue["foo"] = "bar"
151
152 testStore.SessionUpdate(NewSessionState(testStore, "session_read", testValue))
153 testStore.SessionUpdate(NewSessionState(testStore, "session_read_1", testValue))
154 testStore.SessionUpdate(NewSessionState(testStore, "session_read_2", testValue))
155
156 fmt.Println(testStore.SessionCount())
157}
158
159func TestRuntimeStore_SessionAccess(t *testing.T) {
160 // Use a separate store for this test to avoid race conditions

Callers

nothing calls this directly

Calls 5

SessionUpdateMethod · 0.95
SessionCountMethod · 0.95
NewRuntimeStoreFunction · 0.85
NewDefaultRuntimeConfigFunction · 0.85
NewSessionStateFunction · 0.85

Tested by

no test coverage detected