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

Function TestComputeFirewallDiff_BothNil

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

Source from the content-addressed store, hash-verified

176}
177
178func TestComputeFirewallDiff_BothNil(t *testing.T) {
179 diff := computeFirewallDiff(100, 200, nil, nil)
180
181 assert.Empty(t, diff.NewDomains, "Should have no new domains")
182 assert.Empty(t, diff.RemovedDomains, "Should have no removed domains")
183 assert.Empty(t, diff.StatusChanges, "Should have no status changes")
184 assert.Empty(t, diff.VolumeChanges, "Should have no volume changes")
185 assert.False(t, diff.Summary.HasAnomalies, "Should have no anomalies")
186}
187
188func TestComputeFirewallDiff_Run1Nil(t *testing.T) {
189 run2 := &FirewallAnalysis{

Callers

nothing calls this directly

Calls 1

computeFirewallDiffFunction · 0.85

Tested by

no test coverage detected