< Summary

Class:BuilderInWorldLoadingTip
Assembly:BuildModeHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/BuilderInWorld/HUD/BuildModeHUD/Scripts/BuilderInWorldLoadingTip.cs
Covered lines:3
Uncovered lines:0
Coverable lines:3
Total lines:30
Line coverage:100% (3 of 3)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Configure(...)0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/BuilderInWorld/HUD/BuildModeHUD/Scripts/BuilderInWorldLoadingTip.cs

#LineLine coverage
 1using System;
 2using TMPro;
 3using UnityEngine;
 4using UnityEngine.UI;
 5
 6[Serializable]
 7public class BuilderInWorldLoadingTipModel
 8{
 9    public string tipMessage;
 10    public Sprite tipImage;
 11}
 12
 13/// <summary>
 14/// Represents a tip for the BIW loading.
 15/// </summary>
 16public class BuilderInWorldLoadingTip : MonoBehaviour
 17{
 18    [SerializeField] internal TMP_Text tipText;
 19    [SerializeField] internal Image tipImage;
 20
 21    /// <summary>
 22    /// Configures the tip with a message and an image.
 23    /// </summary>
 24    /// <param name="tipModel">Model with the needed tip info.</param>
 25    public void Configure(BuilderInWorldLoadingTipModel tipModel)
 26    {
 3227        tipText.text = tipModel.tipMessage;
 3228        tipImage.sprite = tipModel.tipImage;
 3229    }
 30}