ug4

Functions

function test getSourceAndLine ()
 
function test message (msg)
 

Detailed Description

Utility functions for unit testing in Lua scripts.

Function Documentation

◆ getSourceAndLine()

function test getSourceAndLine ( )

location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / test_utils.lua :39-46

function test.getSourceAndLine()
local line = debug.getinfo(3).currentline
local file = string.sub(debug.getinfo(3).source, 2)
return file, line
end
int local(bglp_vertex_descriptor p)
Definition: parallel_matrix.h:57

References ug::detail::local(), and name.

◆ message()

function test message ( msg  )

/**

/**

/**

/**

/**

/**

/** location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / test_utils.lua :107-114

function test.message(msg)
file, line = test.getSourceAndLine()
boost_message_impl(msg, file, line)
end
end

Referenced by ug::bridge::MessageHubTest::post_message().