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