tests-clay: mix the tests Actually add the tests introduced with 8c74d22. Signed-off-by: schu <schu-github@schulog.org>
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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
diff --git a/tests-clay/clay.h b/tests-clay/clay.h
index b05a824..e75ef85 100644
--- a/tests-clay/clay.h
+++ b/tests-clay/clay.h
@@ -83,6 +83,15 @@ extern void test_config_write__delete_inexistent(void);
extern void test_config_write__delete_value(void);
extern void test_config_write__initialize(void);
extern void test_config_write__replace_value(void);
+extern void test_core_buffer__0(void);
+extern void test_core_buffer__1(void);
+extern void test_core_buffer__2(void);
+extern void test_core_buffer__3(void);
+extern void test_core_buffer__4(void);
+extern void test_core_buffer__5(void);
+extern void test_core_buffer__6(void);
+extern void test_core_buffer__7(void);
+extern void test_core_buffer__8(void);
extern void test_core_dirent__dont_traverse_dot(void);
extern void test_core_dirent__dont_traverse_empty_folders(void);
extern void test_core_dirent__traverse_slash_terminated_folder(void);
diff --git a/tests-clay/clay_main.c b/tests-clay/clay_main.c
index 5c97057..65c56de 100644
--- a/tests-clay/clay_main.c
+++ b/tests-clay/clay_main.c
@@ -136,6 +136,17 @@ static const struct clay_func _clay_cb_config_write[] = {
{"delete_value", &test_config_write__delete_value},
{"replace_value", &test_config_write__replace_value}
};
+static const struct clay_func _clay_cb_core_buffer[] = {
+ {"0", &test_core_buffer__0},
+ {"1", &test_core_buffer__1},
+ {"2", &test_core_buffer__2},
+ {"3", &test_core_buffer__3},
+ {"4", &test_core_buffer__4},
+ {"5", &test_core_buffer__5},
+ {"6", &test_core_buffer__6},
+ {"7", &test_core_buffer__7},
+ {"8", &test_core_buffer__8}
+};
static const struct clay_func _clay_cb_core_dirent[] = {
{"dont_traverse_dot", &test_core_dirent__dont_traverse_dot},
{"dont_traverse_empty_folders", &test_core_dirent__dont_traverse_empty_folders},
@@ -312,6 +323,12 @@ static const struct clay_suite _clay_suites[] = {
_clay_cb_config_write, 3
},
{
+ "core::buffer",
+ {NULL, NULL},
+ {NULL, NULL},
+ _clay_cb_core_buffer, 9
+ },
+ {
"core::dirent",
{NULL, NULL},
{NULL, NULL},
@@ -475,8 +492,8 @@ static const struct clay_suite _clay_suites[] = {
}
};
-static size_t _clay_suite_count = 33;
-static size_t _clay_callback_count = 103;
+static size_t _clay_suite_count = 34;
+static size_t _clay_callback_count = 112;
/* Core test functions */
static void