MCPcopy Create free account
hub / github.com/modAL-python/modAL / MockFunction

Class MockFunction

tests/mock.py:4–12  ·  view source on GitHub ↗

Mock utility function for testing.

Source from the content-addressed store, hash-verified

2
3
4class MockFunction:
5 """
6 Mock utility function for testing.
7 """
8 def __init__(self, return_val):
9 self.return_val = return_val
10
11 def __call__(self, *args):
12 return self.return_val
13
14
15class MockEstimator:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…