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

JuliaLang / julia / #37997

29 Jan 2025 02:08AM UTC coverage: 17.283% (-68.7%) from 85.981%
#37997

push

local

web-flow
bpart: Start enforcing min_world for global variable definitions (#57150)

This is the analog of #57102 for global variables. Unlike for consants,
there is no automatic global backdate mechanism. The reasoning for this
is that global variables can be declared at any time, unlike constants
which can only be decalared once their value is available. As a result
code patterns using `Core.eval` to declare globals are rarer and likely
incorrect.

1 of 22 new or added lines in 3 files covered. (4.55%)

31430 existing lines in 188 files now uncovered.

7903 of 45728 relevant lines covered (17.28%)

98663.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/stdlib/LibGit2/src/strarray.jl
1
# This file is a part of Julia. License is MIT: https://julialang.org/license
2

3
function Base.cconvert(::Type{Ptr{StrArrayStruct}}, x::Vector)
UNCOV
4
    str_ref = Base.cconvert(Ref{Cstring}, x)
×
UNCOV
5
    sa_ref = Ref(StrArrayStruct(Base.unsafe_convert(Ref{Cstring}, str_ref), length(x)))
×
UNCOV
6
    sa_ref, str_ref
×
7
end
8
function Base.unsafe_convert(::Type{Ptr{StrArrayStruct}}, rr::Tuple{Ref{StrArrayStruct}, Ref{Cstring}})
UNCOV
9
    Base.unsafe_convert(Ptr{StrArrayStruct}, first(rr))
×
10
end
11

UNCOV
12
Base.length(sa::StrArrayStruct) = sa.count
×
13
function Base.iterate(sa::StrArrayStruct, state=1)
UNCOV
14
    state > sa.count && return nothing
×
UNCOV
15
    (unsafe_string(unsafe_load(sa.strings, state)), state+1)
×
16
end
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