Sha256: 18de20e8ac440332b2fbee601c8484333bd3e92c75f66b80a8a468e77799a1ea
Contents?: true
Size: 741 Bytes
Versions: 7
Compression:
Stored size: 741 Bytes
Contents
<%- assert_locals gem -%> <%= render partial: "shared/header" -%> require "helper" require "<%= gem.namespace_require %>" require "gapic/common" require "gapic/grpc" class <%= gem.namespace %>::ClientConstructionMinitest < Minitest::Test <%- gem.services.each do |service| -%> def test_<%= service.factory_method_name %> Gapic::ServiceStub.stub :new, :stub do grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure client = <%= gem.namespace %>.<%= service.factory_method_name %> do |config| config.credentials = grpc_channel end assert_kind_of <%= gem.namespaced_class "#{service.name}::Client", version: gem.default_version %>, client end end <%- end -%> end
Version data entries
7 entries across 7 versions & 1 rubygems