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

Function TestStringFields

pkg/filter/filter_test.go:107–113  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

105}
106
107func TestStringFields(t *testing.T) {
108 f := New(`ps.name = 'cmd.exe' and evt.name = 'CreateProcess' or evt.name in ('TerminateProcess', 'CreateFile')`, cfg)
109 require.NoError(t, f.Compile())
110 assert.Len(t, f.GetStringFields(), 2)
111 assert.Len(t, f.GetStringFields()[fields.EvtName], 3)
112 assert.Len(t, f.GetStringFields()[fields.PsName], 1)
113}
114
115func TestMakeSequenceLinkID(t *testing.T) {
116 var tests = []struct {

Callers

nothing calls this directly

Calls 4

NewFunction · 0.70
CompileMethod · 0.65
GetStringFieldsMethod · 0.65
LenMethod · 0.45

Tested by

no test coverage detected