Filtering by module name

This commit is contained in:
Nathan McCarty 2025-01-26 15:23:38 -05:00
parent 75d955f666
commit f932ddcde5
2 changed files with 14 additions and 0 deletions

View file

@ -69,6 +69,11 @@ class PackageRunables {
# TODO: Add benchmarks
#| A map from the name of the module to a list of tests
has ModuleTests:D %.tests is required;
#| Check to see if this package contains a given module
method contains-module(Str $module-name --> Bool) {
%!tests{$module-name}:exists
}
}
#| Structure representing the root of what idris considers a package directory,