(t *testing.T)
| 69 | } |
| 70 | |
| 71 | func TestQueryType(t *testing.T) { |
| 72 | h, err := windows.OpenProcess(windows.PROCESS_QUERY_INFORMATION, false, uint32(os.Getpid())) |
| 73 | require.NoError(t, err) |
| 74 | defer windows.CloseHandle(h) |
| 75 | typeName, err := QueryObjectType(h) |
| 76 | require.NoError(t, err) |
| 77 | assert.Equal(t, Process, typeName) |
| 78 | } |
| 79 | |
| 80 | func TestQueryNameFileHandle(t *testing.T) { |
| 81 | f, err := windows.Open("_fixtures/.fibratus", windows.O_RDONLY, windows.S_ISUID) |
nothing calls this directly
no test coverage detected