ProductService

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total1,249 of 1,2530%156 of 1560%1221232942954445
setProductStock(Product, Integer)1210%120%77252511
getProductStock(Product)1020%100%66212111
getProductStatistics()760%20%22232311
isProductOnSale(Product)710%200%1111242411
demonstrateProductMethods()640%20%22111111
isProductActive(Product)510%80%55141411
saveProduct(Product)480%60%44121211
lambda$updateProduct$0(Product, Product)470%100%66131311
validateProduct(Product)460%120%779911
deleteProduct(Long)450%40%33121211
getPopularProducts(int)420%20%229911
searchProducts(String)380%40%33101011
getProductById(Long)330%40%339911
getAveragePriceByCategory(String)330%20%229911
searchActiveProducts(String)310%40%338811
getProductsByCategory(String)300%40%337711
lambda$searchActiveProducts$2(String, Product)280%100%665511
getNewestProducts(int)270%20%228811
isInPriceRange(BigDecimal, BigDecimal, BigDecimal)260%100%666611
getProductsOnSale()220%n/a116611
getProductsByPriceRange(BigDecimal, BigDecimal)200%n/a115511
countProductsByCategory(String)200%40%334411
lambda$getNewestProducts$3(Product, Product)200%40%333311
getAllCategories()180%n/a117711
updateProduct(Long, Product)170%n/a114411
getLowStockProducts(int)170%n/a114411
hasMethod(Object, String)160%20%225511
getAllProducts()150%n/a114411
getAllActiveProducts()140%n/a114411
isStockBelowThreshold(Product, int)140%40%332211
isValidCategory(String)100%40%331111
ProductService(ProductRepository)90%n/a114411
existsById(Long)90%20%222211
getProductByIdWithoutView(Long)80%n/a112211
lambda$getProductStatistics$8(Product)80%20%221111
getProductByIdOrNull(Long)70%n/a111111
lambda$getProductsByPriceRange$5(BigDecimal, BigDecimal, Product)70%n/a111111
lambda$getProductsByPriceRange$4(Product)70%20%221111
lambda$getProductStatistics$10(BigDecimal)60%20%221111
lambda$getAveragePriceByCategory$7(BigDecimal)60%20%221111
lambda$updateProduct$1(Long)60%n/a111111
lambda$getProductStatistics$9(Product)50%n/a111111
lambda$getLowStockProducts$6(int, Product)50%n/a111111
findById(Long)40%n/a111111
static {...}4100%n/a010101