< Summary

Line coverage
97%
Covered lines: 37
Uncovered lines: 1
Coverable lines: 38
Total lines: 54
Line coverage: 97.3%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ToDto(...)50%2294.74%
ProjectToDto(...)100%11100%

File(s)

/home/runner/work/ProjectRead.ing/ProjectRead.ing/Api/obj/Debug/net10.0/generated/Riok.Mapperly/Riok.Mapperly.MapperGenerator/FileRecordMapper.g.cs

#LineLine coverage
 1// <auto-generated />
 2#nullable enable
 3namespace Api.Files.Queries
 4{
 5    public static partial class FileRecordMapper
 6    {
 7        [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")]
 8        [return: global::System.Diagnostics.CodeAnalysis.NotNullIfNotNull(nameof(f))]
 9        public static partial global::Api.Files.Queries.FileRecord? ToDto(global::Api.Files.Models.FileRecord? f)
 110        {
 111            if (f == null)
 012                return default;
 113            var target = new global::Api.Files.Queries.FileRecord()
 114            {
 115                ContentType = f.ContentType,
 116                SHA256 = f.SHA256,
 117            };
 118            target.Id = f.Id;
 119            target.RowVersion = f.RowVersion;
 120            target.MetadataAddedAt = f.MetadataAddedAt;
 121            target.MetadataUpdatedAt = f.MetadataUpdatedAt;
 122            target.FileKind = f.FileKind;
 123            target.FileProviderBackendConfigId = f.FileProviderBackendConfigId;
 124            target.Uploaded = f.Uploaded;
 125            target.OriginalFileName = f.OriginalFileName;
 126            target.SizeBytes = f.SizeBytes;
 127            return target;
 128        }
 29
 30        [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")]
 31        public static partial global::System.Linq.IQueryable<global::Api.Files.Queries.FileRecord> ProjectToDto(this glo
 132        {
 33#nullable disable
 134            return global::System.Linq.Queryable.Select(
 135                q,
 136                x => new global::Api.Files.Queries.FileRecord()
 137                {
 138                    Id = x.Id,
 139                    RowVersion = x.RowVersion,
 140                    MetadataAddedAt = x.MetadataAddedAt,
 141                    MetadataUpdatedAt = x.MetadataUpdatedAt,
 142                    FileKind = x.FileKind,
 143                    FileProviderBackendConfigId = x.FileProviderBackendConfigId,
 144                    Uploaded = x.Uploaded,
 145                    OriginalFileName = x.OriginalFileName,
 146                    ContentType = x.ContentType,
 147                    SizeBytes = x.SizeBytes,
 148                    SHA256 = x.SHA256,
 149                }
 150            );
 51#nullable enable
 152        }
 53    }
 54}