< Summary

Class:SortDropdownButton
Assembly:BuilderProjectsPanel
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/BuilderInWorld/HUD/ProjectsPanelHUD/Scripts/Views/SearchBarView/SortDropdownButton.cs
Covered lines:2
Uncovered lines:0
Coverable lines:2
Total lines:15
Line coverage:100% (2 of 2)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SetText(...)0%110100%
OnPointerDown(...)0%220100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/BuilderInWorld/HUD/ProjectsPanelHUD/Scripts/Views/SearchBarView/SortDropdownButton.cs

#LineLine coverage
 1using System;
 2using TMPro;
 3using UnityEngine;
 4using UnityEngine.EventSystems;
 5
 6internal class SortDropdownButton : MonoBehaviour, IPointerDownHandler
 7{
 8    public event Action<string> OnSelected;
 9
 10    [SerializeField] internal TextMeshProUGUI label;
 11
 1012    public void SetText(string text) { label.text = text; }
 13
 214    void IPointerDownHandler.OnPointerDown(PointerEventData eventData) { OnSelected?.Invoke(label.text); }
 15}