TEST { { path = 'a.lua', content = [[ local = require 'lib' ]], }, { path = 'lib.lua', content = [[ return <~function~> () end ]], target = {22, 50}, }, } TEST { { path = 'a.lua', content = [[ local m = {} function m.() end return m ]], }, { path = 'b.lua', content = [[ local t = require 'a' t.() ]], }, } TEST { { path = 'a.lua', content = [[ return ]], }, { path = 'b.lua', content = [[ local t = require 'a' ]], }, { path = 'b.lua', content = [[ local t = require 'a' ]], }, { path = 'b.lua', content = [[ local t = require 'a' ]], }, { path = 'b.lua', content = [[ local = require 'a' ]], }, } TEST { { path = 'a.lua', content = [[ local function () end return { = , } ]] }, { path = 'b.lua', content = [[ local t = require 'a' local = t. () return { = , } ]] } } TEST { { path = 'a.lua', content = [[ local function () end return { = , } ]] }, { path = 'c.lua', content = [[ local t = require 'a' local = t. () return { = , } ]] }, { path = 'b.lua', content = [[ local t = require 'a' local = t. () return { = , } ]] } } TEST { { path = 'a.lua', content = [[ local function () end return { = , } ]] }, { path = 'b1.lua', content = [[ local t = require 'a' t.() ]] }, { path = 'b2.lua', content = [[ local t = require 'a' t.() ]] }, { path = 'b3.lua', content = [[ local t = require 'a' t.() ]] }, { path = 'b4.lua', content = [[ local t = require 'a' t.() ]] }, { path = 'b5.lua', content = [[ local t = require 'a' t.() ]] }, { path = 'b6.lua', content = [[ local t = require 'a' t.() ]] }, { path = 'b7.lua', content = [[ local t = require 'a' t.() ]] }, } TEST { { path = 'a.lua', content = [[ local = require 'b' return ]] }, { path = 'b.lua', content = [[ local = require 'a' return ]] }, }