MCPcopy Create free account
hub / github.com/github/gh-aw / TestBuildToolUsageSummaryPopulatesDisplay

Function TestBuildToolUsageSummaryPopulatesDisplay

pkg/cli/logs_report_test.go:110–123  ·  view source on GitHub ↗

TestBuildToolUsageSummaryPopulatesDisplay tests that buildToolUsageSummary works correctly

(t *testing.T)

Source from the content-addressed store, hash-verified

108
109// TestBuildToolUsageSummaryPopulatesDisplay tests that buildToolUsageSummary works correctly
110func TestBuildToolUsageSummaryPopulatesDisplay(t *testing.T) {
111 processedRuns := []ProcessedRun{
112 {
113 Run: WorkflowRun{
114 LogsPath: "/tmp/test-logs",
115 },
116 },
117 }
118
119 result := buildToolUsageSummary(processedRuns)
120
121 // The result should be a valid slice (nil or empty is fine when no tools)
122 _ = result
123}
124
125// TestBuildMissingToolsSummaryPopulatesDisplay tests that display fields are populated
126func TestBuildMissingToolsSummaryPopulatesDisplay(t *testing.T) {

Callers

nothing calls this directly

Calls 1

buildToolUsageSummaryFunction · 0.85

Tested by

no test coverage detected