Skip to content

Commit 5320456

Browse files
schlesseraclaude
andcommitted
Test that a truncated comparison lists no direct commits
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 0dbdf0a commit 5320456

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎tests/GitHubApiTest.php‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,12 @@ private function pull_request( $index, $number, $updated_at, $merged_at, $merge_
191191
]
192192
);
193193
}
194+
195+
public function test_direct_commits_are_unknown_for_a_truncated_comparison(): void {
196+
$comparison = $this->fixture( 'comparison' );
197+
$comparison->total_commits = 300;
198+
199+
$this->assertSame( [], GitHub::get_direct_commits( 'wp-cli/block-command', $comparison, [] ) );
200+
$this->assertSame( [], $this->requests );
201+
}
194202
}

0 commit comments

Comments
 (0)