mirror of
https://github.com/Smaug123/WoofWare.Whippet
synced 2025-10-10 02:08:41 +00:00
Import interface-mock generator (#14)
Some checks are pending
.NET / build (Release) (push) Waiting to run
.NET / analyzers (push) Waiting to run
.NET / build (Debug) (push) Waiting to run
.NET / check-dotnet-format (push) Waiting to run
.NET / check-nix-format (push) Waiting to run
.NET / Check links (push) Waiting to run
.NET / Check flake (push) Waiting to run
.NET / nuget-pack (push) Waiting to run
.NET / expected-pack (push) Blocked by required conditions
.NET / check-accurate-generations (push) Waiting to run
.NET / all-required-checks-complete (push) Blocked by required conditions
.NET / nuget-publish (push) Blocked by required conditions
.NET / nuget-publish-fantomas (push) Blocked by required conditions
.NET / nuget-publish-json-plugin (push) Blocked by required conditions
.NET / nuget-publish-json-attrs (push) Blocked by required conditions
.NET / nuget-publish-argparser-plugin (push) Blocked by required conditions
.NET / nuget-publish-argparser-attrs (push) Blocked by required conditions
.NET / nuget-publish-httpclient-plugin (push) Blocked by required conditions
.NET / nuget-publish-httpclient-attrs (push) Blocked by required conditions
.NET / nuget-publish-interfacemock-plugin (push) Blocked by required conditions
Some checks are pending
.NET / build (Release) (push) Waiting to run
.NET / analyzers (push) Waiting to run
.NET / build (Debug) (push) Waiting to run
.NET / check-dotnet-format (push) Waiting to run
.NET / check-nix-format (push) Waiting to run
.NET / Check links (push) Waiting to run
.NET / Check flake (push) Waiting to run
.NET / nuget-pack (push) Waiting to run
.NET / expected-pack (push) Blocked by required conditions
.NET / check-accurate-generations (push) Waiting to run
.NET / all-required-checks-complete (push) Blocked by required conditions
.NET / nuget-publish (push) Blocked by required conditions
.NET / nuget-publish-fantomas (push) Blocked by required conditions
.NET / nuget-publish-json-plugin (push) Blocked by required conditions
.NET / nuget-publish-json-attrs (push) Blocked by required conditions
.NET / nuget-publish-argparser-plugin (push) Blocked by required conditions
.NET / nuget-publish-argparser-attrs (push) Blocked by required conditions
.NET / nuget-publish-httpclient-plugin (push) Blocked by required conditions
.NET / nuget-publish-httpclient-attrs (push) Blocked by required conditions
.NET / nuget-publish-interfacemock-plugin (push) Blocked by required conditions
This commit is contained in:
@@ -6,10 +6,10 @@ type internal DesiredGenerator =
|
||||
|
||||
static member Parse (s : string) =
|
||||
match s with
|
||||
| "JsonParse" -> DesiredGenerator.JsonParse None
|
||||
| "JsonParse(true)" -> DesiredGenerator.JsonParse (Some true)
|
||||
| "JsonParse(false)" -> DesiredGenerator.JsonParse (Some false)
|
||||
| "JsonSerialize" -> DesiredGenerator.JsonSerialize None
|
||||
| "JsonSerialize(true)" -> DesiredGenerator.JsonSerialize (Some true)
|
||||
| "JsonSerialize(false)" -> DesiredGenerator.JsonSerialize (Some false)
|
||||
| _ -> failwith $"Failed to parse as a generator specification: %s{s}"
|
||||
| "JsonParse" -> DesiredGenerator.JsonParse None |> Some
|
||||
| "JsonParse(true)" -> DesiredGenerator.JsonParse (Some true) |> Some
|
||||
| "JsonParse(false)" -> DesiredGenerator.JsonParse (Some false) |> Some
|
||||
| "JsonSerialize" -> DesiredGenerator.JsonSerialize None |> Some
|
||||
| "JsonSerialize(true)" -> DesiredGenerator.JsonSerialize (Some true) |> Some
|
||||
| "JsonSerialize(false)" -> DesiredGenerator.JsonSerialize (Some false) |> Some
|
||||
| _ -> None
|
||||
|
@@ -739,7 +739,7 @@ type JsonParseGenerator () =
|
||||
desired
|
||||
|> List.tryPick (fun generator ->
|
||||
match generator with
|
||||
| DesiredGenerator.JsonParse arg ->
|
||||
| Some (DesiredGenerator.JsonParse arg) ->
|
||||
let spec =
|
||||
{
|
||||
ExtensionMethods =
|
||||
|
@@ -555,7 +555,7 @@ type JsonSerializeGenerator () =
|
||||
desired
|
||||
|> List.tryPick (fun generator ->
|
||||
match generator with
|
||||
| DesiredGenerator.JsonSerialize arg ->
|
||||
| Some (DesiredGenerator.JsonSerialize arg) ->
|
||||
let spec =
|
||||
{
|
||||
ExtensionMethods =
|
||||
|
Reference in New Issue
Block a user