TeStereo report
@Test public void testGetInputBytes() throws Exception {
assumeTrue(!TestUtil.shouldSkip(storageFormat,DISABLED_STORAGE_FORMATS));
File file=new File(TEST_WAREHOUSE_DIR + "/" + SPECIFIC_SIZE_TABLE+ "/part-m-00000");
file.deleteOnExit();
RandomAccessFile randomAccessFile=new RandomAccessFile(file,"rw");
randomAccessFile.setLength(2L * 1024 * 1024* 1024);
randomAccessFile.close();
Job job=new Job();
HCatLoader hCatLoader=new HCatLoader();
hCatLoader.setUDFContextSignature("testGetInputBytes");
hCatLoader.setLocation(SPECIFIC_SIZE_TABLE,job);
ResourceStatistics statistics=hCatLoader.getStatistics(file.getAbsolutePath(),job);
assertEquals(2048,(long)statistics.getmBytes());
}