suricata
util-memcmp.c File Reference
#include "suricata-common.h"
#include "util-memcmp.h"
#include "util-unittest.h"
#include "util-cpu.h"
Include dependency graph for util-memcmp.c:

Go to the source code of this file.

Data Structures

struct  MemcmpTest18Tests
 

Macros

#define TEST_RUNS   1000000
 

Functions

void MemcmpRegisterTests (void)
 

Variables

struct MemcmpTest18Tests memcmp_tests18_tests []
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Memcmp implementations.

Definition in file util-memcmp.c.

Macro Definition Documentation

#define TEST_RUNS   1000000

Definition at line 184 of file util-memcmp.c.

Function Documentation

void MemcmpRegisterTests ( void  )

Definition at line 384 of file util-memcmp.c.

References UtRegisterTest().

Here is the call graph for this function:

Variable Documentation

struct MemcmpTest18Tests memcmp_tests18_tests[]
Initial value:
= {
{ "abcdefgh", "!bcdefgh", 1, },
{ "?bcdefgh", "!bcdefgh", 1, },
{ "!bcdefgh", "abcdefgh", 1, },
{ "!bcdefgh", "?bcdefgh", 1, },
{ "zbcdefgh", "bbcdefgh", 1, },
{ "abcdefgh12345678", "!bcdefgh12345678", 1, },
{ "?bcdefgh12345678", "!bcdefgh12345678", 1, },
{ "!bcdefgh12345678", "abcdefgh12345678", 1, },
{ "!bcdefgh12345678", "?bcdefgh12345678", 1, },
{ "bbcdefgh12345678", "zbcdefgh12345678", 1, },
{ "abcdefgh", "abcdefgh", 0, },
{ "abcdefgh", "Abcdefgh", 0, },
{ "abcdefgh12345678", "Abcdefgh12345678", 0, },
{ NULL, NULL, 0 },
}