Lines Matching refs:classInstance
2875 function M.LuaUnit:protectedCall(classInstance, methodInstance, prettyFuncName)
2889 if classInstance then
2891 ok, err = xpcall( function () methodInstance(classInstance) end, err_handler )
2921 function M.LuaUnit:execOneFunction(className, methodName, classInstance, methodInstance)
2955 if classInstance then
2956 local func = self.asFunction( classInstance.setUp ) or
2957 self.asFunction( classInstance.Setup ) or
2958 self.asFunction( classInstance.setup ) or
2959 self.asFunction( classInstance.SetUp )
2961 self:updateStatus(self:protectedCall(classInstance, func, className..'.setUp'))
2967 self:updateStatus(self:protectedCall(classInstance, methodInstance, prettyFuncName))
2971 if classInstance then
2972 local func = self.asFunction( classInstance.tearDown ) or
2973 self.asFunction( classInstance.TearDown ) or
2974 self.asFunction( classInstance.teardown ) or
2975 self.asFunction( classInstance.Teardown )
2977 … self:updateStatus(self:protectedCall(classInstance, func, className..'.tearDown'))
2985 function M.LuaUnit.expandOneClass( result, className, classInstance )
2991 for methodName, methodInstance in sortedPairs(classInstance) do
2993 table.insert( result, { className..'.'..methodName, classInstance } )