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

Function TestComputeBashCommandsDiff_BashCapitalized

pkg/cli/audit_diff_test.go:1323–1336  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1321}
1322
1323func TestComputeBashCommandsDiff_BashCapitalized(t *testing.T) {
1324 // Claude uses "Bash" (capitalized)
1325 run1Tools := map[string]ToolCallInfo{
1326 "Bash": {Name: "Bash", CallCount: 7},
1327 }
1328 run2Tools := map[string]ToolCallInfo{
1329 "Bash": {Name: "Bash", CallCount: 4},
1330 }
1331
1332 result := computeBashCommandsDiff(run1Tools, run2Tools)
1333 require.NotNil(t, result, "Should detect capitalized Bash tool")
1334 assert.Equal(t, 7, result.Run1TotalCalls, "Run1 total should be 7")
1335 assert.Equal(t, 4, result.Run2TotalCalls, "Run2 total should be 4")
1336}
1337
1338// --- Tokens per turn tests ---
1339

Callers

nothing calls this directly

Calls 1

computeBashCommandsDiffFunction · 0.85

Tested by

no test coverage detected