< Summary

Line coverage
82%
Covered lines: 666
Uncovered lines: 140
Coverable lines: 806
Total lines: 1499
Line coverage: 82.6%
Branch coverage
52%
Covered branches: 150
Total branches: 286
Branch coverage: 52.4%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
File 1: .ctor(...)100%11100%
File 1: RenderTemplateRenderOperation(...)50%2294.44%
File 1: RenderUser(...)4.16%1202444.94%
File 1: RenderTemplateRenderParams(...)50%2286.95%
File 1: DefaultReplacements(...)50%525297.77%
File 1: ProcessContentString(...)62.5%8882.35%
File 1: ValidateRenderParams(...)66.66%7675%
File 1: SplitMatch(...)100%11100%
File 1: Script(...)50%8893.75%
File 1: Component(...)50%66100%
File 1: BuildComponentMarkup(...)25%5466.66%
File 1: ExecuteAsync(...)100%11100%
File 1: Resource(...)68.18%222292.1%
File 1: FindResourceInCache(...)75%44100%
File 1: FindResourceInCacheForKey(...)66.66%6677.77%
File 1: SelectResourcesForCulture(...)85.71%1414100%
File 1: GetClosestCulturalMatch(...)80%1010100%
File 1: Meta(...)100%11100%
File 1: TryGetThemeDictionary(...)75%4485.71%
File 1: BuildThemeReplacements(...)70%131070%
File 1: BuildObjectThemeReplacements(...)50%7670%
File 1: BuildIEnumerableThemeReplacements(...)62.5%13856%
File 1: BuildJObjectThemeReplacements(...)0%22840%
File 1: BuildDynamicThemeReplacements(...)75%8887.5%
File 1: BuildModelReplacements(...)50%161060%
File 1: BuildModelReplacementsForCollection(...)16.66%14640%
File 1: BuildModelReplacementsForObject(...)87.5%8896%
File 1: BuildModelReplacementsForJObject(...)0%22840%
File 1: BuildModelReplacementsForDynamicObject(...)0%53811.11%
File 1: ValidateTemplate(...)100%22100%
File 1: ValidateModel(...)50%2266.66%
File 1: ValidateRenderParamsArgument(...)100%22100%
File 1: ValidateAppId(...)100%11100%
File 1: ValidateTemplateName(...)100%11100%
File 1: ValidateUser(...)50%2266.66%
File 1: RegexReplace(...)100%11100%
File 1: RegexMatch(...)100%11100%
File 1: GetTagName(...)100%11100%
File 1: ThrowIf(...)100%22100%
File 1: ExecuteRenderTemplateRenderParamsConfig(...)0%4225%
File 1: GetApps()100%11100%
File 1: GetComponents()100%11100%
File 1: GetResources()100%11100%
File 1: GetScripts()100%11100%
File 1: GetTemplates()100%11100%
File 1: GetComponent(...)100%11100%
File 1: GetScript(...)100%11100%
File 1: GetResource(...)100%11100%
File 1: GetMetadata(...)100%11100%
File 1: Serialize(...)100%11100%
File 1: IsRuntimeValueType(...)100%11100%
File 1: GetStringValue(...)100%11100%
File 1: SerializeIgnoringReferences(...)100%11100%
File 1: ParseJson(...)100%11100%
File 1: NormalizeJson(...)100%11100%
File 1: IsJsonObject(...)100%11100%
File 1: IsJsonArray(...)100%11100%
File 1: IsJsonValue(...)100%11100%
File 1: GetJsonProperties(...)100%11100%
File 1: ExecuteWorkflow(...)100%11100%
File 1: IsLoggingEnabled(...)100%11100%
File 1: LogDebug(...)100%11100%
File 1: ReplaceRegularExpression(...)100%11100%
File 1: ForEachRegularExpressionMatch(...)100%11100%
File 1: ExecuteFoundation(...)100%11100%
File 1: FindFirst(...)100%66100%
File 1: FindRequired(...)50%22100%
File 1: CopyToList(...)75%44100%
File 1: TryGetFirstValue(...)75%4477.77%
File 1: RemoveInvalidReplacements(...)66.66%7675%
File 2: TryCatch(...)100%1189.47%
File 2: TryCatch(...)100%11100%
File 2: TryCatch()100%1189.47%
File 2: TryCatch()100%1194.44%
File 2: TryCatch()100%1189.47%
File 2: TryCatch()100%1194.44%
File 3: ValidateRenderTemplateOperation(...)100%11100%
File 3: ValidateRenderUser(...)100%11100%
File 3: ValidateRenderTemplateRenderParams(...)100%11100%
File 3: Validate(...)100%11100%

