< Summary

Class:DCLServices.Lambdas.LandsService.LandsService
Assembly:LandsService
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLServices/Lambdas/LandsService/LandsService.cs
Covered lines:2
Uncovered lines:2
Coverable lines:4
Total lines:32
Line coverage:50% (2 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GetPaginationPointer(...)0%2100%
DCLServices.Lambdas.ILambdaServiceConsumer<DCLServices.Lambdas.LandsService.LandsResponse>.CreateRequest(...)0%2100%
Dispose()0%110100%
Initialize()0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLServices/Lambdas/LandsService/LandsService.cs

#LineLine coverage
 1using Cysharp.Threading.Tasks;
 2using DCL;
 3using System;
 4using System.Threading;
 5
 6namespace DCLServices.Lambdas.LandsService
 7{
 8    public class LandsService : ILandsService, ILambdaServiceConsumer<LandsResponse>
 9    {
 10        internal const string END_POINT = "nfts/lands/";
 11        internal const int TIMEOUT = ILambdasService.DEFAULT_TIMEOUT;
 12        internal const int ATTEMPTS_NUMBER = ILambdasService.DEFAULT_ATTEMPTS_NUMBER;
 13
 14        private Service<ILambdasService> lambdasService;
 15
 16        public LambdaResponsePagePointer<LandsResponse> GetPaginationPointer(string address, int pageSize, CancellationT
 017            new (END_POINT + address, pageSize, ct, this);
 18
 19        UniTask<(LandsResponse response, bool success)> ILambdaServiceConsumer<LandsResponse>.CreateRequest(string endPo
 020            lambdasService.Ref.Get<LandsResponse>(
 21                END_POINT,
 22                endPoint,
 23                TIMEOUT,
 24                ATTEMPTS_NUMBER,
 25                cancellationToken,
 26                LambdaPaginatedResponseHelper.GetPageSizeParam(pageSize), LambdaPaginatedResponseHelper.GetPageNumParam(
 27
 49328        public void Dispose() { }
 29
 49330        public void Initialize() { }
 31    }
 32}