< Summary

Class:PlayerPassportPlugin
Assembly:PassportHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/Passport/Passport/PlayerPassportPlugin.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:64
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PlayerPassportPlugin()0%2100%
Dispose()0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/Passport/Passport/PlayerPassportPlugin.cs

#LineLine coverage
 1using AvatarSystem;
 2using DCL;
 3using DCL.ProfanityFiltering;
 4using DCL.Social.Friends;
 5using DCl.Social.Passports;
 6using DCL.Social.Passports;
 7using DCLServices.Lambdas.LandsService;
 8using DCLServices.Lambdas.NamesService;
 9using SocialFeaturesAnalytics;
 10using UnityEngine;
 11
 12public class PlayerPassportPlugin : IPlugin
 13{
 14    private readonly PlayerPassportHUDController passportController;
 15
 016    public PlayerPassportPlugin()
 17    {
 018        PlayerPassportReferenceContainer referenceContainer = Object.Instantiate(Resources.Load<GameObject>("PlayerPassp
 19
 020        passportController = new PlayerPassportHUDController(
 21                        referenceContainer.PassportView,
 22                        new PassportPlayerInfoComponentController(
 23                            Resources.Load<StringVariable>("CurrentPlayerInfoCardId"),
 24                            referenceContainer.PlayerInfoView,
 25                            DataStore.i,
 26                            Environment.i.serviceLocator.Get<IProfanityFilter>(),
 27                            FriendsController.i,
 28                            new UserProfileWebInterfaceBridge(),
 29                            new SocialAnalytics(
 30                                Environment.i.platform.serviceProviders.analytics,
 31                                new UserProfileWebInterfaceBridge()),
 32                            Environment.i.platform.clipboard,
 33                            new WebInterfacePassportApiBridge()),
 34                        new PassportPlayerPreviewComponentController(
 35                            referenceContainer.PlayerPreviewView,
 36                            new SocialAnalytics(
 37                                Environment.i.platform.serviceProviders.analytics,
 38                                new UserProfileWebInterfaceBridge())),
 39                        new PassportNavigationComponentController(
 40                            referenceContainer.PassportNavigationView,
 41                            Environment.i.serviceLocator.Get<IProfanityFilter>(),
 42                            new WearableItemResolver(),
 43                            new WearablesCatalogControllerBridge(),
 44                            Environment.i.serviceLocator.Get<IEmotesCatalogService>(),
 45                            Environment.i.serviceLocator.Get<INamesService>(),
 46                            Environment.i.serviceLocator.Get<ILandsService>(),
 47                            new UserProfileWebInterfaceBridge(),
 48                            DataStore.i),
 49                        Resources.Load<StringVariable>("CurrentPlayerInfoCardId"),
 50                        new UserProfileWebInterfaceBridge(),
 51                        new WebInterfacePassportApiBridge(),
 52                        new SocialAnalytics(
 53                            Environment.i.platform.serviceProviders.analytics,
 54                            new UserProfileWebInterfaceBridge()),
 55                        DataStore.i,
 56                        SceneReferences.i.mouseCatcher,
 57                        CommonScriptableObjects.playerInfoCardVisibleState);
 058    }
 59
 60    public void Dispose()
 61    {
 062        passportController?.Dispose();
 063    }
 64}

Methods/Properties

PlayerPassportPlugin()
Dispose()