diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-11-18 02:16:24 +0100 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-11-18 02:35:45 +0100 |
commit | c515b5bf1e63455686ee1ab89152f3da6eca73a1 (patch) | |
tree | b9f5addd8fdd5db523ac463bec043a955b952dce /tests-clay/clay_main.c | |
parent | 472d4d858bed9758b2e9300e544417c0d9d43623 (diff) | |
download | libgit2-c515b5bf1e63455686ee1ab89152f3da6eca73a1.tar.gz |
Add test for renaming a file and adding it to the index
Thanks to Emeric.
Diffstat (limited to 'tests-clay/clay_main.c')
-rw-r--r-- | tests-clay/clay_main.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests-clay/clay_main.c b/tests-clay/clay_main.c index 3a63dfefa..4ad6fc467 100644 --- a/tests-clay/clay_main.c +++ b/tests-clay/clay_main.c @@ -146,6 +146,9 @@ static const struct clay_func _clay_cb_core_vector[] = { {"1", &test_core_vector__1}, {"2", &test_core_vector__2} }; +static const struct clay_func _clay_cb_index_rename[] = { + {"single_file", &test_index_rename__single_file} +}; static const struct clay_func _clay_cb_network_remotes[] = { {"fnmatch", &test_network_remotes__fnmatch}, {"parsing", &test_network_remotes__parsing}, @@ -267,6 +270,12 @@ static const struct clay_suite _clay_suites[] = { _clay_cb_core_vector, 3 }, { + "index::rename", + {NULL, NULL}, + {NULL, NULL}, + _clay_cb_index_rename, 1 + }, + { "network::remotes", {"initialize", &test_network_remotes__initialize}, {"cleanup", &test_network_remotes__cleanup}, @@ -340,8 +349,8 @@ static const struct clay_suite _clay_suites[] = { } }; -static size_t _clay_suite_count = 21; -static size_t _clay_callback_count = 64; +static size_t _clay_suite_count = 22; +static size_t _clay_callback_count = 65; /* Core test functions */ static void |