< Summary

Information
Class: Backend.Model.Ingredient
Assembly: Backend
File(s): D:\a\smart-meal-planner\smart-meal-planner\backend\Backend\Model\Ingredient.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 13
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Id()100%1100%
get_Name()100%1100%
get_CategoryId()100%1100%
get_Category()100%1100%
get_PantryItems()100%1100%
get_RecipeIngredients()100%1100%

File(s)

D:\a\smart-meal-planner\smart-meal-planner\backend\Backend\Model\Ingredient.cs

#LineLine coverage
 1namespace Backend.Model
 2{
 3    public class Ingredient
 4    {
 25        public int Id { get; set; }
 26        public string Name { get; set; } = null!;
 27        public int CategoryId { get; set; }
 8
 29        public Category Category { get; set; } = null!;
 1110        public ICollection<PantryItem> PantryItems { get; set; } = new List<PantryItem>();
 1111        public ICollection<RecipeIngredient> RecipeIngredients { get; set; } = new List<RecipeIngredient>();
 12    }
 13}