< Summary

Information
Class: IceRpc.Protobuf.ProtobufMethodAttribute
Assembly: IceRpc.Protobuf
File(s): /home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc.Protobuf/ProtobufMethodAttribute.cs
Tag: 275_13775359185
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 21
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
0%
Covered methods: 0
Total methods: 2
Method coverage: 0%

Metrics

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

File(s)

/home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc.Protobuf/ProtobufMethodAttribute.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3using System.ComponentModel;
 4
 5namespace IceRpc.Protobuf;
 6
 7/// <summary>Represents an attribute that protoc-gen-icerpc-csharp applies to abstract methods in Service interfaces.
 8/// </summary>
 9[AttributeUsage(AttributeTargets.Method, Inherited = false)]
 10[EditorBrowsable(EditorBrowsableState.Never)]
 11public sealed class ProtobufMethodAttribute : Attribute
 12{
 13    /// <summary>Gets the method name. It corresponds to the name of the rpc method in the Protobuf file, with the
 14    /// same spelling and the same case.</summary>
 15    /// <value>The method name.</value>
 016    public string Value { get; }
 17
 18    /// <summary>Constructs a Protobuf method attribute.</summary>
 19    /// <param name="value">The method name.</param>>
 020    public ProtobufMethodAttribute(string value) => Value = value;
 21}

Methods/Properties

get_Value()
.ctor(System.String)