GCC Code Coverage Report


Directory: ./
File: tasks/potashnik_m_short_ways_bellford/mpi/src/ops_mpi.cpp
Date: 2026-01-10 02:40:41
Exec Total Coverage
Lines: 15 15 100.0%
Functions: 5 5 100.0%
Branches: 5 10 50.0%

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