< Summary

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

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/PlayerAvatarController/Analytics/PlayerAvatarAnalytics.cs

#LineLine coverage
 1using System.Collections.Generic;
 2
 3public class PlayerAvatarAnalytics
 4{
 5    private readonly IAnalytics analytics;
 6    private readonly Vector2IntVariable playerCoords;
 7
 5728    public PlayerAvatarAnalytics(IAnalytics analytics,
 9        Vector2IntVariable playerCoords)
 10    {
 57211        this.analytics = analytics;
 57212        this.playerCoords = playerCoords;
 57213    }
 14
 15    public void ReportExpression(string expressionId)
 16    {
 217        var location = playerCoords.Get();
 218        analytics.SendAnalytic("used_emote", new Dictionary<string, string>
 19        {
 20            {"id", expressionId},
 21            {"parcel_location", $"{location.x},{location.y}"}
 22        });
 223    }
 24}