Search in sources :

Example 6 with LineReader

use of htsjdk.tribble.readers.LineReader in project gatk by broadinstitute.

the class TableCodecUnitTest method testDecodeComment.

@Test
public void testDecodeComment() {
    TableCodec tc = new TableCodec();
    LineReader reader = makeReader(asList("#HEADER a b c", "HEADER d e f"));
    LineIterator li = new LineIteratorImpl(reader);
    List<String> hd = tc.readActualHeader(li);
    Assert.assertEquals(hd, asList("HEADER", "d", "e", "f"));
}
Also used : LineReader(htsjdk.tribble.readers.LineReader) LineIteratorImpl(htsjdk.tribble.readers.LineIteratorImpl) LineIterator(htsjdk.tribble.readers.LineIterator) BaseTest(org.broadinstitute.hellbender.utils.test.BaseTest) Test(org.testng.annotations.Test)

Aggregations

LineIterator (htsjdk.tribble.readers.LineIterator)6 LineIteratorImpl (htsjdk.tribble.readers.LineIteratorImpl)6 LineReader (htsjdk.tribble.readers.LineReader)6 BaseTest (org.broadinstitute.hellbender.utils.test.BaseTest)6 Test (org.testng.annotations.Test)6