LCOV - code coverage report
Current view: top level - src/plugins/battery - valent-battery.h (source / functions) Hit Total Coverage
Test: Code Coverage Lines: 1 1 100.0 %
Date: 2023-06-06 02:20:50 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 3 6 50.0 %

           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                 :            : #pragma once
       5                 :            : 
       6                 :            : #include <gio/gio.h>
       7                 :            : 
       8                 :            : G_BEGIN_DECLS
       9                 :            : 
      10                 :            : #define VALENT_TYPE_BATTERY (valent_battery_get_type())
      11                 :            : 
      12   [ +  -  +  -  :        121 : G_DECLARE_FINAL_TYPE (ValentBattery, valent_battery, VALENT, BATTERY, GObject)
                   -  + ]
      13                 :            : 
      14                 :            : ValentBattery * valent_battery_get_default     (void);
      15                 :            : int             valent_battery_current_charge  (ValentBattery *battery);
      16                 :            : gboolean        valent_battery_is_charging     (ValentBattery *battery);
      17                 :            : gboolean        valent_battery_is_present      (ValentBattery *battery);
      18                 :            : unsigned int    valent_battery_threshold_event (ValentBattery *battery);
      19                 :            : 
      20                 :            : G_END_DECLS
      21                 :            : 

Generated by: LCOV version 1.14