valueText.module
This package holds more than this page lists. See all of its files in its world.
README.md
Test.valueText
How the test framework renders a value nested inside a table for test output. Test.describeValue renders every failure message and raised error through it.
describeNested(value, depth, seen)rendersvaluestructurally ({code = "x", n = 2}): at most 8 entries per table, 2 levels deep, strings quoted and cut at 120 bytes, the hash part sorted so one value always renders the same text, a value with its own__tostringthrough it, and a cycle as<cycle>.
local ValueText = require("@builtin::assetTypes.testSuite.shared.valueText")
print(ValueText.describeNested({ code = "E1", line = 4 }, 0, {})) -- {code = "E1", line = 4}