Commit 3c852f3
committed
Replace CallStack.size() with peek() for path stack integrity test
Instead of adding a new public size() method to CallStack, use the existing
public peek() method to verify stack integrity. This achieves the same
test coverage (ensuring push/pop operations are balanced) without
expanding the public API surface.
The test now verifies that the top path on the stack remains the same
before and after rendering, which is equivalent to checking stack size
but uses only existing public methods.1 parent a800f68 commit 3c852f3
File tree
2 files changed
+6
-10
lines changed- src
- main/java/com/hubspot/jinjava/interpret
- test/java/com/hubspot/jinjava/lib/tag
2 files changed
+6
-10
lines changedLines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 114 | | |
122 | 115 | | |
123 | 116 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
208 | 211 | | |
209 | 212 | | |
210 | 213 | | |
211 | | - | |
212 | | - | |
| 214 | + | |
| 215 | + | |
213 | 216 | | |
214 | 217 | | |
215 | 218 | | |
| |||
0 commit comments