summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-28 12:12:29 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-28 12:12:29 +0200
commit14e1f36e614686f3fea0c74fac3624d1027dd5cc (patch)
tree7bc511bc13f83cf1cef3aebf32a979d528205768 /tests
parentff8e24098f01eacea7ef1323afd7866858f892fc (diff)
parent8f5d56e04a60020ec8a6db2aebc9bf9bbaf727d1 (diff)
Merge pull request #66492 from bruvzg/gde_ts_underscr
[GDExtension] Use function names with underscore for TextServer extension, add macros to generate wrappers for module functions.
Diffstat (limited to 'tests')
-rw-r--r--tests/core/object/test_class_db.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/core/object/test_class_db.h b/tests/core/object/test_class_db.h
index 208923edb9..b0375c63b9 100644
--- a/tests/core/object/test_class_db.h
+++ b/tests/core/object/test_class_db.h
@@ -666,6 +666,10 @@ void add_exposed_classes(Context &r_context) {
} else {
exposed_class.methods.push_back(method);
}
+
+ if (method.is_virtual) {
+ TEST_COND(String(method.name)[0] != '_', "Virtual method ", String(method.name), " does not start with underscore.");
+ }
}
// Add signals