File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ -- scripts/scan_kits.lua
2+ package.path = package.path .. " ;./lua/?.lua;./lua/?/init.lua"
3+
4+ local scanner = require (" cmake-tools.scanner" )
5+
6+ local function main ()
7+ local kits = scanner .scan_for_kits ()
8+ print (vim .inspect (kits )) -- Use simple print in standalone
9+ end
10+
11+ main ()
Original file line number Diff line number Diff line change 1+ -- tests/scanner_spec.lua
2+ describe (" scanner" , function ()
3+ it (" scan for kits" , function ()
4+ local scanner = require (" cmake-tools.scanner" )
5+ local kits = scanner .scan_for_kits ()
6+ assert (# kits > 0 )
7+ end )
8+ end )
9+
10+ describe (" kits" , function ()
11+ it (" parse from global file" , function ()
12+ local kit = require (" cmake-tools.kits" )
13+ local const = require (" cmake-tools.const" )
14+ local kits = kit .get (const .cmake_kits_path , vim .loop .cwd ())
15+ assert (# kits > 0 )
16+ end )
17+ end )
You can’t perform that action at this time.
0 commit comments