@@ -61,17 +61,11 @@ public function provideExamples(): vec<varray<string>> {
6161 <<DataProvider (' provideExamples' )>>
6262 public function testUnifiedDiff (string $name ): void {
6363 $base = __DIR__ . ' /examples/' . $name ;
64- /* HH_IGNORE_ERROR[4107] using directly because this is open source */
65- /* HH_IGNORE_ERROR[2049] using directly because this is open source */
6664 $a = \file_get_contents ($base . ' .a' );
67- /* HH_IGNORE_ERROR[4107] using directly because this is open source */
68- /* HH_IGNORE_ERROR[2049] using directly because this is open source */
6965 $b = \file_get_contents ($base . ' .b' );
7066 $diff = StringDiff :: lines($a , $b )-> getUnifiedDiff();
7167
7268 expect ($diff )-> toBeSame(
73- /* HH_IGNORE_ERROR[4107] using directly because this is open source */
74- /* HH_IGNORE_ERROR[2049] using directly because this is open source */
7569 \file_get_contents ($base . ' .udiff.expect' ),
7670 ' Did not match expected contents ' .
7771 ' (from diff -u %s.a %s.b | tail -n +3 > %s.udiff.expect)' ,
@@ -84,11 +78,7 @@ public function testUnifiedDiff(string $name): void {
8478 <<DataProvider (' provideExamples' )>>
8579 public function testCLIColoredDiff (string $name ): void {
8680 $base = __DIR__ . ' /examples/' . $name ;
87- /* HH_IGNORE_ERROR[4107] using directly because this is open source */
88- /* HH_IGNORE_ERROR[2049] using directly because this is open source */
8981 $a = \file_get_contents ($base . ' .a' );
90- /* HH_IGNORE_ERROR[4107] using directly because this is open source */
91- /* HH_IGNORE_ERROR[2049] using directly because this is open source */
9282 $b = \file_get_contents ($base . ' .b' );
9383 $diff = CLIColoredUnifiedDiff :: create($a , $b );
9484
@@ -107,8 +97,6 @@ public function testCLIColoredDiff(string $name): void {
10797 }
10898
10999 expect ($diff )-> toBeSame(
110- /* HH_IGNORE_ERROR[4107] using directly because this is open source */
111- /* HH_IGNORE_ERROR[2049] using directly because this is open source */
112100 \file_get_contents ($base . ' .clidiff.expect' ),
113101 ' Did not match expected contents (- %s.clidiff.expect, + %s.clidiff.out)' ,
114102 $base ,
0 commit comments