Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/MDFInMemory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ mutable struct MDFv2InMemory <: MPIFile # TODO: Not sure, if MPIFile is a good f
end
end

MDFv2InMemory(mdfFile::MDFv2InMemory) = deepcopy(mdffile)
MDFv2InMemory(mdfFile::MDFFileV2) = inMemoryMDFFromMDFFileV2(mdfFile)
MDFv2InMemory(dict::Dict) = inMemoryMDFFromDict(dict)

Expand Down
7 changes: 7 additions & 0 deletions test/MDFInMemory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ end
@test rxUnit(mdf) == "V"
end

@testset "Self-creation" begin
mdf = defaultMDFv2InMemory()
mdf_self = MDFv2InMemory(mdf)

@test typeof(mdf_self) == MDFv2InMemory
end

@testset "Dict" begin
@testset "String keys" begin
dict = Dict{String, Any}()
Expand Down
Loading