github.com/amnezia-vpn/amneziawg-go@v0.2.8/conn/conn_test.go (about)

     1  /* SPDX-License-Identifier: MIT
     2   *
     3   * Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
     4   */
     5  
     6  package conn
     7  
     8  import (
     9  	"testing"
    10  )
    11  
    12  func TestPrettyName(t *testing.T) {
    13  	var (
    14  		recvFunc ReceiveFunc = func(bufs [][]byte, sizes []int, eps []Endpoint) (n int, err error) { return }
    15  	)
    16  
    17  	const want = "TestPrettyName"
    18  
    19  	t.Run("ReceiveFunc.PrettyName", func(t *testing.T) {
    20  		if got := recvFunc.PrettyName(); got != want {
    21  			t.Errorf("PrettyName() = %v, want %v", got, want)
    22  		}
    23  	})
    24  }