Testing

A library for testing lua workflows. This library is always available, and does not need to be imported.


Source: pkg/lua/lib/test.go | Import: test

Functions


assert

assert(cond, msg?)

Arguments

  • cond bool
  • msg string
assert_image

assert_image(img1, img2, msg?)

Arguments

  • img1 int<collection.IMAGE>
  • img2 int<collection.IMAGE>
  • msg string
assert_schema

assert_schema(value, schema, msg?)

Arguments

  • value table<any>
  • schema table<any>
  • msg string
assert_imported

assert_imported(name, msg?)

Arguments

  • name string
  • msg string
assert_api_version

assert_api_version(version, msg?)

Arguments

  • version int
  • msg string
benchmark_start

benchmark_start() -> int

Return Values

  • int - Start time.
benchmark_end

benchmark_end(start) -> int

Arguments

  • start int
Return Values

  • int - Ellapsed time.