GCC Code Coverage Report


Directory: ./
File: tasks/tsyplakov_k_from_all_to_one/seq/src/ops_seq.cpp
Date: 2026-01-27 01:59:34
Exec Total Coverage
Lines: 0 12 0.0%
Functions: 0 5 0.0%
Branches: 0 14 0.0%

Line Branch Exec Source
1 #include "tsyplakov_k_from_all_to_one/seq/include/ops_seq.hpp"
2
3 namespace tsyplakov_k_from_all_to_one {
4
5 TsyplakovKFromAllToOneSEQ::TsyplakovKFromAllToOneSEQ(const InTypeSEQ &in) {
6 this->SetTypeOfTask(GetStaticTypeOfTask());
7 this->GetInput() = in;
8 }
9
10 bool TsyplakovKFromAllToOneSEQ::ValidationImpl() {
11 auto &[data, root] = this->GetInput();
12 return !data.empty() && root >= 0;
13 }
14
15 bool TsyplakovKFromAllToOneSEQ::PreProcessingImpl() {
16 gathered_.clear();
17 return true;
18 }
19
20 bool TsyplakovKFromAllToOneSEQ::RunImpl() {
21 auto &[data, root] = this->GetInput();
22
23 if (root == 0) {
24 this->GetOutput() = data;
25 }
26
27 return true;
28 }
29
30 bool TsyplakovKFromAllToOneSEQ::PostProcessingImpl() {
31 return true;
32 }
33
34 } // namespace tsyplakov_k_from_all_to_one
35