< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 51
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
Serialize()100%110%
Create(...)100%110%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Net.Primitives/src/System/Net/EndPoint.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System;
 5using System.Net.Sockets;
 6using System.Runtime.InteropServices;
 7
 8namespace System.Net
 9{
 10    /// <devdoc>
 11    ///    <para>
 12    ///       Identifies a network address.
 13    ///    </para>
 14    /// </devdoc>
 15    public abstract class EndPoint
 16    {
 17        /// <devdoc>
 18        ///    <para>
 19        ///       Returns the Address Family to which the EndPoint belongs.
 20        ///    </para>
 21        /// </devdoc>
 22        public virtual AddressFamily AddressFamily
 23        {
 24            get
 025            {
 026                throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException);
 27            }
 28        }
 29
 30        /// <devdoc>
 31        ///    <para>
 32        ///       Serializes EndPoint information into a SocketAddress structure.
 33        ///    </para>
 34        /// </devdoc>
 35        public virtual SocketAddress Serialize()
 036        {
 037            throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException);
 38        }
 39
 40        /// <devdoc>
 41        ///    <para>
 42        ///       Creates an EndPoint instance from a SocketAddress structure.
 43        ///    </para>
 44        /// </devdoc>
 45        public virtual EndPoint Create(SocketAddress socketAddress)
 046        {
 047            throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException);
 48        }
 49    }
 50}
 51