public abstract class GcTestCase extends LocalDiskRepositoryTestCase
| Modifier and Type | Field and Description |
|---|---|
protected GC |
gc |
protected FileRepository |
repo |
protected GC.RepoStatistics |
stats |
protected TestRepository<FileRepository> |
tr |
author, committer| Constructor and Description |
|---|
GcTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected RevCommit |
commitChain(int depth)
Create a chain of commits of given depth.
|
protected static void |
fsTick() |
protected long |
lastModified(AnyObjectId objectId) |
void |
setUp() |
void |
tearDown() |
addRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, read, recursiveDelete, runHook, tick, write, writeprotected TestRepository<FileRepository> tr
protected FileRepository repo
protected GC gc
protected GC.RepoStatistics stats
public void setUp()
throws Exception
setUp in class LocalDiskRepositoryTestCaseExceptionpublic void tearDown()
throws Exception
tearDown in class LocalDiskRepositoryTestCaseExceptionprotected RevCommit commitChain(int depth) throws Exception
Each commit contains one file named "a" containing the index of the commit in the chain as its content. The created commit chain is referenced from any ref.
A chain of depth = N will create 3*N objects in Gits object database. For each depth level three objects are created: the commit object, the top-level tree object and a blob for the content of the file "a".
depth - the depth of the commit chain.Exceptionprotected long lastModified(AnyObjectId objectId)
protected static void fsTick()
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionCopyright © 2015 Eclipse JGit Project. All rights reserved.