diff --git a/slither/printers/summary/entry_points.py b/slither/printers/summary/entry_points.py index ab4d74756..636c0422c 100644 --- a/slither/printers/summary/entry_points.py +++ b/slither/printers/summary/entry_points.py @@ -33,9 +33,11 @@ def output(self, _filename) -> Output: and not c.is_abstract and "lib/" not in c.source_mapping.filename.absolute and "node_modules/" not in c.source_mapping.filename.absolute - and not any( - mock in c.source_mapping.filename.absolute.lower() for mock in ["mock", "mocks"] - ) + and "test/" not in c.source_mapping.filename.absolute + and "tests/" not in c.source_mapping.filename.absolute + and "mock/" not in c.source_mapping.filename.absolute + and "mocks/" not in c.source_mapping.filename.absolute + and "scripts/" not in c.source_mapping.filename.absolute ), key=lambda x: x.name, ):