libgitk_valid.c File Reference

test suite for libgitk : valid More...

#include "libgitk.h"

Include dependency graph for libgitk_valid.c:

Include dependency graph

Go to the source code of this file.

Functions

TCase * libgitk_valid_tcase (void)
 valid test suite

void test_gitk_valid_invalid_giml (void)
 loads dialog from string which is not giml

void test_gitk_valid_not_giml (void)
 loads dialog from string which is not giml

void test_gitk_valid_not_xml (void)
 loads dialog from string which is not xml

void test_setup (void)
 announce start of the test

void test_teardown (void)
 announce end of the test


Variables

gchar * dialog_desc_invalid_giml
 minimal test dialog number 1

gchar * dialog_desc_not_giml
 dialog desc which is xml, but not giml

gchar * dialog_desc_not_xml
 dialog desc which is not xml


Detailed Description

test suite for libgitk : valid

Id
libgitk_valid.c,v 1.5 2004/08/06 23:48:44 ensonic Exp

Author:
Stefan Kost <ensonic@users.sf.net>
Date:
Tue Nov 12 11:27:02 2003

Definition in file libgitk_valid.c.


Function Documentation

void test_gitk_valid_invalid_giml void   )  [static]
 

loads dialog from string which is not giml

Test:
loads dialog from string which is not giml

Definition at line 90 of file libgitk_valid.c.

References dialog_desc_invalid_giml, gitk_dialog_free(), gitk_dialog_new_from_string(), gitk_done(), gitk_init(), GitkDialogPtr, test_argc, and test_argvptr.

Referenced by libgitk_valid_tcase().

Here is the call graph for this function:

void test_gitk_valid_not_giml void   )  [static]
 

loads dialog from string which is not giml

Test:
loads dialog from string which is not giml

Definition at line 74 of file libgitk_valid.c.

References dialog_desc_not_giml, gitk_dialog_free(), gitk_dialog_new_from_string(), gitk_done(), gitk_init(), GitkDialogPtr, test_argc, and test_argvptr.

Referenced by libgitk_valid_tcase().

Here is the call graph for this function:

void test_gitk_valid_not_xml void   )  [static]
 

loads dialog from string which is not xml

Test:
loads dialog from string which is not xml

Definition at line 58 of file libgitk_valid.c.

References dialog_desc_not_xml, gitk_dialog_free(), gitk_dialog_new_from_string(), gitk_done(), gitk_init(), GitkDialogPtr, test_argc, and test_argvptr.

Referenced by libgitk_valid_tcase().

Here is the call graph for this function:

void test_setup void   )  [static]
 

announce start of the test

Definition at line 20 of file libgitk_valid.c.

References gitk_log.

Referenced by libgitk_valid_tcase().

void test_teardown void   )  [static]
 

announce end of the test

Definition at line 27 of file libgitk_valid.c.

References gitk_log.

Referenced by libgitk_valid_tcase().


Variable Documentation

gchar* dialog_desc_invalid_giml [static]
 

Initial value:

\
"<?xml version=\"1.0\" ?>"\
"<!DOCTYPE giml SYSTEM \"http://gitk.sourceforge.net/giml.dtd\">"\
"<giml xmlns=\""GITK_NS_URL"\""\
" xmlns:dc=\"http://purl.org/dc/elements/1.1/\""\
" xmlns:i18n=\""I18N_NS_URL"\""\
" >"\
"  <gitk/>"\
"</giml>"
minimal test dialog number 1

Definition at line 45 of file libgitk_valid.c.

Referenced by test_gitk_valid_invalid_giml().

gchar* dialog_desc_not_giml [static]
 

Initial value:

\
"<?xml version=\"1.0\" ?>" \
"<!DOCTYPE slides PUBLIC \"-//Norman Walsh//DTD Slides XML V3.0b2//EN\" \"http://docbook.sourceforge.net/release/slides/3.1.0/schema/dtd/slides.dtd\">" \
"<slides/>"
dialog desc which is xml, but not giml

Definition at line 38 of file libgitk_valid.c.

Referenced by test_gitk_valid_not_giml().

gchar* dialog_desc_not_xml [static]
 

Initial value:

\
"GITK is cool"
dialog desc which is not xml

Definition at line 33 of file libgitk_valid.c.

Referenced by test_gitk_valid_not_xml().


Generated on Thu Oct 28 11:03:34 2004 for gitk by doxygen 1.3.6