Krylov.jl icon indicating copy to clipboard operation
Krylov.jl copied to clipboard

Add tests for verbose mode

Open amontoison opened this issue 3 years ago • 3 comments

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')

amontoison avatar Dec 20 '21 16:12 amontoison

Package name latest stable
CaNNOLeS.jl
DCISolver.jl
FletcherPenaltySolver.jl
JSOSolvers.jl
LLSModels.jl
LinearSolve.jl
Percival.jl
RipQP.jl

github-actions[bot] avatar Dec 20 '21 16:12 github-actions[bot]

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.

codecov[bot] avatar Apr 15 '22 05:04 codecov[bot]

Package name latest stable
CaNNOLeS.jl
DCISolver.jl
JSOSolvers.jl
LLSModels.jl
Percival.jl
RipQP.jl

github-actions[bot] avatar Apr 15 '22 05:04 github-actions[bot]

It should be easier to finalize this PR now because all Krylov methods have a keyword argument iostream.

amontoison avatar May 08 '23 05:05 amontoison