dev

Testharness report for Codedoc/Procsrc.

This is the unit test report for Codedoc/Procsrc, which produces integrity checks and output for debugging Codedoc/Procsrc.

Refresh
Test suite statusPassed
Scribunto test cases3/3
Code coverage2/4

Unit test report for Codedoc/Procsrc.

Scribunto test cases

ProcLua:get_functions

2/2
StatusCodeExpectedActualDiffers at
Passing
ProcLua:get_functions("--% Build function commentary structure from text\n--@ test(string) program code\n--: (table) function structure\nfunction testfunction (test)\n    return {}\nend")
{ { name = "testfunction", parameters = { { name = "test", purpose = "program code.", type = "string" } }, purpose = "Build function commentary structure from text.", returns = { { purpose = "function structure.", type = "table" } } } }{ { name = "testfunction", parameters = { { name = "test", purpose = "program code.", type = "string" } }, purpose = "Build function commentary structure from text.", returns = { { purpose = "function structure.", type = "table" } } } }
Passing
ProcLua:get_functions("--% Build function commentary structure from text\n--@ test(string) program code\n--: (table) function structure\nfunction _testfunction (test)\n    return {}\nend")
{ { name = "_testfunction", parameters = { { name = "test", purpose = "program code.", type = "string" } }, purpose = "Build function commentary structure from text.", returns = { { purpose = "function structure.", type = "table" } } } }{ { name = "_testfunction", parameters = { { name = "test", purpose = "program code.", type = "string" } }, purpose = "Build function commentary structure from text.", returns = { { purpose = "function structure.", type = "table" } } } }

ProcLua:scan_lines

1/1
StatusCodeExpectedActualDiffers at
Passing
ProcLua:scan_lines("--% Build function commentary structure from text\n--@ test(string) program code\n--: (table) function structure\nfunction testfunction (test)\n    return {}\nend", "%%@:Tb-", "^%s*(f)unction%s+([%w:._]*)")
{ { "%", "Build function commentary structure from text" }, { "@", "test(string) program code" }, { ":", "(table) function structure" }, { "f", "testfunction" }, n = 0}{ { "%", "Build function commentary structure from text" }, { "@", "test(string) program code" }, { ":", "(table) function structure" }, { "f", "testfunction" }, n = 0}