Blender V5.0
source_processor_test.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#include "source_processor.hh"
6
7#include "testing/testing.h"
8
9namespace blender::ocio {
10
11TEST(ocio_source_processor, source_comment_out_uniforms)
12{
13 {
14 std::string source = "int main() { return 0; }";
16 EXPECT_EQ(source, "int main() { return 0; }");
17 }
18
19 {
20 std::string source = "uniform vec3 pos;\nuniform vec4 color;\n";
22 EXPECT_EQ(source, "//iform vec3 pos;\n//iform vec4 color;\n");
23 }
24}
25
26} // namespace blender::ocio
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
void source_comment_out_uniforms(std::string &source)
TEST(ocio_description, cleanup_description)