13 |
13 |
14 #ifndef PGTEST_H |
14 #ifndef PGTEST_H |
15 #define PGTEST_H |
15 #define PGTEST_H |
16 |
16 |
17 #include <ucx/test.h> |
17 #include <ucx/test.h> |
|
18 #include <ucx/map.h> |
|
19 #include <libxml/tree.h> |
18 |
20 |
19 #ifdef __cplusplus |
21 #ifdef __cplusplus |
20 extern "C" { |
22 extern "C" { |
21 #endif |
23 #endif |
|
24 |
|
25 typedef struct TestMultistatus { |
|
26 UcxMempool *mp; |
|
27 xmlDoc *doc; |
|
28 UcxMap *responses; |
|
29 } TestMultistatus; |
|
30 |
|
31 typedef struct TestResponse { |
|
32 char *href; |
|
33 UcxMap *properties; |
|
34 } TestResponse; |
|
35 |
|
36 typedef struct TestProperty { |
|
37 char *prefix; |
|
38 char *namespace; |
|
39 char *name; |
|
40 char *lang; |
|
41 char *value; |
|
42 xmlNode *node; |
|
43 int status; |
|
44 } TestProperty; |
|
45 |
|
46 TestMultistatus* test_parse_multistatus(const char *space, size_t size); |
|
47 void test_multistatus_destroy(TestMultistatus *ms); |
22 |
48 |
23 UCX_TEST(test_pg_conn); |
49 UCX_TEST(test_pg_conn); |
24 |
50 |
25 UCX_TEST(test_pg_vfs_open); |
51 UCX_TEST(test_pg_vfs_open); |
26 UCX_TEST(test_pg_vfs_io); |
52 UCX_TEST(test_pg_vfs_io); |