Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fake_tracer.rb « graphql « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c2fb7ed12d8323fe7990969515b796ad37526afc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Graphql
  class FakeTracer
    def initialize(trace_callback)
      @trace_callback = trace_callback
    end

    def trace(*args)
      @trace_callback.call(*args)

      yield
    end
  end
end