MCPcopy
hub / github.com/bettercap/bettercap / MockFirewall

Struct MockFirewall

modules/arp_spoof/arp_spoof_test.go:19–22  ·  view source on GitHub ↗

MockFirewall implements a mock firewall for testing

Source from the content-addressed store, hash-verified

17
18// MockFirewall implements a mock firewall for testing
19type MockFirewall struct {
20 forwardingEnabled bool
21 redirections []firewall.Redirection
22}
23
24func NewMockFirewall() *MockFirewall {
25 return &MockFirewall{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected