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

Function TestSection

pkg/cap/section/section_windows_test.go:27–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25)
26
27func TestSection(t *testing.T) {
28 s := New(Process, capver.ProcessSecV1, uint32(2456), uint32(30000))
29 assert.Equal(t, Process, s.Type())
30 assert.Equal(t, capver.ProcessSecV1, s.Version())
31 assert.Equal(t, uint32(2456), s.Len())
32 assert.Equal(t, uint32(30000), s.Size())
33}

Callers

nothing calls this directly

Calls 6

EqualMethod · 0.80
NewFunction · 0.70
TypeMethod · 0.65
SizeMethod · 0.65
VersionMethod · 0.45
LenMethod · 0.45

Tested by

no test coverage detected