[Gdcm-hackers] gdcm-git:Grassroots DICOM branch release updated. 509472df209e0e67a1fae6f5b0f8cabc8e
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: Mathieu M. <ma...@us...> - 2020-12-10 14:52:24
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Grassroots DICOM".
The branch, release has been updated
via 509472df209e0e67a1fae6f5b0f8cabc8e0ebae3 (commit)
from 2d7dc483f8dbe3d2f0e8131797eb7c057de7cc0c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceforge.net/p/gdcm/gdcm/ci/509472df209e0e67a1fae6f5b0f8cabc8e0ebae3/
commit 509472df209e0e67a1fae6f5b0f8cabc8e0ebae3
Author: Mathieu Malaterre <mat...@gm...>
Date: Thu Dec 10 15:51:51 2020 +0100
add a unit test for empty media storage case
diff --git a/Testing/Source/DataStructureAndEncodingDefinition/Cxx/TestMediaStorage.cxx b/Testing/Source/DataStructureAndEncodingDefinition/Cxx/TestMediaStorage.cxx
index e89d7abbc..12e3409ab 100644
--- a/Testing/Source/DataStructureAndEncodingDefinition/Cxx/TestMediaStorage.cxx
+++ b/Testing/Source/DataStructureAndEncodingDefinition/Cxx/TestMediaStorage.cxx
@@ -12,6 +12,8 @@
=========================================================================*/
#include "gdcmMediaStorage.h"
+#include "gdcmFile.h"
+#include "gdcmDataElement.h"
int TestMediaStorage(int argc, char *argv[])
{
@@ -73,5 +75,36 @@ int TestMediaStorage(int argc, char *argv[])
return 1;
}
+{
+ gdcm::File f;
+ gdcm::DataSet &ds = f.GetDataSet();
+ gdcm::DataElement de;
+ de.SetTag( gdcm::Tag(0x8,0x16) );
+ ds.Insert( de );
+ gdcm::MediaStorage ms3;
+ ms3.SetFromFile( f );
+ if( ms3 != gdcm::MediaStorage::SecondaryCaptureImageStorage )
+ {
+ std::cerr << "SecondaryCaptureImageStorage" << std::endl;
+ return 1;
+ }
+}
+{
+ gdcm::File f;
+ gdcm::FileMetaInformation &fmi = f.GetHeader();
+ gdcm::DataElement de;
+ de.SetTag( gdcm::Tag(0x2,0x2) );
+ // de.SetByteValue( "", 0 );
+ fmi.Insert( de );
+ gdcm::MediaStorage ms4;
+ ms4.SetFromFile( f );
+ if( ms4 != gdcm::MediaStorage::SecondaryCaptureImageStorage )
+ {
+ std::cerr << "SecondaryCaptureImageStorage" << std::endl;
+ return 1;
+ }
+}
+
+
return 0;
}
-----------------------------------------------------------------------
Summary of changes:
.../Cxx/TestMediaStorage.cxx | 33 ++++++++++++++++++++++
1 file changed, 33 insertions(+)
hooks/post-receive
--
Grassroots DICOM
|