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

Function newBufferedSubscribeTestServer

coderd/x/chatd/chatd_internal_test.go:2785–2794  ·  view source on GitHub ↗
(t *testing.T, db database.Store, chatID uuid.UUID)

Source from the content-addressed store, hash-verified

2783}
2784
2785func newBufferedSubscribeTestServer(t *testing.T, db database.Store, chatID uuid.UUID) *Server {
2786 t.Helper()
2787
2788 server := newSubscribeTestServer(t, db)
2789 state := server.getOrCreateStreamState(chatID)
2790 state.mu.Lock()
2791 state.buffering = true
2792 state.mu.Unlock()
2793 return server
2794}
2795
2796func requireStreamMessageEvent(t *testing.T, events <-chan codersdk.ChatStreamEvent) codersdk.ChatStreamEvent {
2797 t.Helper()

Calls 5

newSubscribeTestServerFunction · 0.85
HelperMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected