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

Function TestRuntimeStore_SessionExist

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

Source from the content-addressed store, hash-verified

95}
96
97func TestRuntimeStore_SessionExist(t *testing.T) {
98 // Use a separate store for this test
99 testStore := NewRuntimeStore(NewDefaultRuntimeConfig())
100 testValue := make(map[interface{}]interface{})
101 testValue["foo"] = "bar"
102
103 testStore.SessionUpdate(NewSessionState(testStore, "session_read", testValue))
104
105 fmt.Println("is session exist: ", testStore.SessionExist("session_read"))
106}
107
108func TestRuntimeStore_SessionRemove(t *testing.T) {
109 // Use a separate store for this test

Callers

nothing calls this directly

Calls 5

SessionUpdateMethod · 0.95
SessionExistMethod · 0.95
NewRuntimeStoreFunction · 0.85
NewDefaultRuntimeConfigFunction · 0.85
NewSessionStateFunction · 0.85

Tested by

no test coverage detected