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

Struct MockFirewall

modules/http_proxy/http_proxy_test.go:23–26  ·  view source on GitHub ↗

MockFirewall implements a mock firewall for testing

Source from the content-addressed store, hash-verified

21
22// MockFirewall implements a mock firewall for testing
23type MockFirewall struct {
24 forwardingEnabled bool
25 redirections []firewall.Redirection
26}
27
28func NewMockFirewall() *MockFirewall {
29 return &MockFirewall{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected