TestFileTruncate

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total4,003 of 4,0030%74 of 740%82828828824545
testSnapshotWithAppendTruncate(int[])5940%20%2210810811
testSnapshotWithTruncates(int[])4030%60%44777711
testUpgradeAndRestart()3030%n/a11757511
testTruncateFailure()2610%40%33818111
testTruncateRecovery()2350%20%22535311
testTruncateWithDataNodesRestartImmediately()1420%n/a11353511
testCopyOnTruncateWithDataNodesRestart()1280%n/a11292911
testTruncateWithRollingUpgrade()1200%n/a11232311
testTruncateWithDataNodesRestart()1100%n/a11272711
testSnapshotTruncateThenDeleteSnapshot()1070%80%55242411
testBasicTruncate()1060%100%66212111
testConcatOnInodeRefernce()1010%n/a11202011
testSnapshotWithAppendTruncate()970%n/a117711
testSnapshotWithTruncates()970%n/a117711
testMultipleTruncate()910%60%44202011
testQuotaSpaceConsumedWithSnapshots()900%40%33222211
testTruncateTwiceTogether()870%n/a11232311
testTruncatewithRenameandSnapshot()820%20%22181811
testTruncateWithOtherOperations()800%n/a11191911
testQuotaOnTruncateWithSnapshot()790%20%22181811
testTruncateWithDataNodesShutdownImmediately()740%40%33202011
testTruncate4Symlink()740%n/a11171711
testTruncateEditLogLoad()730%n/a11212111
testTruncateShellCommandWithWaitOption()500%n/a119911
checkBlockRecovery(Path, DistributedFileSystem, int, long)490%100%66131311
testTruncateShellCommand()480%n/a11101011
testTruncateShellCommandOnBlockBoundary()460%n/a119911
setUp()420%n/a11131311
restartCluster(HdfsServerConstants.StartupOption)370%60%44101011
runTruncateShellCommand(Path, int, String[])330%20%228811
lambda$testTruncateTwiceTogether$0(Path, byte[])290%n/a119911
truncateAndRestartDN(Path, int, int)170%n/a115511
static {...}170%20%224411
writeContents(byte[], int, Path)160%n/a114411
tearDown()130%40%337711
assertFileLength(Path, long)110%n/a113311
lambda$testTruncateTwiceTogether$1(Path, byte[])100%n/a111111
assertBlockExists(Block)90%n/a112211
assertBlockNotPresent(Block)90%n/a112211
getLocatedBlocks(Path, DistributedFileSystem)80%n/a111111
checkFullFile(Path, int, byte[])80%n/a112211
checkBlockRecovery(Path, DistributedFileSystem)60%n/a112211
checkBlockRecovery(Path)0%n/a112211
getLocatedBlocks(Path)0%n/a111111
TestFileTruncate()0%n/a111111