[Tests] Fix unit tests in template builds
This commit is contained in:
parent
25de53e147
commit
17929a3443
6 changed files with 14 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue