GCC Code Coverage Report


Directory: ./
File: tasks/yusupkina_m_elem_vec_sum/seq/src/ops_seq.cpp
Date: 2026-01-09 01:27:18
Exec Total Coverage
Lines: 14 14 100.0%
Functions: 5 5 100.0%
Branches: 2 4 50.0%

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