GCC Code Coverage Report


Directory: ./
File: libs/filter/dicom/factory/new.cpp
Date: 2024-03-28 16:25:37
Exec Total Coverage
Lines: 2 2 100.0%
Branches: 1 2 50.0%

Line Branch Exec Source
1 /************************************************************************
2 *
3 * Copyright (C) 2009-2023 IRCAD France
4 * Copyright (C) 2012-2016 IHU Strasbourg
5 *
6 * This file is part of Sight.
7 *
8 * Sight is free software: you can redistribute it and/or modify it under
9 * the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * Sight is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with Sight. If not, see <https://www.gnu.org/licenses/>.
20 *
21 ***********************************************************************/
22
23 #include "filter/dicom/factory/new.hpp"
24
25 #include "filter/dicom/filter.hpp"
26
27 namespace sight::filter::dicom::factory
28 {
29
30 //------------------------------------------------------------------------------
31
32 36 sight::filter::dicom::filter::sptr make(const sight::filter::dicom::registry::key_t& _classname)
33 {
34
1/2
✓ Branch 2 taken 36 times.
✗ Branch 3 not taken.
72 return sight::filter::dicom::registry::get()->create(_classname);
35 }
36
37 } // namespace sight::filter::dicom::factory
38