MCPcopy
hub / github.com/bettercap/bettercap / BenchmarkNewRedirection

Function BenchmarkNewRedirection

firewall/redirection_test.go:232–236  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

230}
231
232func BenchmarkNewRedirection(b *testing.B) {
233 for i := 0; i < b.N; i++ {
234 _ = NewRedirection("eth0", "tcp", 80, "192.168.1.1", 8080)
235 }
236}
237
238func BenchmarkRedirectionString(b *testing.B) {
239 r := Redirection{

Callers

nothing calls this directly

Calls 1

NewRedirectionFunction · 0.85

Tested by

no test coverage detected