[Tests] Fix unit tests in template builds

This commit is contained in:
A Thousand Ships 2024-06-29 17:31:56 +02:00
parent 25de53e147
commit 17929a3443
No known key found for this signature in database
GPG key ID: 2033189A662F8BD7
6 changed files with 14 additions and 2 deletions

View file

@ -375,8 +375,10 @@ void validate_property(const Context &p_context, const ExposedClass &p_class, co
}
void validate_argument(const Context &p_context, const ExposedClass &p_class, const String &p_owner_name, const String &p_owner_type, const ArgumentData &p_arg) {
#ifdef DEBUG_METHODS_ENABLED
TEST_COND((p_arg.name.is_empty() || p_arg.name.begins_with("_unnamed_arg")),
vformat("Unnamed argument in position %d of %s '%s.%s'.", p_arg.position, p_owner_type, p_class.name, p_owner_name));
#endif // DEBUG_METHODS_ENABLED
const ExposedClass *arg_class = p_context.find_exposed_class(p_arg.type);
if (arg_class) {