You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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 scopesThe text was updated successfully, but these errors were encountered: