Macros | Functions
search_path_test_3.cc File Reference
#include "boost/test/unit_test.hpp"
#include <fstream>
#include <sstream>
#include <string>
#include "cetlib/include.h"
#include "cetlib_except/exception.h"

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   (search_path_test_3 test)
 

Functions

 BOOST_AUTO_TEST_CASE (missing_file_throws)
 
 BOOST_AUTO_TEST_CASE (bad_stream_throws)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   (search_path_test_3 test)

Definition at line 1 of file search_path_test_3.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( missing_file_throws  )

Definition at line 13 of file search_path_test_3.cc.

14 {
15  std::istringstream is("#include \"/tmp/aaa\"");
17 
18  BOOST_CHECK_THROW(cet::include(is, result), cet::exception);
19 }
static QCString result
std::string string
Definition: nybbler.cc:12
void include(std::istream &in, std::string &result)
Definition: include.cc:63
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
BOOST_AUTO_TEST_CASE ( bad_stream_throws  )

Definition at line 21 of file search_path_test_3.cc.

22 {
23  std::ifstream is("no file with this name exists");
25 
26  BOOST_CHECK_THROW(cet::include(is, result), cet::exception);
27 }
static QCString result
std::string string
Definition: nybbler.cc:12
void include(std::istream &in, std::string &result)
Definition: include.cc:63
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33