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

Function RecoverStaleChatsForTest

coderd/x/chatd/export_test.go:48–50  ·  view source on GitHub ↗

RecoverStaleChatsForTest exposes the unexported stale-recovery loop so tests can assert the recovery state machine without waiting for the periodic ticker.

(ctx context.Context, server *Server)

Source from the content-addressed store, hash-verified

46// so tests can assert the recovery state machine without waiting for
47// the periodic ticker.
48func RecoverStaleChatsForTest(ctx context.Context, server *Server) {
49 server.recoverStaleChats(ctx)
50}
51
52// InsertSyntheticToolResultsTxForTest exposes the unexported helper
53// so tests can verify the dedup path against pre-existing tool

Calls 1

recoverStaleChatsMethod · 0.80

Tested by

no test coverage detected