return res;
}
-#endif
-
/* Register unittests */
void UtilActionRegisterTests(void)
{
-#ifdef UNITTESTS
/* Generic tests */
UtRegisterTest("UtilActionTest01", UtilActionTest01);
UtRegisterTest("UtilActionTest02", UtilActionTest02);
UtRegisterTest("UtilActionTest22", UtilActionTest22);
UtRegisterTest("UtilActionTest23", UtilActionTest23);
UtRegisterTest("UtilActionTest24", UtilActionTest24);
-#endif
}
+#endif
int ActionInitConfig(void);
uint8_t ActionOrderVal(uint8_t);
+#ifdef UNITTESTS
void UtilActionRegisterTests(void);
-
+#endif
#endif /* __ACTION_ORDER_H__ */
-/* Copyright (C) 2007-2010 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
return 0;
}
-#endif /* UNITTESTS */
-
void UtilMiscRegisterTests(void)
{
-#ifdef UNITTESTS
UtRegisterTest("UtilMiscParseSizeStringTest01",
UtilMiscParseSizeStringTest01);
-#endif /* UNITTESTS */
-
- return;
}
+#endif /* UNITTESTS */
-/* Copyright (C) 2007-2010 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
int ParseSizeStringU16(const char *, uint16_t *);
int ParseSizeStringU32(const char *, uint32_t *);
int ParseSizeStringU64(const char *, uint64_t *);
+
+#ifdef UNITTESTS
void UtilMiscRegisterTests(void);
+#endif /* UNITTESTS */
void ParseSizeInit(void);
void ParseSizeDeinit(void);
-/* Copyright (C) 2007-2014 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
return ret;
}
-#endif
-
/* Register unittests */
void UtilSpmSearchRegistertests(void)
{
-#ifdef UNITTESTS
/* Generic tests */
UtRegisterTest("UtilSpmBasicSearchTest01", UtilSpmBasicSearchTest01);
UtRegisterTest("UtilSpmBasicSearchNocaseTest01",
UtRegisterTest("UtilSpmNocaseSearchStatsTest07",
UtilSpmNocaseSearchStatsTest07);
-#endif
#endif
}
+#endif
-/* Copyright (C) 2007-2010 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
mfound; \
})
+#ifdef UNITTESTS
void UtilSpmSearchRegistertests(void);
+#endif
#endif /* __UTIL_SPM_H__ */