2 * Copyright (C) 2007-2010 Gary Kramlich <grim@reaperworld.com>
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef GPLATE_TAG_TEST_H
18 #define GPLATE_TAG_TEST_H
20 #include <gplate/gplate.h>
24 #define gplate_tag_test_add(path, func) \
25 g_test_add((path), GPlateTagTestFixture, NULL, gplate_tag_test_setup, (func), gplate_tag_test_teardown)
27 typedef struct _GPlateTagTestFixture GPlateTagTestFixture;
29 typedef void (*GPlateTagTestFixtureFunc)(GPlateTagTestFixture *fixture, gconstpointer data);
31 struct _GPlateTagTestFixture {
32 GPlateTemplate *template;
35 const gchar *template_string;
37 const gchar *expected;
43 void gplate_tag_test_setup(GPlateTagTestFixture *fixture, gconstpointer data);
44 void gplate_tag_test_teardown(GPlateTagTestFixture *fixture, gconstpointer data);
45 void gplate_tag_test_output(GPlateTagTestFixture *fixture, gconstpointer data);
49 #endif /* GPLATE_TAG_TEST_H */