diff options
author | Russell Belfer <arrbee@arrbee.com> | 2011-11-30 13:10:47 -0800 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2011-11-30 13:10:47 -0800 |
commit | 969d588d9ab957addb2cecd0f18f7c3699b032b6 (patch) | |
tree | e6dfe6149c816cb5b588ddcee9535d7caccd818d /tests-clay/clay_main.c | |
parent | f5f048265800659aa6f495c05eb99e1b76a713e2 (diff) | |
download | libgit2-969d588d9ab957addb2cecd0f18f7c3699b032b6.tar.gz |
Optimized of git_buf_join.
This streamlines git_buf_join and removes the join-append behavior,
opting instead for a very compact join-replace of the git_buf contents.
The unit tests had to be updated to remove the join-append tests and
have a bunch more exhaustive tests added.
Diffstat (limited to 'tests-clay/clay_main.c')
-rw-r--r-- | tests-clay/clay_main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests-clay/clay_main.c b/tests-clay/clay_main.c index 65c56de8d..409ce7643 100644 --- a/tests-clay/clay_main.c +++ b/tests-clay/clay_main.c @@ -145,7 +145,8 @@ static const struct clay_func _clay_cb_core_buffer[] = { {"5", &test_core_buffer__5}, {"6", &test_core_buffer__6}, {"7", &test_core_buffer__7}, - {"8", &test_core_buffer__8} + {"8", &test_core_buffer__8}, + {"9", &test_core_buffer__9} }; static const struct clay_func _clay_cb_core_dirent[] = { {"dont_traverse_dot", &test_core_dirent__dont_traverse_dot}, @@ -326,7 +327,7 @@ static const struct clay_suite _clay_suites[] = { "core::buffer", {NULL, NULL}, {NULL, NULL}, - _clay_cb_core_buffer, 9 + _clay_cb_core_buffer, 10 }, { "core::dirent", @@ -493,7 +494,7 @@ static const struct clay_suite _clay_suites[] = { }; static size_t _clay_suite_count = 34; -static size_t _clay_callback_count = 112; +static size_t _clay_callback_count = 113; /* Core test functions */ static void |