Belle II Software  release-08-01-10
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 21 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 24 of file test_iov.py.

24  def iovify(self, iov):
25  """Helper function to turn a tuple/None/list(tuple) into iov instances"""
26  if isinstance(iov, list):
27  return tuple(IntervalOfValidity(i) for i in iov)
28  elif iov is not None:
29  return IntervalOfValidity(iov)
30  else:
31  return None
32 

◆ test_create()

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

Definition at line 33 of file test_iov.py.

◆ test_intersection()

def test_intersection (   self)
Test that we can intersect iovs

Definition at line 57 of file test_iov.py.

◆ test_subtract()

def test_subtract (   self)
Test subtracting iovs from another

Definition at line 101 of file test_iov.py.

◆ test_union()

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

Definition at line 73 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 95 of file test_iov.py.


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