corvus-dotnet / Corvus.JsonSchema

Support for Json Schema validation and entity generation
Apache License 2.0
99 stars 9 forks source link

Added synchronous codepaths to generator. #364

Closed mwadams closed 4 months ago

mwadams commented 4 months ago

Forces pre-load of required files. Throws InvalidOperationException if the codepath goes async. Replaced Task<T> with ValueTask<T> throughout the generator as the usual codepath is synchronous, even in the async case.

github-actions[bot] commented 4 months ago

Code Coverage Summary Report - Linux (net8.0)

Code Coverage

Package Line Rate Branch Rate Complexity Health
Corvus.Json.JsonSchema.Draft7 14% 14% 8051
Corvus.Json.JsonSchema.Draft6 14% 14% 7329
Corvus.Json.Patch 25% 21% 4237
Corvus.Json.JsonSchema.Draft202012 15% 14% 11933
Corvus.Json.CodeGeneration.6 32% 18% 21372
Corvus.Json.CodeGeneration.7 31% 18% 23584
Corvus.Json.CodeGeneration.201909 31% 18% 27044
Corvus.Json.CodeGeneration.202012 31% 18% 27351
Corvus.Json.ExtendedTypes 39% 33% 17107
Corvus.Json.CodeGeneration.Abstractions 86% 74% 1285
Corvus.Json.JsonSchema.Draft201909 14% 14% 12408
Corvus.Json.Specs 98% 79% 4615
Summary 35% (75393 / 216018) 20% (26622 / 135765) 166316
github-actions[bot] commented 4 months ago

Test Results

     1 files       1 suites   15m 1s :stopwatch: 10 645 tests 10 645 :white_check_mark: 0 :zzz: 0 :x: 11 224 runs  11 224 :white_check_mark: 0 :zzz: 0 :x:

Results for commit 9eabf7e7.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 4 months ago

Code Coverage Summary Report - Windows (net8.0)

Code Coverage

Package Line Rate Branch Rate Complexity Health
Corvus.Json.Patch 25% 21% 4237
Corvus.Json.JsonSchema.Draft201909 14% 14% 12408
Corvus.Json.CodeGeneration.201909 31% 18% 27044
Corvus.Json.CodeGeneration.202012 31% 18% 27351
Corvus.Json.JsonSchema.Draft7 14% 14% 8051
Corvus.Json.JsonSchema.Draft6 14% 14% 7329
Corvus.Json.JsonSchema.Draft202012 15% 14% 11933
Corvus.Json.CodeGeneration.6 32% 18% 21372
Corvus.Json.CodeGeneration.7 31% 18% 23584
Corvus.Json.ExtendedTypes 39% 33% 17107
Corvus.Json.CodeGeneration.Abstractions 86% 74% 1285
Corvus.Json.Specs 98% 79% 4615
Summary 35% (75424 / 216018) 20% (26649 / 135765) 166316
github-actions[bot] commented 4 months ago

Code Coverage Summary Report - Windows (net481)

Code Coverage

Package Line Rate Branch Rate Complexity Health
Corvus.Json.JsonSchema.Draft6 15% 15% 6862
Corvus.Json.JsonSchema.Draft202012 16% 16% 11277
Corvus.Json.Patch 27% 23% 3945
Corvus.Json.JsonSchema.Draft7 15% 15% 7543
Corvus.Json.JsonSchema.Draft201909 15% 15% 11715
Corvus.Json.CodeGeneration.6 32% 18% 21374
Corvus.Json.CodeGeneration.7 31% 18% 23586
Corvus.Json.CodeGeneration.201909 31% 18% 27047
Corvus.Json.CodeGeneration.202012 31% 18% 27354
Corvus.Json.ExtendedTypes 39% 36% 11333
Corvus.Json.CodeGeneration.Abstractions 86% 75% 1277
Corvus.Json.Specs 98% 81% 4341
Summary 35% (72262 / 206294) 20% (25059 / 127745) 157654