DFSTestUtil

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total4,381 of 4,3810%326 of 3260%298298972972135135
runOperations(MiniDFSCluster, DistributedFileSystem, Configuration, long, int)6050%20%2214314311
addBlockToFile(boolean, List, DistributedFileSystem, FSNamesystem, String, INodeFile, String, ExtendedBlock, int, int)1780%160%99313111
setFederatedHAConfiguration(MiniDFSCluster, Configuration)1380%80%55232311
createStripedFile(MiniDFSCluster, Path, Path, int, int, boolean, ErasureCodingPolicy)1150%100%66252511
createFile(FileSystem, Path, boolean, int, long, long, short, long, boolean, InetSocketAddress[])1090%180%1010262611
verifySnapshotDiffReport(DistributedFileSystem, Path, String, String, SnapshotDiffReport.DiffReportEntry[])1040%80%55202011
waitForDatanodeStatus(DatanodeManager, int, int, long, long, long)920%140%88242411
waitReplication(FileSystem, Path, short)900%120%77202011
verifyClientStats(Configuration, MiniDFSCluster)870%n/a11252511
checkFiles(FileSystem, String)820%80%55141411
setFederatedConfiguration(MiniDFSCluster, Configuration)770%60%44131311
setupCluster(Configuration, int, int, int)730%160%99141411
fillExpectedBuf(LocatedBlocks, byte[])720%100%669911
waitForReplication(MiniDFSCluster, ExtendedBlock, int, int, int, int)710%140%88181811
transferRbw(ExtendedBlock, DFSClient, DatanodeInfo[])710%n/a11101011
toolRun(Tool, String, int, String)680%40%33242411
createDatanodeStorageInfos(int, String[], String[], StorageType[])670%140%88121211
verifyDelete(FsShell, FileSystem, Path, Path, boolean)660%60%44121211
waitCorruptReplicas(FileSystem, FSNamesystem, Path, ExtendedBlock, int)630%100%66171711
replaceBlock(ExtendedBlock, DatanodeInfo, DatanodeInfo, DatanodeInfo, StorageType, DataTransferProtos.Status)620%40%33131311
createFiles(FileSystem, String, short)580%40%338811
getExpectedPrimaryNode(NameNode, ExtendedBlock)580%60%44151511
static {...}580%20%224411
waitForDecommission(FileSystem, String)570%140%88151511
verifyFileReplicasOnStorageType(FileSystem, DFSClient, Path, StorageType)550%60%44131311
readResoucePlainFile(String)480%60%44101011
createOpenFiles(FileSystem, Path, String, int)480%20%22101011
checkComponentsEquals(byte[][], byte[][])430%20%229911
getLocalDatanodeInfo(String, String, DatanodeInfo.AdminStates)410%n/a11111111
addHAConfiguration(Configuration, String)390%20%229911
closeOpenFiles(HashMap, int)390%40%33131311
verifyFilePermission(FileStatus, String, String, FsAction, FsAction, FsAction)380%120%77131311
appendFile(FileSystem, Path, int)360%80%558811
getECPolicyState(ErasureCodingPolicy)350%40%336611
verifyFilesNotEqual(FileSystem, Path, Path, int)330%80%558811
setFakeHttpAddresses(Configuration, String)310%n/a113311
changeReplicaLength(MiniDFSCluster, ExtendedBlock, int, int)310%40%337711
getFileNames(String)300%40%336611
writeFile(FileSystem, Path, byte[], long)300%20%227711
setReplication(FileSystem, String, short)290%20%225511
getLiveDatanodeCapacity(DatanodeManager)290%20%227711
readFile(File)290%20%225511
allBlockReplicasCorrupt(MiniDFSCluster, Path, int)280%n/a115511
getNameNodeConnector(Configuration, Path, int, boolean)280%n/a11101011
createKey(String, MiniDFSCluster, int, Configuration)270%n/a118811
waitReplication(FileSystem, String, short)260%20%224411
appendFile(FileSystem, Path, String)260%40%335511
runFsck(Configuration, int, boolean, String[])260%20%226611
loadFile(String)250%n/a115511
makeReportForReceivedBlock(Block, ReceivedDeletedBlockInfo.BlockStatus, DatanodeStorage)250%n/a115511
writeFile(FileSystem, Path, byte[])240%20%226611
roundUpToMultiple(long, int)240%40%333311
appendFileNewBlock(DistributedFileSystem, Path, int)230%40%336611
appendFileNewBlock(DistributedFileSystem, Path, byte[])230%40%335511
urlGetBytes(URL)230%n/a116611
verifyFilesEqual(FileSystem, Path, Path, int)230%20%225511
firstDnWithBlock(MiniDFSCluster, ExtendedBlock)220%40%336611
waitForDatanodeDeath(DataNode)220%60%448811
createDatanodeStorageInfo(String, String, String, String, StorageType, String)220%20%225511
generateSequentialBytes(int, int)210%20%224411
toDatanodeDescriptor(DatanodeStorageInfo[])210%20%224411
setNameNodeLogLevel(Level)190%n/a117711
readFileBuffer(FileSystem, Path)180%n/a114411
getDatanodeDescriptor(String, int, String, String)180%n/a113311
waitForXattrRemoved(String, String, Namesystem, int)180%n/a114411
formatNameNode(Configuration)170%40%335511
getDatanodeInfo(String, String, int)170%n/a113311
enableAllECPolicies(DistributedFileSystem)160%20%224411
readFileAsBytes(File)160%n/a113311
getFileSystemAs(UserGroupInformation, Configuration)160%n/a113311
DFSTestUtil(int, int, int, int)150%n/a116611
DFSTestUtil(String, int, int, int, int)150%n/a116611
readFileAsBytes(FileSystem, Path)150%n/a113311
getDatanodeCapacity(DatanodeManager, int)150%n/a113311
cleanup(FileSystem, String)140%n/a114411
deleteKey(String, MiniDFSCluster, int)140%n/a115511
FsShellRun(String, int, String, Configuration)140%n/a113311
DFSAdminRun(String, int, String, Configuration)140%n/a113311
setEditLogForTesting(FSNamesystem, FSEditLog)130%n/a114411
calculateFileContentsFromSeed(long, int)130%n/a114411
getFirstBlock(FileSystem, Path)130%n/a113311
getLocalDatanodeRegistration()130%n/a112211
verifyDelete(FsShell, FileSystem, Path, boolean)130%n/a113311
readFile(FileSystem, Path)120%n/a112211
createFile(FileSystem, Path, boolean, int, long, long, short, long, boolean)120%n/a112211
getDatanodeID(String)120%n/a112211
getLocalDatanodeID(int)120%n/a112211
waitExpectedStorageType(String, StorageType, int, int, DistributedFileSystem)120%n/a112211
createFile(FileSystem, Path, long, short, long)110%n/a112211
createFile(FileSystem, Path, int, long, long, short, long)110%n/a112211
waitForReplication(DistributedFileSystem, Path, short, int)110%n/a112211
asArray(ByteBuffer)110%n/a113311
verifyExpectedCacheUsage(long, long, FsDatasetSpi)110%n/a112211
waitForDatanodeState(MiniDFSCluster, String, boolean, int)110%n/a112211
resetLastUpdatesWithOffset(DatanodeInfo, long)110%n/a113311
getAllBlocks(FileSystem, Path)100%n/a112211
updateConfWithFakeGroupMapping(Configuration, Map)100%20%224411
getNamenodeProtocolProxy(Configuration, URI, UserGroupInformation)100%n/a113311
waitForMetric(JMXGet, String, int)100%n/a112211
newHAConfiguration(String)90%n/a113311
getRefreshUserMappingsProtocolProxy(Configuration, InetSocketAddress)90%n/a112211
createStripedFile(MiniDFSCluster, Path, Path, int, int, boolean)90%n/a113311
createOpenFiles(FileSystem, String, int)90%n/a111111
waitForReplication(MiniDFSCluster, ExtendedBlock, int, int, int)80%n/a112211
getDatanodeInfo(String)80%n/a112211
getLocalDatanodeInfo(int)80%n/a112211
createDatanodeStorageInfo(String, String, String, String)80%n/a111111
replaceBlock(ExtendedBlock, DatanodeInfo, DatanodeInfo, DatanodeInfo)80%n/a111111
login(FileSystem, Configuration, UserGroupInformation)80%20%223311
urlGet(URL)70%n/a111111
getStatistics(FileSystem)70%n/a111111
getLocalDatanodeInfo()70%n/a112211
setDatanodeDead(DatanodeInfo)70%n/a113311
createFiles(FileSystem, String)60%n/a112211
writeFile(FileSystem, Path, String)60%n/a112211
getDatanodeDescriptor(String, String, String)60%n/a111111
createDatanodeStorageInfo(String, String)60%n/a111111
createDatanodeStorageInfos(String[], String[])60%n/a111111
createDatanodeStorageInfos(int, String[], String[])60%n/a111111
getDatanodeDescriptor(String, int, String)60%n/a111111
createKey(String, MiniDFSCluster, Configuration)60%n/a112211
FsShellRun(String, Configuration)60%n/a112211
getBlockToken(FSDataOutputStream)0%n/a111111
getLocalDatanodeDescriptor()0%n/a111111
getDatanodeDescriptor(String, String)0%n/a111111
createDatanodeStorageInfos(int)0%n/a111111
setPipeline(DFSOutputStream, LocatedBlock)0%n/a112211
deleteKey(String, MiniDFSCluster)0%n/a112211
flushInternal(DFSStripedOutputStream)0%n/a112211
flushBuffer(DFSStripedOutputStream)0%n/a112211
getAllBlocks(FSDataInputStream)0%n/a111111
createDatanodeStorageInfos(String[])0%n/a111111
copyFile(File, File)0%n/a112211
getLocalDatanodeID()0%n/a111111
abortStream(DFSOutputStream)0%n/a112211