aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2024-06-04 13:23:52 +0200
committerGitHub <noreply@github.com>2024-06-04 13:23:52 +0200
commitc3b94b9e1d19282a36b005099562917da3c1e142 (patch)
tree4e32f9cf7bd634a3244d1053f713c30a6776c1f9 /src/checker.cpp
parent02f11dfdedcb10f3f45983692898e81b8f315030 (diff)
parent0ff130d82bf058a41f77c08c8c0c63fb9e205a13 (diff)
Merge pull request #3646 from Feoramund/multi-test
Refactor the test runner
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 2fd274975..97e685d33 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -5852,35 +5852,6 @@ gb_internal void remove_neighbouring_duplicate_entires_from_sorted_array(Array<E
gb_internal void check_test_procedures(Checker *c) {
array_sort(c->info.testing_procedures, init_procedures_cmp);
remove_neighbouring_duplicate_entires_from_sorted_array(&c->info.testing_procedures);
-
- if (build_context.test_names.entries.count == 0) {
- return;
- }
-
- AstPackage *pkg = c->info.init_package;
- Scope *s = pkg->scope;
-
- for (String const &name : build_context.test_names) {
- Entity *e = scope_lookup(s, name);
- if (e == nullptr) {
- Token tok = {};
- if (pkg->files.count != 0) {
- tok = pkg->files[0]->tokens[0];
- }
- error(tok, "Unable to find the test '%.*s' in 'package %.*s' ", LIT(name), LIT(pkg->name));
- }
- }
-
- for (isize i = 0; i < c->info.testing_procedures.count; /**/) {
- Entity *e = c->info.testing_procedures[i];
- String name = e->token.string;
- if (!string_set_exists(&build_context.test_names, name)) {
- array_ordered_remove(&c->info.testing_procedures, i);
- } else {
- i += 1;
- }
- }
-
}