Filtering by module name
This commit is contained in:
parent
75d955f666
commit
f932ddcde5
2 changed files with 14 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue