diff options
author | nulltoken <emeric.fermas@gmail.com> | 2011-10-13 23:17:19 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2011-10-13 23:30:07 +0200 |
commit | 3fa735ca3b8d8f855e43be44b5f96e59909d50e1 (patch) | |
tree | 920698d515abc6a21adf3676b3694f52be80bb5a /tests-clay/clay_main.c | |
parent | 34aff0100248dbf349240fd8edff4cc440062b40 (diff) | |
download | libgit2-3fa735ca3b8d8f855e43be44b5f96e59909d50e1.tar.gz |
tree: Add git_tree_frompath() which, given a relative path to a tree entry, retrieves the tree object containing this tree entry
Diffstat (limited to 'tests-clay/clay_main.c')
-rw-r--r-- | tests-clay/clay_main.c | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/tests-clay/clay_main.c b/tests-clay/clay_main.c index dcd9ae842..da90872ce 100644 --- a/tests-clay/clay_main.c +++ b/tests-clay/clay_main.c @@ -687,9 +687,12 @@ static const struct clay_func _all_callbacks[] = { {"refspec_parsing", &test_network_remotes__refspec_parsing, 8}, {"fnmatch", &test_network_remotes__fnmatch, 8}, {"transform", &test_network_remotes__transform, 8}, - {"hash_single_file", &test_status_single__hash_single_file, 9}, - {"whole_repository", &test_status_worktree__whole_repository, 10}, - {"empty_repository", &test_status_worktree__empty_repository, 10} + {"retrieve_tree_from_path_to_treeentry", &test_object_tree_frompath__retrieve_tree_from_path_to_treeentry, 9}, + {"fail_when_processing_an_unknown_tree_segment", &test_object_tree_frompath__fail_when_processing_an_unknown_tree_segment, 9}, + {"fail_when_processing_an_invalid_path", &test_object_tree_frompath__fail_when_processing_an_invalid_path, 9}, + {"hash_single_file", &test_status_single__hash_single_file, 10}, + {"whole_repository", &test_status_worktree__whole_repository, 11}, + {"empty_repository", &test_status_worktree__empty_repository, 11} }; static const struct clay_suite _all_suites[] = { @@ -748,26 +751,32 @@ static const struct clay_suite _all_suites[] = { &_all_callbacks[23], 4 }, { + "object::tree::frompath", + {"initialize", &test_object_tree_frompath__initialize, 9}, + {"cleanup", &test_object_tree_frompath__cleanup, 9}, + &_all_callbacks[27], 3 + }, + { "status::single", {NULL, NULL, 0}, {NULL, NULL, 0}, - &_all_callbacks[27], 1 + &_all_callbacks[30], 1 }, { "status::worktree", - {"initialize", &test_status_worktree__initialize, 10}, - {"cleanup", &test_status_worktree__cleanup, 10}, - &_all_callbacks[28], 2 + {"initialize", &test_status_worktree__initialize, 11}, + {"cleanup", &test_status_worktree__cleanup, 11}, + &_all_callbacks[31], 2 } }; -static const char _suites_str[] = "core::dirent, core::filebuf, core::oid, core::path, core::rmdir, core::string, core::strtol, core::vector, network::remotes, status::single, status::worktree"; +static const char _suites_str[] = "core::dirent, core::filebuf, core::oid, core::path, core::rmdir, core::string, core::strtol, core::vector, network::remotes, object::tree::frompath, status::single, status::worktree"; int _MAIN_CC main(int argc, char *argv[]) { return clay_test( argc, argv, _suites_str, - _all_callbacks, 30, - _all_suites, 11 + _all_callbacks, 33, + _all_suites, 12 ); } |