class Cucumber::Core::Test::AroundHook

def describe_to(visitor, *args, &continue)

def describe_to(visitor, *args, &continue)
  visitor.around_hook(self, *args, &continue)
end

def execute(*args, &continue)

def execute(*args, &continue)
  @timer.start
  @block.call(continue)
  Result::Unknown.new # Around hook does not know the result of the inner test steps
rescue Result::Raisable => exception
  exception.with_duration(@timer.duration)
rescue Exception => exception
  failed(exception)
end

def failed(exception)

def failed(exception)
  Result::Failed.new(@timer.duration, exception)
end

def hook?

def hook?
  true
end

def initialize(&block)

def initialize(&block)
  @block = block
  @timer = Timer.new
end