Sha256: b588d693d86ad377912be4c57f2de969de65025251c1c9ba58aaab5b678de7f0

Contents?: true

Size: 566 Bytes

Versions: 13

Compression:

Stored size: 566 Bytes

Contents

# frozen_string_literal: true
# A stub for the NewRelic agent, so we can make assertions about how it is used
if defined?(NewRelic)
  raise "Expected NewRelic to be undefined, so that we could define a stub for it."
end

module NewRelic
  TRANSACTION_NAMES = []
  # Reset state between tests
  def self.clear_all
    TRANSACTION_NAMES.clear
  end
  module Agent
    def self.set_transaction_name(name)
      TRANSACTION_NAMES << name
    end

    module MethodTracerHelpers
      def self.trace_execution_scoped(trace_name)
        yield
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
graphql-1.9.0.pre1 spec/support/new_relic.rb
graphql-1.8.11 spec/support/new_relic.rb
graphql-1.8.10 spec/support/new_relic.rb
graphql-1.8.9 spec/support/new_relic.rb
graphql-1.8.8 spec/support/new_relic.rb
graphql-1.8.7 spec/support/new_relic.rb
graphql-1.8.6 spec/support/new_relic.rb
graphql-1.8.5 spec/support/new_relic.rb
graphql-1.8.4 spec/support/new_relic.rb
graphql-1.8.3 spec/support/new_relic.rb
graphql-1.8.2 spec/support/new_relic.rb
graphql-1.8.1 spec/support/new_relic.rb
graphql-1.8.0 spec/support/new_relic.rb