Project
Loading...
Searching...
No Matches
test_HeartbeatFrame.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#define BOOST_TEST_MODULE Test HeartbeatFrame
13#define BOOST_TEST_MAIN
14#define BOOST_TEST_DYN_LINK
15#include <boost/test/unit_test.hpp>
16#include <iostream>
17#include <iomanip>
18#include "Headers/DataHeader.h"
20
24
25BOOST_AUTO_TEST_CASE(test_heartbeatframe)
26{
27 HeartbeatHeader header;
28 HeartbeatTrailer trailer;
29
30 // checking the consistency operators
31 BOOST_CHECK(header);
32 BOOST_CHECK(trailer);
33
34 // checking the block type identifier
35 BOOST_CHECK(header.blockType == 1);
36 BOOST_CHECK(trailer.blockType == 5);
37
38 // checking length
39 BOOST_CHECK(header.headerLength == 1);
40 BOOST_CHECK(trailer.trailerLength == 1);
41}
the main header struct
Definition DataHeader.h:618
BOOST_AUTO_TEST_CASE(test_heartbeatframe)
BOOST_CHECK(tree)