Chrysalis - Renderer Test Coverage


renderer/
File: renderer/src/Vertex2f.cpp
Date: 2026-08-27 18:35:31
Lines:
0/17
0.0%
Functions:
0/7
0.0%
Branches:
0/10
0.0%
Decisions:
0/0
-%
Calls:
0/64
0.0%

Line Branch Decision Call Exec Source
1 #include "Vertex2f.h"
2
3 using namespace Chrysalis;
4
5
0/3
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Vertex2f::Vertex2f(const float x, const float y): x_(x), y_(y) {}
6
7
0/13
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 7 not invoked.
✗ Call 8 not invoked.
✗ Call 9 not invoked.
✗ Call 10 not invoked.
✗ Call 11 not invoked.
✗ Call 12 not invoked.
✗ Vertex2f::Vertex2f(const Point& point): x_(point.x()), y_(point.y()) {}
8
9 ✗ const float& Vertex2f::x() const {
10
0/3
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ return x_;
11 }
12
13 ✗ const float& Vertex2f::y() const {
14
0/5
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ return y_;
15 }
16
17 ✗ void Vertex2f::move(const Point& point) {
18
0/6
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ x_ = point.x();
19
0/7
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ y_ = point.y();
20 ✗ }
21
22 ✗ void Vertex2f::transform(const Transformation& transformation) {
23
0/12
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 7 not invoked.
✗ Call 8 not invoked.
✗ Call 11 not invoked.
✗ Call 14 not invoked.
✗ Call 15 not invoked.
✗ const auto point = transformation.apply(CG::Point(x_, y_));
24
0/3
✗ Call 0 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ x_ = point.x();
25
0/5
✗ Call 0 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ y_ = point.y();
26 ✗ }
27
28 ✗ std::vector<std::pair<int, void*>> Vertex2f::layout() {
29
0/7
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 7 not invoked.
✗ Call 8 not invoked.
✗ return {{2, nullptr}};
30 }
31