You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PedestrianObjectReachabilityTest.java 834B

1234567891011121314151617181920212223242526
  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. import org.eclipse.jgit.internal.storage.file.FileRepository;
  12. import org.eclipse.jgit.junit.TestRepository;
  13. import org.eclipse.jgit.revwalk.ObjectReachabilityChecker;
  14. public class PedestrianObjectReachabilityTest
  15. extends ObjectReachabilityTestCase {
  16. @Override
  17. ObjectReachabilityChecker getChecker(
  18. TestRepository<FileRepository> repository)
  19. throws Exception {
  20. return new PedestrianObjectReachabilityChecker(
  21. repository.getRevWalk().toObjectWalkWithSameObjects());
  22. }
  23. }