GCC Code Coverage Report


Directory: ./
File: tasks/ashihmin_d_sum_of_elem/seq/src/ops_seq.cpp
Date: 2026-01-10 02:40:41
Exec Total Coverage
Lines: 15 15 100.0%
Functions: 5 5 100.0%
Branches: 4 6 66.7%

Line Branch Exec Source
1 #include "ashihmin_d_sum_of_elem/seq/include/ops_seq.hpp"
2
3 #include "ashihmin_d_sum_of_elem/common/include/common.hpp"
4
5 namespace ashihmin_d_sum_of_elem {
6
7
1/2
✓ Branch 1 taken 24 times.
✗ Branch 2 not taken.
24 AshihminDElemVecsSumSEQ::AshihminDElemVecsSumSEQ(const InType &in) {
8 SetTypeOfTask(GetStaticTypeOfTask());
9
1/2
✓ Branch 1 taken 24 times.
✗ Branch 2 not taken.
24 GetInput() = in;
10 24 GetOutput() = 0;
11 24 }
12
13 24 bool AshihminDElemVecsSumSEQ::ValidationImpl() {
14 24 return !GetInput().empty();
15 }
16
17 24 bool AshihminDElemVecsSumSEQ::PreProcessingImpl() {
18 24 return true;
19 }
20
21 24 bool AshihminDElemVecsSumSEQ::RunImpl() {
22 const auto &vec = GetInput();
23 OutType sum = 0;
24
25
2/2
✓ Branch 0 taken 120 times.
✓ Branch 1 taken 24 times.
144 for (int v : vec) {
26 120 sum += v;
27 }
28
29 24 GetOutput() = sum;
30 24 return true;
31 }
32
33 24 bool AshihminDElemVecsSumSEQ::PostProcessingImpl() {
34 24 return true;
35 }
36
37 } // namespace ashihmin_d_sum_of_elem
38