View Javadoc
1   /*
2    * Copyright (C) 2020, Google LLC and others
3    *
4    * This program and the accompanying materials are made available under the
5    * terms of the Eclipse Distribution License v. 1.0 which is available at
6    * https://www.eclipse.org/org/documents/edl-v10.php.
7    *
8    * SPDX-License-Identifier: BSD-3-Clause
9    */
10  package org.eclipse.jgit.internal.revwalk;
11  
12  import org.eclipse.jgit.internal.storage.file.FileRepository;
13  import org.eclipse.jgit.junit.TestRepository;
14  import org.eclipse.jgit.revwalk.ObjectReachabilityChecker;
15  
16  public class PedestrianObjectReachabilityTest
17  		extends ObjectReachabilityTestCase {
18  
19  	@Override
20  	ObjectReachabilityChecker getChecker(
21  			TestRepository<FileRepository> repository)
22  			throws Exception {
23  		return new PedestrianObjectReachabilityChecker(
24  				repository.getRevWalk().toObjectWalkWithSameObjects());
25  	}
26  }