Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cosmicpython/code
/ allocate
Method
allocate
src/allocation/domain/model.py:74–76 ·
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
test_allocating_to_a_batch_reduces_the_available_quantity
Function · 0.95
allocate
Method · 0.45
allocate
Function · 0.45
test_uow_can_retrieve_a_batch_and_allocate_to_it
Function · 0.45
try_to_allocate
Function · 0.45
test_allocation_is_idempotent
Function · 0.45
Calls
2
can_allocate
Method · 0.95
add
Method · 0.80
Tested by
4
test_allocating_to_a_batch_reduces_the_available_quantity
Function · 0.76
test_uow_can_retrieve_a_batch_and_allocate_to_it
Function · 0.36
try_to_allocate
Function · 0.36
test_allocation_is_idempotent
Function · 0.36