ProductService

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total31 of 65495%4 of 1675%4497141041
getAllProducts()214467%1150%1261501
getActiveProducts(int, int, String, String)94683%1150%121701
findAllActive(Pageable)13997%1150%120701
debugProductCount()68100%1375%1301801
lambda$decreaseStock$3(Integer, Long, Product)44100%2100%020701
getProductById(Long)25100%2100%020701
findById(Long)23100%2100%020601
decreaseStock(Long, Integer)20100%n/a010401
updateStock(Long, Integer)19100%n/a010401
updateProduct(Long, Product)18100%n/a010401
getRelatedProducts(String, Long, int)15100%n/a010301
getPopularProducts(int)14100%n/a010301
getNewestProducts(int)14100%n/a010301
createProduct(Product)14100%n/a010301
findProductsWithFilters(String, BigDecimal, BigDecimal, Boolean, String, Pageable)13100%n/a010201
getPopularProducts()12100%n/a010301
getNewArrivals()12100%n/a010301
getProductsByPriceRange(BigDecimal, BigDecimal)11100%n/a010201
saveProduct(Product)11100%n/a010201
getLowStockProducts(int)11100%n/a010201
lambda$updateStock$2(Integer, Product)11100%n/a010301
findByCategory(String, Pageable)10100%n/a010201
searchProducts(String)10100%n/a010201
searchProducts(String, Pageable)10100%n/a010201
getProductsByCategory(String)9100%n/a010201
deleteProduct(Long)9100%n/a010301
getProductByIdWithoutView(Long)9100%n/a010201
hardDeleteProduct(Long)9100%n/a010301
lambda$updateProduct$0(Product, Long, Product)9100%n/a010201
getAllCategories()7100%n/a010201
getAllActiveProducts()7100%n/a010201
getProductsOnSale()7100%n/a010201
getTotalProductsOnSale()6100%n/a010101
ProductService(ProductRepository)6100%n/a010101
lambda$updateProduct$1(Long)6100%n/a010101
incrementViewCount(Long)5100%n/a010201
getActiveProductsByCategory(String)4100%n/a010101
searchActiveProducts(String)4100%n/a010101
getTotalActiveProducts()4100%n/a010101
getAveragePrice()4100%n/a010101
static {...}4100%n/a010101