Sha256: 750c8c5a80c3814c10cc679ff23d3d66e45c6b6f7be1eaa53002c4948dc08da8
Contents?: true
Size: 798 Bytes
Versions: 9
Compression:
Stored size: 798 Bytes
Contents
class SpecFormat < RequestLogAnalyzer::FileFormat format_definition.first do |line| line.header = true line.teaser = /processing / line.regexp = /processing request (\d+)/ line.captures = [{ :name => :request_no, :type => :integer, :anonymize => :slightly }] end format_definition.test do |line| line.teaser = /testing / line.regexp = /testing is (\w+)/ line.captures = [{ :name => :test_capture, :type => :string, :anonymize => true}] end format_definition.last do |line| line.footer = true line.teaser = /finishing / line.regexp = /finishing request (\d+)/ line.captures = [{ :name => :request_no, :type => :integer}] end report do |analyze| analyze.category :test_capture, :title => 'What is testing exactly?' end end
Version data entries
9 entries across 9 versions & 2 rubygems