Skip to content

Commit 16c5ef0

Browse files
committed
ci: exclude coverage of isbits functions
1 parent 64035a5 commit 16c5ef0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Expression.jl

+2
Original file line numberDiff line numberDiff line change
@@ -506,12 +506,14 @@ end
506506
# We don't require users to overload this, as it's not part of the required interface.
507507
# Also, there's no way to generally do this from the required interface, so for backwards
508508
# compatibility, we just return nothing.
509+
# COV_EXCL_START
509510
function copy_into!(::Nothing, src::AbstractExpression)
510511
return copy(src)
511512
end
512513
function allocate_container(::AbstractExpression, ::Union{Nothing,Integer}=nothing)
513514
return nothing
514515
end
516+
# COV_EXCL_STOP
515517
function allocate_container(prototype::Expression, n::Union{Nothing,Integer}=nothing)
516518
return (; tree=allocate_container(get_contents(prototype), n))
517519
end

src/NodePreallocation.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ function copy_into!(
4848
N,
4949
)
5050
end
51+
# COV_EXCL_START
5152
function leaf_copy_into!(dest::N, src::N) where {N<:AbstractExpressionNode}
5253
set_node!(dest, src)
5354
return dest
5455
end
56+
# COV_EXCL_STOP
5557
function branch_copy_into!(
5658
dest::N, src::N, children::Vararg{N,M}
5759
) where {N<:AbstractExpressionNode,M}
@@ -64,5 +66,4 @@ function branch_copy_into!(
6466
return dest
6567
end
6668

67-
6869
end

0 commit comments

Comments
 (0)