GCC Code Coverage Report


Directory: ./
File: tasks/gonozov_l_elem_vec_sum/seq/src/ops_seq.cpp
Date: 2026-01-10 02:40:41
Exec Total Coverage
Lines: 13 13 100.0%
Functions: 5 5 100.0%
Branches: 5 10 50.0%

Line Branch Exec Source
1 #include "gonozov_l_elem_vec_sum/seq/include/ops_seq.hpp"
2
3 #include <numeric>
4 #include <vector>
5
6 #include "gonozov_l_elem_vec_sum/common/include/common.hpp"
7
8 namespace gonozov_l_elem_vec_sum {
9
10
1/2
✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
48 GonozovLElemVecSumSEQ::GonozovLElemVecSumSEQ(const InType &in) {
11 SetTypeOfTask(GetStaticTypeOfTask());
12
1/2
✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
48 GetInput() = in;
13 48 GetOutput() = 0LL;
14 48 }
15
16
1/2
✓ Branch 0 taken 48 times.
✗ Branch 1 not taken.
48 bool GonozovLElemVecSumSEQ::ValidationImpl() {
17
2/4
✓ Branch 0 taken 48 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 48 times.
48 return static_cast<int>(GetInput().size()) > 0 && GetOutput() == 0;
18 ;
19 }
20
21 48 bool GonozovLElemVecSumSEQ::PreProcessingImpl() {
22 48 return true;
23 }
24
25 48 bool GonozovLElemVecSumSEQ::RunImpl() {
26 OutType sum = std::accumulate(GetInput().begin(), GetInput().end(), 0LL);
27
28 48 GetOutput() = sum;
29 48 return true;
30 }
31
32 48 bool GonozovLElemVecSumSEQ::PostProcessingImpl() {
33 48 return true;
34 }
35
36 } // namespace gonozov_l_elem_vec_sum
37