Discover Packages
github.com/CaliLuke/loom
clue
mock
package
Version:
v1.0.13
Opens a new window with list of versions in this module.
Published: May 12, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Mock implementation of a service client.
New returns a new mock client.
Add adds f to the mock sequence.
HasMore returns true if the mock sequence isn't fully consumed.
If there is no mock left in the sequence then Next returns the permanent mock
for name if any, nil otherwise. If there are mocks left in the sequence then
Next returns the next mock if its name is name, nil otherwise.
Set a permanent mock for the function with the given name.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.