File: tests_mimic.rb

package info (click to toggle)
ruby-oj 3.16.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,852 kB
  • sloc: ansic: 19,402; ruby: 11,451; makefile: 17
file content (23 lines) | stat: -rwxr-xr-x 659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH << __dir__
$LOAD_PATH << File.join(__dir__, 'json_gem')

require 'json_common_interface_test'
require 'json_encoding_test'
require 'json_ext_parser_test'
require 'json_fixtures_test'
require 'json_generator_test'
require 'json_generic_object_test'
require 'json_parser_test'
require 'json_string_matching_test'

at_exit do
  require 'helper'
  if '3.1.0' <= RUBY_VERSION && RbConfig::CONFIG['host_os'] !~ /(mingw|mswin)/
    # Oj::debug_odd("teardown before GC.verify_compaction_references")
    verify_gc_compaction
    # Oj::debug_odd("teardown after GC.verify_compaction_references")
  end
end