TestFileTruncate

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total4,088 of 4,0880%74 of 740%82829009004545
testSnapshotWithAppendTruncate(int[])6130%20%2211211211
testSnapshotWithTruncates(int[])4140%60%44777711
testUpgradeAndRestart()2930%n/a11646411
testTruncateFailure()2490%40%33797911
testTruncateRecovery()2450%20%22575711
testTruncateWithDataNodesRestartImmediately()1430%n/a11383811
testCopyOnTruncateWithDataNodesRestart()1290%n/a11323211
testBasicTruncate()1270%100%66242411
testTruncateWithRollingUpgrade()1250%n/a11292911
testSnapshotTruncateThenDeleteSnapshot()1160%80%55262611
testTruncateWithDataNodesRestart()1110%n/a11292911
testConcatOnInodeRefernce()1010%n/a11202011
testMultipleTruncate()1000%60%44232311
testSnapshotWithAppendTruncate()970%n/a117711
testSnapshotWithTruncates()970%n/a117711
testQuotaSpaceConsumedWithSnapshots()900%40%33222211
testTruncateTwiceTogether()870%n/a11232311
testTruncatewithRenameandSnapshot()820%20%22181811
testTruncateWithOtherOperations()800%n/a11191911
testQuotaOnTruncateWithSnapshot()790%20%22181811
testTruncate4Symlink()750%n/a11181811
testTruncateWithDataNodesShutdownImmediately()740%40%33202011
testTruncateEditLogLoad()710%n/a11202011
checkBlockRecovery(Path, DistributedFileSystem, int, long)550%100%66121211
testTruncateShellCommandWithWaitOption()510%n/a119911
testTruncateShellCommand()490%n/a11101011
testTruncateShellCommandOnBlockBoundary()470%n/a119911
setUp()420%n/a11131311
restartCluster(HdfsServerConstants.StartupOption)370%60%44101011
runTruncateShellCommand(Path, int, String[])350%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
assertBlockExists(Block)140%n/a113311
assertBlockNotPresent(Block)140%n/a113311
tearDown()130%40%337711
assertFileLength(Path, long)110%n/a113311
lambda$testTruncateTwiceTogether$1(Path, byte[])100%n/a111111
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