< Summary

Information
Class: Backend.Model.Recipe
Assembly: Backend
File(s): D:\a\smart-meal-planner\smart-meal-planner\backend\Backend\Model\Recipe.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 16
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_UserId()100%1100%
get_Title()100%1100%
get_Source()100%1100%
get_Instructions()100%1100%
get_ImageURL()100%1100%
get_User()100%1100%
get_RecipeIngredients()100%1100%
get_MealPlanEntries()100%1100%

File(s)

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

#LineLine coverage
 1namespace Backend.Model
 2{
 3    public class Recipe
 4    {
 25        public int Id { get; set; }
 26        public int UserId { get; set; }
 27        public string Title { get; set; } = null!;
 28        public string Source { get; set; } = null!;
 29        public string Instructions { get; set; } = null!;
 210        public string? ImageURL { get; set; }
 11
 212        public User User { get; set; } = null!;
 1413        public ICollection<RecipeIngredient> RecipeIngredients { get; set; } = new List<RecipeIngredient>();
 1414        public ICollection<MealPlanEntry> MealPlanEntries { get; set; } = new List<MealPlanEntry>();
 15    }
 16}