Chrysalis - Renderer Test Coverage


renderer/
File: renderer/src/PatternTraceRenderer.cpp
Date: 2026-08-27 18:35:31
Lines:
0/21
0.0%
Functions:
0/4
0.0%
Branches:
0/36
0.0%
Decisions:
0/4
0.0%
Calls:
0/141
0.0%

Line Branch Decision Call Exec Source
1 #include "PatternTraceRenderer.h"
2
3 #include "Layout.h"
4
5 using namespace Chrysalis;
6
7
0/1
✗ Call 0 not invoked.
✗ PatternTraceRenderer::PatternTraceRenderer(MainOpenGLProgram* program, PatternTraceRendererData* rendererData)
8
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.
✗ : BaseRenderer(rendererData), program_(program) {}
9
10 ✗ void PatternTraceRenderer::draw() {
11
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.
✗ program_->setColor(50.f / 255.f, 59.f / 255.f, 66.f / 255.f, 1.f);
12
0/1
? Decision couldn't be analyzed.
0/17
✗ 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 9 not invoked.
✗ Call 10 not invoked.
✗ Call 11 not invoked.
✗ Call 12 not invoked.
✗ Call 13 not invoked.
✗ Call 14 not invoked.
✗ Call 15 not invoked.
✗ Call 16 not invoked.
✗ Call 17 not invoked.
✗ Call 18 not invoked.
✗ for (const auto& layout: data_->linesLayout()) {
13
0/7
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 9 not invoked.
✗ Call 10 not invoked.
✗ glDrawArrays(GL_LINES, layout.offset(), layout.count());
14
0/2
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ }
15
16
0/10
✗ 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.
✗ program_->setPointRadius(pointRadius_);
17
0/10
✗ 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.
✗ const auto pointsLayout = data_->pointsLayout();
18
0/5
✗ Call 0 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 7 not invoked.
✗ Call 8 not invoked.
✗ glDrawArrays(GL_POINTS, pointsLayout.offset(), pointsLayout.count());
19
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.
✗ program_->setPointRadius(0);
20
21
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.
✗ program_->setColor(40.f / 255.f, 49.f / 255.f, 56.f / 255.f, 1.f);
22
0/1
? Decision couldn't be analyzed.
0/17
✗ 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 9 not invoked.
✗ Call 10 not invoked.
✗ Call 11 not invoked.
✗ Call 12 not invoked.
✗ Call 13 not invoked.
✗ Call 14 not invoked.
✗ Call 15 not invoked.
✗ Call 16 not invoked.
✗ Call 17 not invoked.
✗ Call 18 not invoked.
✗ for (const auto& layout: data_->arrowsLayout()) {
23
0/7
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 9 not invoked.
✗ Call 10 not invoked.
✗ glDrawArrays(GL_TRIANGLE_STRIP, layout.offset(), layout.count());
24
0/2
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ }
25 ✗ }
26
27 ✗ void PatternTraceRenderer::scaleChanged(const float scale) {
28
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ pointRadius_ = PatternTraceRendererData::POINT_RADIUS * scale;
29 ✗ }
30
31 ✗ const Point* PatternTraceRenderer::pointAtPosition(const float x, const float y) const {
32
0/28
✗ 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.
✗ Call 13 not invoked.
✗ Call 14 not invoked.
✗ Call 15 not invoked.
✗ Call 16 not invoked.
✗ Call 17 not invoked.
✗ Call 18 not invoked.
✗ Call 19 not invoked.
✗ Call 20 not invoked.
✗ Call 21 not invoked.
✗ Call 22 not invoked.
✗ Call 23 not invoked.
✗ Call 24 not invoked.
✗ Call 25 not invoked.
✗ Call 26 not invoked.
✗ Call 27 not invoked.
✗ return data_->pointAtPosition(x, y);
33 }
34