Belle II Software  release-05-02-19
TestIntervalOfValidity Class Reference
Inheritance diagram for TestIntervalOfValidity:
Collaboration diagram for TestIntervalOfValidity:

Public Member Functions

def iovify (self, iov)
 
def test_create (self)
 
def test_intersection (self)
 
def test_union (self)
 
def test_union_startone (self)
 
def test_subtract (self)
 

Detailed Description

Helper class to test an IoV

Definition at line 14 of file test_iov.py.

Member Function Documentation

◆ iovify()

def iovify (   self,
  iov 
)
Helper function to turn a tuple/None/list(tuple) into iov instances

Definition at line 17 of file test_iov.py.

17  def iovify(self, iov):
18  """Helper function to turn a tuple/None/list(tuple) into iov instances"""
19  if isinstance(iov, list):
20  return tuple(IntervalOfValidity(i) for i in iov)
21  elif iov is not None:
22  return IntervalOfValidity(iov)
23  else:
24  return None
25 

◆ test_create()

def test_create (   self)
Test that we get errors when creating invalid iovs

Definition at line 26 of file test_iov.py.

◆ test_intersection()

def test_intersection (   self)
Test that we can intersect iovs

Definition at line 50 of file test_iov.py.

◆ test_subtract()

def test_subtract (   self)
Test subtracting iovs from another

Definition at line 94 of file test_iov.py.

◆ test_union()

def test_union (   self)
Test that we can calculate the union of iovs

Definition at line 66 of file test_iov.py.

◆ test_union_startone()

def test_union_startone (   self)
Test that we can calculate the union starting at run 1 as well

Definition at line 88 of file test_iov.py.


The documentation for this class was generated from the following file: