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
Copy file name to clipboardExpand all lines: test/tests/coverage.lua
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -297,7 +297,7 @@ equal(annotate("local x = 1"), "1")
297
297
equal(annotate("do return end"), "return")
298
298
equal(
299
299
annotate("local x = {foo={bar={baz=true}}} local y = x.foo.bar.baz"),
300
-
"{foo={bar={baz=true}}}x.foo.bar.baz"
300
+
"{{{truex.foo.bar.baz"
301
301
)
302
302
equal(
303
303
annotate("if true then local x = 1 else local y = 1 end"),
@@ -308,4 +308,5 @@ equal(
308
308
equal(get_count_string("local x = 1"), "1")
309
309
equal(get_count_string("local x = package.loaded.table"), "11111111111111111111")
310
310
equal(get_count_string("for i = 1+0, 8+0 do local x = 1 if i > 5 then local y = i end if i > 15 then local y = 1 end local x = 1 end"), "111001110000000000000080000888880000000000000000300000000888888000000000000000000000000000000008")
311
-
equal(get_count_string("local x = function() if false then local x = true end local x = 1 end x()"), "111111110000001111100000000000000000000000000000000000100000111")
311
+
equal(get_count_string("local x = function() if false then local x = true end local x = 1 end x()"), "111111110000001111100000000000000000000000000000000000100000111")
312
+
equal(get_count_string("local x = {x = function() local y = 1 end}"), "1000011111111")
0 commit comments