mirror of
https://git.zx2c4.com/wireguard-go
synced 2024-11-15 01:05:15 +01:00
25 lines
490 B
Go
25 lines
490 B
Go
|
/* SPDX-License-Identifier: MIT
|
||
|
*
|
||
|
* Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
|
||
|
*/
|
||
|
|
||
|
package conn
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestPrettyName(t *testing.T) {
|
||
|
var (
|
||
|
recvFunc ReceiveFunc = func(buffs [][]byte, sizes []int, eps []Endpoint) (n int, err error) { return }
|
||
|
)
|
||
|
|
||
|
const want = "TestPrettyName"
|
||
|
|
||
|
t.Run("ReceiveFunc.PrettyName", func(t *testing.T) {
|
||
|
if got := recvFunc.PrettyName(); got != want {
|
||
|
t.Errorf("PrettyName() = %v, want %v", got, want)
|
||
|
}
|
||
|
})
|
||
|
}
|