Jump to content

"Module:Lua-mock/Spy" གི་བསྐྱར་ཞིབ་སྤྱོད་ཤུལ།

སེལ་འཐུ་སོར་སོ་: ག་བསྡུར་འབད་ནི་དང་ གཤམ་གྱི་བཙུགས་ལྡེ་ ཡང་ན་ ཨེབ་རྟ་ལུ་ཨེབ་ནི་ལུ་ ཐོན་རིམ་གྱི་རེ་ཌིའོ་སྒྲོམ་ལུ་རྟགས་བཀལ།
འབད་ཤུལ་: (ཀཱར་) = ད་ལྟོའི་ཐོན་རིམ་ལས་སོར་སོ་ (མཇུག་) = ཧེ་མའི་ཐོན་རིམ་ལས་སོར་སོ་ M = ཞུན་དག་ཆུང་ཀུ།

༡༦ སྤྱི་ཟླ་དྲུག་པ། ༢༠༢༤

  • ཀཱར།མཇུག། ༡༥:༥༡༡༥:༥༡, ༡༦ སྤྱི་ཟླ་དྲུག་པ། ༢༠༢༤ 110.235.217.74 བློ། ༤,༡༩༤ བའིཊིསི +༤,༡༩༤ Created page with "--- @classmod Spy --- Wraps a function and records the calls. -- For each call the arguments and return values are saved. local ValueMatcher = require 'Module:Lua-mock/ValueMatcher' local Spy = {} Spy.__index = Spy function Spy:__call( ... ) local returnValues = { self.wrappedFn(...) } local call = { arguments = {...}, returnValues = returnValues } table.insert(self.calls, call) return unpack(returnValues) end function Spy:reset..."
"https://dz.wikipedia.org/wiki/Module:Lua-mock/Spy" ལས་ སླར་འདྲེན་འབད་ཡོདཔ།