ProteoWizard
|
#include "Serializer_FASTA.hpp"
#include "Diff.hpp"
#include "examples.hpp"
#include "pwiz/data/common/BinaryIndexStream.hpp"
#include "pwiz/utility/misc/unit.hpp"
#include "pwiz/utility/misc/Std.hpp"
#include "boost/thread/thread.hpp"
#include "boost/thread/barrier.hpp"
Go to the source code of this file.
Functions | |
void | testWriteRead (const Serializer_FASTA::Config &config) |
void | testWriteRead () |
void | testThreadSafetyWorker (pair< boost::barrier *, ProteomeData * > *args) |
void | testThreadSafety (const int &testThreadCount) |
void | testDuplicateId () |
int | main (int argc, char *argv[]) |
Variables | |
ostream * | os_ = 0 |
void testWriteRead | ( | const Serializer_FASTA::Config & | config | ) |
Definition at line 41 of file Serializer_FASTA_Test.cpp.
References diff(), pwiz::identdata::examples::initializeTiny(), os_, pwiz::proteome::Serializer_FASTA::read(), unit_assert, and pwiz::proteome::Serializer_FASTA::write().
void testWriteRead | ( | ) |
Definition at line 63 of file Serializer_FASTA_Test.cpp.
References pwiz::proteome::Serializer_FASTA::Config::indexPtr, os_, and testWriteRead().
void testThreadSafetyWorker | ( | pair< boost::barrier *, ProteomeData * > * | args | ) |
Definition at line 76 of file Serializer_FASTA_Test.cpp.
References e(), testWriteRead(), and unit_assert.
void testThreadSafety | ( | const int & | testThreadCount | ) |
Definition at line 100 of file Serializer_FASTA_Test.cpp.
References pwiz::identdata::examples::initializeTiny(), and testThreadSafetyWorker().
void testDuplicateId | ( | ) |
Definition at line 112 of file Serializer_FASTA_Test.cpp.
References pwiz::proteome::ProteomeData::id, os_, pwiz::proteome::ProteomeData::proteinListPtr, pwiz::proteome::Serializer_FASTA::read(), unit_assert_throws_what, and pwiz::proteome::Serializer_FASTA::write().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 140 of file Serializer_FASTA_Test.cpp.
References e(), os_, TEST_EPILOG, TEST_FAILED, TEST_PROLOG, testDuplicateId(), testThreadSafety(), and testWriteRead().
ostream* os_ = 0 |
Definition at line 38 of file Serializer_FASTA_Test.cpp.