2022-01-20 18:14:54 +00:00
|
|
|
# typed: true
|
|
|
|
|
2020-11-17 04:49:54 +01:00
|
|
|
# DO NOT EDIT MANUALLY
|
|
|
|
# This is an autogenerated file for types exported from the `rspec-sorbet` gem.
|
2021-09-17 19:28:50 +01:00
|
|
|
# Please instead update this file by running `bin/tapioca gem rspec-sorbet`.
|
2020-11-17 04:49:54 +01:00
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#6
|
2021-09-10 21:21:17 +01:00
|
|
|
module RSpec
|
|
|
|
class << self
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core.rb#70
|
2021-09-10 21:21:17 +01:00
|
|
|
def clear_examples; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core.rb#85
|
2021-09-10 21:21:17 +01:00
|
|
|
def configuration; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core.rb#49
|
2021-09-10 21:21:17 +01:00
|
|
|
def configuration=(_arg0); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core.rb#97
|
2021-09-10 21:21:17 +01:00
|
|
|
def configure; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core.rb#194
|
2021-09-10 21:21:17 +01:00
|
|
|
def const_missing(name); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
2021-09-10 21:21:17 +01:00
|
|
|
def context(*args, &example_group_block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core.rb#122
|
2021-09-10 21:21:17 +01:00
|
|
|
def current_example; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core.rb#128
|
2021-09-10 21:21:17 +01:00
|
|
|
def current_example=(example); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core.rb#154
|
2022-05-02 20:59:59 +01:00
|
|
|
def current_scope; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core.rb#134
|
2022-05-02 20:59:59 +01:00
|
|
|
def current_scope=(scope); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
2021-09-10 21:21:17 +01:00
|
|
|
def describe(*args, &example_group_block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
2021-09-10 21:21:17 +01:00
|
|
|
def example_group(*args, &example_group_block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
2021-09-10 21:21:17 +01:00
|
|
|
def fcontext(*args, &example_group_block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
2021-09-10 21:21:17 +01:00
|
|
|
def fdescribe(*args, &example_group_block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core.rb#58
|
2021-09-10 21:21:17 +01:00
|
|
|
def reset; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
|
2021-09-10 21:21:17 +01:00
|
|
|
def shared_context(name, *args, &block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
|
2021-09-10 21:21:17 +01:00
|
|
|
def shared_examples(name, *args, &block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
|
2021-09-10 21:21:17 +01:00
|
|
|
def shared_examples_for(name, *args, &block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core.rb#160
|
2021-09-10 21:21:17 +01:00
|
|
|
def world; end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core.rb#49
|
2021-09-10 21:21:17 +01:00
|
|
|
def world=(_arg0); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
2021-09-10 21:21:17 +01:00
|
|
|
def xcontext(*args, &example_group_block); end
|
2023-12-14 15:34:15 +00:00
|
|
|
|
2024-02-04 11:46:10 -08:00
|
|
|
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
|
2021-09-10 21:21:17 +01:00
|
|
|
def xdescribe(*args, &example_group_block); end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#7
|
2021-09-10 21:21:17 +01:00
|
|
|
module RSpec::Sorbet
|
|
|
|
extend ::RSpec::Sorbet::Doubles
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#8
|
2021-09-10 21:21:17 +01:00
|
|
|
module RSpec::Sorbet::Doubles
|
2023-03-24 19:16:45 +00:00
|
|
|
requires_ancestor { Kernel }
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#15
|
2023-03-24 19:16:45 +00:00
|
|
|
sig { void }
|
2021-09-10 21:21:17 +01:00
|
|
|
def allow_doubles!; end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [void]
|
|
|
|
#
|
2024-02-11 20:47:22 -08:00
|
|
|
# source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252
|
2023-12-14 15:34:15 +00:00
|
|
|
def allow_instance_doubles!(*args, **_arg1, &blk); end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#36
|
2023-03-24 19:16:45 +00:00
|
|
|
sig { params(clear_existing: T::Boolean).void }
|
|
|
|
def reset!(clear_existing: T.unsafe(nil)); end
|
2021-09-10 21:21:17 +01:00
|
|
|
|
|
|
|
private
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#139
|
2023-03-24 19:16:45 +00:00
|
|
|
sig { params(signature: T.untyped, opts: T::Hash[T.untyped, T.untyped]).void }
|
2022-09-08 09:18:00 +00:00
|
|
|
def call_validation_error_handler(signature, opts); end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#65
|
2023-03-24 19:16:45 +00:00
|
|
|
sig { returns(T.nilable(T::Boolean)) }
|
|
|
|
def configured; end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [Boolean, nil]
|
|
|
|
#
|
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#65
|
2023-03-24 19:16:45 +00:00
|
|
|
def configured=(_arg0); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#127
|
2023-03-24 19:16:45 +00:00
|
|
|
sig { params(message: ::String).returns(T::Boolean) }
|
2021-09-10 21:21:17 +01:00
|
|
|
def double_message_with_ellipsis?(message); end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#62
|
2023-03-24 19:16:45 +00:00
|
|
|
sig { returns(T.nilable(T.proc.params(signature: T.untyped, opts: T::Hash[T.untyped, T.untyped]).void)) }
|
|
|
|
def existing_call_validation_error_handler; end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [T.proc.params(signature: T.untyped, opts: T::Hash[T.untyped, T.untyped]).void, nil]
|
|
|
|
#
|
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#62
|
2023-03-24 19:16:45 +00:00
|
|
|
def existing_call_validation_error_handler=(_arg0); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#59
|
2023-03-24 19:16:45 +00:00
|
|
|
sig { returns(T.nilable(T.proc.params(signature: ::Exception).void)) }
|
|
|
|
def existing_inline_type_error_handler; end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# @return [T.proc.params(signature: Exception).void, nil]
|
|
|
|
#
|
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#59
|
2023-03-24 19:16:45 +00:00
|
|
|
def existing_inline_type_error_handler=(_arg0); end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# @raise [TypeError]
|
|
|
|
#
|
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#73
|
2023-03-24 19:16:45 +00:00
|
|
|
sig { params(signature: T.untyped, opts: T.untyped).void }
|
2022-09-08 09:18:00 +00:00
|
|
|
def handle_call_validation_error(signature, opts); end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#80
|
2023-03-24 19:16:45 +00:00
|
|
|
sig { params(error: ::Exception).void }
|
2021-09-10 21:21:17 +01:00
|
|
|
def inline_type_error_handler(error); end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#134
|
2023-03-24 19:16:45 +00:00
|
|
|
sig { params(message: ::String).returns(T::Boolean) }
|
2021-09-10 21:21:17 +01:00
|
|
|
def typed_array_message?(message); end
|
2023-03-24 19:16:45 +00:00
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#118
|
2023-03-24 19:16:45 +00:00
|
|
|
sig { params(message: ::String).returns(T::Boolean) }
|
2021-09-10 21:21:17 +01:00
|
|
|
def unable_to_check_type_for_message?(message); end
|
|
|
|
end
|
|
|
|
|
2023-12-14 15:34:15 +00:00
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#68
|
2021-09-10 21:21:17 +01:00
|
|
|
RSpec::Sorbet::Doubles::INLINE_DOUBLE_REGEX = T.let(T.unsafe(nil), Regexp)
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#131
|
2021-09-10 21:21:17 +01:00
|
|
|
RSpec::Sorbet::Doubles::TYPED_ARRAY_MESSAGE = T.let(T.unsafe(nil), Regexp)
|
2023-12-14 15:34:15 +00:00
|
|
|
|
|
|
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#123
|
2021-09-10 21:21:17 +01:00
|
|
|
RSpec::Sorbet::Doubles::VERIFYING_DOUBLE_OR_DOUBLE = T.let(T.unsafe(nil), Regexp)
|