Chrysalis - Pattern Test Coverage


pattern/
File: pattern/src/OriginPointArgument.cpp
Date: 2026-08-27 18:35:18
Lines:
3/8
37.5%
Functions:
1/3
33.3%
Branches:
4/16
25.0%
Decisions:
0/0
-%
Calls:
4/14
28.6%

Line Branch Decision Call Exec Source
1 #include "arguments/OriginPointArgument.h"
2
3 using namespace Chrysalis;
4
5 48 const Point* OriginPointArgument::get() const {
6
4/8
✓ Branch 0 taken 1 times.
✓ Branch 1 taken 47 times.
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 1 times.
✗ Branch 7 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
4/5
✓ Call 2 invoked.
✓ Call 5 invoked.
✓ Call 8 invoked.
✓ Call 9 invoked.
✗ Call 12 not invoked.
48 static const Point point(0, 0);
7 48 return &point;
8 }
9
10 ✗ const args::name& OriginPointArgument::name() const {
11
0/5
✗ Call 2 not invoked.
✗ Call 5 not invoked.
✗ Call 8 not invoked.
✗ Call 9 not invoked.
✗ Call 12 not invoked.
✗ static const auto name = std::make_unique<Argument<std::string>>("O");
12 ✗ return name;
13 }
14
15 ✗ BasePointArgument* OriginPointArgument::clone() const {
16
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ return new OriginPointArgument(*this);
17 }
18