diff options
| author | Russell Belfer <arrbee@arrbee.com> | 2011-12-28 23:28:50 -0800 |
|---|---|---|
| committer | Russell Belfer <arrbee@arrbee.com> | 2011-12-29 00:01:10 -0800 |
| commit | 73b51450a3194ddaa2ac180a1fea25fdf66971bb (patch) | |
| tree | 4a6f4f0cfc90ded7f7734da2b6a9353d9bb0890b /tests-clay/clay_main.c | |
| parent | ee1f0b1aed7798908d9e038b006b66f868613fc3 (diff) | |
| download | libgit2-73b51450a3194ddaa2ac180a1fea25fdf66971bb.tar.gz | |
Add support for macros and cache flush API.
Add support for git attribute macro definitions. Also, add
support for cache flush API to clear the attribute file content
cache when needed.
Additionally, improved the handling of global and system files,
making common utility functions in fileops and converting config
and attr to both use the common functions.
Adds a bunch more tests and fixed some memory leaks. Note that
adding macros required me to use refcounted attribute assignment
definitions, which complicated, but probably improved memory usage.
Diffstat (limited to 'tests-clay/clay_main.c')
| -rw-r--r-- | tests-clay/clay_main.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests-clay/clay_main.c b/tests-clay/clay_main.c index 49a867698..ce881e45d 100644 --- a/tests-clay/clay_main.c +++ b/tests-clay/clay_main.c @@ -117,13 +117,16 @@ static const struct clay_func _clay_cb_attr_file[] = { static const struct clay_func _clay_cb_attr_lookup[] = { {"assign_variants", &test_attr_lookup__assign_variants}, {"check_attr_examples", &test_attr_lookup__check_attr_examples}, + {"from_buffer", &test_attr_lookup__from_buffer}, {"match_variants", &test_attr_lookup__match_variants}, {"simple", &test_attr_lookup__simple} }; static const struct clay_func _clay_cb_attr_repo[] = { {"foreach", &test_attr_repo__foreach}, {"get_many", &test_attr_repo__get_many}, - {"get_one", &test_attr_repo__get_one} + {"get_one", &test_attr_repo__get_one}, + {"macros", &test_attr_repo__macros}, + {"manpage_example", &test_attr_repo__manpage_example} }; static const struct clay_func _clay_cb_buf_basic[] = { {"printf", &test_buf_basic__printf}, @@ -329,13 +332,13 @@ static const struct clay_suite _clay_suites[] = { "attr::lookup", {NULL, NULL}, {NULL, NULL}, - _clay_cb_attr_lookup, 4 + _clay_cb_attr_lookup, 5 }, { "attr::repo", {"initialize", &test_attr_repo__initialize}, {"cleanup", &test_attr_repo__cleanup}, - _clay_cb_attr_repo, 3 + _clay_cb_attr_repo, 5 }, { "buf::basic", @@ -556,7 +559,7 @@ static const struct clay_suite _clay_suites[] = { }; static size_t _clay_suite_count = 39; -static size_t _clay_callback_count = 131; +static size_t _clay_callback_count = 134; /* Core test functions */ static void |
