17#include "TestPileup.h"
22 pileupTest.testPileupPosition();
32void TestPileup::testPileupPosition()
34 assert(pileupPosition(14000) == 0);
35 assert(pileupHead == 14000);
36 assert(pileupStart == 14000);
37 assert(pileupTail == 14000);
42 pileupPosition(13999);
44 catch(std::exception& e)
47 assert(strcmp(e.what(),
"Overflow on the pileup buffer: specifiedPosition = 13999, pileup buffer start position: 14000, pileup buffer end position: 15024") == 0);
54 pileupPosition(15025);
56 catch(std::exception& e)
59 assert(strcmp(e.what(),
"Overflow on the pileup buffer: specifiedPosition = 15025, pileup buffer start position: 14000, pileup buffer end position: 15024") == 0);
const char * getChromosome() const
Get the chromosome name stored in this element.
int32_t getRefPosition() const
Get the reference position stored in this element.
virtual void analyze()
Perform the analysis associated with this class.