GCC Code Coverage Report


Directory: ./
File: tasks/golovanov_d_radix_merge/tbb/src/ops_tbb.cpp
Date: 2026-04-02 17:12:27
Exec Total Coverage
Lines: 14 14 100.0%
Functions: 5 5 100.0%
Branches: 4 8 50.0%

Line Branch Exec Source
1 #include "golovanov_d_radix_merge/tbb/include/ops_tbb.hpp"
2
3 #include <vector>
4
5 #include "../include/radix_sort_tbb.hpp"
6 #include "golovanov_d_radix_merge/common/include/common.hpp"
7
8 namespace golovanov_d_radix_merge {
9
10
1/2
✓ Branch 1 taken 12 times.
✗ Branch 2 not taken.
12 GolovanovDRadixMergeTBB::GolovanovDRadixMergeTBB(const InType &in) {
11 SetTypeOfTask(GetStaticTypeOfTask());
12
1/2
✓ Branch 1 taken 12 times.
✗ Branch 2 not taken.
12 GetInput() = in;
13 GetOutput() = {};
14 12 }
15
16 12 bool GolovanovDRadixMergeTBB::ValidationImpl() {
17 12 return !GetInput().empty();
18 }
19
20 12 bool GolovanovDRadixMergeTBB::PreProcessingImpl() {
21 12 return true;
22 }
23
24 12 bool GolovanovDRadixMergeTBB::RunImpl() {
25 12 std::vector<double> input = GetInput();
26
1/2
✓ Branch 1 taken 12 times.
✗ Branch 2 not taken.
12 RadixSortTBB::Sort(input);
27
1/2
✓ Branch 1 taken 12 times.
✗ Branch 2 not taken.
12 GetOutput() = input;
28 12 return true;
29 }
30
31 12 bool GolovanovDRadixMergeTBB::PostProcessingImpl() {
32 12 return true;
33 }
34
35 } // namespace golovanov_d_radix_merge
36