< Summary

Information
Class: IceRpc.Ice.Codec.IceTypeIdAttribute
Assembly: IceRpc
File(s): /home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc/Ice/Codec/IceTypeIdAttribute.cs
Tag: 1321_24790053727
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 33
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 2
Fully covered methods: 2
Total methods: 2
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Value()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc/Ice/Codec/IceTypeIdAttribute.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3namespace IceRpc.Ice.Codec;
 4
 5/// <summary>Assigns an Ice type ID to a class, interface, or struct.</summary>
 6/// <remarks>The Ice compiler assigns Ice type IDs to interfaces and record structs it generates from Ice
 7/// interfaces. It also assigns Ice type IDs to classes generated from Ice classes and exceptions.</remarks>
 8[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Struct, Inherited = false)]
 9public sealed class IceTypeIdAttribute : Attribute
 10{
 11    /// <summary>Gets the Ice type ID.</summary>
 12    /// <value>The Ice type ID string.</value>
 23313    public string Value { get; }
 14
 15    /// <summary>Constructs an Ice type ID attribute.</summary>
 16    /// <param name="value">The Ice type ID.</param>>
 46617    public IceTypeIdAttribute(string value) => Value = value;
 18}
 19
 20/// <summary>Assigns a compact Ice type ID to a class.</summary>
 21/// <remarks>The Ice compiler assigns both an Ice type ID and a compact Ice type ID to the mapped class of an Ice
 22/// class that specifies a compact type ID.</remarks>
 23[AttributeUsage(AttributeTargets.Class, Inherited = false)]
 24public sealed class CompactIceTypeIdAttribute : Attribute
 25{
 26    /// <summary>Gets the compact Ice type ID.</summary>
 27    /// <value>The compact Ice type ID numeric value.</value>
 28    public int Value { get; }
 29
 30    /// <summary>Constructs a compact Ice type ID attribute.</summary>
 31    /// <param name="value">The compact type ID.</param>>
 32    public CompactIceTypeIdAttribute(int value) => Value = value;
 33}

Methods/Properties

get_Value()
.ctor(System.String)