MCPcopy Create free account
hub / github.com/apple/coremltools / MultipleTimes

Method MultipleTimes

deps/protobuf/python/mox.py:704–716  ·  view source on GitHub ↗

Move this method into group of calls which may be called multiple times. A group of repeating calls must be defined together, and must be executed in full before the next expected method can be called. Args: group_name: the name of the unordered group. Returns: self

(self, group_name="default")

Source from the content-addressed store, hash-verified

702 return self._CheckAndCreateNewGroup(group_name, UnorderedGroup)
703
704 def MultipleTimes(self, group_name="default"):
705 """Move this method into group of calls which may be called multiple times.
706
707 A group of repeating calls must be defined together, and must be executed in
708 full before the next expected method can be called.
709
710 Args:
711 group_name: the name of the unordered group.
712
713 Returns:
714 self
715 """
716 return self._CheckAndCreateNewGroup(group_name, MultipleTimesGroup)
717
718 def AndReturn(self, return_value):
719 """Set the value to return when this method is called.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected