MCPcopy
hub / github.com/scrapy/scrapy / increment

Method increment

tests/test_scheduler.py:75–77  ·  view source on GitHub ↗
(self, slot_key: str)

Source from the content-addressed store, hash-verified

73 return urlparse_cached(request).hostname or ""
74
75 def increment(self, slot_key: str) -> None:
76 slot = self.slots.setdefault(slot_key, MockSlot(active=[]))
77 slot.active.append(1)
78
79 def decrement(self, slot_key: str) -> None:
80 slot = self.slots[slot_key]

Callers 1

_assertMethod · 0.80

Calls 2

MockSlotClass · 0.85
setdefaultMethod · 0.45

Tested by

no test coverage detected