javatests/com/google/copybara/git/GitHubEndpointTest.java
/**
   * A test that uses get_references.
   *
   */
A test that uses get_references.
A test that uses get_references .
@Test
  public void testGetReferences() throws Exception{
    runFeedback(ImmutableList.<String>builder()
        .add("res = ctx.destination.get_references()")
        .addAll(checkFieldStarLark("res[0]", "ref", "'refs/heads/test'"))
        .addAll(checkFieldStarLark("res[0]", "url",
            "'https://github.com/google/example/git/refs/heads/test'"))
        .addAll(checkFieldStarLark("res[0]", "sha", "'e597746de9c1704e648ddc3ffa0d2096b146d600'"))
        .build());
  }
@ Test public void testGetReferences ( ) throws Exception { runFeedback ( ImmutableList . < String > builder ( ) . add ( "res = ctx.destination.get_references()" ) . addAll ( checkFieldStarLark ( "res[0]" , "ref" , "'refs/heads/test'" ) ) . addAll ( checkFieldStarLark ( "res[0]" , "url" , "'https://github.com/google/example/git/refs/heads/test'" ) ) . addAll ( checkFieldStarLark ( "res[0]" , "sha" , "'e597746de9c1704e648ddc3ffa0d2096b146d600'" ) ) . build ( ) ) ; }
A test that uses get_references.
A test that uses get_references .