Rewrite #1

Open
svenvanheugten wants to merge 23 commits from mutannot-rewrite into main
Showing only changes of commit 63d0219e9e - Show all commits

View file

@ -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