Sha256: 6d4dc5bc7740ce9dc02a3914d98591ef00c265c3b2f6551d29c39ce5a75a5416
Contents?: true
Size: 935 Bytes
Versions: 2
Compression:
Stored size: 935 Bytes
Contents
# frozen_string_literal: true module Rgot autoload :VERSION, 'rgot/version' autoload :Common, 'rgot/common' autoload :M, 'rgot/m' autoload :T, 'rgot/t' autoload :B, 'rgot/b' autoload :PB, 'rgot/pb' autoload :BenchmarkResult, 'rgot/benchmark_result' autoload :F, 'rgot/f' autoload :ExampleParser, 'rgot/example_parser' OptionError = Class.new(StandardError) InternalTest = Struct.new(:module, :name) InternalBenchmark = Struct.new(:module, :name) InternalExample = Struct.new(:module, :name) InternalFuzzTarget = Struct.new(:module, :name) ExampleOutput = Struct.new(:name, :output) class << self def now Process.clock_gettime(Process::CLOCK_MONOTONIC) end def benchmark(opts_hash = {}, &block) opts = B::Options.new opts_hash.each do |k, v| opts[k] = v end B.new(nil, nil, opts).run(&block) end def verbose? @chatty end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rgot-1.4.0 | lib/rgot.rb |
rgot-1.3.0 | lib/rgot.rb |