GCC Code Coverage Report


Directory: ./
File: _build/src/ppd-enums.c
Date: 2024-09-13 00:56:02
Exec Total Coverage
Lines: 12 18 66.7%
Functions: 2 3 66.7%
Branches: 4 6 66.7%

Line Branch Exec Source
1
2 /* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */
3
4 #include "ppd-enums.h"
5 #include <glib-object.h>
6 /* enumerations from "ppd-profile.h" */
7 #include "ppd-profile.h"
8 GType
9 ppd_probe_result_get_type (void)
10 {
11 static GType the_type = 0;
12
13 if (the_type == 0)
14 {
15 static const GEnumValue values[] = {
16 { PPD_PROBE_RESULT_UNSET,
17 "PPD_PROBE_RESULT_UNSET",
18 "unset" },
19 { PPD_PROBE_RESULT_DEFER,
20 "PPD_PROBE_RESULT_DEFER",
21 "defer" },
22 { PPD_PROBE_RESULT_FAIL,
23 "PPD_PROBE_RESULT_FAIL",
24 "fail" },
25 { PPD_PROBE_RESULT_SUCCESS,
26 "PPD_PROBE_RESULT_SUCCESS",
27 "success" },
28 { 0, NULL, NULL }
29 };
30 the_type = g_enum_register_static (
31 g_intern_static_string ("PpdProbeResult"),
32 values);
33 }
34 return the_type;
35 }
36 GType
37 5127 ppd_profile_get_type (void)
38 {
39 5127 static GType the_type = 0;
40
41
2/2
✓ Branch 0 taken 130 times.
✓ Branch 1 taken 4997 times.
5127 if (the_type == 0)
42 {
43 130 static const GFlagsValue values[] = {
44 { PPD_PROFILE_POWER_SAVER,
45 "PPD_PROFILE_POWER_SAVER",
46 "power-saver" },
47 { PPD_PROFILE_BALANCED,
48 "PPD_PROFILE_BALANCED",
49 "balanced" },
50 { PPD_PROFILE_PERFORMANCE,
51 "PPD_PROFILE_PERFORMANCE",
52 "performance" },
53 { 0, NULL, NULL }
54 };
55 130 the_type = g_flags_register_static (
56 g_intern_static_string ("PpdProfile"),
57 values);
58 }
59 5127 return the_type;
60 }
61 GType
62 40 ppd_power_changed_reason_get_type (void)
63 {
64 40 static GType the_type = 0;
65
66
2/2
✓ Branch 0 taken 14 times.
✓ Branch 1 taken 26 times.
40 if (the_type == 0)
67 {
68 14 static const GEnumValue values[] = {
69 { PPD_POWER_CHANGED_REASON_UNKNOWN,
70 "PPD_POWER_CHANGED_REASON_UNKNOWN",
71 "unknown" },
72 { PPD_POWER_CHANGED_REASON_AC,
73 "PPD_POWER_CHANGED_REASON_AC",
74 "ac" },
75 { PPD_POWER_CHANGED_REASON_BATTERY,
76 "PPD_POWER_CHANGED_REASON_BATTERY",
77 "battery" },
78 { 0, NULL, NULL }
79 };
80 14 the_type = g_enum_register_static (
81 g_intern_static_string ("PpdPowerChangedReason"),
82 values);
83 }
84 40 return the_type;
85 }
86
87 /* Generated data ends here */
88
89