File tree Expand file tree Collapse file tree
internal/rules/duplicatedcontent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -811,7 +811,6 @@ func TestGeneratedRanges_NestedSameNamePair(t *testing.T) {
811811 // the outer close, so both "before inner" and "after inner" are inside it.
812812 beforeInnerOffset := strings .Index (src , "before inner" )
813813 afterInnerOffset := strings .Index (src , "after inner" )
814- outerCloseOffset := strings .Index (src , "<?/include?>\n " )
815814 // Find the *last* <?/include?> — that's the outer close.
816815 lastCloseOffset := strings .LastIndex (src , "<?/include?>" )
817816 assert .LessOrEqual (t , ranges [0 ][0 ], beforeInnerOffset ,
@@ -820,7 +819,6 @@ func TestGeneratedRanges_NestedSameNamePair(t *testing.T) {
820819 "range end must be after 'after inner'" )
821820 assert .Equal (t , lastCloseOffset , ranges [0 ][1 ],
822821 "range end must point to the outer <?/include?> marker" )
823- _ = outerCloseOffset // suppress unused warning
824822}
825823
826824func TestCheck_SkipsNestedIncludeGeneratedSection (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments