MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / TestGenerateSessionID

Function TestGenerateSessionID

internal/manager/manager_test.go:76–87  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

74}
75
76func TestGenerateSessionID(t *testing.T) {
77 id1 := shared.GenerateSessionID()
78 id2 := shared.GenerateSessionID()
79
80 if id1 == id2 {
81 t.Error("Expected different session IDs")
82 }
83
84 if len(id1) == 0 {
85 t.Error("Expected non-empty session ID")
86 }
87}

Callers

nothing calls this directly

Calls 2

GenerateSessionIDFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected