GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 2 / 0 / 2
Functions: 100.0% 1 / 0 / 1
Branches: 50.0% 14 / 0 / 28

shumate/shumate-vector-reader.h
Line Branch Exec Source
1 /*
2 * Copyright (C) 2023 James Westman <james@jwestman.net>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
16 */
17
18 #pragma once
19
20 #include <glib-object.h>
21 #include <shumate/shumate-vector-reader-iter.h>
22 #include <shumate/shumate-version.h>
23
24 G_BEGIN_DECLS
25
26 SHUMATE_AVAILABLE_MACRO_IN_1_2
27 #define SHUMATE_TYPE_VECTOR_READER (shumate_vector_reader_get_type ())
28
14/28
None:
✓ Branch 30 → 31 taken 2 times.
✗ Branch 30 → 32 not taken.
✓ Branch 32 → 33 taken 2 times.
✗ Branch 32 → 34 not taken.
✓ Branch 41 → 42 taken 2 times.
✗ Branch 41 → 43 not taken.
✓ Branch 42 → 43 taken 2 times.
✗ Branch 42 → 44 not taken.
✓ Branch 65 → 66 taken 2 times.
✗ Branch 65 → 67 not taken.
✓ Branch 67 → 68 taken 2 times.
✗ Branch 67 → 69 not taken.
✓ Branch 68 → 69 taken 2 times.
✗ Branch 68 → 70 not taken.
✓ Branch 70 → 71 taken 2 times.
✗ Branch 70 → 72 not taken.
✓ Branch 84 → 85 taken 2 times.
✗ Branch 84 → 86 not taken.
✓ Branch 86 → 87 taken 2 times.
✗ Branch 86 → 88 not taken.
✓ Branch 110 → 111 taken 2 times.
✗ Branch 110 → 112 not taken.
SHUMATE_IS_VECTOR_READER:
✓ Branch 3 → 4 taken 26 times.
✗ Branch 3 → 7 not taken.
✓ Branch 4 → 5 taken 26 times.
✗ Branch 4 → 6 not taken.
✗ Branch 5 → 6 not taken.
✓ Branch 5 → 7 taken 26 times.
40 G_DECLARE_FINAL_TYPE (ShumateVectorReader, shumate_vector_reader, SHUMATE, VECTOR_READER, GObject)
29
30 SHUMATE_AVAILABLE_IN_1_2
31 ShumateVectorReader *shumate_vector_reader_new (GBytes *bytes);
32 SHUMATE_AVAILABLE_IN_1_2
33 ShumateVectorReaderIter *shumate_vector_reader_iterate (ShumateVectorReader *self);
34
35 SHUMATE_AVAILABLE_IN_1_2
36 ShumateVectorReader *shumate_vector_reader_iter_get_reader (ShumateVectorReaderIter *self);
37
38 G_END_DECLS
39