ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
matchers.hpp
Go to the documentation of this file.
1 /**
2  * @file
3  * @ingroup daq_ocm_fits_test
4  * @copyright 2022 ESO - European Southern Observatory
5  *
6  * @brief Contains common matchers
7  */
8 #ifndef DAQ_LIBFITS_MATCHERS_HPP
9 #define DAQ_LIBFITS_MATCHERS_HPP
10 
11 #include <gmock/gmock.h>
12 
13 MATCHER_P2(IsKeyword, name, type, "Match keyword name and type") {
14  auto [kw_name, kw_type] = arg.GetName();
15  return name == kw_name && type == kw_type;
16 }
17 
18 #endif // #ifndef DAQ_LIBFITS_MATCHERS_HPP
MATCHER_P2(IsKeyword, name, type, "Match keyword name and type")
Definition: matchers.hpp:13