Module: Minitest::Assertions Private

Included in:
Homebrew::Assertions
Defined in:
sorbet/rbi/annotations/minitest.rbi

Overview

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

DO NOT EDIT MANUALLY This file was pulled from a central RBI files repository. Please run bin/tapioca annotations to update it.

Instance Method Summary collapse

Instance Method Details

#assert(test, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • test (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


9
# File 'sorbet/rbi/annotations/minitest.rbi', line 9

def assert(test, msg = nil); end

#assert_empty(obj, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • obj (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


12
# File 'sorbet/rbi/annotations/minitest.rbi', line 12

def assert_empty(obj, msg = nil); end

#assert_equal(exp, act, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • exp (T.anything)
  • act (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


15
# File 'sorbet/rbi/annotations/minitest.rbi', line 15

def assert_equal(exp, act, msg = nil); end

#assert_in_delta(exp, act, delta = T.unsafe(nil), msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • exp (T.anything)
  • act (T.anything)
  • delta (Numeric) (defaults to: T.unsafe(nil))
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


18
# File 'sorbet/rbi/annotations/minitest.rbi', line 18

def assert_in_delta(exp, act, delta = T.unsafe(nil), msg = nil); end

#assert_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • a (T.anything)
  • b (T.anything)
  • epsilon (Numeric) (defaults to: T.unsafe(nil))
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


21
# File 'sorbet/rbi/annotations/minitest.rbi', line 21

def assert_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = nil); end

