|
DAS
3.0
Das Analysis System
|
#include <boost/test/included/unit_test.hpp>
#include <boost/exception/all.hpp>
#include "darwin.h"
#include "Event.h"
#include "test.h"
#include <TFile.h>
◆ BOOST_TEST_MODULE
#define BOOST_TEST_MODULE testOptions |
◆ DARWIN_EXAMPLE
#define DARWIN_EXAMPLE DARWIN "/test/example.info" |
◆ BOOST_AUTO_TEST_CASE() [1/3]
BOOST_AUTO_TEST_CASE |
( |
read_only |
| ) |
|
58 auto t1 = make_shared<TTree>(
"t1",
"t1");
62 BOOST_TEST_MESSAGE(
"Trying to read an existing branch with the correct type" );
65 BOOST_TEST_MESSAGE(
"Trying to read inexisting branch" );
68 BOOST_TEST_MESSAGE(
"Trying to read a branch assuming a wrong type" );
◆ BOOST_AUTO_TEST_CASE() [2/3]
BOOST_AUTO_TEST_CASE |
( |
read_write |
| ) |
|
47 auto t1 = make_shared<TTree>(
"t1",
"t1");
50 auto t2 = unique_ptr<TTree>(t1->CloneTree(0));
◆ BOOST_AUTO_TEST_CASE() [3/3]
BOOST_AUTO_TEST_CASE |
( |
write_only |
| ) |
|
34 auto t1 = make_shared<TTree>(
"t1",
"t1");
37 BOOST_TEST_MESSAGE(
"The first call should work." );
41 BOOST_TEST_MESSAGE(
"The second call should fail." );
static bool verbose
Definition: Step.h:40
Generic generator-level event.
Definition: Event.h:43
Generic detector-level event.
Definition: Event.h:64
Definition: FileUtils.cc:26