Project
Loading...
Searching...
No Matches
testCcdbApi.cxx File Reference
#include "CCDB/CcdbApi.h"
#include "CCDB/IdPath.h"
#include "CommonUtils/RootChain.h"
#include "CCDB/CCDBTimeStampUtils.h"
#include <boost/test/unit_test.hpp>
#include <filesystem>
#include <iostream>
#include <TH1F.h>
#include <chrono>
#include <CommonUtils/StringUtils.h>
#include <TStreamerInfo.h>
#include <TGraph.h>
#include <TTree.h>
#include <TString.h>
#include <unistd.h>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/foreach.hpp>
#include <boost/optional/optional.hpp>

Go to the source code of this file.

Classes

struct  Fixture< source_T >
 
struct  if_reachable
 
struct  test_fixture
 

Macros

#define BOOST_BIND_GLOBAL_PLACEHOLDERS
 
#define BOOST_TEST_MODULE   CCDB
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

 BOOST_GLOBAL_FIXTURE (Fixture)
 
 BOOST_AUTO_TEST_CASE (storeTMemFile_test, *utf::precondition(if_reachable()))
 
 BOOST_AUTO_TEST_CASE (store_retrieve_TMemFile_templated_test, *utf::precondition(if_reachable()))
 
 BOOST_AUTO_TEST_CASE (store_max_size_test, *utf::precondition(if_reachable()))
 
 BOOST_AUTO_TEST_CASE (timestamptest, *utf::precondition(if_reachable()))
 A test verifying that the DB responds the correct result for given timestamps.
 
 BOOST_AUTO_TEST_CASE (retrieveTemplatedWithHeaders, *utf::precondition(if_reachable()))
 
 BOOST_AUTO_TEST_CASE (retrieveTMemFile_test, *utf::precondition(if_reachable()))
 
 BOOST_AUTO_TEST_CASE (truncate_test, *utf::precondition(if_reachable()))
 
 BOOST_AUTO_TEST_CASE (delete_test, *utf::precondition(if_reachable()))
 
void countItems (const string &s, int &countObjects, int &countSubfolders)
 
 BOOST_AUTO_TEST_CASE (list_test, *utf::precondition(if_reachable()))
 
 BOOST_AUTO_TEST_CASE (TestHeaderParsing)
 
 BOOST_AUTO_TEST_CASE (TestFetchingHeaders, *utf::precondition(if_reachable()))
 
 BOOST_AUTO_TEST_CASE (TestRetrieveHeaders, *utf::precondition(if_reachable()))
 
 BOOST_AUTO_TEST_CASE (TestUpdateMetadata, *utf::precondition(if_reachable()))
 
 BOOST_AUTO_TEST_CASE (multi_host_test)
 
 BOOST_AUTO_TEST_CASE (vectored)
 

Variables

bool hostReachable = false
 

Detailed Description

Author
Barthelemy von Haller

Definition in file testCcdbApi.cxx.

Macro Definition Documentation

◆ BOOST_BIND_GLOBAL_PLACEHOLDERS

#define BOOST_BIND_GLOBAL_PLACEHOLDERS

Definition at line 17 of file testCcdbApi.cxx.

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 20 of file testCcdbApi.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 19 of file testCcdbApi.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   CCDB

Definition at line 18 of file testCcdbApi.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/15]

BOOST_AUTO_TEST_CASE ( delete_test  ,
utf::preconditionif_reachable() 
)

Definition at line 333 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/15]

BOOST_AUTO_TEST_CASE ( list_test  ,
utf::preconditionif_reachable() 
)

Definition at line 366 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/15]

BOOST_AUTO_TEST_CASE ( multi_host_test  )

Definition at line 557 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/15]

BOOST_AUTO_TEST_CASE ( retrieveTemplatedWithHeaders  ,
utf::preconditionif_reachable() 
)

Definition at line 258 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [5/15]

BOOST_AUTO_TEST_CASE ( retrieveTMemFile_test  ,
utf::preconditionif_reachable() 
)

Definition at line 279 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [6/15]

BOOST_AUTO_TEST_CASE ( store_max_size_test  ,
utf::preconditionif_reachable() 
)

Definition at line 208 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [7/15]

BOOST_AUTO_TEST_CASE ( store_retrieve_TMemFile_templated_test  ,
utf::preconditionif_reachable() 
)

Definition at line 131 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [8/15]

BOOST_AUTO_TEST_CASE ( storeTMemFile_test  ,
utf::preconditionif_reachable() 
)

Definition at line 110 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [9/15]

BOOST_AUTO_TEST_CASE ( TestFetchingHeaders  ,
utf::preconditionif_reachable() 
)

Definition at line 436 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [10/15]

BOOST_AUTO_TEST_CASE ( TestHeaderParsing  )

Definition at line 409 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [11/15]

BOOST_AUTO_TEST_CASE ( TestRetrieveHeaders  ,
utf::preconditionif_reachable() 
)

Definition at line 459 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [12/15]

BOOST_AUTO_TEST_CASE ( TestUpdateMetadata  ,
utf::preconditionif_reachable() 
)

Definition at line 494 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [13/15]

BOOST_AUTO_TEST_CASE ( timestamptest  ,
utf::preconditionif_reachable() 
)

A test verifying that the DB responds the correct result for given timestamps.

Definition at line 224 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [14/15]

BOOST_AUTO_TEST_CASE ( truncate_test  ,
utf::preconditionif_reachable() 
)

Definition at line 320 of file testCcdbApi.cxx.

◆ BOOST_AUTO_TEST_CASE() [15/15]

BOOST_AUTO_TEST_CASE ( vectored  )

Definition at line 569 of file testCcdbApi.cxx.

◆ BOOST_GLOBAL_FIXTURE()

BOOST_GLOBAL_FIXTURE ( Fixture  )

◆ countItems()

void countItems ( const string s,
int countObjects,
int countSubfolders 
)

Definition at line 348 of file testCcdbApi.cxx.

Variable Documentation

◆ hostReachable

bool hostReachable = false

Definition at line 50 of file testCcdbApi.cxx.