LCOV - code coverage report
Current view: top level - src/plugins/gtk - gtk-plugin.c (source / functions) Coverage Total Hit
Test: Code Coverage Lines: 100.0 % 5 5
Test Date: 2024-04-23 06:02:46 Functions: 100.0 % 1 1
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 50.0 % 2 1

             Branch data     Line data    Source code
       1                 :             : // SPDX-License-Identifier: GPL-3.0-or-later
       2                 :             : // SPDX-FileCopyrightText: Andy Holmes <andrew.g.r.holmes@gmail.com>
       3                 :             : 
       4                 :             : #include "config.h"
       5                 :             : 
       6                 :             : #include <gtk/gtk.h>
       7                 :             : #include <libpeas.h>
       8                 :             : #include <valent.h>
       9                 :             : 
      10                 :             : #include "valent-gdk-clipboard.h"
      11                 :             : #include "valent-gtk-notifications.h"
      12                 :             : 
      13                 :             : 
      14                 :             : _VALENT_EXTERN void
      15                 :           2 : valent_gtk_plugin_register_types (PeasObjectModule *module)
      16                 :             : {
      17                 :             :   /* These extensions inherently rely on GTK being initialized */
      18         [ +  - ]:           2 :   if (gtk_is_initialized ())
      19                 :             :     {
      20                 :           2 :       peas_object_module_register_extension_type (module,
      21                 :             :                                                   VALENT_TYPE_CLIPBOARD_ADAPTER,
      22                 :             :                                                   VALENT_TYPE_GDK_CLIPBOARD);
      23                 :           2 :       peas_object_module_register_extension_type (module,
      24                 :             :                                                   VALENT_TYPE_NOTIFICATIONS_ADAPTER,
      25                 :             :                                                   VALENT_TYPE_GTK_NOTIFICATIONS);
      26                 :             :     }
      27                 :           2 : }
        

Generated by: LCOV version 2.0-1