Skip to content

pathpol: Do not use pathpol.Policy directly #3087

@lukedirtwalker

Description

@lukedirtwalker

Instead define interfaces at point of usage for what is actually needed.
This leads to more testable code and make Policy easier to refactor.
What most users of policies care about is the Act filtering method.
Also we should rename this function to Filter.

Metadata

Metadata

Labels

refactorChange that focuses around reducing tech debt

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions