(t *testing.T)
| 339 | } |
| 340 | |
| 341 | func TestIsEmptyDiff(t *testing.T) { |
| 342 | emptyDiff := &FirewallDiff{} |
| 343 | assert.True(t, isEmptyFirewallDiff(emptyDiff), "Empty diff should be detected") |
| 344 | |
| 345 | nonEmptyDiff := &FirewallDiff{ |
| 346 | NewDomains: []DomainDiffEntry{{Domain: "test.com"}}, |
| 347 | } |
| 348 | assert.False(t, isEmptyFirewallDiff(nonEmptyDiff), "Non-empty diff should not be detected as empty") |
| 349 | } |
| 350 | |
| 351 | // findDiffEntry is a test helper to find a domain in a list of diff entries |
| 352 | func findDiffEntry(entries []DomainDiffEntry, domain string) *DomainDiffEntry { |
nothing calls this directly
no test coverage detected