source: appstream-generator/build/girepo/glib/TestSuite.d @ 4841

Last change on this file since 4841 was 4841, checked in by Juanma, 2 years ago

Initial release

File size: 1.9 KB
Line 
1/*
2 * Licensed under the GNU Lesser General Public License Version 3
3 *
4 * This library is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser 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.
8 *
9 * This software 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 Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
16 */
17
18// generated automatically - do not change
19
20
21module glib.TestSuite;
22
23private import gi.glib;
24public  import gi.glibtypes;
25
26
27/**
28 * An opaque structure representing a test suite.
29 */
30public class TestSuite
31{
32        /** the main Gtk struct */
33        protected GTestSuite* gTestSuite;
34        protected bool ownedRef;
35
36        /** Get the main Gtk struct */
37        public GTestSuite* getTestSuiteStruct()
38        {
39                return gTestSuite;
40        }
41
42        /** the main Gtk struct as a void* */
43        protected void* getStruct()
44        {
45                return cast(void*)gTestSuite;
46        }
47
48        /**
49         * Sets our main struct and passes it to the parent class.
50         */
51        public this (GTestSuite* gTestSuite, bool ownedRef = false)
52        {
53                this.gTestSuite = gTestSuite;
54                this.ownedRef = ownedRef;
55        }
56
57
58        /**
59         * Adds @test_case to @suite.
60         *
61         * Params:
62         *     testCase = a #GTestCase
63         *
64         * Since: 2.16
65         */
66        public void add(GTestCase* testCase)
67        {
68                g_test_suite_add(gTestSuite, testCase);
69        }
70
71        /**
72         * Adds @nestedsuite to @suite.
73         *
74         * Params:
75         *     nestedsuite = another #GTestSuite
76         *
77         * Since: 2.16
78         */
79        public void addSuite(TestSuite nestedsuite)
80        {
81                g_test_suite_add_suite(gTestSuite, (nestedsuite is null) ? null : nestedsuite.getTestSuiteStruct());
82        }
83}
Note: See TracBrowser for help on using the repository browser.