GCC Code Coverage Report


Directory: ./
File: tasks/maslova_u_fast_sort_simple/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 "maslova_u_fast_sort_simple/seq/include/ops_seq.hpp"
2
3 #include "maslova_u_fast_sort_simple/common/include/common.hpp"
4 #include "task/include/task.hpp"
5
6 namespace maslova_u_fast_sort_simple {
7
8
1/2
✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
48 MaslovaUFastSortSimpleSEQ::MaslovaUFastSortSimpleSEQ(const InType &in) {
9 SetTypeOfTask(ppc::task::TypeOfTask::kMPI);
10
1/2
✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
48 GetInput() = in;
11 48 }
12
13 48 bool MaslovaUFastSortSimpleSEQ::ValidationImpl() {
14 48 return true;
15 }
16
17 48 bool MaslovaUFastSortSimpleSEQ::PreProcessingImpl() {
18 48 return true;
19 }
20
21 48 bool MaslovaUFastSortSimpleSEQ::RunImpl() {
22 48 GetOutput() = GetInput();
23
24 // Сортируем
25 48 GetOutput() = GetInput();
26
2/2
✓ Branch 0 taken 40 times.
✓ Branch 1 taken 8 times.
48 if (!GetOutput().empty()) {
27 40 QuickSort(GetOutput().data(), 0, static_cast<int>(GetOutput().size()) - 1);
28 }
29 48 return true;
30 }
31
32 48 bool MaslovaUFastSortSimpleSEQ::PostProcessingImpl() {
33 48 return true;
34 }
35
36 } // namespace maslova_u_fast_sort_simple
37