@Test public void compute_from_multiple_hunks() throws IOException { String example = "Index: sample1\n" + "===================================================================\n" + "--- lao\t2002-02-21 23:30:39.942229878 -0800\n" + "+++ tzu\t2002-02-21 23:30:50.442260588 -0800\n" + "@@ -1,7 +1,6 @@\n" + "-The Way that can be told of is not the eternal Way;\n" + "-The name that can be named is not the eternal name.\n" + " The Nameless is the origin of Heaven and Earth;\n" + "-The Named is the mother of all things.\n" + "+The named is the mother of all things.\n" + "+\n" + " Therefore let there always be non-being,\n" + " so we may see their subtlety,\n" + " And let there always be being,\n" + "@@ -9,3 +8,6 @@\n" + " The two are the same,\n" + " But after they are produced,\n" + " they have different names.\n" + "+They both may be called deep and profound.\n" + "+Deeper and more profound,\n" + "+The door of all subtleties!\n"; printDiff(example); assertThat(underTest.changedLines()).isEqualTo(ImmutableMap.of(rootBaseDir.resolve("sample1"), ImmutableSet.of(2, 3, 11, 12, 13))); }
Map<Path, Set<Integer>> changedLines() { return tracker.changedLines(); }
ChangedLinesComputer { Map<Path, Set<Integer>> changedLines() { return tracker.changedLines(); } }
ChangedLinesComputer { Map<Path, Set<Integer>> changedLines() { return tracker.changedLines(); } ChangedLinesComputer(Path rootBaseDir, Set<Path> included); }
ChangedLinesComputer { Map<Path, Set<Integer>> changedLines() { return tracker.changedLines(); } ChangedLinesComputer(Path rootBaseDir, Set<Path> included);  }
ChangedLinesComputer { Map<Path, Set<Integer>> changedLines() { return tracker.changedLines(); } ChangedLinesComputer(Path rootBaseDir, Set<Path> included);   }