-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
A bit of cleanup, improve test coverage #1020
Conversation
else: | ||
titem = TransitiveItem(origin, trule, originator, start) | ||
previous = transitives[start][origin] = titem | ||
# def create_leo_transitives(origin, start): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why leave it as a comment? If we need it later, we still have git history
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll probably forget it even exists..
Now it's almost like a TODO. But perhaps I can replace it with a TODO and a git-ref
before = ( expansion.name for expansion in self.rule.expansion[:self.ptr] ) | ||
after = ( expansion.name for expansion in self.rule.expansion[self.ptr:] ) | ||
return '{} : {} -> {}* {} ({}, {})'.format(self.recognized.name, self.rule.origin.name, ' '.join(before), ' '.join(after), self.column, self.start) | ||
# class TransitiveItem(Item): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
Codecov Report
@@ Coverage Diff @@
## master #1020 +/- ##
==========================================
+ Coverage 87.11% 87.77% +0.65%
==========================================
Files 50 50
Lines 7208 7155 -53
==========================================
+ Hits 6279 6280 +1
+ Misses 929 875 -54
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Not sure there's anything to review, but just in case.