MCPcopy Index your code
hub / github.com/rabbitstack/fibratus / TestQueryNameFileHandle

Function TestQueryNameFileHandle

pkg/handle/object_test.go:80–87  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

78}
79
80func TestQueryNameFileHandle(t *testing.T) {
81 f, err := windows.Open("_fixtures/.fibratus", windows.O_RDONLY, windows.S_ISUID)
82 require.NoError(t, err)
83 defer windows.Close(f)
84 handleName, _, err := QueryName(f, File, true)
85 require.NoError(t, err)
86 assert.Equal(t, ".fibratus", filepath.Base(handleName))
87}
88
89func TestQueryNamedPipe(t *testing.T) {
90 h, err := createPipe(`\\.\pipe\fibratus`, true)

Callers

nothing calls this directly

Calls 4

QueryNameFunction · 0.85
EqualMethod · 0.80
OpenMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected