Krylov.jl
Krylov.jl copied to clipboard
Add tests for verbose mode
close #474 I should use a temporary file for each test and wrap everything in a function.
open("test.txt", "w") do fileio
redirect_stdout(fileio) do
xyz(A, b, verbose=1)
Base.Libc.flush_cstdio()
end
end
showed = read("test.txt", String)
@test strip(showed, '\n') == strip(expected, '\n')
Package name | latest | stable |
---|---|---|
CaNNOLeS.jl | ||
DCISolver.jl | ||
FletcherPenaltySolver.jl | ||
JSOSolvers.jl | ||
LLSModels.jl | ||
LinearSolve.jl | ||
Percival.jl | ||
RipQP.jl |
Codecov Report
Patch coverage: 100.00
% and project coverage change: +0.02
:tada:
Comparison is base (
b22e980
) 96.99% compared to head (113f325
) 97.02%.
Additional details and impacted files
@@ Coverage Diff @@
## main #475 +/- ##
==========================================
+ Coverage 96.99% 97.02% +0.02%
==========================================
Files 38 38
Lines 6887 6887
==========================================
+ Hits 6680 6682 +2
+ Misses 207 205 -2
Impacted Files | Coverage Δ | |
---|---|---|
src/cg.jl | 96.58% <100.00%> (ø) |
|
src/cr.jl | 66.66% <100.00%> (+0.88%) |
:arrow_up: |
src/krylov_stats.jl | 100.00% <100.00%> (ø) |
|
src/usymqr.jl | 97.27% <100.00%> (ø) |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
It should be easier to finalize this PR now because all Krylov methods have a keyword argument iostream
.