Go to the documentation of this file.
24 #include "../suricata-common.h"
25 #include "../util-unittest.h"
27 #include "../detect-isdataat.h"
28 #include "../detect-engine-register.h"
29 #include "../detect-engine.h"
30 #include "../detect-parse.h"
32 static int DetectHttpUriIsdataatParseTest(
void)
39 "content:\"one\"; http_uri; "
40 "isdataat:!4,relative; sid:1;)");
59 static void DetectHttpUriRegisterTests (
void)
61 UtRegisterTest(
"DetectHttpUriIsdataatParseTest", DetectHttpUriIsdataatParseTest);
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
main detection engine ctx
void DetectEngineCtxFree(DetectEngineCtx *)
Free a DetectEngineCtx::
Signature * DetectEngineAppendSig(DetectEngineCtx *, const char *)
Parse and append a Signature into the Detection Engine Context signature list.
#define FAIL_IF_NOT(expr)
Fail a test if expression evaluates to false.
#define PASS
Pass the test.
SigMatch * DetectBufferGetLastSigMatch(const Signature *s, const uint32_t buf_id)
#define ISDATAAT_RELATIVE
#define ISDATAAT_RAWBYTES
#define FAIL_IF(expr)
Fail a test if expression evaluates to true.
a single match condition for a signature
DetectEngineCtx * DetectEngineCtxInit(void)