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

Function TestIsSequenceUnordered

pkg/filter/ql/parser_test.go:417–488  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

415}
416
417func TestIsSequenceUnordered(t *testing.T) {
418 var tests = []struct {
419 expr string
420 isUnordered bool
421 }{
422 {
423 `|evt.name = 'CreateProcess'| by ps.uuid
424 |evt.name = 'OpenProcess'| by ps.uuid
425 `,
426 true,
427 },
428 {
429 `|evt.name = 'CreateProcess'|
430 |evt.name = 'CreateFile'|
431 `,
432 false,
433 },
434 {
435 `|evt.name = 'CreateProcess'|
436 |evt.name = 'UnmapViewFile'|
437 |evt.name = 'LoadModule'|
438 `,
439 false,
440 },
441 {
442 `|evt.name = 'CreateProcess'|
443 |evt.name = 'SetThreadContext'|
444 `,
445 true,
446 },
447 {
448 `|evt.name = 'OpenThread'| by ps.uuid
449 |evt.name = 'OpenProcess'| by ps.uuid
450 `,
451 false,
452 },
453 {
454 `|evt.name = 'OpenThread' or evt.name = 'OpenProcess'| by ps.uuid
455 |evt.name = 'SetThreadContext'| by ps.uuid
456 `,
457 false,
458 },
459 {
460 `|evt.name = 'RegSetValue'| by ps.uuid
461 |evt.name = 'SetThreadContext'| by ps.uuid
462 `,
463 true,
464 },
465 {
466 `|evt.name = 'RegSetValue'| by ps.uuid
467 |evt.name = 'RegDeleteValue'| by ps.uuid
468 `,
469 false,
470 },
471 {
472 `|evt.name = 'OpenProcess'| by ps.uuid
473 |evt.name = 'QueryDns'| by ps.uuid
474 `,

Callers

nothing calls this directly

Calls 2

ParseSequenceMethod · 0.95
NewParserFunction · 0.85

Tested by

no test coverage detected