12#define BOOST_TEST_MODULE Test DCS DataPointGenerator
13#define BOOST_TEST_MAIN
15#define BOOST_TEST_DYN_LINK
17#include <boost/test/unit_test.hpp>
18#include <boost/test/data/test_case.hpp>
22#include <fmt/format.h>
34 double value = o2::dcs::getValue<double>(dp);
49 float value = o2::dcs::getValue<float>(dp);
50 BOOST_TEST_INFO(fmt::format(
"value={}",
value));
65 double value = o2::dcs::getValue<int32_t>(dp);
67 BOOST_CHECK_THROW(o2::dcs::getValue<double>(dp), std::runtime_error);
68 BOOST_CHECK_THROW(o2::dcs::getValue<uint32_t>(dp), std::runtime_error);
82 double value = o2::dcs::getValue<uint32_t>(dp);
84 BOOST_CHECK_THROW(o2::dcs::getValue<double>(dp), std::runtime_error);
85 BOOST_CHECK_THROW(o2::dcs::getValue<int32_t>(dp), std::runtime_error);
98 BOOST_CHECK_THROW(o2::dcs::getValue<int>(dp), std::runtime_error);
108 for (
auto dp : fbi) {
111 BOOST_CHECK_THROW(o2::dcs::getValue<int>(dp), std::runtime_error);
112 auto value = o2::dcs::getValue<std::string>(dp);
GLsizei const GLfloat * value
std::vector< o2::dcs::DataPointCompositeObject > generateRandomDataPoints< bool >(const std::vector< std::string > &aliases, bool minValue, bool maxValue, std::string refDate)
std::vector< DataPointCompositeObject > generateRandomDataPoints(const std::vector< std::string > &aliases, T min, T max, std::string refDate="")
std::vector< o2::dcs::DataPointCompositeObject > generateRandomDataPoints< std::string >(const std::vector< std::string > &aliases, std::string minLength, std::string maxLength, std::string refDate)
BOOST_AUTO_TEST_CASE(GenerateDouble)
BOOST_CHECK_NO_THROW(algorithm::merge(target, other))
BOOST_CHECK_EQUAL(triggersD.size(), triggers.size())