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

Function TestEnumDevices

pkg/sys/device_test.go:29–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27)
28
29func TestEnumDevices(t *testing.T) {
30 drivers := EnumDevices()
31 require.True(t, len(drivers) > 0)
32
33 ntoskrnlFound := false
34 for _, drv := range drivers {
35 if strings.EqualFold(filepath.Base(drv.Filename), "ntoskrnl.exe") {
36 ntoskrnlFound = true
37 break
38 }
39 }
40 assert.True(t, ntoskrnlFound)
41}

Callers

nothing calls this directly

Calls 1

EnumDevicesFunction · 0.85

Tested by

no test coverage detected