Skip to content

Automatically test scope handler edge cases #2064

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

Open
Tracked by #1524
pokey opened this issue Nov 28, 2023 · 0 comments
Open
Tracked by #1524

Automatically test scope handler edge cases #2064

pokey opened this issue Nov 28, 2023 · 0 comments

Comments

@pokey
Copy link
Member

pokey commented Nov 28, 2023

In addition to tests that just check the dump of all scopes, we want to automatically test edge cases, because in reality scopes aren't used by dumping everything; they iterate from a position. Can handle this by taking the dumped scopes and creating a dummy scope handler that just yields them all, so they'll get filtered by BaseScopeHandler, and then comparing the output of this scope handler to the real scope handler at various corner cases, eg start position at beginning / end of various scopes and iterating in various directions with various hints. Should be pretty performant because there won't be that many test cases and it's not doing a full command, just iterating scopes

@pokey pokey changed the title In addition to tests that just check the dump of all scopes, we want to automatically test edge cases, because in reality scopes aren't used by dumping everything; they iterate from a position. Can handle this by taking the dumped scopes and creating a dummy scope handler that just yields them all, so they'll get filtered by BaseScopeHandler, and then comparing the output of this scope handler to the real scope handler at various corner cases, eg start position at beginning / end of various scopes and iterating in various directions with various hints. Should be pretty performant because there won't be that many test cases and it's not doing a full command, just iterating scopes Automatically test scope handler edge cases Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant