test(vterm): move test functions into vterm_test fixture

In order to run unittests with a release build, we need the test
functions to be accessible when NDEBUG is defined. Moving the functions
into the test fixture ensures they are available and only available for
use by the unit tests.
This commit is contained in:
James McCoy
2024-11-27 11:17:42 -05:00
parent 3d3a99e69c
commit 7a367c6967
5 changed files with 546 additions and 541 deletions

View File

@@ -79,7 +79,11 @@ local bit = require('bit')
--- @field vterm_state_set_callbacks function
--- @field vterm_state_set_selection_callbacks function
--- @field vterm_state_set_unrecognised_fallbacks function
local vterm = t.cimport('./src/vterm/vterm.h', './src/vterm/vterm_internal.h')
local vterm = t.cimport(
'./src/vterm/vterm.h',
'./src/vterm/vterm_internal.h',
'./test/unit/fixtures/vterm_test.h'
)
--- @return string
local function read_rm()