Skip to content

missed coverage for a method whose body is an isbits literal #54214

Open
@nsajko

Description

In an otherwise empty directory, I have j.jl:

f( ::Tuple{}) = 1
f(t::Tuple{Int}) = only(t)

f(())
f((3,))

When I run julia --code-coverage=@ j.jl, I get:

        - f( ::Tuple{}) = 1
        1 f(t::Tuple{Int}) = only(t)
        - 
        - f(())
        - f((3,))

So the empty tuple method doesn't seem to get any code coverage recorded.

julia> versioninfo()
Julia Version 1.12.0-DEV.387
Commit b5bfd83a3d0 (2024-04-22 13:12 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × AMD Ryzen 3 5300U with Radeon Graphics
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver2)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
Environment:
  JULIA_NUM_PRECOMPILE_TASKS = 3
  JULIA_PKG_PRECOMPILE_AUTO = 0

Hitting this here: JuliaArrays/FixedSizeArrays.jl#26

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorcode coverage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions