TuttleOFX
1
|
#include <detector.hpp>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <cstdio>
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
Go to the source code of this file.
Defines | |
#define | BOOST_TEST_MODULE FileSequenceDetector |
Functions | |
void | copyFile (std::string src, std::string dst) |
void | createTmpDiretoriesFilesAndSequences () |
void | clearTmp () |
bool | testFindObjectInDiretory (const char *path, const size_t numberOfFolders, const size_t numberOfFiles, const size_t numberOfSequences, const size_t numberOfFileObjects) |
bool | testFindObjectInDiretory (const char *path, const sequenceParser::EMaskOptions options, const size_t numberOfFolders, const size_t numberOfFiles, const size_t numberOfSequences, const size_t numberOfFileObjects) |
bool | testFirstSequenceLimits (const char *path, const int minValue, const int maxValue) |
bool | testFirstSequenceLimits (const char *path, const sequenceParser::EMaskOptions options, const int minValue, const int maxValue) |
BOOST_AUTO_TEST_CASE (TestSequence) |
BOOST_AUTO_TEST_CASE | ( | TestSequence | ) |
Definition at line 260 of file main.cpp.
References createTmpDiretoriesFilesAndSequences(), sequenceParser::eMaskOptionsDotFile, sequenceParser::eMaskOptionsNegativeIndexes, sequenceParser::eMaskOptionsSequenceBasedOnFilename, testFindObjectInDiretory(), and testFirstSequenceLimits().
void copyFile | ( | std::string | src, |
std::string | dst | ||
) |
Definition at line 16 of file main.cpp.
Referenced by createTmpDiretoriesFilesAndSequences().
void createTmpDiretoriesFilesAndSequences | ( | ) |
Definition at line 22 of file main.cpp.
References copyFile().
Referenced by BOOST_AUTO_TEST_CASE().
bool testFindObjectInDiretory | ( | const char * | path, |
const size_t | numberOfFolders, | ||
const size_t | numberOfFiles, | ||
const size_t | numberOfSequences, | ||
const size_t | numberOfFileObjects | ||
) |
Definition at line 130 of file main.cpp.
References sequenceParser::eMaskTypeDirectory, sequenceParser::eMaskTypeFile, sequenceParser::eMaskTypeSequence, sequenceParser::fileInDirectory(), sequenceParser::fileObjectInDirectory(), sequenceParser::folderInDirectory(), and sequenceParser::sequenceInDirectory().
Referenced by BOOST_AUTO_TEST_CASE().
bool testFindObjectInDiretory | ( | const char * | path, |
const sequenceParser::EMaskOptions | options, | ||
const size_t | numberOfFolders, | ||
const size_t | numberOfFiles, | ||
const size_t | numberOfSequences, | ||
const size_t | numberOfFileObjects | ||
) |
Definition at line 170 of file main.cpp.
References sequenceParser::eMaskTypeDirectory, sequenceParser::eMaskTypeFile, sequenceParser::eMaskTypeSequence, sequenceParser::fileInDirectory(), sequenceParser::fileObjectInDirectory(), sequenceParser::folderInDirectory(), and sequenceParser::sequenceInDirectory().
bool testFirstSequenceLimits | ( | const char * | path, |
const int | minValue, | ||
const int | maxValue | ||
) |
Definition at line 212 of file main.cpp.
References sequenceParser::Sequence::getFirstTime(), sequenceParser::Sequence::getLastTime(), and sequenceParser::sequenceInDirectory().
Referenced by BOOST_AUTO_TEST_CASE().
bool testFirstSequenceLimits | ( | const char * | path, |
const sequenceParser::EMaskOptions | options, | ||
const int | minValue, | ||
const int | maxValue | ||
) |
Definition at line 237 of file main.cpp.
References sequenceParser::Sequence::getFirstTime(), sequenceParser::Sequence::getLastTime(), and sequenceParser::sequenceInDirectory().