0ad14a89f5
This always struck me as kind of weird and non-standard. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
25 lines
489 B
Go
25 lines
489 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(bufs [][]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)
|
|
}
|
|
})
|
|
}
|