Sha256: a18218d49d341a9ee117087ddda45f471dc231ff24cb3e6267c5cdccca5f7827

Contents?: true

Size: 663 Bytes

Versions: 29

Compression:

Stored size: 663 Bytes

Contents

<%- assert_locals resource -%>
<%- assert_locals service -%>
<%- full_client_name = defined?(client_name_full) ? client_name_full : service.client_name_full -%>
def test_<%= resource.path_helper%>
  grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure
  ::Gapic::ServiceStub.stub :new, nil do
    client = <%= full_client_name %>.new do |config|
      config.credentials = grpc_channel
    end
<%- resource.patterns.each do |pattern| -%>

    path = client.<%= resource.path_helper%> <%= pattern.arguments_with_dummy_values %>
    assert_equal <%= pattern.expected_path_for_dummy_values.inspect %>, path
<%- end -%>
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
gapic-generator-0.11.0 templates/default/service/test/_resource.erb
gapic-generator-0.10.1 templates/default/service/test/_resource.erb
gapic-generator-0.10.0 templates/default/service/test/_resource.erb
gapic-generator-0.9.1 templates/default/service/test/_resource.erb
gapic-generator-0.9.0 templates/default/service/test/_resource.erb
gapic-generator-0.8.0 templates/default/service/test/_resource.erb
gapic-generator-0.7.5 templates/default/service/test/_resource.erb
gapic-generator-0.7.4 templates/default/service/test/_resource.erb
gapic-generator-0.7.2 templates/default/service/test/_resource.erb
gapic-generator-0.7.1 templates/default/service/test/_resource.erb
gapic-generator-0.7.0 templates/default/service/test/_resource.erb
gapic-generator-0.6.15 templates/default/service/test/_resource.erb
gapic-generator-0.6.14 templates/default/service/test/_resource.erb
gapic-generator-0.6.13 templates/default/service/test/_resource.erb
gapic-generator-0.6.12 templates/default/service/test/_resource.erb
gapic-generator-0.6.11 templates/default/service/test/_resource.erb
gapic-generator-0.6.10 templates/default/service/test/_resource.erb
gapic-generator-0.6.9 templates/default/service/test/_resource.erb
gapic-generator-0.6.8 templates/default/service/test/_resource.erb
gapic-generator-0.6.7 templates/default/service/test/_resource.erb