| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
being passed in.
|
|
|
|
| |
value if the caller passed in a NULL pointer as a device. Added regression test.
|
|
|
|
| |
g_strdup_printf("%s",foo)
|
| |
|
| |
|
|
|
|
| |
AC Adapters that have no % and no time estimate
|
| |
|
|
|
|
| |
could result in time/detail strings not being set.
|
| |
|
|
|
|
| |
short_timestring and detailed_timestring
|
|
|
|
| |
device.c to public function indicator_power_device_get_time_details() so that we can unit test the user-visible strings.
|
| |
|
|
|
|
|
|
|
| |
The main goal of this change is to make it possible to test the
device's icon. A secondary goal is to clarify in the code how
indicator-power's icons differ from the ones recommended by GSD.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
for subclasses of IndicatorPowerDevice; unreachables in G_DEFINE_TYPE)
|
|
|
|
| |
/ non-NULL branches of dispose()'s g_clear_pointer() calls
|
| |
|
|
|
|
| |
subclasses of IndicatorPowerDevice; unreachables in G_DEFINE_TYPE)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
than once
|
| |
|
|
|
|
| |
available
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
when you pass NULL for the device
|
|
|
|
|
| |
Coverage testing isn't reaching them... glib is weeding out these invalid property keys before the device.c functions are ever reached. Nevertheless, leaving out a 'default' clause in a switch statement feels very unnatural to me. *twitch* *twitch*
|
|
|
|
| |
does these tests for us
|
| |
|
| |
|
|
|
|
| |
does these tests for us
|