Skip to content

Commit

Permalink
More tests and api checks
Browse files Browse the repository at this point in the history
  • Loading branch information
SnorlaxAssist committed Sep 24, 2024
1 parent 969e270 commit 97cd5d7
Show file tree
Hide file tree
Showing 2 changed files with 533 additions and 77 deletions.
4 changes: 4 additions & 0 deletions Source.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ end
local function getmaxline(module, protoid)
local proto = if (protoid == nil) then module.mainProto else module.protoList[protoid]
local size = -1

assert(proto.lineinfoenabled, "proto must have debug enabled")

for pc = 1, proto.sizecode do
local line = proto.instructionlineinfo[pc]
Expand All @@ -201,6 +203,8 @@ end
local function getcoverage(module, protoid, depth, callback, size)
local proto = if (protoid == nil) then module.mainProto else module.protoList[protoid]

assert(proto.lineinfoenabled, "proto must have debug enabled")

local buffer = {}

for pc = 1, proto.sizecode do
Expand Down
Loading

0 comments on commit 97cd5d7

Please sign in to comment.