Skip to content

Commit

Permalink
[style] fixed style
Browse files Browse the repository at this point in the history
  • Loading branch information
MchKosticyn committed Jan 15, 2024
1 parent f44b571 commit b2e5804
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions VSharp.CoverageTool/CoverageTool.fs
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ type PassiveCoverageTool(workingDirectory: DirectoryInfo, method: MethodBase) =
)
proc.WaitForExit()

if proc.ExitCode <> 0 then
Logger.error $"Run with coverage failed with exit code: {proc.ExitCode}"
-1
else
if proc.IsSuccess() then
match getHistory () with
| Some history -> computeCoverage method.CFG history
| None ->
Logger.error "Failed to retrieve coverage locations"
-1
else
Logger.error $"Run with coverage failed with exit code: {proc.ExitCode}"
-1
3 changes: 2 additions & 1 deletion VSharp.Test/Benchmarks/Benchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ private static bool TryBuildGeneratedTests()
process.StartInfo = info;
process.Start();
process.WaitForExit();
return process.ExitCode == 0;
return process.IsSuccess();
}

private class Reporter: IReporter
{
private readonly UnitTests _unitTests;
Expand Down
6 changes: 3 additions & 3 deletions VSharp.Utils/ExternMocking.fs
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,20 @@ module ExtMocking =

member x.MockedMethod
with get() = mockedMethod
and private set(method) =
and private set method =
mockedMethod <- method

member x.MockImplementations
with get() = mockImplementations
and private set(methodImplementations) =
and private set methodImplementations =
mockImplementations <- methodImplementations

member x.PatchMethod
with get() =
match patchMethod with
| Some pm -> pm
| None -> internalfail "ExternMocking patch method called before initialization"
and private set(m) =
and private set m =
patchMethod <- Some m

member x.Build(moduleBuilder : ModuleBuilder, testId) =
Expand Down

0 comments on commit b2e5804

Please sign in to comment.