containOnlyFunctionsWithVisibility

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