INodeFile

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total1,984 of 1,9840%300 of 3000%2252254764767575
computeQuotaDeltaForTruncate(long, BlockStoragePolicy, QuotaCounts)1420%260%1414272711
concatBlocks(INodeFile[], BlockManager)1190%100%66181811
computeQuotaUsage(BlockStoragePolicySuite, byte, boolean, int)1130%180%1010303011
storagespaceConsumedContiguous(BlockStoragePolicy)1040%160%99252511
computeContentSummary(int, ContentSummaryComputationContext)830%100%66232311
checkBlockComplete(BlockInfo[], int, int, short)610%120%77191911
computeFileSize(boolean, boolean)610%120%77161611
collectBlocksBeyondMax(long, INode.BlocksMapUpdateInfo, Set)600%160%99161611
dumpINodeFile(PrintWriter, StringBuilder, int)560%60%44151511
INodeFile(long, byte[], PermissionStatus, long, long, BlockInfo[], Short, Byte, long, byte, BlockType)540%80%559911
assertAllBlocksComplete(int, short)520%40%336611
getPreferredBlockReplication()490%80%55141411
collectBlocksBeyondSnapshot(BlockInfo[], INode.BlocksMapUpdateInfo)490%140%88111111
cleanSubtree(INode.ReclaimContext, int, int)480%100%66151511
removeLastBlock(Block)470%40%33121211
addBlock(BlockInfo)460%40%339911
getDiskSpaceQuota(ContentCounts, FileWithSnapshotFeature, int)460%60%44111111
storagespaceConsumedStriped()450%40%338811
clearFile(INode.ReclaimContext)430%80%559911
getBlocks(int)390%100%668811
getStoragePolicyID()350%120%77111111
metadataEquals(INodeFileAttributes)280%100%665511
getSnapshotBlocksToRetain(int)280%40%339911
isBlockInLatestSnapshot(BlockInfo)280%80%557711
destroyAndCollectBlocks(INode.ReclaimContext)270%20%228811
recordModification(int, boolean)250%60%447711
valueOf(INode, String, boolean)240%60%447711
toCompleteFile(long, int, short)240%n/a116611
computeFileSize(int)240%60%446611
setFileReplication(short)220%n/a116611
INodeFile(INodeFile)190%n/a116611
toUnderConstruction(String, String)190%20%224411
truncateBlocksTo(int)190%20%226611
addSnapshotFeature(FileDiffList)180%20%224411
convertLastBlockToUC(BlockInfo, DatanodeStorageInfo[])170%20%225511
getPenultimateBlock()160%20%223311
INodeFile(long, byte[], PermissionStatus, long, long, BlockInfo[], short, long)150%n/a112211
setBlock(int, BlockInfo)150%20%223311
getLastBlock()150%20%221111
getSnapshotINode(int)140%20%224411
updateRemovedUnderConstructionFiles(INode.ReclaimContext)140%40%333311
toDetailString()130%20%222211
setLastBlock(BlockInfo)120%n/a113311
getFileReplication(int)120%20%223311
loadSnapshotFeature(FileDiffList)110%20%224411
computeQuotaUsageWithStriped(BlockStoragePolicy, QuotaCounts)110%n/a113311
getDiffs()100%20%224411
setStoragePolicyID(byte)100%n/a112211
storagespaceConsumed(BlockStoragePolicy)100%20%223311
getFileReplication()90%20%223311
getErasureCodingPolicyID()90%20%223311
setFileReplication(short, int)80%n/a113311
setBlocks(BlockInfo[])80%20%222211
isUnderConstruction()70%20%221111
isWithSnapshot()70%20%221111
setStoragePolicyID(byte, int)70%n/a113311
dumpTreeRecursively(PrintWriter, StringBuilder, int)60%n/a112211
valueOf(INode, String)50%n/a111111
getFileUnderConstructionFeature()50%n/a111111
getFileWithSnapshotFeature()50%n/a111111
recordModification(int)50%n/a112211
computeFileSizeNotIncludingLastUcBlock()50%n/a111111
accept(NamespaceVisitor, int)50%n/a112211
getPreferredBlockSize()40%n/a111111
getLocalStoragePolicyID()40%n/a111111
isStriped()40%n/a111111
getBlockType()40%n/a111111
clearBlocks()40%n/a112211
computeFileSize()40%n/a111111
numBlocks()40%n/a111111
getHeaderLong()30%n/a111111
getBlocks()30%n/a111111
getName()30%n/a111111
isFile()20%n/a111111
asFile()20%n/a111111