MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / TestTimeout

Function TestTimeout

pkg/handle/timeout_test.go:30–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28)
29
30func TestTimeout(t *testing.T) {
31 pipe, err := createPipe(`\\.\pipe\fibratus-timeout`, true)
32 require.NoError(t, err)
33 objectName, err := GetHandleWithTimeout(windows.Handle(pipe), 150)
34 require.NoError(t, err)
35 require.Equal(t, "\\Device\\NamedPipe\\fibratus-timeout", objectName)
36}

Callers

nothing calls this directly

Calls 4

createPipeFunction · 0.85
GetHandleWithTimeoutFunction · 0.85
HandleMethod · 0.80
EqualMethod · 0.80

Tested by

no test coverage detected