< Summary

Class:DCL.Emotes.EmoteAnimationLoaderFactory
Assembly:EmotesService
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLServices/EmotesService/EmoteAnimationLoaderFactory.cs
Covered lines:4
Uncovered lines:1
Coverable lines:5
Total lines:21
Line coverage:80% (4 of 5)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:2
Method coverage:50% (1 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
EmoteAnimationLoaderFactory(...)0%110100%
Get()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLServices/EmotesService/EmoteAnimationLoaderFactory.cs

#LineLine coverage
 1using AvatarSystem;
 2using DCL.Providers;
 3using DCLServices.EmotesService;
 4
 5namespace DCL.Emotes
 6{
 7    public class EmoteAnimationLoaderFactory
 8    {
 9        private readonly AddressableResourceProvider resourceProvider;
 10        private readonly EmoteVolumeHandler emoteVolumeHandler;
 11
 42512        public EmoteAnimationLoaderFactory(AddressableResourceProvider resourceProvider)
 13        {
 42514            this.resourceProvider = resourceProvider;
 42515            emoteVolumeHandler = new EmoteVolumeHandler();
 42516        }
 17
 18        public virtual IEmoteAnimationLoader Get() =>
 019            new EmoteAnimationLoader(new WearableRetriever(), resourceProvider, emoteVolumeHandler);
 20    }
 21}