aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-05-26 16:19:05 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-05-26 16:19:05 -0500
commit83aee49a3f8390f986bcaf8f255535f1c9072d91 (patch)
treec02f9e8e7560401b41c2c0d92a95dbdb5b08efd8 /src
parent5937352499a753898e36b53512f53ac1781034bd (diff)
downloadayatana-indicator-power-83aee49a3f8390f986bcaf8f255535f1c9072d91.tar.gz
ayatana-indicator-power-83aee49a3f8390f986bcaf8f255535f1c9072d91.tar.bz2
ayatana-indicator-power-83aee49a3f8390f986bcaf8f255535f1c9072d91.zip
try adding LCOV_EXCL_LINE for unreachable conditions (glib looking for subclasses of IndicatorPowerDevice; unreachables in G_DEFINE_TYPE)
Diffstat (limited to 'src')
-rw-r--r--src/device.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/device.c b/src/device.c
index 4b983e9..a5aa388 100644
--- a/src/device.c
+++ b/src/device.c
@@ -55,7 +55,7 @@ static void indicator_power_device_finalize (GObject *object);
static void set_property (GObject*, guint prop_id, const GValue*, GParamSpec* );
static void get_property (GObject*, guint prop_id, GValue*, GParamSpec* );
-G_DEFINE_TYPE (IndicatorPowerDevice, indicator_power_device, G_TYPE_OBJECT);
+G_DEFINE_TYPE (IndicatorPowerDevice, indicator_power_device, G_TYPE_OBJECT); /* LCOV_EXCL_LINE */
static void
indicator_power_device_class_init (IndicatorPowerDeviceClass *klass)
@@ -219,7 +219,7 @@ set_property (GObject * o, guint prop_id, const GValue * value, GParamSpec * psp
UpDeviceKind
indicator_power_device_get_kind (const IndicatorPowerDevice * device)
{
- g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_KIND_UNKNOWN);
+ g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_KIND_UNKNOWN); /* LCOV_EXCL_LINE */
return device->priv->kind;
}
@@ -227,7 +227,7 @@ indicator_power_device_get_kind (const IndicatorPowerDevice * device)
UpDeviceState
indicator_power_device_get_state (const IndicatorPowerDevice * device)
{
- g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_STATE_UNKNOWN);
+ g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_STATE_UNKNOWN); /* LCOV_EXCL_LINE */
return device->priv->state;
}
@@ -235,7 +235,7 @@ indicator_power_device_get_state (const IndicatorPowerDevice * device)
const gchar *
indicator_power_device_get_object_path (const IndicatorPowerDevice * device)
{
- g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_KIND_UNKNOWN);
+ g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_KIND_UNKNOWN); /* LCOV_EXCL_LINE */
return device->priv->object_path;
}
@@ -243,7 +243,7 @@ indicator_power_device_get_object_path (const IndicatorPowerDevice * device)
const gchar *
indicator_power_device_get_icon (const IndicatorPowerDevice * device)
{
- g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_KIND_UNKNOWN);
+ g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_KIND_UNKNOWN); /* LCOV_EXCL_LINE */
return device->priv->icon;
}
@@ -251,7 +251,7 @@ indicator_power_device_get_icon (const IndicatorPowerDevice * device)
gdouble
indicator_power_device_get_percentage (const IndicatorPowerDevice * device)
{
- g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_KIND_UNKNOWN);
+ g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_KIND_UNKNOWN); /* LCOV_EXCL_LINE */
return device->priv->percentage;
}
@@ -259,7 +259,7 @@ indicator_power_device_get_percentage (const IndicatorPowerDevice * device)
time_t
indicator_power_device_get_time (const IndicatorPowerDevice * device)
{
- g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_KIND_UNKNOWN);
+ g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_KIND_UNKNOWN); /* LCOV_EXCL_LINE */
return device->priv->time;
}