SummaryStarSponsor

Information
Parser: Cobertura
Assemblies: 2
Classes: 44
Files: 35
Coverage date: 08/06/2025 - 05:09:30
Line coverage
80%
Covered lines: 1266
Uncovered lines: 316
Coverable lines: 1582
Total lines: 2827
Line coverage: 80%
Branch coverage
63%
Covered branches: 466
Total branches: 731
Branch coverage: 63.7%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Risk Hotspots

Assembly Class Method Crap Score Cyclomatic complexity
NostrSure.Infrastructure NostrSure.Infrastructure.Client.Implementation.MessageReceiver ReceiveAsync()212 16
NostrSure.Infrastructure NostrSure.Infrastructure.Client.Implementation.MessageSender SendAsync()73 12
NostrSure.Domain NostrSure.Domain.Entities.ContactListEvent TagsMatch(...)72 8
NostrSure.Infrastructure NostrSure.Infrastructure.Serialization.NostrEventJsonConverter Read(...)53 52
NostrSure.Infrastructure NostrSure.Infrastructure.Client.Implementation.MessageReceiver ReceiveLoopAsync()49 14
NostrSure.Domain NostrSure.Domain.Entities.ContactListEvent Validate(...)42 6
NostrSure.Domain NostrSure.Domain.Services.EventSignatureValidator ValidateSignature(...)38 22
NostrSure.Infrastructure NostrSure.Infrastructure.Client.Implementation.NostrClient ConnectAsync()37 20
NostrSure.Infrastructure NostrSure.Infrastructure.Client.Implementation.JsonMessageSerializer Deserialize(...)32 32
NostrSure.Domain NostrSure.Domain.Services.ModularNostrEventValidator ValidateAsync()27 26
NostrSure.Infrastructure NostrSure.Infrastructure.Client.Implementation.ConnectionErrorHandler ShouldReconnect(...)25 25
NostrSure.Domain NostrSure.Domain.Entities.NostrEventValidator ValidateSignature(...)24 22
NostrSure.Domain NostrSure.Domain.Services.OptimizedHexConverter TryParseHex(...)23 22
NostrSure.Infrastructure NostrSure.Infrastructure.Client.Implementation.DefaultEventDispatcher Dispatch(...)20 20
NostrSure.Infrastructure NostrSure.Infrastructure.Serialization.NostrEventJsonConverter ReadTagsOptimized(...)18 18

Coverage

Line coverageBranch coverage
NameCoveredUncoveredCoverableTotalPercentageCoveredTotalPercentage
NostrSure.Domain561138699131980.2%
  
20829470.7%
  
NostrSure.Domain.Entities.ContactEntry4004075100%
 
171894.4%
  
NostrSure.Domain.Entities.ContactListEvent54288215665.8%
  
132846.4%
  
NostrSure.Domain.Entities.Follow70712100%
 
44100%
 
NostrSure.Domain.Entities.NostrEvent2102129100%
 
88100%
 
NostrSure.Domain.Entities.NostrEventValidator936115425260.3%
  
405080%
  
NostrSure.Domain.Entities.NostrTag181193394.7%
  
131872.2%
  
NostrSure.Domain.Entities.Pubkey162183088.8%
  
122060%
  
NostrSure.Domain.Entities.Relay90917100%
 
1010100%
 
NostrSure.Domain.Extensions.ServiceCollectionExtensions3503577100%
 
00
 
NostrSure.Domain.Services.CachedEventIdCalculator4517629972.5%
  
3837.5%
  
NostrSure.Domain.Services.EventIdValidator2402447100%
 
22100%
 
NostrSure.Domain.Services.EventKindValidator80823100%
 
22100%
 
NostrSure.Domain.Services.EventSignatureValidator268346676.4%
  
132259%
  
NostrSure.Domain.Services.EventTagValidator178254968%
  
91275%
  
NostrSure.Domain.Services.ModularNostrEventValidator5766311190.4%
  
234254.7%
  
NostrSure.Domain.Services.OptimizedCryptographicService8192788.8%
  
91090%
  
NostrSure.Domain.Services.OptimizedHexConverter465518890.1%
  
304075%
  
NostrSure.Domain.Services.SimpleEventIdCalculator291305496.6%
  
00
 
NostrSure.Domain.Validation.ValidationError10137100%
 
00
 
NostrSure.Domain.Validation.ValidationResult70737100%
 
00
 
NostrSure.Infrastructure705178883199379.8%
  
25843759%
  
NostrSure.Infrastructure.Client.Implementation.ClientWebSocketWrapper410143428.5%
  
1250%
  
NostrSure.Infrastructure.Client.Implementation.ConnectionErrorHandler422446995.4%
  
252986.2%
  
NostrSure.Infrastructure.Client.Implementation.ConnectionManager4910599783%
  
132650%
  
NostrSure.Infrastructure.Client.Implementation.ConnectionStateManager2402455100%
 
5683.3%
  
NostrSure.Infrastructure.Client.Implementation.DefaultEventDispatcher182205290%
  
142070%
  
NostrSure.Infrastructure.Client.Implementation.InMemorySubscriptionManager2402448100%
 
66100%
 
NostrSure.Infrastructure.Client.Implementation.JsonMessageSerializer512538996.2%
  
343889.4%
  
NostrSure.Infrastructure.Client.Implementation.MessageReceiver525610816548.1%
  
195633.9%
  
NostrSure.Infrastructure.Client.Implementation.MessageSender1718356348.5%
  
51827.7%
  
NostrSure.Infrastructure.Client.Implementation.NostrClient1236518828965.4%
  
4310441.3%
  
NostrSure.Infrastructure.Client.Implementation.RetryBackoffPolicy2802858100%
 
111291.6%
  
NostrSure.Infrastructure.Client.Implementation.WebSocketConnection4634910193.8%
  
142653.8%
  
NostrSure.Infrastructure.Client.Implementation.WebSocketFactory2302347100%
 
71450%
  
NostrSure.Infrastructure.Client.Messages.ClosedMessage20256100%
 
00
 
NostrSure.Infrastructure.Client.Messages.CloseMessage20256100%
 
00
 
NostrSure.Infrastructure.Client.Messages.EoseMessage20256100%
 
00
 
NostrSure.Infrastructure.Client.Messages.EventMessage20256100%
 
00
 
NostrSure.Infrastructure.Client.Messages.NostrMessage10156100%
 
00
 
NostrSure.Infrastructure.Client.Messages.NoticeMessage20256100%
 
00
 
NostrSure.Infrastructure.Client.Messages.OkMessage20256100%
 
00
 
NostrSure.Infrastructure.Client.Messages.RelayEventMessage20256100%
 
00
 
NostrSure.Infrastructure.Client.Messages.ReqMessage20256100%
 
00
 
NostrSure.Infrastructure.Client.ServiceCollectionExtensions3103175100%
 
00
 
NostrSure.Infrastructure.Serialization.NostrEventJsonConverter1561016624793.9%
  
618076.2%