< Summary

Class:DCL.MyAccount.MyProfileAdditionalInfoEntryComponentView
Assembly:MyAccountHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/MyAccountHUD/MyProfileAdditionalInfoEntryComponentView.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:30
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Awake()0%2100%
Set(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/MyAccountHUD/MyProfileAdditionalInfoEntryComponentView.cs

#LineLine coverage
 1using System;
 2using TMPro;
 3using UnityEngine;
 4using UnityEngine.UI;
 5
 6namespace DCL.MyAccount
 7{
 8    public class MyProfileAdditionalInfoEntryComponentView : MonoBehaviour
 9    {
 10        [SerializeField] private TMP_Text titleLabel;
 11        [SerializeField] private TMP_Text valueLabel;
 12        [SerializeField] private Button removeButton;
 13
 14        private string id;
 15
 16        public event Action<string> OnRemoved;
 17
 18        private void Awake()
 19        {
 020            removeButton.onClick.AddListener(() => OnRemoved?.Invoke(id));
 021        }
 22
 23        public void Set(string id, string title, string value)
 24        {
 025            this.id = id;
 026            titleLabel.text = title;
 027            valueLabel.text = value;
 028        }
 29    }
 30}