Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Lua-mock: Revision history

From Kenshi Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

26 February 2025

  • curprev 05:3505:35, 26 February 2025 Prd talk contribs 1,030 bytes +1,030 Created page with "--- @classmod Mock --- Combination of Spy and ProgrammableFn. -- See @{Spy} and @{ProgrammableFn} for details. local ProgrammableFn = require 'Module:Lua-mock/ProgrammableFn' local Spy = require 'Module:Lua-mock/Spy' local Mock = {} Mock.__index = Mock function Mock:whenCalled( behaviour ) self.programmable:whenCalled(behaviour) return self end function Mock:__call( ... ) return self.spy(...) end function Mock:reset() self.spy:reset() self.pro..."