MCPcopy Index your code
hub / github.com/anomalyco/opencode / createCommentSessionForTest

Function createCommentSessionForTest

packages/app/src/context/comments.tsx:168–171  ·  view source on GitHub ↗
(comments: Record<string, LineComment[]> = {})

Source from the content-addressed store, hash-verified

166}
167
168export function createCommentSessionForTest(comments: Record<string, LineComment[]> = {}) {
169 const [store, setStore] = createStore<CommentStore>({ comments })
170 return createCommentSessionState(store, setStore)
171}
172
173function createCommentSession(scope: ServerScope, dir: string, id: string | undefined) {
174 const legacy = `${dir}/comments${id ? "/" + id : ""}.v1`

Callers 1

comments.test.tsFile · 0.85

Calls 1

Tested by

no test coverage detected