|
|
Donner
C++20 SVG rendering library
|
#include <gtest/gtest.h>#include <filesystem>#include <optional>#include "donner/svg/SVGDocument.h"#include "donner/svg/renderer/TerminalImageViewer.h"Classes | |
| struct | donner::svg::ImageComparisonParams |
| Parameters for controlling image comparison tests. More... | |
| struct | donner::svg::ImageComparisonTestcase |
| Represents a single test case for image comparison. More... | |
| struct | donner::svg::TerminalPreviewConfig |
| Terminal preview configuration derived from the environment. More... | |
| class | donner::svg::ImageComparisonTestFixture |
| A Google Test fixture for tests that compare rendered SVG output against golden images. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
| namespace | donner::svg |
| Donner SVG library, which can load, manipulate and render SVG files. | |
Functions | |
| std::string | donner::svg::TestNameFromFilename (const testing::TestParamInfo< ImageComparisonTestcase > &info) |
| Generates a test name from the SVG filename in the test parameter info. | |
| std::optional< TerminalPreviewConfig > | donner::svg::PreviewConfigFromEnv (const ImageComparisonParams ¶ms) |
| Reads preview configuration and gating flags from the environment. | |
| std::string | donner::svg::RenderTerminalComparisonGridForTesting (const TerminalImageView &actual, const TerminalImageView &expected, const TerminalImageView &diff, int maxTerminalWidth, TerminalPixelMode pixelMode, const TerminalImageViewerConfig &viewerConfig={}) |
| Render a 2x2 terminal preview grid for testing. | |
| struct donner::svg::TerminalPreviewConfig |
Terminal preview configuration derived from the environment.
| Class Members | ||
|---|---|---|
| TerminalPixelMode | pixelMode = TerminalPixelMode::kQuarterPixel | Pixel mode to use. |
| int | terminalWidth = 120 | Maximum terminal width. |