-
Notifications
You must be signed in to change notification settings - Fork 169
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
Detect fromTag cycle. #221
Conversation
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.
Quick question.
public void pushFromStack(String path, int lineNumber, int startPosition) { | ||
fromStack.push(path, lineNumber, startPosition); | ||
} | ||
public void popFromStack() { |
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.
nit: missing newline.
@@ -54,6 +56,13 @@ public void importedContextExposesVars() { | |||
.contains("wrap-padding: padding-left:42px;padding-right:42px"); | |||
} | |||
|
|||
@Test | |||
public void importedCycleDected() { |
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.
Is it possible for A to import from B which imports from C which imports from A? If so can we have a test to make sure it catches this cycle as well?
Codecov Report
@@ Coverage Diff @@
## master #221 +/- ##
============================================
+ Coverage 71.28% 71.44% +0.16%
- Complexity 1365 1373 +8
============================================
Files 217 218 +1
Lines 4315 4336 +21
Branches 687 689 +2
============================================
+ Hits 3076 3098 +22
Misses 998 998
+ Partials 241 240 -1
Continue to review full report at Codecov.
|
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.
LGTM
Recursive fromTag will cause stack overflow.