iptables-helper/pkg/utils/iptables/flag_test.go

13 lines
210 B
Go
Raw Normal View History

2023-11-02 14:01:46 +08:00
package iptables
import (
"iptables-helper/pkg/utils/command"
"testing"
)
func TestFlag(t *testing.T) {
cmder := command.Commander{}
result := cmder.ExecuteWithResult("sudo iptables -S")
2023-11-02 15:02:55 +08:00
Parse(result)
2023-11-02 14:01:46 +08:00
}