Debian Codegraph @

internal/testutils/netns_other.go

raw symbols SCIP
1 //go:build !linux
2
3 // This file is a stub to allow netns to be compiled on non-Linux platforms.
4 package testutils
5
6 import (
7 "testing"
8
9 "github.com/cilium/ebpf/internal"
10 )
11
12 type NetNS struct {
13 }
14
15 func NewNetNS(tb testing.TB) *NetNS {
16 return nil
17 }
18
19 func (h *NetNS) Do(f func() error) error {
20 return internal.ErrNotSupportedOnOS
21 }