mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-07-02 09:39:24 +09:00
(WIP) tried to use Strapping, but it had a bag (gave up)
This commit is contained in:
parent
61b6d4a39e
commit
cf55b5601c
4 changed files with 36 additions and 1 deletions
|
@ -6,6 +6,29 @@ using Dates
|
|||
true || include("../src/PSBoardDataBase.jl")
|
||||
|
||||
@testset "PSBoardDataBase" begin
|
||||
@testset "types" begin
|
||||
@testset "StructTypes and Strapping" begin
|
||||
using Strapping
|
||||
|
||||
@info "" Strapping.construct(
|
||||
Vector{PSBoardDataBase.PsBoard},
|
||||
(id = [123, 10], daughterboard_id = [nothing, 12345]),
|
||||
)
|
||||
@test Strapping.construct(
|
||||
PSBoardDataBase.PsBoard,
|
||||
(id = [123], daughterboard_id = [nothing]),
|
||||
) == PSBoardDataBase.PsBoard(123, nothing)
|
||||
|
||||
@test Strapping.construct(
|
||||
Vector{PSBoardDataBase.PsBoard},
|
||||
[(100, nothing), (200, 12345)],
|
||||
) == PSBoardDataBase.PsBoard[
|
||||
PSBoardDataBase.PsBoard(100, nothing),
|
||||
PSBoardDataBase.PsBoard(200, 12345),
|
||||
]
|
||||
end
|
||||
end
|
||||
|
||||
@testset "parse master log" begin
|
||||
masterlog_metadata::PSBoardDataBase.QaqcMasterLog.QaqcMasterLogMetadata =
|
||||
PSBoardDataBase.QaqcMasterLog.parse_master_log("input/log/57_long.log")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue