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

JuliaLang / julia / #37733
77%

Build:
DEFAULT BRANCH: master
Ran 31 Mar 2024 10:32AM UTC
Jobs 1
Files 361
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

31 Mar 2024 01:56AM UTC coverage: 81.428% (+0.5%) from 80.965%
#37733

push

local

web-flow
Copy for `CartesianIndices`/`LinearIndices` need not materialize (#53901)

Currently,
```julia
julia> C = CartesianIndices((1:2, 1:2))
CartesianIndices((1:2, 1:2))

julia> copy(C)
2×2 Matrix{CartesianIndex{2}}:
 CartesianIndex(1, 1)  CartesianIndex(1, 2)
 CartesianIndex(2, 1)  CartesianIndex(2, 2)
```
However, seeing that a `CartesianIndices` is equivalent to an n-D range,
there doesn't seem to be a need to materialize the result. This PR also
ensures that `copy(C)` returns the same type as `C`.

After this PR:
```julia
julia> C = CartesianIndices((1:2, 1:2))
CartesianIndices((1:2, 1:2))

julia> copy(C)
CartesianIndices((1:2, 1:2))
```
Also, a similar change for `LinearIndices` is added.

3 of 3 new or added lines in 2 files covered. (100.0%)

15 existing lines in 5 files now uncovered.

70677 of 86797 relevant lines covered (81.43%)

15779812.3 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
90.95
-0.41% stdlib/Random/src/generation.jl
1
66.9
0.05% base/loading.jl
3
78.26
-13.04% base/locks-mt.jl
4
80.67
-1.49% base/docs/Docs.jl
6
44.99
-0.08% stdlib/Printf/src/Printf.jl
Jobs
ID Job ID Ran Files Coverage
1 #37733.1 31 Mar 2024 10:32AM UTC 361
81.43
Source Files on build #37733
  • Tree
  • List 361
  • Changed 283
  • Source Changed 0
  • Coverage Changed 34
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a3f710e2 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