#assert_includes(collection, obj, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • collection (T.anything)
  • obj (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


24
# File 'sorbet/rbi/annotations/minitest.rbi', line 24

def assert_includes(collection, obj, msg = nil); end

#assert_instance_of(cls, obj, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • cls (T.anything)
  • obj (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


27
# File 'sorbet/rbi/annotations/minitest.rbi', line 27

def assert_instance_of(cls, obj, msg = nil); end

#assert_kind_of(cls, obj, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • cls (T.anything)
  • obj (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


30
# File 'sorbet/rbi/annotations/minitest.rbi', line 30

def assert_kind_of(cls, obj, msg = nil); end

#assert_match(matcher, obj, msg = nil) ⇒ MatchData

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • matcher (String, Regexp)
  • obj (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (MatchData)


33
# File 'sorbet/rbi/annotations/minitest.rbi', line 33

def assert_match(matcher, obj, msg = nil); end

#assert_nil(obj, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • obj (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


36
# File 'sorbet/rbi/annotations/minitest.rbi', line 36

def assert_nil(obj, msg = nil); end

#assert_operator(o1, op, o2 = T.unsafe(nil), msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • o1 (T.anything)
  • op (Symbol, String)
  • o2 (T.anything) (defaults to: T.unsafe(nil))
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


39
# File 'sorbet/rbi/annotations/minitest.rbi', line 39

def assert_operator(o1, op, o2 = T.unsafe(nil), msg = nil); end

#assert_output(stdout = nil, stderr = nil, &block) ⇒ Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • stdout (String, Regexp, nil) (defaults to: nil)
  • stderr (String, Regexp, nil) (defaults to: nil)
  • block (T.proc.void)

Returns:

  • (Boolean)


42
# File 'sorbet/rbi/annotations/minitest.rbi', line 42

def assert_output(stdout = nil, stderr = nil, &block); end

#assert_path_exists(path, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:

  • (true)


45
# File 'sorbet/rbi/annotations/minitest.rbi', line 45

def assert_path_exists(path, msg = nil); end

#assert_pattern(&block) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • block (T.proc.void)

Returns:

  • (true)


48
# File 'sorbet/rbi/annotations/minitest.rbi', line 48

def assert_pattern(&block); end

#assert_predicate(o1, op, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • o1 (T.anything)
  • op (String, Symbol)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


51
# File 'sorbet/rbi/annotations/minitest.rbi', line 51

def assert_predicate(o1, op, msg = nil); end

#assert_raises(*exp, &block) ⇒ T.type_parameter(:T)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • exp (T::Class[T.type_parameter(:T)], Regexp, String)
  • block (T.proc.void)

Returns:

  • (T.type_parameter(:T))


55
# File 'sorbet/rbi/annotations/minitest.rbi', line 55

def assert_raises(*exp, &block); end

#assert_respond_to(obj, meth, msg = nil, include_all: false) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • obj (T.anything)
  • meth (String, Symbol)
  • msg (T.anything) (defaults to: nil)
  • include_all (Boolean) (defaults to: false)

Returns:

  • (true)


58
# File 'sorbet/rbi/annotations/minitest.rbi', line 58

def assert_respond_to(obj, meth, msg = nil, include_all: false); end

#assert_same(exp, act, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • exp (T.anything)
  • act (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


61
# File 'sorbet/rbi/annotations/minitest.rbi', line 61

def assert_same(exp, act, msg = nil); end

#assert_send(send_ary, m = nil) ⇒ Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • send_ary (Array<T.anything>)
  • m (T.anything) (defaults to: nil)

Returns:

  • (Boolean)


64
# File 'sorbet/rbi/annotations/minitest.rbi', line 64

def assert_send(send_ary, m = nil); end

#assert_silent(&block) ⇒ Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • block (T.proc.void)

Returns:

  • (Boolean)


67
# File 'sorbet/rbi/annotations/minitest.rbi', line 67

def assert_silent(&block); end

#assert_throws(sym, msg = nil, &block) ⇒ T.anything

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • sym (Symbol)
  • msg (T.anything) (defaults to: nil)
  • block (T.proc.void)

Returns:

  • (T.anything)


70
# File 'sorbet/rbi/annotations/minitest.rbi', line 70

def assert_throws(sym, msg = nil, &block); end

#refute(test, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • test (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


73
# File 'sorbet/rbi/annotations/minitest.rbi', line 73

def refute(test, msg = nil); end

#refute_empty(obj, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • obj (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


76
# File 'sorbet/rbi/annotations/minitest.rbi', line 76

def refute_empty(obj, msg = nil); end

#refute_equal(exp, act, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • exp (T.anything)
  • act (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


79
# File 'sorbet/rbi/annotations/minitest.rbi', line 79

def refute_equal(exp, act, msg = nil); end

#refute_in_delta(exp, act, delta = T.unsafe(nil), msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • exp (T.anything)
  • act (T.anything)
  • delta (Numeric) (defaults to: T.unsafe(nil))
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


82
# File 'sorbet/rbi/annotations/minitest.rbi', line 82

def refute_in_delta(exp, act, delta = T.unsafe(nil), msg = nil); end

#refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • a (T.anything)
  • b (T.anything)
  • epsilon (Numeric) (defaults to: T.unsafe(nil))
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


85
# File 'sorbet/rbi/annotations/minitest.rbi', line 85

def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = nil); end

#refute_includes(collection, obj, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • collection (T.anything)
  • obj (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


88
# File 'sorbet/rbi/annotations/minitest.rbi', line 88

def refute_includes(collection, obj, msg = nil); end

#refute_instance_of(cls, obj, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • cls (T.anything)
  • obj (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


91
# File 'sorbet/rbi/annotations/minitest.rbi', line 91

def refute_instance_of(cls, obj, msg = nil); end

#refute_kind_of(cls, obj, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • cls (T.anything)
  • obj (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


94
# File 'sorbet/rbi/annotations/minitest.rbi', line 94

def refute_kind_of(cls, obj, msg = nil); end

#refute_match(matcher, obj, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • matcher (String, Regexp)
  • obj (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


97
# File 'sorbet/rbi/annotations/minitest.rbi', line 97

def refute_match(matcher, obj, msg = nil); end

#refute_nil(obj, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • obj (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


100
# File 'sorbet/rbi/annotations/minitest.rbi', line 100

def refute_nil(obj, msg = nil); end

#refute_operator(o1, op, o2 = T.unsafe(nil), msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • o1 (T.anything)
  • op (Symbol, String)
  • o2 (T.anything) (defaults to: T.unsafe(nil))
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


106
# File 'sorbet/rbi/annotations/minitest.rbi', line 106

def refute_operator(o1, op, o2 = T.unsafe(nil), msg = nil); end

#refute_path_exists(path, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:

  • (true)


109
# File 'sorbet/rbi/annotations/minitest.rbi', line 109

def refute_path_exists(path, msg = nil); end

#refute_pattern(&block) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • block (T.proc.void)

Returns:

  • (true)


103
# File 'sorbet/rbi/annotations/minitest.rbi', line 103

def refute_pattern(&block); end

#refute_predicate(o1, op, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • o1 (T.anything)
  • op (String, Symbol)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


112
# File 'sorbet/rbi/annotations/minitest.rbi', line 112

def refute_predicate(o1, op, msg = nil); end

#refute_respond_to(obj, meth, msg = nil, include_all: false) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • obj (T.anything)
  • meth (String, Symbol)
  • msg (T.anything) (defaults to: nil)
  • include_all (Boolean) (defaults to: false)

Returns:

  • (true)


115
# File 'sorbet/rbi/annotations/minitest.rbi', line 115

def refute_respond_to(obj, meth, msg = nil, include_all: false); end

#refute_same(exp, act, msg = nil) ⇒ true

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • exp (T.anything)
  • act (T.anything)
  • msg (T.anything) (defaults to: nil)

Returns:

  • (true)


118
# File 'sorbet/rbi/annotations/minitest.rbi', line 118

def refute_same(exp, act, msg = nil); end