mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
e4db0443bc
commit
df76f2c577
Notes:
git
2019-12-05 11:02:54 +09:00
Merged-By: XrXr
3 changed files with 6 additions and 2 deletions
|
@ -2266,4 +2266,8 @@ class TestSetTraceFunc < Test::Unit::TestCase
|
||||||
bar
|
bar
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_stat_exists
|
||||||
|
assert_instance_of Hash, TracePoint.stat
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -113,7 +113,7 @@ module TestParallel
|
||||||
|
|
||||||
result = Marshal.load($1.chomp.unpack("m")[0])
|
result = Marshal.load($1.chomp.unpack("m")[0])
|
||||||
assert_equal(5, result[0])
|
assert_equal(5, result[0])
|
||||||
assert_equal(12, result[1])
|
assert_equal(17, result[1])
|
||||||
assert_kind_of(Array,result[2])
|
assert_kind_of(Array,result[2])
|
||||||
assert_kind_of(Array,result[3])
|
assert_kind_of(Array,result[3])
|
||||||
assert_kind_of(Array,result[4])
|
assert_kind_of(Array,result[4])
|
||||||
|
|
|
@ -114,7 +114,7 @@ class TracePoint
|
||||||
# It may be changed in future.
|
# It may be changed in future.
|
||||||
#
|
#
|
||||||
# This method is only for debugging TracePoint itself.
|
# This method is only for debugging TracePoint itself.
|
||||||
def stat
|
def self.stat
|
||||||
__builtin_tracepoint_stat_s
|
__builtin_tracepoint_stat_s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue