libgitk_template.c

Go to the documentation of this file.
00001 
00012 #define GITK_TESTS_TEMPLATE_C
00013 
00014 #include "libgitk.h"
00015 
00016 
00020 static void test_setup(void) {
00021   gitk_log("-- beg -----------------------");
00022 }
00023 
00027 static void test_teardown(void) {
00028   gitk_log("-- end -----------------------\n\n");
00029 }
00030 
00034 START_TEST(test_gitk_template_message) {
00035   gitk_init(&test_argc,&test_argvptr,PACKAGE,LOCALEDIR);
00036   gitk_template_message_with_title("Message","Title");
00037   gitk_done();
00038 }
00039 END_TEST
00040 
00044 START_TEST(test_gitk_template_message_title_null) {
00045   gitk_init(&test_argc,&test_argvptr,PACKAGE,LOCALEDIR);
00046   gitk_template_message_with_title("Message",NULL);
00047   gitk_done();
00048 }
00049 END_TEST
00050 
00054 START_TEST(test_gitk_template_message_text_null) {
00055   gitk_init(&test_argc,&test_argvptr,PACKAGE,LOCALEDIR);
00056   gitk_template_message_with_title(NULL,"Title");
00057   gitk_done();
00058 }
00059 END_TEST
00060 
00061 
00065 TCase *libgitk_template_tcase(void) {
00066   TCase *tc = tcase_create("Template");
00067 
00068   tcase_add_test(tc,test_gitk_template_message);
00069   tcase_add_test(tc,test_gitk_template_message_title_null);
00070   tcase_add_test(tc,test_gitk_template_message_text_null);
00071   tcase_add_unchecked_fixture(tc, test_setup, test_teardown);
00072   return(tc);
00073 }

Generated on Thu Oct 28 10:59:16 2004 for gitk by doxygen 1.3.6