File(s)

C:/actions-runner/_work/cCoder.ContentManagement/cCoder.ContentManagement/src/cCoder.ContentManagement/Services/Processings/TemplateRenderProcessingService.cs

File 'C:/actions-runner/_work/cCoder.ContentManagement/cCoder.ContentManagement/src/cCoder.ContentManagement/Services/Processings/TemplateRenderProcessingService.cs' does not exist (any more).

C:/actions-runner/_work/cCoder.ContentManagement/cCoder.ContentManagement/src/cCoder.ContentManagement/Services/Processings/TemplateRenderProcessingService.Exceptions.cs

File 'C:/actions-runner/_work/cCoder.ContentManagement/cCoder.ContentManagement/src/cCoder.ContentManagement/Services/Processings/TemplateRenderProcessingService.Exceptions.cs' does not exist (any more).

C:/actions-runner/_work/cCoder.ContentManagement/cCoder.ContentManagement/src/cCoder.ContentManagement/Services/Processings/TemplateRenderProcessingService.Validations.cs

File 'C:/actions-runner/_work/cCoder.ContentManagement/cCoder.ContentManagement/src/cCoder.ContentManagement/Services/Processings/TemplateRenderProcessingService.Validations.cs' does not exist (any more).

Methods/Properties

.ctor(cCoder.ContentManagement.Services.Foundations.Rendering.ITemplateRenderService,cCoder.ContentManagement.Models.ContentManagementConfiguration)
RenderTemplateRenderOperation(cCoder.ContentManagement.Models.TemplateRenderOperation)
RenderUser(System.Int32,System.String,System.Object,cCoder.Data.Models.Security.User,System.String)
RenderTemplateRenderParams(cCoder.Data.Models.CMS.Template,System.Object,cCoder.ContentManagement.Models.RenderParams)
DefaultReplacements(cCoder.ContentManagement.Models.RenderParams,cCoder.ContentManagement.Models.ContentManagementConfiguration)
ProcessContentString(System.String,cCoder.ContentManagement.Models.RenderParams,System.String,System.Collections.Generic.IEnumerable`1<cCoder.ContentManagement.Models.PageRendering.MarkupReplacement>)
ValidateRenderParams(cCoder.ContentManagement.Models.RenderParams,System.Collections.Generic.IEnumerable`1<cCoder.ContentManagement.Models.PageRendering.MarkupReplacement>)
SplitMatch(cCoder.ContentManagement.Models.RegularExpressions.RegularExpressionMatch)
Script(System.String,System.String,cCoder.ContentManagement.Models.RenderParams,System.Collections.Generic.IEnumerable`1<cCoder.ContentManagement.Models.PageRendering.MarkupReplacement>)
Component(System.String,cCoder.ContentManagement.Models.RenderParams,System.Collections.Generic.IEnumerable`1<cCoder.ContentManagement.Models.PageRendering.MarkupReplacement>,System.String)
BuildComponentMarkup(cCoder.Data.Models.CMS.Component,System.ValueTuple`3<System.String,System.String,System.String[]>,System.Collections.Generic.IEnumerable`1<cCoder.ContentManagement.Models.PageRendering.MarkupReplacement>,cCoder.ContentManagement.Models.RenderParams)
ExecuteAsync(System.String,System.String,cCoder.ContentManagement.Models.RenderParams,System.Collections.Generic.IEnumerable`1<cCoder.ContentManagement.Models.PageRendering.MarkupReplacement>)
Resource(System.String,System.String,cCoder.ContentManagement.Models.RenderParams,System.Collections.Generic.IEnumerable`1<cCoder.ContentManagement.Models.PageRendering.MarkupReplacement>)
FindResourceInCache(System.String,System.String,System.String)
FindResourceInCacheForKey(System.String,System.String,System.String)
SelectResourcesForCulture(System.Collections.Generic.IEnumerable`1<cCoder.Data.Models.CMS.Resource>,System.String,System.String)
GetClosestCulturalMatch(System.Collections.Generic.IEnumerable`1<cCoder.Data.Models.CMS.Resource>,System.String)
Meta(System.String,System.String)
TryGetThemeDictionary(System.Object,System.Collections.Generic.IDictionary`2<System.String,System.Object>&)
BuildThemeReplacements(System.Object,System.String)
BuildObjectThemeReplacements(System.Collections.IEnumerable,System.String)
BuildIEnumerableThemeReplacements(System.Object,System.String)
BuildJObjectThemeReplacements(System.Object,System.String)
BuildDynamicThemeReplacements(System.Collections.Generic.IDictionary`2<System.String,System.Object>,System.String)
BuildModelReplacements(System.Object,System.String)
BuildModelReplacementsForCollection(System.Object,System.String)
BuildModelReplacementsForObject(System.Object,System.String)
BuildModelReplacementsForJObject(System.Object,System.String)
BuildModelReplacementsForDynamicObject(System.Object,System.String)
ValidateTemplate(cCoder.Data.Models.CMS.Template,System.String)
ValidateModel(System.Object,System.String)
ValidateRenderParamsArgument(cCoder.ContentManagement.Models.RenderParams,System.String)
ValidateAppId(System.Int32,System.String)
ValidateTemplateName(System.String,System.String)
ValidateUser(cCoder.Data.Models.Security.User,System.String)
RegexReplace(System.String,System.String,System.Func`2<cCoder.ContentManagement.Models.RegularExpressions.RegularExpressionMatch,System.String>)
RegexMatch(System.String,System.String,System.Action`1<cCoder.ContentManagement.Models.RegularExpressions.RegularExpressionMatch>)
GetTagName(cCoder.ContentManagement.Models.RegularExpressions.RegularExpressionMatch)
ThrowIf(System.Boolean,System.String)
ExecuteRenderTemplateRenderParamsConfig(cCoder.Data.Models.CMS.Template,System.Object,cCoder.ContentManagement.Models.RenderParams,cCoder.ContentManagement.Models.ContentManagementConfiguration)
GetApps()
GetComponents()
GetResources()
GetScripts()
GetTemplates()
GetComponent(System.String)
GetScript(System.String)
GetResource(System.String)
GetMetadata(System.String,System.String)
Serialize(System.Object)
IsRuntimeValueType(System.Object)
GetStringValue(System.Object)
SerializeIgnoringReferences(System.Object)
ParseJson(System.String)
NormalizeJson(System.Object)
IsJsonObject(System.Object)
IsJsonArray(System.Object)
IsJsonValue(System.Object)
GetJsonProperties(System.Object)
ExecuteWorkflow(System.String,System.String)
IsLoggingEnabled(Microsoft.Extensions.Logging.LogLevel)
LogDebug(System.String,System.Object[])
ReplaceRegularExpression(System.String,System.String,System.Func`3<System.String,System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.String>,System.String>)
ForEachRegularExpressionMatch(System.String,System.String,System.Action`2<System.String,System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.String>>)
ExecuteFoundation(cCoder.ContentManagement.Models.Rendering.TemplateRenderFoundationOperation,System.Func`2<cCoder.ContentManagement.Models.Rendering.TemplateRenderFoundationOperation,cCoder.ContentManagement.Models.Rendering.TemplateRenderFoundationOperation>)
FindFirst(System.Collections.Generic.IEnumerable`1<T>,System.Func`2<T,System.Boolean>)
FindRequired(System.Collections.Generic.IEnumerable`1<T>,System.Func`2<T,System.Boolean>)
CopyToList(System.Collections.Generic.IEnumerable`1<T>)
TryGetFirstValue(System.Collections.Generic.IDictionary`2<System.String,System.Object>,System.Object&)
RemoveInvalidReplacements(System.Collections.Generic.List`1<cCoder.ContentManagement.Models.PageRendering.MarkupReplacement>)
TryCatch(System.Action)
TryCatch(System.Func`1<TResult>)
TryCatch()
TryCatch()
TryCatch()
TryCatch()
ValidateRenderTemplateOperation(System.Object[])
ValidateRenderUser(System.Object[])
ValidateRenderTemplateRenderParams(System.Object[])
Validate(System.Object[])