// SPDX-FileCopyrightText: 2026 Matvey Shcherbinin // SPDX-License-Identifier: BSD-2-Clause #pragma once #include #include #include namespace { // A picture a test can point an Image or an image reader at: two by two of one // colour, which is the smallest thing that decodes and says all that a test needs // said about what is inside a file. A header rather than a source of its own // because it is four lines, in an anonymous namespace because it is a helper and // not an interface. bool writeTestPicture(const QString &path, const QColor &colour) { QImage picture(2, 2, QImage::Format_RGB32); picture.fill(colour); return picture.save(path); } } // namespace