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

Function InsertSyntheticToolResultsTxForTest

coderd/x/chatd/export_test.go:55–62  ·  view source on GitHub ↗

InsertSyntheticToolResultsTxForTest exposes the unexported helper so tests can verify the dedup path against pre-existing tool results.

(
	ctx context.Context,
	store database.Store,
	chat database.Chat,
	reason string,
)

Source from the content-addressed store, hash-verified

53// so tests can verify the dedup path against pre-existing tool
54// results.
55func InsertSyntheticToolResultsTxForTest(
56 ctx context.Context,
57 store database.Store,
58 chat database.Chat,
59 reason string,
60) ([]database.ChatMessage, error) {
61 return insertSyntheticToolResultsTx(ctx, store, chat, reason)
62}

Calls 1

Tested by

no test coverage detected