INSTINCT Code Coverage Report


Directory: src/
File: Nodes/Utility/GroupBox.cpp
Date: 2025-02-07 16:54:41
Exec Total Coverage
Lines: 13 16 81.2%
Functions: 5 7 71.4%
Branches: 4 8 50.0%

Line Branch Exec Source
1 // This file is part of INSTINCT, the INS Toolkit for Integrated
2 // Navigation Concepts and Training by the Institute of Navigation of
3 // the University of Stuttgart, Germany.
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9 #include "GroupBox.hpp"
10
11 #include "util/Logger.hpp"
12
13 115 NAV::GroupBox::GroupBox()
14
2/4
✓ Branch 1 taken 115 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 115 times.
✗ Branch 5 not taken.
115 : Node(typeStatic())
15 {
16 LOG_TRACE("called");
17
18 115 kind = Node::Kind::GroupBox;
19 115 _hasConfig = false;
20 115 _size = ImVec2(400, 300);
21 115 }
22
23 236 NAV::GroupBox::~GroupBox()
24 {
25 LOG_TRACE("called");
26 236 }
27
28 227 std::string NAV::GroupBox::typeStatic()
29 {
30
1/2
✓ Branch 1 taken 227 times.
✗ Branch 2 not taken.
454 return "GroupBox";
31 }
32
33 std::string NAV::GroupBox::type() const
34 {
35 return typeStatic();
36 }
37
38 112 std::string NAV::GroupBox::category()
39 {
40
1/2
✓ Branch 1 taken 112 times.
✗ Branch 2 not taken.
224 return "Utility";
41 }
42
43 [[nodiscard]] json NAV::GroupBox::save() const { return {}; }
44
45 3 void NAV::GroupBox::restore(json const& /* j */) {}
46