< Summary

Class:DCLPlugins.ECS7.ECSComponents.Events.OnPointerDown.OnPointerUp.Serializer.OnPointerUpSerializer
Assembly:DCL.ECSComponents.OnPointerUp
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/Events/OnPointerUp/Serializer/OnPointerUpSerializer.cs
Covered lines:1
Uncovered lines:5
Coverable lines:6
Total lines:19
Line coverage:16.6% (1 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Serialize(...)0%2100%
Deserialize(...)0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ECSComponents/Events/OnPointerUp/Serializer/OnPointerUpSerializer.cs

#LineLine coverage
 1using DCL.ECSComponents;
 2using Google.Protobuf;
 3
 4namespace DCLPlugins.ECS7.ECSComponents.Events.OnPointerDown.OnPointerUp.Serializer
 5{
 6    public class OnPointerUpSerializer
 7    {
 8        public static byte[] Serialize(PBOnPointerUp model)
 9        {
 010            int size = model.CalculateSize();
 011            byte[] buffer = new byte[size];
 012            CodedOutputStream output = new CodedOutputStream(buffer);
 013            model.WriteTo(output);
 014            return buffer;
 15        }
 16
 417        public static PBOnPointerUp Deserialize(object data) { return PBOnPointerUp.Parser.ParseFrom((byte[])data); }
 18    }
 19}