libsir 2.2.5
Standard Incident Reporter
|
Namespaces | |
namespace | sir |
libsir C++ wrapper implementation. | |
namespace | sir::tests |
libsir C++ wrapper tests. | |
Functions | |
bool | sirtest_threadrace (void) |
Properly handle multiple threads competing for locked sections. | |
bool | sirtest_exceedmaxsize (void) |
Properly handle messages that exceed internal buffer sizes. | |
bool | sirtest_logwritesanity (void) |
Ensure the correct (and complete) message is written to a log file. | |
bool | sirtest_failnooutputdest (void) |
Properly handle the lack of any output destinations. | |
bool | sirtest_failnulls (void) |
Properly handle null/empty input. | |
bool | sirtest_failemptymessage (void) |
Ensure an empty message is properly handled. | |
bool | sirtest_filecachesanity (void) |
Properly handle adding and removing log files. | |
bool | sirtest_failinvalidfilename (void) |
Properly handle invalid log file name. | |
bool | sirtest_failfilebadpermission (void) |
Properly handle log file without appropriate permissions. | |
bool | sirtest_faildupefile (void) |
Properly refuse to add a duplicate file. | |
bool | sirtest_failremovebadfile (void) |
Properly refuse to remove a file that isn't added. | |
bool | sirtest_rollandarchivefile (void) |
Properly roll/archive a file when it hits max size. | |
bool | sirtest_failwithoutinit (void) |
Properly handle calls without initialization. | |
bool | sirtest_isinitialized (void) |
bool | sirtest_failinittwice (void) |
Properly handle two initialization calls without corresponding cleanup. | |
bool | sirtest_failinvalidinitdata (void) |
Properly handle initialization with junk memory. | |
bool | sirtest_initcleanupinit (void) |
Properly handle initialization, cleanup, re-initialization. | |
bool | sirtest_initmakeinit (void) |
Properly initialize using sir_makeinit. | |
bool | sirtest_failaftercleanup (void) |
Properly handle calls after cleanup. | |
bool | sirtest_errorsanity (void) |
Properly return valid codes and messages for all possible errors. | |
bool | sirtest_textstylesanity (void) |
Properly style stdio output for each level, and handle style overrides. | |
bool | sirtest_optionssanity (void) |
Properly reject invalid option bitmasks. | |
bool | sirtest_levelssanity (void) |
Properly reject invalid level bitmasks. | |
bool | sirtest_mutexsanity (void) |
Ensure that the mutex implementation is functioning properly. | |
bool | sirtest_perf (void) |
Performance evaluation. | |
bool | sirtest_updatesanity (void) |
Properly update levels/options at runtime. | |
bool | sirtest_threadidsanity (void) |
Properly format thread ID/names in output. | |
bool | sirtest_syslog (void) |
Properly open, configure, and send messages to syslog(). | |
bool | sirtest_os_log (void) |
Properly open, configure, and send messages to os_log(). | |
bool | sirtest_win_eventlog (void) |
Properly open, configure, and send messages to the Windows event log. | |
bool | sirtest_filesystem (void) |
Ensure the proper functionality of portable filesystem implementation. | |
bool | sirtest_squelchspam (void) |
Ensure that spam messages are squelched, normal messages are not, and proper return values result from calls into libsir. | |
bool | sirtest_pluginloader (void) |
Ensure that well-formed, valid plugins are successfully loaded, and that ill-formed/incorrectly behaving plugins are rejected. | |
bool | sirtest_stringutils (void) |
Ensure the string utility routines are functioning properly. | |
bool | sirtest_getcpucount (void) |
Ensure the processor counting routines are functioning properly. | |
bool | sirtest_getversioninfo (void) |
Ensure that version retrieval exports are functioning properly. | |
bool | sirtest_threadpool (void) |
Ensure the proper functioning of the thread pool and job queue mech- anisms. | |
libsir integrity tests
bool sirtest_errorsanity | ( | void | ) |
Properly return valid codes and messages for all possible errors.
true
if the test succeeded, false
otherwise. bool sirtest_exceedmaxsize | ( | void | ) |
Properly handle messages that exceed internal buffer sizes.
true
if the test succeeded, false
otherwise. bool sirtest_failaftercleanup | ( | void | ) |
Properly handle calls after cleanup.
true
if the test succeeded, false
otherwise. bool sirtest_faildupefile | ( | void | ) |
Properly refuse to add a duplicate file.
true
if the test succeeded, false
otherwise. bool sirtest_failemptymessage | ( | void | ) |
Ensure an empty message is properly handled.
true
if the test succeeded, false
otherwise. bool sirtest_failfilebadpermission | ( | void | ) |
Properly handle log file without appropriate permissions.
true
if the test succeeded, false
otherwise. bool sirtest_failinittwice | ( | void | ) |
Properly handle two initialization calls without corresponding cleanup.
true
if the test succeeded, false
otherwise. bool sirtest_failinvalidfilename | ( | void | ) |
Properly handle invalid log file name.
true
if the test succeeded, false
otherwise. bool sirtest_failinvalidinitdata | ( | void | ) |
Properly handle initialization with junk memory.
true
if the test succeeded, false
otherwise. bool sirtest_failnooutputdest | ( | void | ) |
Properly handle the lack of any output destinations.
true
if the test succeeded, false
otherwise. bool sirtest_failnulls | ( | void | ) |
Properly handle null/empty input.
true
if the test succeeded, false
otherwise. bool sirtest_failremovebadfile | ( | void | ) |
Properly refuse to remove a file that isn't added.
true
if the test succeeded, false
otherwise. bool sirtest_failwithoutinit | ( | void | ) |
Properly handle calls without initialization.
true
if the test succeeded, false
otherwise. bool sirtest_filecachesanity | ( | void | ) |
Properly handle adding and removing log files.
true
if the test succeeded, false
otherwise. bool sirtest_filesystem | ( | void | ) |
Ensure the proper functionality of portable filesystem implementation.
true
if the test succeeded, false
otherwise. bool sirtest_getcpucount | ( | void | ) |
Ensure the processor counting routines are functioning properly.
true
if the test succeeded, false
otherwise. bool sirtest_getversioninfo | ( | void | ) |
Ensure that version retrieval exports are functioning properly.
true
if the test succeeded, false
otherwise. bool sirtest_initcleanupinit | ( | void | ) |
Properly handle initialization, cleanup, re-initialization.
true
if the test succeeded, false
otherwise. bool sirtest_initmakeinit | ( | void | ) |
Properly initialize using sir_makeinit.
true
if the test succeeded, false
otherwise. bool sirtest_isinitialized | ( | void | ) |
true
if the test passed, false
otherwise. bool sirtest_levelssanity | ( | void | ) |
Properly reject invalid level bitmasks.
true
if the test succeeded, false
otherwise. bool sirtest_logwritesanity | ( | void | ) |
Ensure the correct (and complete) message is written to a log file.
true
if the test succeeded, false
otherwise. bool sirtest_mutexsanity | ( | void | ) |
Ensure that the mutex implementation is functioning properly.
true
if the test succeeded, false
otherwise. bool sirtest_optionssanity | ( | void | ) |
Properly reject invalid option bitmasks.
true
if the test succeeded, false
otherwise. bool sirtest_os_log | ( | void | ) |
Properly open, configure, and send messages to os_log().
true
if the test succeeded, false
otherwise. bool sirtest_perf | ( | void | ) |
Performance evaluation.
true
if the test succeeded, false
otherwise. bool sirtest_pluginloader | ( | void | ) |
Ensure that well-formed, valid plugins are successfully loaded, and that ill-formed/incorrectly behaving plugins are rejected.
true
if the test succeeded, false
otherwise. bool sirtest_rollandarchivefile | ( | void | ) |
Properly roll/archive a file when it hits max size.
true
if the test succeeded, false
otherwise. bool sirtest_squelchspam | ( | void | ) |
Ensure that spam messages are squelched, normal messages are not, and proper return values result from calls into libsir.
true
if the test succeeded, false
otherwise. bool sirtest_stringutils | ( | void | ) |
Ensure the string utility routines are functioning properly.
true
if the test succeeded, false
otherwise. bool sirtest_syslog | ( | void | ) |
Properly open, configure, and send messages to syslog().
true
if the test succeeded, false
otherwise. bool sirtest_textstylesanity | ( | void | ) |
Properly style stdio output for each level, and handle style overrides.
true
if the test succeeded, false
otherwise. bool sirtest_threadidsanity | ( | void | ) |
Properly format thread ID/names in output.
true
if the test succeeded, false
otherwise. bool sirtest_threadpool | ( | void | ) |
Ensure the proper functioning of the thread pool and job queue mech- anisms.
true
if the test succeeded, false
otherwise. bool sirtest_threadrace | ( | void | ) |
Properly handle multiple threads competing for locked sections.
true
if the test succeeded, false
otherwise. bool sirtest_updatesanity | ( | void | ) |
Properly update levels/options at runtime.
true
if the test succeeded, false
otherwise. bool sirtest_win_eventlog | ( | void | ) |
Properly open, configure, and send messages to the Windows event log.
true
if the test succeeded, false
otherwise.