• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaLang / julia / #37937
77%

Build:
DEFAULT BRANCH: master
Ran 18 Oct 2024 10:16AM UTC
Jobs 1
Files 362
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Oct 2024 09:19PM UTC coverage: 87.661% (-0.1%) from 87.779%
#37937

push

local

web-flow
Fix triu/tril for partly initialized matrices (#55312)

This fixes
```julia
julia> using LinearAlgebra, StaticArrays

julia> M = Matrix{BigInt}(undef, 2, 2); M[1,1] = M[2,2] = M[1,2] = 3;

julia> S = SizedMatrix{2,2}(M)
2×2 SizedMatrix{2, 2, BigInt, 2, Matrix{BigInt}} with indices SOneTo(2)×SOneTo(2):
   3     3
 #undef  3

julia> triu(S)
ERROR: UndefRefError: access to undefined reference
Stacktrace:
 [1] getindex
   @ ./essentials.jl:907 [inlined]
 [2] getindex
   @ ~/.julia/packages/StaticArrays/MSJcA/src/SizedArray.jl:92 [inlined]
 [3] copyto_unaliased!
   @ ./abstractarray.jl:1086 [inlined]
 [4] copyto!(dest::SizedMatrix{2, 2, BigInt, 2, Matrix{BigInt}}, src::SizedMatrix{2, 2, BigInt, 2, Matrix{BigInt}})
   @ Base ./abstractarray.jl:1066
 [5] copymutable
   @ ./abstractarray.jl:1200 [inlined]
 [6] triu(M::SizedMatrix{2, 2, BigInt, 2, Matrix{BigInt}})
   @ LinearAlgebra ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/LinearAlgebra/src/generic.jl:413
 [7] top-level scope
   @ REPL[11]:1
```
After this PR:
```julia
julia> triu(S)
2×2 SizedMatrix{2, 2, BigInt, 2, Matrix{BigInt}} with indices SOneTo(2)×SOneTo(2):
 3  3
 0  3
```
Only the indices that need to be copied are accessed, and the others are
written to without being read.

20 of 20 new or added lines in 1 file covered. (100.0%)

573 existing lines in 13 files now uncovered.

79111 of 90247 relevant lines covered (87.66%)

17057704.24 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
98.08
-1.92% stdlib/Markdown/src/render/terminal/formatting.jl
1
97.96
-2.04% base/some.jl
1
93.36
-0.04% base/compiler/abstractinterpretation.jl
1
90.69
-0.05% base/compiler/tfuncs.jl
2
95.35
-0.14% stdlib/LinearAlgebra/src/diagonal.jl
3
67.84
-1.75% base/Base.jl
8
85.45
-1.05% stdlib/Profile/src/Profile.jl
25
75.0
0.13% base/initdefs.jl
25
0.0
0.0% stdlib/REPL/src/Pkg_beforeload.jl
97
65.52
-0.07% base/task.jl
128
81.41
0.3% stdlib/REPL/src/REPL.jl
136
44.62
-37.6% base/lock.jl
145
75.87
0.01% base/loading.jl
Jobs
ID Job ID Ran Files Coverage
1 #37937.1 18 Oct 2024 10:16AM UTC 362
87.66
Source Files on build #37937
  • Tree
  • List 362
  • Changed 260
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f1990e2e on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc