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

Function TestIsParamOfFunc

pkg/util/threadcontext/context_test.go:57–73  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

55}
56
57func TestIsParamOfFunc(t *testing.T) {
58 var tests = []struct {
59 f string
60 ok bool
61 }{
62 {"ZwContinue", true},
63 {"RtlCaptureContext", true},
64 {"CreateFile", false},
65 {"CreateThread", false},
66 }
67
68 for _, tt := range tests {
69 t.Run(tt.f, func(t *testing.T) {
70 assert.Equal(t, tt.ok, IsParamOfFunc(tt.f))
71 })
72 }
73}

Callers

nothing calls this directly

Calls 3

IsParamOfFuncFunction · 0.85
EqualMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected