summaryrefslogtreecommitdiff
path: root/tests-clay/clay_main.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-10-26 15:19:49 -0700
committerVicent Marti <tanoku@gmail.com>2011-12-03 18:06:27 +0100
commitb4d757c0a8566937df4df9eda205ebb1fbe7aeff (patch)
tree9e2d21387c65b2b8a2cc16492df4eaf91dbc52f3 /tests-clay/clay_main.c
parenta1fdea2855bf1c868d5613edb8cb6c4b062b83eb (diff)
downloadlibgit2-b4d757c0a8566937df4df9eda205ebb1fbe7aeff.tar.gz
clay: add tests for tree diff'ing
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk> Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'tests-clay/clay_main.c')
-rw-r--r--tests-clay/clay_main.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests-clay/clay_main.c b/tests-clay/clay_main.c
index 409ce7643..ee08842c1 100644
--- a/tests-clay/clay_main.c
+++ b/tests-clay/clay_main.c
@@ -245,6 +245,12 @@ 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_diff[] = {
+ {"addition", &test_object_tree_diff__addition},
+ {"deletion", &test_object_tree_diff__deletion},
+ {"modification", &test_object_tree_diff__modification},
+ {"more", &test_object_tree_diff__more}
+};
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 +444,12 @@ static const struct clay_suite _clay_suites[] = {
_clay_cb_object_raw_type2string, 3
},
{
+ "object::tree::diff",
+ {"initialize", &test_object_tree_diff__initialize},
+ {"cleanup", &test_object_tree_diff__cleanup},
+ _clay_cb_object_tree_diff, 4
+ },
+ {
"object::tree::frompath",
{"initialize", &test_object_tree_frompath__initialize},
{"cleanup", &test_object_tree_frompath__cleanup},
@@ -493,8 +505,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 = 117;
/* Core test functions */
static void