28 #ifndef __MU_LOGGER_H__
29 #define __MU_LOGGER_H__
31 #include <moonunit/option.h>
32 #include <moonunit/test.h>
39 void (*library_enter) (
struct MuLogger*,
const char* path,
struct MuLibrary* library);
40 void (*library_fail) (
struct MuLogger*,
const char* reason);
41 void (*library_leave) (
struct MuLogger*);
42 void (*suite_enter) (
struct MuLogger*,
const char*);
43 void (*suite_leave) (
struct MuLogger*);
44 void (*test_enter) (
struct MuLogger*,
struct MuTest* test);
45 void (*test_log) (
struct MuLogger*,
struct MuLogEvent const* event);
46 void (*test_leave) (
struct MuLogger*,
47 struct MuTest*,
struct MuTestResult*);
55 void mu_logger_set_option(
MuLogger* logger,
const char *name, ...);
56 void mu_logger_set_option_string(
MuLogger* logger,
const char *name,
const char *value);
57 MuType mu_logger_option_type(
MuLogger* logger,
const char *name);
59 void mu_logger_enter(
struct MuLogger*);
60 void mu_logger_leave(
struct MuLogger*);
61 void mu_logger_library_enter (
struct MuLogger*,
const char*,
struct MuLibrary* library);
62 void mu_logger_library_fail (
struct MuLogger*,
const char*);
63 void mu_logger_library_leave (
struct MuLogger*);
64 void mu_logger_suite_enter (
struct MuLogger*,
const char*);
65 void mu_logger_suite_leave (
struct MuLogger*);
66 void mu_logger_test_enter (
struct MuLogger*,
struct MuTest* test);
67 void mu_logger_test_log (
struct MuLogger*,
struct MuLogEvent
const* event);
68 void mu_logger_test_leave (
struct MuLogger*,
69 struct MuTest*,
struct MuTestResult*);
71 void mu_logger_destroy(
MuLogger* logger);
MuLogLevel
Definition: test.h:133