MCPcopy Create free account
hub / github.com/diillson/chatcli / userCtx

Function userCtx

server/handler_hub_test.go:32–34  ·  view source on GitHub ↗
(subject string, role UserRole)

Source from the content-addressed store, hash-verified

30}
31
32func userCtx(subject string, role UserRole) context.Context {
33 return ContextWithUser(context.Background(), &UserInfo{Subject: subject, Role: role})
34}
35
36func TestHubResolveAppendReadFlow(t *testing.T) {
37 h := newHubHandler(t)

Calls 1

ContextWithUserFunction · 0.85

Tested by

no test coverage detected