< Summary

Class:Decentraland.Social.Friendships.FriendshipsServiceCodeGen
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Decentraland/social/friendships/FriendshipsService.gen.cs
Covered lines:0
Uncovered lines:8
Coverable lines:8
Total lines:44
Line coverage:0% (0 of 8)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:1
Method coverage:0% (0 of 1)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
RegisterService[Context](...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Decentraland/social/friendships/FriendshipsService.gen.cs

#LineLine coverage
 1// AUTOGENERATED, DO NOT EDIT
 2// Type definitions for server implementations of ports.
 3// package: decentraland.social.friendships
 4// file: decentraland/social/friendships/friendships.proto
 5using System.Collections.Generic;
 6using System.Threading;
 7using Cysharp.Threading.Tasks;
 8using Google.Protobuf;
 9using rpc_csharp.protocol;
 10using rpc_csharp;
 11namespace Decentraland.Social.Friendships {
 12public interface IFriendshipsService<Context>
 13{
 14
 15  IUniTaskAsyncEnumerable<UsersResponse> GetFriends(Payload request, Context context);
 16
 17  IUniTaskAsyncEnumerable<UsersResponse> GetMutualFriends(MutualFriendsPayload request, Context context);
 18
 19  UniTask<RequestEventsResponse> GetRequestEvents(Payload request, Context context, CancellationToken ct);
 20
 21  UniTask<UpdateFriendshipResponse> UpdateFriendshipEvent(UpdateFriendshipPayload request, Context context, Cancellation
 22
 23  IUniTaskAsyncEnumerable<SubscribeFriendshipEventsUpdatesResponse> SubscribeFriendshipEventsUpdates(Payload request, Co
 24
 25}
 26
 27public static class FriendshipsServiceCodeGen
 28{
 29  public const string ServiceName = "FriendshipsService";
 30
 31  public static void RegisterService<Context>(RpcServerPort<Context> port, IFriendshipsService<Context> service)
 32  {
 033    var result = new ServerModuleDefinition<Context>();
 34
 035    result.serverStreamDefinition.Add("GetFriends", (payload, context) => { return ProtocolHelpers.SerializeMessageEnume
 036    result.serverStreamDefinition.Add("GetMutualFriends", (payload, context) => { return ProtocolHelpers.SerializeMessag
 037    result.definition.Add("GetRequestEvents", async (payload, context, ct) => { var res = await service.GetRequestEvents
 038    result.definition.Add("UpdateFriendshipEvent", async (payload, context, ct) => { var res = await service.UpdateFrien
 039    result.serverStreamDefinition.Add("SubscribeFriendshipEventsUpdates", (payload, context) => { return ProtocolHelpers
 40
 041    port.RegisterModule(ServiceName, (port) => UniTask.FromResult(result));
 042  }
 43}
 44}