summaryrefslogtreecommitdiff
path: root/test-config.c
Commit message (Collapse)AuthorAgeFilesLines
* add tests for `git_config_get_string_const()`ta/config-set-1Tanay Abhra2014-08-071-0/+10
| | | | | | | | | | Add tests for `git_config_get_string_const()`, check whether it dies printing the line number and the file name if a NULL value is retrieved for the given key. Signed-off-by: Tanay Abhra <tanayabh@gmail.com> Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* test-config: add tests for the config_set APITanay Abhra2014-07-291-0/+142
Expose the `config_set` C API as a set of simple commands in order to facilitate testing. Add tests for the `config_set` API as well as for `git_config_get_*()` family for the usual config files. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Tanay Abhra <tanayabh@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>