LCOV - code coverage report
Current view: top level - gio/tests/modules - test-module-a.c (source / functions) Coverage Total Hit
Test: unnamed Lines: 60.0 % 10 6
Test Date: 2024-11-26 05:23:01 Functions: 57.1 % 7 4
Branches: - 0 0

             Branch data     Line data    Source code
       1                 :             : /* Test module for GIOModule tests
       2                 :             :  * Copyright (C) 2013 Red Hat, Inc
       3                 :             :  * Author: Matthias Clasen
       4                 :             :  *
       5                 :             :  * This work is provided "as is"; redistribution and modification
       6                 :             :  * in whole or in part, in any medium, physical or electronic is
       7                 :             :  * permitted without restriction.
       8                 :             :  *
       9                 :             :  * This work 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.
      12                 :             :  *
      13                 :             :  * In no event shall the authors or contributors be liable for any
      14                 :             :  * direct, indirect, incidental, special, exemplary, or consequential
      15                 :             :  * damages (including, but not limited to, procurement of substitute
      16                 :             :  * goods or services; loss of use, data, or profits; or business
      17                 :             :  * interruption) however caused and on any theory of liability, whether
      18                 :             :  * in contract, strict liability, or tort (including negligence or
      19                 :             :  * otherwise) arising in any way out of the use of this software, even
      20                 :             :  * if advised of the possibility of such damage.
      21                 :             :  */
      22                 :             : 
      23                 :             : #include <gio/gio.h>
      24                 :             : 
      25                 :             : #include "symbol-visibility.h"
      26                 :             : 
      27                 :             : typedef struct _TestA {
      28                 :             :   GObject parent;
      29                 :             : } TestA;
      30                 :             : 
      31                 :             : typedef struct _TestAClass {
      32                 :             :   GObjectClass parent_class;
      33                 :             : } TestAClass;
      34                 :             : 
      35                 :             : GType test_a_get_type (void);
      36                 :             : 
      37                 :           4 : G_DEFINE_TYPE (TestA, test_a, G_TYPE_OBJECT)
      38                 :             : 
      39                 :             : static void
      40                 :           0 : test_a_class_init (TestAClass *class)
      41                 :             : {
      42                 :           0 : }
      43                 :             : 
      44                 :             : static void
      45                 :           0 : test_a_init (TestA *self)
      46                 :             : {
      47                 :           0 : }
      48                 :             : 
      49                 :             : GLIB_TEST_EXPORT_SYMBOL void
      50                 :           2 : g_io_module_load (GIOModule *module)
      51                 :             : {
      52                 :           2 :   g_io_extension_point_implement ("test-extension-point",
      53                 :             :                                   test_a_get_type (),
      54                 :             :                                   "test-a",
      55                 :             :                                   30);
      56                 :           2 : }
      57                 :             : 
      58                 :             : GLIB_TEST_EXPORT_SYMBOL void
      59                 :           2 : g_io_module_unload (GIOModule *module)
      60                 :             : {
      61                 :           2 : }
        

Generated by: LCOV version 2.0-1