< Summary

Information
Class: Pozitron.QuerySpecification.PagedResult<T>
Assembly: Pozitron.QuerySpecification
File(s): /home/runner/work/QuerySpecification/QuerySpecification/src/QuerySpecification/Paging/PagedResult.cs
Tag: 52_11740816328
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 29
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Pagination()100%11100%
get_Data()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/QuerySpecification/QuerySpecification/src/QuerySpecification/Paging/PagedResult.cs

#LineLine coverage
 1namespace Pozitron.QuerySpecification;
 2
 3/// <summary>
 4/// Represents a paged result with data and pagination information.
 5/// </summary>
 6/// <typeparam name="T">The type of the data.</typeparam>
 7public record PagedResult<T>
 8{
 9    /// <summary>
 10    /// Gets the pagination information.
 11    /// </summary>
 1112    public Pagination Pagination { get; }
 13
 14    /// <summary>
 15    /// Gets the data.
 16    /// </summary>
 617    public List<T> Data { get; }
 18
 19    /// <summary>
 20    /// Initializes a new instance of the <see cref="PagedResult{T}"/> class.
 21    /// </summary>
 22    /// <param name="data">The data.</param>
 23    /// <param name="pagination">The pagination information.</param>
 624    public PagedResult(List<T> data, Pagination pagination)
 25    {
 626        Data = data;
 627        Pagination = pagination;
 628    }
 29}