< Summary

Information
Class: Chronicis.Client.Services.MetadataDrawerService
Assembly: Chronicis.Client
File(s): /home/runner/work/chronicis/chronicis/src/Chronicis.Client/Services/MetadataDrawerService.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 22
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

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

File(s)

/home/runner/work/chronicis/chronicis/src/Chronicis.Client/Services/MetadataDrawerService.cs

#LineLine coverage
 1namespace Chronicis.Client.Services;
 2
 3/// <summary>
 4/// Service for coordinating metadata drawer toggle events across components.
 5/// </summary>
 6public class MetadataDrawerService : IMetadataDrawerService
 7{
 8    private readonly IDrawerCoordinator _drawerCoordinator;
 9
 10    public MetadataDrawerService(IDrawerCoordinator drawerCoordinator)
 11    {
 312        _drawerCoordinator = drawerCoordinator;
 313    }
 14
 15    public event Action? OnToggle;
 16
 17    public void Toggle()
 18    {
 519        _drawerCoordinator.Toggle(DrawerType.Metadata);
 520        OnToggle?.Invoke();
 421    }
 22}