Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ dupHandle
Function
dupHandle
cli/vpndaemon_windows_linux_shared_test_helpers_linux_test.go:13–19 ·
view source on GitHub ↗
(t *testing.T, f *os.File)
Source
from the content-addressed store, hash-verified
11
)
12
13
func
dupHandle(t *testing.T, f *os.File) uintptr {
14
t.Helper()
15
16
dupFD, err := unix.Dup(int(f.Fd()))
17
require.NoError(t, err)
18
return
uintptr(dupFD)
19
}
Callers
1
TestVPNDaemonRun
Function · 0.70
Calls
1
Helper
Method · 0.65
Tested by
no test coverage detected