MCPcopy Index your code
hub / github.com/coder/coder / getChatByIDAsSystem

Function getChatByIDAsSystem

coderd/coderdtest/chat.go:125–133  ·  view source on GitHub ↗
(
	ctx context.Context,
	db database.Store,
	chatID uuid.UUID,
)

Source from the content-addressed store, hash-verified

123}
124
125func getChatByIDAsSystem(
126 ctx context.Context,
127 db database.Store,
128 chatID uuid.UUID,
129) (database.Chat, error) {
130 // Test helper needs system scope to observe chatd-owned status changes.
131 //nolint:gocritic
132 return db.GetChatByID(dbauthz.AsSystemRestricted(ctx), chatID)
133}

Callers 2

WaitForChatSettledFunction · 0.85
waitForChatTerminalStateFunction · 0.85

Calls 2

AsSystemRestrictedFunction · 0.92
GetChatByIDMethod · 0.65

Tested by

no test coverage detected