(t *testing.T)
| 143 | } |
| 144 | |
| 145 | func TestGenerateDropScriptNoFilter(t *testing.T) { |
| 146 | config := TraceConfig{ |
| 147 | EnableDrops: true, |
| 148 | } |
| 149 | |
| 150 | gen := NewScriptGenerator(config) |
| 151 | filter := gen.buildSkbIPFilterCondition() |
| 152 | |
| 153 | // No filter should be empty |
| 154 | if filter != "" { |
| 155 | t.Errorf("expected empty filter, got: %s", filter) |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | func TestGenerateDropScriptWithIPFilter(t *testing.T) { |
| 160 | ip := net.ParseIP("10.0.0.1") |
nothing calls this directly
no test coverage detected