Package com.google.devtools.moe.client.database

Examples of com.google.devtools.moe.client.database.EquivalenceMatcher


            "mockHashID2", "uid@google.com", "date", "", "description"));

    control.replay();

    GitRevisionHistory rh = new GitRevisionHistory(Suppliers.ofInstance(mockRepo));
    List<Revision> newRevisions = rh.findRevisions(null, new EquivalenceMatcher("mockRepo", db))
        .getRevisionsSinceEquivalence()
        .getBreadthFirstHistory();

    // parent1 should not be traversed.
    assertEquals(2, newRevisions.size());
View Full Code Here


    FileDb database = FileDb.makeDbFromDbText(testDb1);

    GitRevisionHistory history = new GitRevisionHistory(Suppliers.ofInstance(mockRepo));

    EquivalenceMatchResult result = history.findRevisions(
        new Revision("4", "repo2"), new EquivalenceMatcher("repo1", database));
   
    Equivalence expectedEq = new Equivalence(new Revision("1002", "repo1"),
                                             new Revision("2", "repo2"));

    assertEquals(1, result.getEquivalences().size());
View Full Code Here

    FileDb database = FileDb.makeDbFromDbText(testDb2);
    GitRevisionHistory history = new GitRevisionHistory(Suppliers.ofInstance(mockRepo));
   
    EquivalenceMatchResult result = history.findRevisions(
        new Revision("4", "repo2"), new EquivalenceMatcher("repo1", database));

    assertEquals(0, result.getEquivalences().size());

    control.verify();
  }
View Full Code Here

TOP

Related Classes of com.google.devtools.moe.client.database.EquivalenceMatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.