Project
Loading...
Searching...
No Matches
test_ransHistogramView.cxx File Reference

test helper class that unifies handling of different types of histograms More...

#include <vector>
#include <algorithm>
#include <boost/test/unit_test.hpp>
#include <boost/mpl/vector.hpp>
#include "rANS/internal/containers/HistogramView.h"

Go to the source code of this file.

Classes

struct  ReferenceState
 
struct  HistogramViewFixture_one
 
struct  HistogramViewFixture_plus
 
struct  HistogramViewFixture_minus
 
struct  HistogramViewFixture_plusminus
 
struct  trimFixture_left
 
struct  trimFixture_right
 
struct  trimFixture_both
 
struct  trimFixture_none
 

Macros

#define BOOST_TEST_MODULE   Utility test
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Typedefs

using histogramViewFixtures_t = boost::mpl::vector< HistogramViewFixture_one, HistogramViewFixture_plus, HistogramViewFixture_minus, HistogramViewFixture_plusminus >
 
using trimFixture_t = boost::mpl::vector< trimFixture_left, trimFixture_right, trimFixture_both, trimFixture_none >
 

Functions

 BOOST_AUTO_TEST_CASE (test_emptyHistogramView)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (test_histogramView, fixture, histogramViewFixtures_t)
 
 BOOST_AUTO_TEST_CASE (test_trimEmpty)
 
 BOOST_AUTO_TEST_CASE (test_trimFull)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (test_trim, fixture, trimFixture_t)
 
 BOOST_AUTO_TEST_CASE (intersection_disjointLeft)
 
 BOOST_AUTO_TEST_CASE (intersection_disjointRight)
 
 BOOST_AUTO_TEST_CASE (intersection_leftOverlap)
 
 BOOST_AUTO_TEST_CASE (intersection_rightOverlap)
 
 BOOST_AUTO_TEST_CASE (intersection_fullOverlap)
 
 BOOST_AUTO_TEST_CASE (intersection_emptyB)
 
 BOOST_AUTO_TEST_CASE (intersection_emptyA)
 
 BOOST_AUTO_TEST_CASE (intersection_empty)
 
 BOOST_AUTO_TEST_CASE (tails_empty)
 
 BOOST_AUTO_TEST_CASE (tails_emptyA)
 
 BOOST_AUTO_TEST_CASE (tails_emptyB)
 
 BOOST_AUTO_TEST_CASE (tails_leftTail)
 
 BOOST_AUTO_TEST_CASE (tails_rightTail)
 
 BOOST_AUTO_TEST_CASE (tails_bothTail)
 

Detailed Description

test helper class that unifies handling of different types of histograms

Author
Michael Lettrich

Definition in file test_ransHistogramView.cxx.

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 18 of file test_ransHistogramView.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 17 of file test_ransHistogramView.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Utility test

Definition at line 16 of file test_ransHistogramView.cxx.

Typedef Documentation

◆ histogramViewFixtures_t

◆ trimFixture_t

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/17]

BOOST_AUTO_TEST_CASE ( intersection_disjointLeft  )

Definition at line 184 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/17]

BOOST_AUTO_TEST_CASE ( intersection_disjointRight  )

Definition at line 203 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/17]

BOOST_AUTO_TEST_CASE ( intersection_empty  )

Definition at line 317 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/17]

BOOST_AUTO_TEST_CASE ( intersection_emptyA  )

Definition at line 298 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [5/17]

BOOST_AUTO_TEST_CASE ( intersection_emptyB  )

Definition at line 279 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [6/17]

BOOST_AUTO_TEST_CASE ( intersection_fullOverlap  )

Definition at line 260 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [7/17]

BOOST_AUTO_TEST_CASE ( intersection_leftOverlap  )

Definition at line 222 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [8/17]

BOOST_AUTO_TEST_CASE ( intersection_rightOverlap  )

Definition at line 241 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [9/17]

BOOST_AUTO_TEST_CASE ( tails_bothTail  )

Definition at line 476 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [10/17]

BOOST_AUTO_TEST_CASE ( tails_empty  )

Definition at line 336 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [11/17]

BOOST_AUTO_TEST_CASE ( tails_emptyA  )

Definition at line 364 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [12/17]

BOOST_AUTO_TEST_CASE ( tails_emptyB  )

Definition at line 392 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [13/17]

BOOST_AUTO_TEST_CASE ( tails_leftTail  )

Definition at line 420 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [14/17]

BOOST_AUTO_TEST_CASE ( tails_rightTail  )

Definition at line 448 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [15/17]

BOOST_AUTO_TEST_CASE ( test_emptyHistogramView  )

Definition at line 43 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [16/17]

BOOST_AUTO_TEST_CASE ( test_trimEmpty  )

Definition at line 100 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE() [17/17]

BOOST_AUTO_TEST_CASE ( test_trimFull  )

Definition at line 115 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/2]

BOOST_AUTO_TEST_CASE_TEMPLATE ( test_histogramView  ,
fixture  ,
histogramViewFixtures_t   
)

Definition at line 83 of file test_ransHistogramView.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/2]

BOOST_AUTO_TEST_CASE_TEMPLATE ( test_trim  ,
fixture  ,
trimFixture_t   
)

Definition at line 166 of file test_ransHistogramView.cxx.