TestEquals.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "SamFile.h"
00019 void testSeqEquals();
00020
00021 class EqualsTest
00022 {
00023 public:
00024 enum FileType{SAM, BAM};
00025 static void testEq(FileType inputType);
00026
00027 private:
00028 static void reset();
00029
00030 static void validateEqRead(SamRecord& samRecord,
00031 int readIndex,
00032 const char* actualExpectedSequence);
00033 static void validateEqReadBuffer(SamRecord& samRecord,
00034 const char* expectedSequence);
00035
00036 static const char* READ_NAMES[];
00037 static const char* READ_SEQS_BASES[];
00038 static const char* READ_SEQS_EQUALS[];
00039 static const char* READ_SEQS_MIXED[];
00040
00041 static const char* expectedReferenceName;
00042 static const char* expectedMateReferenceName;
00043 static const char* expectedMateReferenceNameOrEqual;
00044 static const char* expectedCigar;
00045 static const char* expectedQuality;
00046
00047 static std::vector<unsigned int> expectedCigarHex;
00048
00049 static int expected0BasedAlignmentEnd;
00050 static int expected1BasedAlignmentEnd;
00051 static int expectedAlignmentLength;
00052 static int expected0BasedUnclippedStart;
00053 static int expected1BasedUnclippedStart;
00054 static int expected0BasedUnclippedEnd;
00055 static int expected1BasedUnclippedEnd;
00056
00057 static bamRecordStruct expectedRecord;
00058 };