public class PackWriterTest extends SampleDataRepositoryTestCase
db, trash
ASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE
Constructor and Description |
---|
PackWriterTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
tearDown() |
void |
testContructor()
Test constructor for exceptions, default settings, initialization.
|
void |
testDeltaStatistics() |
void |
testExclude() |
void |
testIgnoreNonExistingObjects()
Try to pass non-existing object as uninteresting, with ignoring setting.
|
void |
testIgnoreNonExistingObjectsWithBitmaps()
Try to pass non-existing object as uninteresting, with ignoring setting.
|
void |
testModifySettings()
Change default settings and verify them.
|
void |
testNotIgnoreNonExistingObjects()
Try to pass non-existing object as uninteresting, with non-ignoring
setting.
|
void |
testShallowFetchShallowAncestorDepth1() |
void |
testShallowFetchShallowAncestorDepth2() |
void |
testShallowFetchShallowParentDepth1() |
void |
testShallowFetchShallowParentDepth2() |
void |
testShallowIsMinimalDepth1() |
void |
testShallowIsMinimalDepth2() |
void |
testWriteEmptyPack1()
Write empty pack by providing empty sets of interesting/uninteresting
objects and check for correct format.
|
void |
testWriteEmptyPack2()
Write empty pack by providing empty iterator of objects to write and
check for correct format.
|
void |
testWriteIndex() |
void |
testWritePack1()
Create pack basing on only interesting objects, then precisely verify
content.
|
void |
testWritePack1NoObjectReuse()
Test writing pack without object reuse.
|
void |
testWritePack2()
Create pack basing on both interesting and uninteresting objects, then
precisely verify content.
|
void |
testWritePack2DeltasCRC32Copy()
Test pack writing with delta reuse.
|
void |
testWritePack2DeltasReuseOffsets()
Test pack writing with delta reuse.
|
void |
testWritePack2DeltasReuseRefs()
Test pack writing with deltas reuse, delta-base first rule.
|
void |
testWritePack2SizeDeltasVsNoDeltas()
Compare sizes of packs created using
testWritePack2() and
testWritePack2DeltasReuseRefs() . |
void |
testWritePack2SizeOffsetsVsRefs()
Compare sizes of packs created using
testWritePack2DeltasReuseRefs() and
testWritePack2DeltasReuseOffsets() . |
void |
testWritePack3()
Create pack basing on fixed objects list, then precisely verify content.
|
void |
testWritePack4()
Another pack creation: basing on both interesting and uninteresting
objects.
|
void |
testWritePack4SizeThinVsNoThin()
Compare sizes of packs created using
testWritePack4() and
testWritePack4ThinPack() . |
void |
testWritePack4ThinPack()
Test thin pack writing: 1 blob delta base is on objects edge.
|
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFiles
addRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tick, write, write
public void setUp() throws Exception
setUp
in class SampleDataRepositoryTestCase
Exception
public void tearDown() throws Exception
tearDown
in class LocalDiskRepositoryTestCase
Exception
public void testContructor() throws IOException
IOException
public void testModifySettings()
public void testWriteEmptyPack1() throws IOException
IOException
public void testWriteEmptyPack2() throws IOException
IOException
public void testNotIgnoreNonExistingObjects() throws IOException
IOException
public void testIgnoreNonExistingObjects() throws IOException
IOException
public void testIgnoreNonExistingObjectsWithBitmaps() throws IOException, ParseException
IOException
ParseException
public void testWritePack1() throws IOException
IOException
public void testWritePack1NoObjectReuse() throws IOException
testWritePack1()
.IOException
public void testWritePack2() throws IOException
IOException
public void testWritePack2DeltasReuseRefs() throws IOException
testWritePack2()
.IOException
public void testWritePack2DeltasReuseOffsets() throws IOException
testWritePack2DeltasReuseRefs()
.IOException
public void testWritePack2DeltasCRC32Copy() throws IOException
testWritePack2DeltasReuseRefs()
.IOException
public void testWritePack3() throws MissingObjectException, IOException
IOException
MissingObjectException
public void testWritePack4() throws IOException
IOException
public void testWritePack4ThinPack() throws IOException
testWritePack4()
.IOException
public void testWritePack2SizeDeltasVsNoDeltas() throws Exception
testWritePack2()
and
testWritePack2DeltasReuseRefs()
. The pack using deltas should
be smaller.Exception
public void testWritePack2SizeOffsetsVsRefs() throws Exception
testWritePack2DeltasReuseRefs()
and
testWritePack2DeltasReuseOffsets()
. The pack with delta bases
written as offsets should be smaller.Exception
public void testWritePack4SizeThinVsNoThin() throws Exception
testWritePack4()
and
testWritePack4ThinPack()
. Obviously, the thin pack should be
smaller.Exception
public void testShallowIsMinimalDepth1() throws Exception
Exception
public void testShallowIsMinimalDepth2() throws Exception
Exception
public void testShallowFetchShallowParentDepth1() throws Exception
Exception
public void testShallowFetchShallowParentDepth2() throws Exception
Exception
public void testShallowFetchShallowAncestorDepth1() throws Exception
Exception
Copyright © 2016 Eclipse JGit Project. All rights reserved.