• 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

Jobs
ID Job ID Ran Files Coverage
1 #37733.1 31 Mar 2024 10:32AM UTC 0
81.43
Source Files on build #37733
Detailed source file information is not available for this build.
  • 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