Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cosmicpython/code
/ can_allocate
Method
can_allocate
src/allocation/domain/model.py:89–90 ·
view source on GitHub ↗
(self, line: OrderLine)
Source
from the content-addressed store, hash-verified
source not stored for this graph (policy: none)
Callers
6
allocate
Method · 0.95
test_cannot_allocate_if_skus_do_not_match
Function · 0.95
allocate
Method · 0.80
test_can_allocate_if_available_greater_than_required
Function · 0.80
test_cannot_allocate_if_available_smaller_than_required
Function · 0.80
test_can_allocate_if_available_equal_to_required
Function · 0.80
Calls
no outgoing calls
Tested by
4
test_cannot_allocate_if_skus_do_not_match
Function · 0.76
test_can_allocate_if_available_greater_than_required
Function · 0.64
test_cannot_allocate_if_available_smaller_than_required
Function · 0.64
test_can_allocate_if_available_equal_to_required
Function · 0.64