blob: d5e7708ce0b49679758d0b2fa27248b638c59e84 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// @file junitxml.h
#ifndef OMC_JUNITXML_H
#define OMC_JUNITXML_H
#include <libxml/xmlreader.h>
struct JUNIT_Failure {
char *message;
};
struct JUNIT_Skipped {
char *type;
char *message;
};
#define JUNIT_RESULT_STATE_NONE 0
#define JUNIT_RESULT_STATE_FAILURE 1
#define JUNIT_RESULT_STATE_SKIPPED 2
struct JUNIT_Testcase {
char *classname;
char *name;
float time;
char *message;
int tc_result_state_type;
union tc_state_ptr {
struct JUNIT_Failure *failure;
struct JUNIT_Skipped *skipped;
} result_state;
};
struct JUNIT_Testsuite {
char *name;
int errors;
int failures;
int skipped;
int tests;
float time;
char *timestamp;
char *hostname;
struct JUNIT_Testcase **testcase;
size_t _tc_inuse;
size_t _tc_alloc;
};
struct JUNIT_Testsuite *junitxml_testsuite_read(const char *filename);
void junitxml_testsuite_free(struct JUNIT_Testsuite **testsuite);
#endif //OMC_JUNITXML_H
|