InventoryService

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total172 of 1,51288%27 of 8869%288436332340
adjustStock(String, Long, Long, long, String)3217984%6440%5664101
getActiveWarehouseByCode(String)280%20%226611
normalizeItems(List)154976%5758%5731301
listWarehouses()150%n/a113311
reserve(InventoryModels.ReserveInventoryCommand)1025896%31583%31025801
releaseReservation(String, ReservationStatus, boolean)1012092%21487%2922801
findExpiredReservationNumbers(int)80%n/a112211
sha256(String)71161%n/a012401
writeJson(Object)7541%n/a012301
confirmReservation(String)512296%1990%1612601
rollbackReserved(Long, List, Instant)52382%1375%131501
requireBalance(Long, Long)52080%1150%121601
getReservation(String)51878%1150%121501
requireActiveWarehouse(Long)51676%2250%231401
requireLockedReservation(String)5964%1150%121401
requireReserved(InventoryReservationEntity)5758%1150%121301
requireUpdated(int)5444%1150%121301
appendOutboxEvent(String, String, String, int, Map, Instant)102100%n/a0102501
insertMovement(String, Long, Long, String, MovementType, long, InventoryBalanceEntity, String, Instant)44100%n/a0101301
reservationHash(InventoryModels.ReserveInventoryCommand, List)42100%n/a010601
createWarehouse(String, String)37100%n/a0101001
appendReservationEvent(InventoryReservationEntity, String, List, Instant)35100%n/a0101301
getStockSummary(Long)33100%n/a010501
InventoryService(WarehouseMapper, InventoryBalanceMapper, StockAdjustmentMapper, InventoryReservationMapper, InventoryReservationItemMapper, StockMovementMapper, OutboxEventMapper, ObjectMapper)27100%n/a0101001
reservationView(InventoryReservationEntity)27100%n/a0101001
stockPosition(InventoryBalanceEntity)24100%n/a010701
warehouseView(WarehouseEntity)15100%n/a010201
transitionReservation(InventoryReservationEntity, ReservationStatus, Instant)14100%n/a010401
reservationItems(Long)14100%n/a010301
lambda$normalizeItems$1(Map.Entry)11100%n/a010101
requireSameHash(String, String)10100%2100%020301
lambda$reservationView$4(InventoryReservationItemEntity)9100%n/a010101
lambda$toCommands$3(InventoryReservationItemEntity)9100%n/a010101
lambda$appendReservationEvent$0(InventoryModels.ReservationLineCommand)9100%n/a010101
getStockPosition(Long, Long)7100%n/a010101
releaseReservation(String)6100%n/a010101
expireReservation(String)6100%n/a010101
toCommands(List)6100%n/a010301
movementNo(String, MovementType, Long)6100%n/a010101
lambda$reservationHash$2(InventoryModels.ReservationLineCommand)6100%n/a010101