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:15–31 ·
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_prefers_warehouse_batches_to_shipments
Function · 0.95
test_prefers_earlier_batches
Function · 0.95
test_returns_allocated_batch_ref
Function · 0.95
test_outputs_allocated_event
Function · 0.95
test_records_out_of_stock_event_if_cannot_allocate
Function · 0.95
test_increments_version_number
Function · 0.95
Calls
2
can_allocate
Method · 0.80
allocate
Method · 0.45
Tested by
6
test_prefers_warehouse_batches_to_shipments
Function · 0.76
test_prefers_earlier_batches
Function · 0.76
test_returns_allocated_batch_ref
Function · 0.76
test_outputs_allocated_event
Function · 0.76
test_records_out_of_stock_event_if_cannot_allocate
Function · 0.76
test_increments_version_number
Function · 0.76