Home | History | Annotate | Download | only in lua

Lines Matching defs:instance

1946             local name, instance = v[1], v[2]
1947 if M.LuaUnit.asFunction(instance) then
1948 table.insert( result, { name, instance } )
1950 if type(instance) ~= 'table' then
1951 error( 'Instance must be a table or a function, not a '..type(instance)..', value '..prettystr(instance))
1955 local methodInstance = instance[methodName]
1959 table.insert( result, { name, instance } )
1961 M.LuaUnit.expandOneClass( result, name, instance )
1972 -- local name, instance = v[1], v[2]
1985 -- * { function name, function instance }
1986 -- * { class name, class instance }
1987 -- * { class.method name, class instance }
1997 local name, instance = v[1], v[2]
1998 if M.LuaUnit.asFunction(instance) then
1999 self:execOneFunction( nil, name, nil, instance )
2001 if type(instance) ~= 'table' then
2002 error( 'Instance must be a table or a function, not a '..type(instance)..', value '..prettystr(instance))
2006 methodInstance = instance[methodName]
2010 self:execOneFunction( className, methodName, instance, methodInstance )
2031 local className, methodName, instanceName, instance, methodInstance
2038 instance = _G[instanceName]
2040 if instance == nil then
2044 if type(instance) ~= 'table' then
2045 error( 'Instance of '..instanceName..' must be a table, not '..type(instance))
2048 methodInstance = instance[methodName]
2056 instance = _G[instanceName]
2059 if instance == nil then
2063 if (type(instance) ~= 'table' and type(instance) ~= 'function') then
2067 table.insert( listOfNameAndInst, { name, instance } )