summary_run_metrics_test.h
Go to the documentation of this file.
1 
8 #pragma once
9 #include <gtest/gtest.h>
10 #include "metric_test.h"
13 
14 namespace illumina{ namespace interop { namespace unittest
15 {
16 
23  struct summary_run_v1 : metric_test<model::metrics::summary_run_metric, 1>
24  {
30  {
31  metrics = metric_set_t(header_t(), VERSION);
32  metrics.insert(metric_t(1.0f, 2.0f, 3.0f, 4.0f));// Only supports single metric!
33  }
38  template<class Collection>
39  static void create_binary_data(Collection &buffer)
40  {
41  const signed char tmp[] =
42  {
43  1
44  ,34,0,0,0,0,0,0,0,0,0,0,0,-16,63,0,0,0,0,0,0
45  ,0,64,0,0,0,0,0,0,8,64,0,0,0,0,0,0,16,64
46  };
47  buffer.assign(tmp, tmp+util::length_of(tmp));
48  }
49  };
50 
51 }}}
52 
void insert(const metric_type &metric)
Definition: metric_set.h:267
Definition: enum_description.h:15
static void create_binary_data(Collection &buffer)
Definition: summary_run_metrics_test.h:39
model::metrics::summary_run_metric metric_t
Definition: metric_test.h:57
Definition: metric_test.h:41
model::metric_base::metric_set< model::metrics::summary_run_metric > metric_set_t
Definition: metric_test.h:59
Definition: summary_run_metrics_test.h:23
static void create_expected(metric_set_t &metrics, const model::run::info &=model::run::info())
Definition: summary_run_metrics_test.h:29
size_t length_of(const T &val)
Definition: length_of.h:55