containOnlyFunctionsWithVisibility

Asserts that all top-level functions in matching modules have one of the specified visibilities.