mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 04:20:12 +02:00
b04529c380
- amneziawg is now a VPN protocol and no longer a Wireguard implementation - Use it with VPN_TYPE=amneziawg - document AMNEZIAWG_* options in Dockerfile - document amneziawg support in readme - separate amneziawg settings and code from wireguard - re-use code from wireguard whenever possible
24 lines
394 B
Go
24 lines
394 B
Go
package wireguard
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/golang/mock/gomock"
|
|
)
|
|
|
|
func Test_makeDeviceLogger(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
ctrl := gomock.NewController(t)
|
|
|
|
logger := NewMockLogger(ctrl)
|
|
|
|
deviceLogger := makeDeviceLogger(logger)
|
|
|
|
logger.EXPECT().Debugf("test %d", 1)
|
|
deviceLogger.Verbosef("test %d", 1)
|
|
|
|
logger.EXPECT().Errorf("test %d", 2)
|
|
deviceLogger.Errorf("test %d", 2)
|
|
}
|