Debian Codegraph @

internal/testutils/fd_windows.go

raw symbols SCIP
1 package testutils
2
3 import (
4 "testing"
5
6 "github.com/cilium/ebpf/internal/efw"
7 "github.com/go-quicktest/qt"
8 )
9
10 func DupFD(tb testing.TB, fd int) int {
11 tb.Helper()
12
13 dup, err := efw.EbpfDuplicateFd(fd)
14 qt.Assert(tb, qt.IsNil(err))
15
16 return dup
17 }