MCPcopy
hub / github.com/microsoft/retina / TestGenerateDropScriptNoFilter

Function TestGenerateDropScriptNoFilter

shell/tracescript_test.go:145–157  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

143}
144
145func 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
159func TestGenerateDropScriptWithIPFilter(t *testing.T) {
160 ip := net.ParseIP("10.0.0.1")

Callers

nothing calls this directly

Calls 2

NewScriptGeneratorFunction · 0.85

Tested by

no test coverage detected