Rewrite #1
1 changed files with 2 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ let getMetadataLoadContext (assemblyPath: string) =
|
||||||
|
|
||||||
new MetadataLoadContext(pathAssemblyResolver, typeof<obj>.Assembly.GetName().Name)
|
new MetadataLoadContext(pathAssemblyResolver, typeof<obj>.Assembly.GetName().Name)
|
||||||
|
|
||||||
let unindented (s: string) =
|
let unindentPatch (s: string) =
|
||||||
let lines = s.Split([| "\r\n"; "\n" |], StringSplitOptions.None)
|
let lines = s.Split([| "\r\n"; "\n" |], StringSplitOptions.None)
|
||||||
|
|
||||||
let indexOfFirstNonEmptyLine =
|
let indexOfFirstNonEmptyLine =
|
||||||
|
|
@ -114,7 +114,7 @@ let getMutationCases projectPath =
|
||||||
| "Mutannot.MutationCaseAttribute" ->
|
| "Mutannot.MutationCaseAttribute" ->
|
||||||
Some
|
Some
|
||||||
{ TestName = $"{m.DeclaringType.FullName}.{m.Name}"
|
{ TestName = $"{m.DeclaringType.FullName}.{m.Name}"
|
||||||
Patch = attr.ConstructorArguments[0].Value :?> string |> unindented }
|
Patch = attr.ConstructorArguments[0].Value :?> string |> unindentPatch }
|
||||||
| _ -> None))
|
| _ -> None))
|
||||||
|> Seq.toList
|
|> Seq.toList
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue