Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hook for input canonicalization #6

Open
greschd opened this issue Feb 21, 2020 · 1 comment
Open

Add hook for input canonicalization #6

greschd opened this issue Feb 21, 2020 · 1 comment
Labels
topic/mock-code Concerns the code mocking feature

Comments

@greschd
Copy link
Member

greschd commented Feb 21, 2020

First, we should collect cases where the current method fails, to get a better view of the requirements.

@greschd
Copy link
Member Author

greschd commented Feb 21, 2020

One way of implementing canonicalization would be taking a mapping of (possibly globbed) filenames to functions which canonicalize the file content, and apply this when reading the file content (in the hashing function).

Common canonicalization functions (e.g. strip certain lines) could be provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/mock-code Concerns the code mocking feature
Projects
None yet
Development

No branches or pull requests

1 participant