|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jlab.coda.jevio.EvioFileTest
public class EvioFileTest
A set of static functions that test evio files. It also has some other diagnostic methods for getting counts.
Nested Class Summary | |
---|---|
static class |
EvioFileTest.TestResult
This enum is used for file testing. |
Constructor Summary | |
---|---|
EvioFileTest()
|
Method Summary | |
---|---|
static EvioFileTest.TestResult |
parseEventsTest(EvioReader reader,
int num)
Tests whether we can parse events from the file. |
static EvioFileTest.TestResult |
readAllBlockHeadersTest(EvioReader reader)
Tests whether we can look through the file and find all the block headers. |
static EvioFileTest.TestResult |
readAllEventsTest(EvioReader reader)
Tests whether we can look through the file read all the events. |
static int |
totalBlockCount(EvioReader reader)
Get a total count of the number of physical records. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EvioFileTest()
Method Detail |
---|
public static int totalBlockCount(EvioReader reader)
reader
- reader of the file to be processed.
public static EvioFileTest.TestResult readAllBlockHeadersTest(EvioReader reader)
reader
- reader of the file to be processed.
public static EvioFileTest.TestResult readAllEventsTest(EvioReader reader)
reader
- reader of the file to be processed.
TestResult.PASS
or TestResult.FAIL
.public static EvioFileTest.TestResult parseEventsTest(EvioReader reader, int num)
reader
- reader of the file to be processed.num
- the number to parse. Will try to parse this many (unless it runs out.) Use -1 to parse all events.
Note: if num
is greater than the number of events in the file, it doesn't constitute an
error.
TestResult.PASS
or TestResult.FAIL
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |