<commit_before>require "../spec_helper"

describe Raven::Backtrace do
  backtrace = Raven::Backtrace.parse(caller)

  it "#lines" do
    backtrace.lines.should be_a(Array(Raven::Backtrace::Line))
  end

  it "#inspect" do
    backtrace.inspect.should match(/#<Backtrace: .*>$/)
  end

  it "#to_s" do
    backtrace.to_s.should match(/backtrace_spec.cr:4/)
  end

  it "#==" do
    backtrace2 = Raven::Backtrace.new(backtrace.lines)
    backtrace.should eq(backtrace2)
  end
end<commit_msg>Skip Backtrace#to_s test for —release builds<commit_after>require "../spec_helper"

describe Raven::Backtrace do
  backtrace = Raven::Backtrace.parse(caller)

  it "#lines" do
    backtrace.lines.should be_a(Array(Raven::Backtrace::Line))
  end

  it "#inspect" do
    backtrace.inspect.should match(/#<Backtrace: .*>$/)
  end

  {% unless flag?(:release) %}
    it "#to_s" do
      backtrace.to_s.should match(/backtrace_spec.cr:4/)
    end
  {% end %}

  it "#==" do
    backtrace2 = Raven::Backtrace.new(backtrace.lines)
    backtrace.should eq(backtrace2)
  end
end
{'fraction_non_alphanumeric': 0.14744801512287334, 'fraction_numerical': 0.005671077504725898, 'mean_word_length': 3.835616438356164, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4012306', 'n_tokens_mistral': 397, 'n_tokens_neox': 376, 'n_words': 73}