summaryrefslogtreecommitdiffhomepage
path: root/device/device_test.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-02-22 02:57:41 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-23 20:00:57 +0100
commit6603c05a4a48219faa7450a40ba766914590133a (patch)
tree51f24bd632a4e519aa22b74f351c0c7891e6a815 /device/device_test.go
parenta4f8e83d5d9f477554971e90e9ab85922f506ea9 (diff)
device: cleanup unused test components
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device/device_test.go')
-rw-r--r--device/device_test.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/device/device_test.go b/device/device_test.go
index 01ee2ac..1716f92 100644
--- a/device/device_test.go
+++ b/device/device_test.go
@@ -314,30 +314,6 @@ func TestConcurrencySafety(t *testing.T) {
close(done)
}
-func assertNil(t *testing.T, err error) {
- if err != nil {
- t.Fatal(err)
- }
-}
-
-func assertEqual(t *testing.T, a, b []byte) {
- if !bytes.Equal(a, b) {
- t.Fatal(a, "!=", b)
- }
-}
-
-func randDevice(t *testing.T) *Device {
- sk, err := newPrivateKey()
- if err != nil {
- t.Fatal(err)
- }
- tun := newDummyTUN("dummy")
- logger := NewLogger(LogLevelError, "")
- device := NewDevice(tun, conn.NewDefaultBind(), logger)
- device.SetPrivateKey(sk)
- return device
-}
-
func BenchmarkLatency(b *testing.B) {
pair := genTestPair(b)