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

Function TestComputeBashCommandsDiff_NoBash

pkg/cli/audit_diff_test.go:1261–1267  ·  view source on GitHub ↗

--- Bash commands diff tests ---

(t *testing.T)

Source from the content-addressed store, hash-verified

1259// --- Bash commands diff tests ---
1260
1261func TestComputeBashCommandsDiff_NoBash(t *testing.T) {
1262 // computeBashCommandsDiff receives pre-filtered maps; passing no bash tools → nil
1263 run1Tools := map[string]ToolCallInfo{}
1264 run2Tools := map[string]ToolCallInfo{}
1265 result := computeBashCommandsDiff(run1Tools, run2Tools)
1266 assert.Nil(t, result, "Should return nil when no bash tools present")
1267}
1268
1269func TestComputeBashCommandsDiff_GenericBash(t *testing.T) {
1270 // Only bash tools are passed to computeBashCommandsDiff

Callers

nothing calls this directly

Calls 1

computeBashCommandsDiffFunction · 0.85

Tested by

no test coverage detected