mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-03 21:44:09 +01:00
19 lines
225 B
Go
19 lines
225 B
Go
|
//go:build linux
|
||
|
|
||
|
package wgproxy
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func Test_newEBPF(t *testing.T) {
|
||
|
ebpf := newEBPF()
|
||
|
err := ebpf.load(1234, 51892)
|
||
|
defer func() {
|
||
|
_ = ebpf.free()
|
||
|
}()
|
||
|
if err != nil {
|
||
|
t.Errorf("%s", err)
|
||
|
}
|
||
|
}
|