| Line |
Branch |
Decision |
Call |
Exec |
Source |
| 1 |
|
|
|
|
#include "proxies/OutlineProxy.h" |
| 2 |
|
|
|
|
|
| 3 |
|
|
|
|
#include "initializers/Instructions.h" |
| 4 |
|
|
|
|
#include "initializers/PatternInstructions.h" |
| 5 |
|
|
|
|
#include "instructions/BuildOutlineInstruction.h" |
| 6 |
|
|
|
|
|
| 7 |
|
|
|
|
using namespace Chrysalis; |
| 8 |
|
|
|
|
|
| 9 |
|
|
|
2 |
Proxy::Outline::Outline(const std::string& name) |
| 10 |
|
|
4/4
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
|
2 |
: name_(name) {} |
| 11 |
|
|
|
|
|
| 12 |
|
|
|
2 |
Proxy::Outline::Point::Point(const std::string& name, const PatternPointArgument* point) |
| 13 |
|
|
8/12
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
✓ Call 6 invoked.
✓ Call 7 invoked.
✗ Call 8 not invoked.
✗ Call 9 not invoked.
✗ Call 10 not invoked.
✗ Call 11 not invoked.
|
2 |
: name_(name) { |
| 14 |
1/2
✓ Branch 4 taken 2 times.
✗ Branch 5 not taken.
|
|
4/4
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
|
2 |
points_.push_back(point); |
| 15 |
|
|
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
|
2 |
} |
| 16 |
|
|
|
|
|
| 17 |
|
|
|
2 |
Proxy::Outline::Point Proxy::Outline::operator>>(const PatternPointArgument* point) const { |
| 18 |
|
|
4/4
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
|
2 |
return Point(name_, point); |
| 19 |
|
|
|
|
} |
| 20 |
|
|
|
|
|
| 21 |
|
|
|
20 |
Proxy::Outline::Point& Proxy::Outline::Point::operator>>(const PatternPointArgument* point) { |
| 22 |
|
|
4/4
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
|
20 |
points_.push_back(point); |
| 23 |
|
|
1/1
|
20 |
return *this; |
| 24 |
|
|
|
|
} |
| 25 |
|
|
|
|
|
| 26 |
|
|
|
2 |
Proxy::Outline::Point::operator BuildOutlineInstruction*() const { |
| 27 |
|
|
3/3
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
|
2 |
const auto pointsContainer = new args::container<const PatternPointArgument>(); |
| 28 |
2/2
✓ Branch 15 taken 22 times.
✓ Branch 16 taken 2 times.
|
2/2
✓ Decision 'true' taken 22 times.
✓ Decision 'false' taken 2 times.
|
15/15
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
✓ Call 6 invoked.
✓ Call 7 invoked.
✓ Call 8 invoked.
✓ Call 9 invoked.
✓ Call 10 invoked.
✓ Call 11 invoked.
✓ Call 12 invoked.
✓ Call 13 invoked.
✓ Call 14 invoked.
|
24 |
for (const auto& point: points_) { |
| 29 |
1/2
✓ Branch 11 taken 22 times.
✗ Branch 12 not taken.
|
|
11/11
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
✓ Call 6 invoked.
✓ Call 7 invoked.
✓ Call 8 invoked.
✓ Call 9 invoked.
✓ Call 10 invoked.
|
22 |
pointsContainer->add(point); |
| 30 |
|
|
|
|
} |
| 31 |
|
|
|
|
return new BuildOutlineInstruction( |
| 32 |
|
|
|
|
Composer::Instructions::space, |
| 33 |
2/4
✓ Branch 1 taken 2 times.
✗ Branch 2 not taken.
✓ Branch 5 taken 2 times.
✗ Branch 6 not taken.
|
|
3/4
✓ Call 0 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✗ Call 7 not invoked.
|
4 |
new args::patterns(*Composer::PatternInstructions::patterns), |
| 34 |
1/2
✓ Branch 4 taken 2 times.
✗ Branch 5 not taken.
|
|
7/9
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 6 invoked.
✓ Call 7 invoked.
✓ Call 8 invoked.
✗ Call 9 not invoked.
✗ Call 10 not invoked.
|
4 |
std::make_unique<Argument<std::string>>(name_), |
| 35 |
|
|
|
|
pointsContainer |
| 36 |
1/6
✓ Branch 5 taken 2 times.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
|
|
5/6
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✗ Call 11 not invoked.
|
8 |
); |
| 37 |
|
|
|
|
} |
| 38 |
|
|
|
|
|