GCC Code Coverage Report


Directory: ./
File: tasks/egorova_l_a_broadcast/seq/src/ops_seq.cpp
Date: 2026-01-10 02:40:41
Exec Total Coverage
Lines: 16 16 100.0%
Functions: 5 5 100.0%
Branches: 8 10 80.0%

Line Branch Exec Source
1 #include "egorova_l_a_broadcast/seq/include/ops_seq.hpp"
2
3 #include <cstring>
4
5 #include "egorova_l_a_broadcast/common/include/common.hpp"
6
7 namespace egorova_l_a_broadcast {
8
9
1/2
✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
48 EgorovaLBroadcastSEQ::EgorovaLBroadcastSEQ(const InType &in) {
10 SetTypeOfTask(GetStaticTypeOfTask());
11
1/2
✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
48 GetInput() = in;
12 48 }
13
14 48 bool EgorovaLBroadcastSEQ::ValidationImpl() {
15 48 return true;
16 }
17
18 48 bool EgorovaLBroadcastSEQ::PreProcessingImpl() {
19 48 return true;
20 }
21
22
2/2
✓ Branch 0 taken 16 times.
✓ Branch 1 taken 32 times.
48 bool EgorovaLBroadcastSEQ::RunImpl() {
23 auto &in = GetInput();
24 auto &out = GetOutput();
25
26
2/2
✓ Branch 0 taken 16 times.
✓ Branch 1 taken 32 times.
48 if (in.type_indicator == 0) {
27 16 out.resize(in.data_int.size() * sizeof(int));
28 std::memcpy(out.data(), in.data_int.data(), out.size());
29
2/2
✓ Branch 0 taken 16 times.
✓ Branch 1 taken 16 times.
32 } else if (in.type_indicator == 1) {
30 16 out.resize(in.data_float.size() * sizeof(float));
31 std::memcpy(out.data(), in.data_float.data(), out.size());
32 } else {
33 16 out.resize(in.data_double.size() * sizeof(double));
34 std::memcpy(out.data(), in.data_double.data(), out.size());
35 }
36 48 return true;
37 }
38
39 48 bool EgorovaLBroadcastSEQ::PostProcessingImpl() {
40 48 return true;
41 }
42
43 } // namespace egorova_l_a_broadcast
44