suricata
detect-bsize.c File Reference
#include "../util-unittest.h"
Include dependency graph for detect-bsize.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TEST_OK(str, m, lo, hi)
 
#define TEST_FAIL(str)
 
#define TEST_OK(rule)
 
#define TEST_FAIL(rule)
 

Macro Definition Documentation

#define TEST_FAIL (   str)
Value:
{ \
DetectBsizeData *bsz = DetectBsizeParse((str)); \
}
#define str(s)
#define FAIL_IF_NOT_NULL(expr)
Fail a test if expression evaluates to non-NULL.
Definition: util-unittest.h:96
struct DetectBsizeData DetectBsizeData

Definition at line 103 of file detect-bsize.c.

#define TEST_FAIL (   rule)
Value:
{ \
FAIL_IF_NULL(de_ctx); \
Signature *s = DetectEngineAppendSig(de_ctx, (rule)); \
}
Signature * DetectEngineAppendSig(DetectEngineCtx *de_ctx, const char *sigstr)
Parse and append a Signature into the Detection Engine Context signature list.
struct Signature_ Signature
Signature container.
struct DetectEngineCtx_ DetectEngineCtx
main detection engine ctx
#define FAIL_IF_NOT_NULL(expr)
Fail a test if expression evaluates to non-NULL.
Definition: util-unittest.h:96
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
Definition: util-unittest.h:89
void DetectEngineCtxFree(DetectEngineCtx *)
Free a DetectEngineCtx::
DetectEngineCtx * DetectEngineCtxInit(void)

Definition at line 103 of file detect-bsize.c.

#define TEST_OK (   str,
  m,
  lo,
  hi 
)
Value:
{ \
DetectBsizeData *bsz = DetectBsizeParse((str)); \
FAIL_IF_NOT(bsz->mode == (m)); \
DetectBsizeFree(bsz); \
SCLogDebug("str %s OK", (str)); \
}
#define SCLogDebug(...)
Definition: util-debug.h:335
#define str(s)
SCMutex m
Definition: flow-hash.h:105
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
Definition: util-unittest.h:89
struct DetectBsizeData DetectBsizeData
#define FAIL_IF_NOT(expr)
Fail a test if expression to true.
Definition: util-unittest.h:82

Definition at line 94 of file detect-bsize.c.

#define TEST_OK (   rule)
Value:
{ \
FAIL_IF_NULL(de_ctx); \
Signature *s = DetectEngineAppendSig(de_ctx, (rule)); \
}
Signature * DetectEngineAppendSig(DetectEngineCtx *de_ctx, const char *sigstr)
Parse and append a Signature into the Detection Engine Context signature list.
struct Signature_ Signature
Signature container.
struct DetectEngineCtx_ DetectEngineCtx
main detection engine ctx
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
Definition: util-unittest.h:89
void DetectEngineCtxFree(DetectEngineCtx *)
Free a DetectEngineCtx::
DetectEngineCtx * DetectEngineCtxInit(void)

Definition at line 94 of file detect-bsize.c.