< Summary

Information
Class: Pomodoro.Web.Layout.MainLayout
Assembly: Pomodoro.Web
File(s): /home/runner/work/Pomodoro/Pomodoro/src/Pomodoro.Web/Layout/MainLayout.razor
Line coverage
100%
Covered lines: 18
Uncovered lines: 0
Coverable lines: 18
Total lines: 52
Line coverage: 100%
Branch coverage
100%
Covered branches: 4
Total branches: 4
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
BuildRenderTree(...)100%22100%
RecoverError()100%22100%

File(s)

/home/runner/work/Pomodoro/Pomodoro/src/Pomodoro.Web/Layout/MainLayout.razor

#LineLine coverage
 1@inherits MainLayoutBase
 2@using Pomodoro.Web.Components
 3@inject LayoutPresenterService LayoutPresenter
 4
 5<div class="app-wrapper">
 6    <header class="app-header">
 7        <div class="header-content-wrapper">
 8            <div class="header-left">
 9                <div class="header-title">
 8810                    <span class="header-icon">@Constants.Layout.AppIcon</span>
 8811                    <span class="header-text">@Constants.Layout.AppTitle</span>
 12                </div>
 8813                <p class="header-tagline">@Constants.Layout.Tagline</p>
 14            </div>
 15            <div class="header-nav">
 53616                @foreach (var navLink in LayoutPresenter.GetNavigationLinks())
 13617                {
 18                    <NavLink href="@navLink.Href" Match="@navLink.Match" title="@navLink.Title">
 13619                        <span>@navLink.Icon</span>
 20                    </NavLink>
 13621                }
 22            </div>
 23        </div>
 24    </header>
 25
 26    <main class="app-content">
 8327        <ErrorBoundary @ref="_errorBoundary">
 8328            <ChildContent>
 8829                @Body
 8330            </ChildContent>
 8331            <ErrorContent Context="exception">
 8332                <ErrorDisplay Exception="exception" OnRetry="RecoverError" />
 33            </ErrorContent>
 34        </ErrorBoundary>
 35    </main>
 36
 37    <footer class="app-footer">
 38        <div class="footer-content">
 8839            <p class="footer-made">@Constants.Layout.FooterMadeWithText</p>
 17640            <p class="footer-copy">&copy; @LayoutPresenter.GetCurrentYear() @Constants.Layout.FooterCopyrightOwner</p>
 41        </div>
 42    </footer>
 43</div>
 44
 45@code {
 46    private ErrorBoundary? _errorBoundary;
 47
 48    public void RecoverError()
 349    {
 350        _errorBoundary?.Recover();
 351    }
 52}