javatests/com/google/copybara/git/GitHubEndpointTest.java
/**
   * A test that uses get_pull_requests.
   */
A test that uses get_pull_requests.
A test that uses get_pull_requests .
@Test
  public void testPullRequests_badPrefix() throws Exception {
    ValidationException expected = assertThrows(ValidationException.class, () ->
        runFeedback(ImmutableList.of("ctx.destination.get_pull_requests(head_prefix = 'bad@*')")));
    assertThat(expected).hasMessageThat().contains("'bad@*' is not a valid head_prefix");
  }
@ Test public void testPullRequests_badPrefix ( ) throws Exception { ValidationException expected = assertThrows ( ValidationException . class , ( ) -> runFeedback ( ImmutableList . of ( "ctx.destination.get_pull_requests(head_prefix = 'bad@*')" ) ) ) ; assertThat ( expected ) . hasMessageThat ( ) . contains ( "'bad@*' is not a valid head_prefix" ) ; }
A test that uses get_pull_requests.
A test that uses get_pull_requests .