< Summary

Class:DCl.Social.Passports.WebInterfacePassportApiBridge
Assembly:PassportHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/Passport/Passport/WebInterfacePassportApiBridge.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:33
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
WebInterfacePassportApiBridge()0%2100%
QueryNftCollectionsEthereum()0%12300%
QueryNftCollectionsMatic()0%12300%

File(s)

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

#LineLine coverage
 1using Cysharp.Threading.Tasks;
 2using DCL.Social.Passports;
 3using System;
 4using System.Collections.Generic;
 5using UnityEngine;
 6
 7namespace DCl.Social.Passports
 8{
 9
 10    public class WebInterfacePassportApiBridge : IPassportApiBridge
 11    {
 12
 013        public WebInterfacePassportApiBridge() { }
 14
 15        public async UniTask<List<Nft>> QueryNftCollectionsEthereum(string userId)
 16        {
 017            List<Nft> nftList = new List<Nft>();
 018            await DCL.Environment.i.platform.serviceProviders.theGraph.QueryNftCollections(userId, NftCollectionsLayer.E
 019                     .Then((nfts) => nftList = nfts);
 20
 021            return nftList;
 022        }
 23
 24        public async UniTask<List<Nft>> QueryNftCollectionsMatic(string userId)
 25        {
 026            List<Nft> nftList = new List<Nft>();
 027            await DCL.Environment.i.platform.serviceProviders.theGraph.QueryNftCollections(userId, NftCollectionsLayer.M
 028                     .Then((nfts) => nftList = nfts);
 29
 030            return nftList;
 031        }
 32    }
 33}