Blender
V5.0
source
blender
imbuf
opencolorio
intern
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
9
namespace
blender::ocio
{
10
11
TEST
(ocio_source_processor,
source_comment_out_uniforms
)
12
{
13
{
14
std::string source =
"int main() { return 0; }"
;
15
source_comment_out_uniforms
(source);
16
EXPECT_EQ
(source,
"int main() { return 0; }"
);
17
}
18
19
{
20
std::string source =
"uniform vec3 pos;\nuniform vec4 color;\n"
;
21
source_comment_out_uniforms
(source);
22
EXPECT_EQ
(source,
"//iform vec3 pos;\n//iform vec4 color;\n"
);
23
}
24
}
25
26
}
// namespace blender::ocio
EXPECT_EQ
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
blender::ocio
Definition
BLF_api.hh:35
blender::ocio::source_comment_out_uniforms
void source_comment_out_uniforms(std::string &source)
Definition
source_processor.cc:9
blender::ocio::TEST
TEST(ocio_description, cleanup_description)
Definition
description_test.cc:11
source_processor.hh
Generated on
for Blender by
doxygen
1.16.1