summaryrefslogtreecommitdiff
path: root/tests-clay/clay_main.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2011-12-04 17:55:35 +0100
committernulltoken <emeric.fermas@gmail.com>2011-12-04 18:12:40 +0100
commita7954d2a5a950c6e2162fee3001ccbc18a7acea4 (patch)
treef4c8f88df8a6b998f73fd5794c8d8ee1adbb496f /tests-clay/clay_main.c
parenta22b14d32dd8d5f06f121aa154d45bac3b10a305 (diff)
downloadlibgit2-a7954d2a5a950c6e2162fee3001ccbc18a7acea4.tar.gz
tree: add test to ensure predictability of generation of object ids
Diffstat (limited to 'tests-clay/clay_main.c')
-rw-r--r--tests-clay/clay_main.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests-clay/clay_main.c b/tests-clay/clay_main.c
index 409ce7643..13a28e9eb 100644
--- a/tests-clay/clay_main.c
+++ b/tests-clay/clay_main.c
@@ -245,6 +245,9 @@ static const struct clay_func _clay_cb_object_raw_type2string[] = {
{"convert_string_to_type", &test_object_raw_type2string__convert_string_to_type},
{"convert_type_to_string", &test_object_raw_type2string__convert_type_to_string}
};
+static const struct clay_func _clay_cb_object_tree_buildfromindex[] = {
+ {"generate_predictable_object_ids", &test_object_tree_buildfromindex__generate_predictable_object_ids}
+};
static const struct clay_func _clay_cb_object_tree_frompath[] = {
{"fail_when_processing_an_invalid_path", &test_object_tree_frompath__fail_when_processing_an_invalid_path},
{"fail_when_processing_an_unknown_tree_segment", &test_object_tree_frompath__fail_when_processing_an_unknown_tree_segment},
@@ -438,6 +441,12 @@ static const struct clay_suite _clay_suites[] = {
_clay_cb_object_raw_type2string, 3
},
{
+ "object::tree::buildfromindex",
+ {"initialize", &test_object_tree_buildfromindex__initialize},
+ {"cleanup", &test_object_tree_buildfromindex__cleanup},
+ _clay_cb_object_tree_buildfromindex, 1
+ },
+ {
"object::tree::frompath",
{"initialize", &test_object_tree_frompath__initialize},
{"cleanup", &test_object_tree_frompath__cleanup},
@@ -493,8 +502,8 @@ static const struct clay_suite _clay_suites[] = {
}
};
-static size_t _clay_suite_count = 34;
-static size_t _clay_callback_count = 113;
+static size_t _clay_suite_count = 35;
+static size_t _clay_callback_count = 114;
/* Core test functions */
static void