Merge pull request #6844 from astenmark/fix-6811-private-file-drops-tests

Fix #6811: collect @(test) procs from #+private file by iterating c->…
This commit is contained in:
gingerBill
2026-06-15 11:23:22 +01:00
committed by GitHub

View File

@@ -2875,9 +2875,11 @@ gb_internal void collect_testing_procedures_of_package(Checker *c, AstPackage *p
InternedString interned = string_interner_insert(str_lit("Test_Signature"), 0, &hash);
Entity *test_signature = scope_lookup_current(testing_scope, interned, hash);
Scope *s = pkg->scope;
for (auto const &entry : s->elements) {
Entity *e = entry.value;
for_array(i, c->info.entities) {
Entity *e = c->info.entities[i];
if (e->pkg != pkg) {
continue;
}
if (e->kind != Entity_Procedure) {
continue;
}