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

Function updateTestStepWithUsage

coderd/x/chatd/chatdebug/summary_test.go:484–492  ·  view source on GitHub ↗

updateTestStepWithUsage completes a step and sets token usage fields.

(
	t *testing.T,
	fixture testFixture,
	stepID uuid.UUID,
	input, output, cacheCreation, cacheRead int64,
)

Source from the content-addressed store, hash-verified

482
483// updateTestStepWithUsage completes a step and sets token usage fields.
484func updateTestStepWithUsage(
485 t *testing.T,
486 fixture testFixture,
487 stepID uuid.UUID,
488 input, output, cacheCreation, cacheRead int64,
489) {
490 t.Helper()
491 updateTestStepWithFullUsage(t, fixture, stepID, input, output, 0, cacheCreation, cacheRead)
492}
493
494// updateTestStepWithFullUsage completes a step with all token usage
495// fields, including reasoning tokens.

Callers 1

Calls 2

HelperMethod · 0.65

Tested by

no test coverage detected