diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-06-04 13:25:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-04 13:25:57 +0200 |
| commit | f9d59ef6d444fb6723c6ccdb9395abd27ff1ebc0 (patch) | |
| tree | 19211c7bd1ca9481c0afe88da48eb19f99893112 /src/checker.cpp | |
| parent | eb93779f630870b66103c559b07b855288dc8aa4 (diff) | |
| parent | c3b94b9e1d19282a36b005099562917da3c1e142 (diff) | |
Merge branch 'master' into fix-fmt-compquat-sign
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 29 |
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; - } - } - } |