debian-mirror-gitlab/spec/support/helpers/graphql/fake_tracer.rb
2023-06-20 00:43:36 +05:30

15 lines
230 B
Ruby

# frozen_string_literal: true
module Graphql
class FakeTracer
def initialize(trace_callback)
@trace_callback = trace_callback
end
def trace(...)
@trace_callback.call(...)
yield
end
end
end