JayBeams  0.1
Another project to have fun coding.
Functions
ut_fileio.cpp File Reference
#include <jb/fileio.hpp>
#include <boost/filesystem.hpp>
#include <boost/test/unit_test.hpp>

Go to the source code of this file.

Functions

void check_read_write (boost::filesystem::path const &path)
 Implement the common part of the tests. More...
 
 BOOST_AUTO_TEST_CASE (fileio_basic)
 
 BOOST_AUTO_TEST_CASE (fileio_gz)
 
 BOOST_AUTO_TEST_CASE (fileio_stdout)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( fileio_basic  )
Test:
Verify we can read and write regular files...

Definition at line 42 of file ut_fileio.cpp.

References check_read_write().

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( fileio_gz  )
Test:
Verify we can read and write regular files...

Definition at line 53 of file ut_fileio.cpp.

References check_read_write().

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( fileio_stdout  )
Test:
Verify we can write to stdout.

Definition at line 64 of file ut_fileio.cpp.

References jb::open_output_file().

◆ check_read_write()

void check_read_write ( boost::filesystem::path const &  path)

Implement the common part of the tests.

Definition at line 9 of file ut_fileio.cpp.

References jb::open_input_file(), and jb::open_output_file().

Referenced by BOOST_AUTO_TEST_CASE().