Skip to content

Commit 8c36272

Browse files
committed
Adding Unit Test for ChestTube
1 parent 2ca0260 commit 8c36272

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

projects/biogears/libBiogears/src/io/cdm/Property.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ specific language governing permissions and limitations under the License.
6161
}*/
6262

6363
#define CDM_RUNNING_AVERAGE_PTR_MARSHALL_HELPER(in, out, func) \
64-
\
6564
out.func(std::make_unique<std::remove_reference<decltype(out.func())>::type>()); \
6665
io::Property::Marshall(in.m_##func, out.func());
6766

projects/biogears/libBiogears/unit/io/cdm/test_core_io_PatientActions.cpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,32 @@ TEST_F(TEST_FIXTURE_NAME, ChestOcclusiveDressing)
384384
EXPECT_EQ(source, sink);
385385
}
386386

387+
#include <biogears/cdm/patient/actions/SEChestTube.h>
388+
// class SEChestTube;
389+
//!
390+
//! TYPE ChestTube
391+
//! static void UnMarshall(const CDM::ChestTubeData& in, SEChestTube& out);
392+
//! static void Marshall(const SEChestTube& in, CDM::ChestTubeData& out);
393+
//!
394+
TEST_F(TEST_FIXTURE_NAME, ChestTube)
395+
{
396+
USING_TYPES(ChestTube)
397+
398+
SEType source, sink;
399+
CDMType data;
400+
401+
source.SetComment("Test Comment");
402+
source.SetSide(biogears::SESide::Left);
403+
source.SetActive(true);
404+
405+
EXPECT_NE(source, sink);
406+
407+
PatientActions::Marshall(source, data);
408+
PatientActions::UnMarshall(data, sink);
409+
410+
EXPECT_EQ(source, sink);
411+
}
412+
387413
#include <biogears/cdm/patient/actions/SEEbola.h>
388414
// class SEEbola;
389415
// static void UnMarshall(const CDM::EbolaData& in, SEEbola& out);

0 commit comments

Comments
 (0)