MCPcopy
hub / github.com/lonng/nano / TestSession_Bind

Function TestSession_Bind

session/session_test.go:12–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10}
11
12func TestSession_Bind(t *testing.T) {
13 s := New(nil)
14 uids := []int64{100, 1000, 10000000}
15 for i, uid := range uids {
16 s.Bind(uid)
17 if s.UID() != uids[i] {
18 t.Fail()
19 }
20 }
21}
22
23func TestSession_HasKey(t *testing.T) {
24 s := New(nil)

Callers

nothing calls this directly

Calls 3

UIDMethod · 0.80
NewFunction · 0.70
BindMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…