Module: RBS::Test

Defined in:
lib/rbs/test.rb,
lib/rbs/test/hook.rb,
lib/rbs/test/errors.rb,
lib/rbs/test/tester.rb,
lib/rbs/test/observer.rb,
lib/rbs/test/guaranteed.rb,
lib/rbs/test/type_check.rb,
lib/rbs/test/setup_helper.rb,
sig/test.rbs,
sig/test/errors.rbs,
sig/test/guranteed.rbs,
sig/test/type_check.rbs

Defined Under Namespace

Modules: Errors, Guaranteed, Hook, Observer, SetupHelper Classes: ArgumentsReturn, CallTrace, Tester, TypeCheck

Constant Summary collapse

IS_AP =

Kernel#is_a?

Returns:

  • (UnboundMethod)
Kernel.instance_method(:is_a?)
DEFINE_METHOD =

Module#define_method

Returns:

  • (UnboundMethod)
Module.instance_method(:define_method)
INSTANCE_EVAL =

BasicObject#instance_eval

Returns:

  • (UnboundMethod)
BasicObject.instance_method(:instance_eval)
INSTANCE_EXEC =

BasicObject#instance_exec

Returns:

  • (UnboundMethod)
BasicObject.instance_method(:instance_exec)
METHOD =

Kernel#method

Returns:

  • (UnboundMethod)
Kernel.instance_method(:method)
CLASS =

Object#class

Returns:

  • (UnboundMethod)
Kernel.instance_method(:class)
SINGLETON_CLASS =

Kernel#singleton_class

Returns:

  • (UnboundMethod)
Kernel.instance_method(:singleton_class)
PP =

Kernel#pp

Returns:

  • (UnboundMethod)
Kernel.instance_method(:pp)
INSPECT =

Kernel#inspect

Returns:

  • (UnboundMethod)
Kernel.instance_method(:inspect)
METHODS =

Kernel#methods

Returns:

  • (UnboundMethod)
Kernel.instance_method(:methods)
RESPOND_TOP =

Kernel#respond_to?

Returns:

  • (UnboundMethod)
Kernel.instance_method(:respond_to?)

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.suffixString

Returns the value of attribute suffix.

Returns:

  • (String)


77
78
79
# File 'lib/rbs/test.rb', line 77

def suffix
  @suffix
end

Class Method Details

.call(receiver, method, *args, &block) ⇒ void

This method returns an undefined value.

Parameters:

  • receiver (Object)
  • (UnboundMethod)
  • (Object)


87
88
89
# File 'lib/rbs/test.rb', line 87

def self.call(receiver, method, *args, &block)
  __skip__ = method.bind_call(receiver, *args, &block)
end

.reset_suffixString

Returns:

  • (String)


79
80
81
# File 'lib/rbs/test.rb', line 79

def reset_suffix
  self.suffix = "RBS_TEST_#{SecureRandom.hex(3)}"
end