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

pabloferz / NIntegration.jl / 39

29 Jun 2017 - 3:09 coverage: 92.285% (-3.2%) from 95.495%
39

Pull #7

travis-ci

web-flow
Add support for julia v0.6.0
Pull Request #7: Add support for julia v0.6.0

10 of 18 new or added lines in 3 files covered. (55.56%)

6 existing lines in 1 file now uncovered.

311 of 337 relevant lines covered (92.28%)

1488.96 hits per line

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

57.14
/src/types.jl
1
mutable struct Box{T}
2
    x::T
3

4
    Box{T}() where {T} = new()
328×
5
    Box{T}(x) where {T} = new(x)
164×
6
end
7
Box(x::T) where {T} = Box{T}(x)
164×
8

9
struct Region{N,T<:AbstractFloat,R}
10
    x::MVector{N,T} # center
164×
11
    h::MVector{N,T} # half-width
12
    I::Box{R}
13
    E::Box{R}
14
    axis::Box{Int8}
15
end
16
Region(::Type{R}, x::NTuple{N,T}, h::NTuple{N,T}) where {R,N,T} =
164×
17
    Region{N,T,R}(MVector(x), MVector(h), Box{R}(), Box{R}(), Box(Int8(0)))
18
Region(x::NTuple{N,T}, h::NTuple{N,T}) where {N,T} =
19
    Region{N,T,Float64}(MVector(x), MVector(h), Box(0.0), Box(0.0), Box(Int8(0)))
20

21
Base.isless(r���::Region{N}, r���::Region{N}) where {N} = isless(r���.E.x, r���.E.x)
8,578×
22
Base.isequal(r���::Region{N}, r���::Region{N}) where {N} = isequal(r���.E.x, r���.E.x)
23

UNCOV
24
Base.show(io::IO, r::Region) = print(io, '(', r.x, ", ", r.h, ')')
!
25

26
struct Regions{R<:Region}
27
    v::Vector{R}
328×
28
end
29

UNCOV
30
Base.size(r::Regions) = size(r.v)
!
UNCOV
31
Base.getindex(r::Regions, i::Int) = r.v[i]
!
UNCOV
32
Base.setindex!(r::Regions, v, i::Int) = (r.v[i] = v)
!
33

UNCOV
34
Base.show(io::IO, m::MIME"text/plain", r::Regions) = show(io, m, r.v)
!
UNCOV
35
Base.show(io::IO, r::Regions) =
!
36
    (n = length(r.v); print(io, n, " subregion", n == 1 ? "" : "s"))
37

38
struct WPoints{N,T,R}
39
    w::Vector{R}
8×
40
    p::Vector{SVector{N,T}}
41
end
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2023 Coveralls, Inc