< Summary

Class:PlaceLongCardAnimator
Assembly:ExploreV2
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/ExploreV2/Scripts/Sections/PlacesAndEventsSection/SubSections/PlacesSubSection/PlaceCard/PlaceLongCardAnimator.cs
Covered lines:3
Uncovered lines:3
Coverable lines:6
Total lines:30
Line coverage:50% (3 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Focus()0%2100%
Idle()0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/ExploreV2/Scripts/Sections/PlacesAndEventsSection/SubSections/PlacesSubSection/PlaceCard/PlaceLongCardAnimator.cs

#LineLine coverage
 1using DG.Tweening;
 2using UnityEngine;
 3
 4public class PlaceLongCardAnimator : PlaceCardAnimatorBase
 5{
 6    private const float DURATION = 0.167f;
 7
 8    [SerializeField] private CanvasGroup cardShadow;
 9    [SerializeField] private RectTransform infoTransform;
 10
 11    public override void Focus()
 12    {
 013        cardShadow.DOFade(1, DURATION)
 14                  .SetEase(Ease.Linear)
 15                  .SetLink(cardShadow.gameObject, LinkBehaviour.KillOnDestroy);
 016        infoTransform.DOAnchorPosY(5, DURATION)
 17                     .SetEase(Ease.InOutQuad)
 18                     .SetLink(infoTransform.gameObject, LinkBehaviour.KillOnDestroy);
 019    }
 20
 21    public override void Idle()
 22    {
 19623        cardShadow.DOFade(0, DURATION)
 24                  .SetEase(Ease.Linear)
 25                  .SetLink(cardShadow.gameObject, LinkBehaviour.KillOnDestroy);
 19626        infoTransform.DOAnchorPosY(0, DURATION)
 27                     .SetEase(Ease.InOutQuad)
 28                     .SetLink(infoTransform.gameObject, LinkBehaviour.KillOnDestroy);
 19629    }
 30}

Methods/Properties

Focus()
Idle()