< Summary

Information
Class: src/tables.jl
Assembly: Default
File(s): src/tables.jl
Tag: 40_3060321334
Line coverage
88%
Covered lines: 16
Uncovered lines: 2
Coverable lines: 18
Total lines: 28
Line coverage: 88.8%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Method coverage is only available for sponsors.

Upgrade to PRO version

File(s)

src/tables.jl

#LineLine coverage
 1# Tables.jl interface
 12Tables.istable(::Type{<:JSONWorksheet}) = true
 13Tables.isrowtable(::Type{<:JSONWorksheet}) = true
 14Tables.rowaccess(::Type{<:JSONWorksheet}) = true
 365Tables.rows(jws::JSONWorksheet) = jws.data
 6
 57Tables.columns(jws::JSONWorksheet) = map(p -> jws[:, p], Tables.columnnames(jws))
 28Tables.columnnames(jws::JSONWorksheet) = jws.pointer
 49Tables.getcolumn(jws::JSONWorksheet, i::Int) = jws[:, i]
 110function Tables.getcolumn(jws::JSONWorksheet, p::Symbol)
 111    Tables.getcolumn(jws, JSONPointer.Pointer(string(p)))
 12end
 213Tables.getcolumn(jws::JSONWorksheet, p::Pointer) = jws[:, p]
 14
 15
 016Tables.materializer(jws::JSONWorksheet) = jws.data
 17
 318function Tables.matrix(jws::JSONWorksheet, transpose::Bool=false)
 319    matrix = jws[:, :]
 220    if transpose
 121        return permutedims(matrix)
 122    elseif matrix isa AbstractVector
 23        # always return a matrix, for type stability
 024        return reshape(matrix, :, 1)
 25    else
 126        return matrix
 27    end
 28end

Methods/Properties