< Summary

Class:AvatarEditorHUDModel
Assembly:AvatarEditorHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/AvatarEditorHUD/Scripts/AvatarEditorHUDModel.cs
Covered lines:3
Uncovered lines:0
Coverable lines:3
Total lines:24
Line coverage:100% (3 of 3)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
AvatarEditorHUDModel()0%110100%
ToAvatarModel()0%220100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/AvatarEditorHUD/Scripts/AvatarEditorHUDModel.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using System.Linq;
 3using UnityEngine;
 4
 5public class AvatarEditorHUDModel
 6{
 7    public WearableItem bodyShape;
 468    public List<WearableItem> wearables = new List<WearableItem>();
 9    public Color hairColor;
 10    public Color skinColor;
 11    public Color eyesColor;
 12
 13    public AvatarModel ToAvatarModel()
 14    {
 11815        return new AvatarModel()
 16        {
 17            bodyShape = bodyShape.id,
 74418            wearables = wearables.Select(x => x.id).ToList(),
 19            hairColor = hairColor,
 20            skinColor = skinColor,
 21            eyeColor = eyesColor
 22        };
 23    }
 24}