18 lines
282 B
Go
18 lines
282 B
Go
|
//go:build !shaping
|
||
|
|
||
|
package netxlite
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/ooni/probe-cli/v3/internal/model/mocks"
|
||
|
)
|
||
|
|
||
|
func TestNewShapingDialer(t *testing.T) {
|
||
|
in := &mocks.Dialer{}
|
||
|
out := NewMaybeShapingDialer(in)
|
||
|
if in != out {
|
||
|
t.Fatal("expected to see the same pointer")
|
||
|
}
|
||
|
}
|