void test_log_disp_file(void)
{
// int log_disp_file(time_t stamp, const char *file, int line, const char *function, int level, ...);
+
+ {
+ TEST_CHECK(log_disp_file(0, NULL, 0, "banana", 0, "fmt") == 0);
+ }
+
+ {
+ TEST_CHECK(log_disp_file(0, "apple", 0, NULL, 0, "fmt") == 0);
+ }
}
void test_log_disp_queue(void)
{
// int log_disp_queue(time_t stamp, const char *file, int line, const char *function, int level, ...);
+
+ {
+ TEST_CHECK(log_disp_queue(0, NULL, 0, "banana", 0, "fmt") != 0);
+ }
+
+ {
+ TEST_CHECK(log_disp_queue(0, "apple", 0, NULL, 0, "fmt") != 0);
+ }
}
void test_log_disp_terminal(void)
{
// int log_disp_terminal(time_t stamp, const char *file, int line, const char *function, int level, ...);
+
+ {
+ TEST_CHECK(log_disp_terminal(0, NULL, 0, "banana", 0, "fmt") != 0);
+ }
+
+ {
+ TEST_CHECK(log_disp_terminal(0, "apple", 0, NULL, 0, "fmt") != 0);
+ }
}
void test_log_file_set_filename(void)
{
// int log_file_set_filename(const char *file, bool verbose);
+
+ {
+ TEST_CHECK(log_file_set_filename(NULL, false) != 0);
+ }
}
void test_log_file_set_version(void)
{
// void log_file_set_version(const char *version);
+
+ {
+ log_file_set_version(NULL);
+ TEST_CHECK_(1, "log_file_set_version(NULL)");
+ }
}
void test_log_queue_add(void)
{
// int log_queue_add(struct LogLine *ll);
+
+ {
+ TEST_CHECK(log_queue_add(NULL) != 0);
+ }
}
void test_log_queue_flush(void)
{
// void log_queue_flush(log_dispatcher_t disp);
+
+ {
+ log_queue_flush(NULL);
+ TEST_CHECK_(1, "log_queue_flush(NULL)");
+ }
}
void test_log_queue_save(void)
{
// int log_queue_save(FILE *fp);
+
+ {
+ TEST_CHECK(log_queue_save(NULL) == 0);
+ }
}