From d512c94f2a589bab9bdf7e79a7a6bd71a11d5458 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:31:39 +0000 Subject: [PATCH 1/4] build(deps): bump the sorbet group in /Library/Homebrew with 4 updates Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet), [sorbet-runtime](https://github.com/sorbet/sorbet), [sorbet](https://github.com/sorbet/sorbet) and [sorbet-static](https://github.com/sorbet/sorbet). Updates `sorbet-static-and-runtime` from 0.5.11711 to 0.5.11718 - [Release notes](https://github.com/sorbet/sorbet/releases) - [Commits](https://github.com/sorbet/sorbet/commits) Updates `sorbet-runtime` from 0.5.11711 to 0.5.11718 - [Release notes](https://github.com/sorbet/sorbet/releases) - [Commits](https://github.com/sorbet/sorbet/commits) Updates `sorbet` from 0.5.11711 to 0.5.11718 - [Release notes](https://github.com/sorbet/sorbet/releases) - [Commits](https://github.com/sorbet/sorbet/commits) Updates `sorbet-static` from 0.5.11711 to 0.5.11718 - [Release notes](https://github.com/sorbet/sorbet/releases) - [Commits](https://github.com/sorbet/sorbet/commits) --- updated-dependencies: - dependency-name: sorbet-static-and-runtime dependency-type: direct:development update-type: version-update:semver-patch dependency-group: sorbet - dependency-name: sorbet-runtime dependency-type: direct:production update-type: version-update:semver-patch dependency-group: sorbet - dependency-name: sorbet dependency-type: indirect update-type: version-update:semver-patch dependency-group: sorbet - dependency-name: sorbet-static dependency-type: indirect update-type: version-update:semver-patch dependency-group: sorbet ... Signed-off-by: dependabot[bot] --- Library/Homebrew/Gemfile.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index 05c9aff352..238d8fba3c 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -112,15 +112,15 @@ GEM simplecov-html (0.13.1) simplecov_json_formatter (0.1.4) simpleidn (0.2.3) - sorbet (0.5.11711) - sorbet-static (= 0.5.11711) - sorbet-runtime (0.5.11711) - sorbet-static (0.5.11711-aarch64-linux) - sorbet-static (0.5.11711-universal-darwin) - sorbet-static (0.5.11711-x86_64-linux) - sorbet-static-and-runtime (0.5.11711) - sorbet (= 0.5.11711) - sorbet-runtime (= 0.5.11711) + sorbet (0.5.11718) + sorbet-static (= 0.5.11718) + sorbet-runtime (0.5.11718) + sorbet-static (0.5.11718-aarch64-linux) + sorbet-static (0.5.11718-universal-darwin) + sorbet-static (0.5.11718-x86_64-linux) + sorbet-static-and-runtime (0.5.11718) + sorbet (= 0.5.11718) + sorbet-runtime (= 0.5.11718) spoom (1.5.0) erubi (>= 1.10.0) prism (>= 0.28.0) From 3e102d57df98c07e7686015aab5ab08d55782e47 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:18:54 +0000 Subject: [PATCH 2/4] brew vendor-gems: commit updates. --- Library/Homebrew/Gemfile.lock | 1 + Library/Homebrew/vendor/bundle/bundler/setup.rb | 12 ++++++------ .../lib/sorbet-runtime.rb | 0 .../lib/types/_types.rb | 0 .../lib/types/abstract_utils.rb | 0 .../lib/types/boolean.rb | 0 .../lib/types/compatibility_patches.rb | 0 .../lib/types/configuration.rb | 0 .../lib/types/enum.rb | 0 .../lib/types/generic.rb | 0 .../lib/types/helpers.rb | 0 .../lib/types/non_forcing_constants.rb | 0 .../lib/types/private/abstract/data.rb | 0 .../lib/types/private/abstract/declare.rb | 0 .../lib/types/private/abstract/hooks.rb | 0 .../lib/types/private/abstract/validate.rb | 0 .../lib/types/private/caller_utils.rb | 0 .../lib/types/private/casts.rb | 0 .../lib/types/private/class_utils.rb | 0 .../lib/types/private/decl_state.rb | 0 .../lib/types/private/final.rb | 0 .../lib/types/private/methods/_methods.rb | 0 .../lib/types/private/methods/call_validation.rb | 0 .../lib/types/private/methods/call_validation_2_6.rb | 0 .../lib/types/private/methods/call_validation_2_7.rb | 0 .../lib/types/private/methods/decl_builder.rb | 0 .../lib/types/private/methods/modes.rb | 0 .../lib/types/private/methods/signature.rb | 0 .../types/private/methods/signature_validation.rb | 0 .../lib/types/private/mixins/mixins.rb | 0 .../lib/types/private/retry.rb | 0 .../lib/types/private/runtime_levels.rb | 0 .../lib/types/private/sealed.rb | 0 .../lib/types/private/types/not_typed.rb | 0 .../lib/types/private/types/simple_pair_union.rb | 0 .../lib/types/private/types/string_holder.rb | 0 .../lib/types/private/types/type_alias.rb | 0 .../lib/types/private/types/void.rb | 0 .../lib/types/props/_props.rb | 0 .../lib/types/props/constructor.rb | 0 .../lib/types/props/custom_type.rb | 0 .../lib/types/props/decorator.rb | 0 .../lib/types/props/errors.rb | 0 .../lib/types/props/generated_code_validation.rb | 0 .../types/props/has_lazily_specialized_methods.rb | 0 .../lib/types/props/optional.rb | 0 .../lib/types/props/plugin.rb | 0 .../lib/types/props/pretty_printable.rb | 0 .../lib/types/props/private/apply_default.rb | 0 .../types/props/private/deserializer_generator.rb | 0 .../lib/types/props/private/parser.rb | 0 .../lib/types/props/private/serde_transform.rb | 0 .../lib/types/props/private/serializer_generator.rb | 0 .../lib/types/props/private/setter_factory.rb | 0 .../lib/types/props/serializable.rb | 0 .../lib/types/props/type_validation.rb | 0 .../lib/types/props/utils.rb | 0 .../lib/types/props/weak_constructor.rb | 0 .../lib/types/sig.rb | 0 .../lib/types/struct.rb | 0 .../lib/types/types/anything.rb | 0 .../lib/types/types/attached_class.rb | 0 .../lib/types/types/base.rb | 0 .../lib/types/types/class_of.rb | 0 .../lib/types/types/enum.rb | 0 .../lib/types/types/fixed_array.rb | 0 .../lib/types/types/fixed_hash.rb | 0 .../lib/types/types/intersection.rb | 0 .../lib/types/types/noreturn.rb | 0 .../lib/types/types/proc.rb | 0 .../lib/types/types/self_type.rb | 0 .../lib/types/types/simple.rb | 0 .../lib/types/types/t_enum.rb | 0 .../lib/types/types/type_member.rb | 0 .../lib/types/types/type_parameter.rb | 0 .../lib/types/types/type_template.rb | 0 .../lib/types/types/type_variable.rb | 0 .../lib/types/types/typed_array.rb | 0 .../lib/types/types/typed_class.rb | 0 .../lib/types/types/typed_enumerable.rb | 0 .../lib/types/types/typed_enumerator.rb | 0 .../lib/types/types/typed_enumerator_chain.rb | 0 .../lib/types/types/typed_enumerator_lazy.rb | 0 .../lib/types/types/typed_hash.rb | 0 .../lib/types/types/typed_range.rb | 0 .../lib/types/types/typed_set.rb | 0 .../lib/types/types/union.rb | 0 .../lib/types/types/untyped.rb | 0 .../lib/types/utils.rb | 0 Library/Homebrew/vendor/gems/mechanize | 2 +- .../LICENSE.txt | 0 .../lib/mechanize/http/content_disposition_parser.rb | 0 .../lib/mechanize/version.rb | 2 +- 93 files changed, 9 insertions(+), 8 deletions(-) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/sorbet-runtime.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/_types.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/abstract_utils.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/boolean.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/compatibility_patches.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/configuration.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/enum.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/generic.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/helpers.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/non_forcing_constants.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/abstract/data.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/abstract/declare.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/abstract/hooks.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/abstract/validate.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/caller_utils.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/casts.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/class_utils.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/decl_state.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/final.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/methods/_methods.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/methods/call_validation.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/methods/call_validation_2_6.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/methods/call_validation_2_7.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/methods/decl_builder.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/methods/modes.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/methods/signature.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/methods/signature_validation.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/mixins/mixins.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/retry.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/runtime_levels.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/sealed.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/types/not_typed.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/types/simple_pair_union.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/types/string_holder.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/types/type_alias.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/private/types/void.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/_props.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/constructor.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/custom_type.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/decorator.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/errors.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/generated_code_validation.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/has_lazily_specialized_methods.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/optional.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/plugin.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/pretty_printable.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/private/apply_default.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/private/deserializer_generator.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/private/parser.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/private/serde_transform.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/private/serializer_generator.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/private/setter_factory.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/serializable.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/type_validation.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/utils.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/props/weak_constructor.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/sig.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/struct.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/anything.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/attached_class.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/base.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/class_of.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/enum.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/fixed_array.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/fixed_hash.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/intersection.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/noreturn.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/proc.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/self_type.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/simple.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/t_enum.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/type_member.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/type_parameter.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/type_template.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/type_variable.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/typed_array.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/typed_class.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/typed_enumerable.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/typed_enumerator.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/typed_enumerator_chain.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/typed_enumerator_lazy.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/typed_hash.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/typed_range.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/typed_set.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/union.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/types/untyped.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/{sorbet-runtime-0.5.11711 => sorbet-runtime-0.5.11718}/lib/types/utils.rb (100%) rename Library/Homebrew/vendor/gems/{mechanize-2.13.0 => mechanize-2.14.0}/LICENSE.txt (100%) rename Library/Homebrew/vendor/gems/{mechanize-2.13.0 => mechanize-2.14.0}/lib/mechanize/http/content_disposition_parser.rb (100%) rename Library/Homebrew/vendor/gems/{mechanize-2.13.0 => mechanize-2.14.0}/lib/mechanize/version.rb (70%) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index 238d8fba3c..d82c361398 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -149,6 +149,7 @@ GEM PLATFORMS aarch64-linux + arm-linux arm64-darwin x86_64-darwin x86_64-linux diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index a4ebf0977e..7cdee79957 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -61,7 +61,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/minitest-5.25.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/netrc-0.11.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parallel-1.26.3/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parallel_tests-4.7.2/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parallel_tests-4.8.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/racc-1.8.1") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/racc-1.8.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parser-3.3.6.0/lib") @@ -71,7 +71,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/prism-1.3.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/pry-0.15.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rainbow-3.1.1/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11711/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11718/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rbi-0.2.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/rbs-3.8.1") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rbs-3.8.1/lib") @@ -103,16 +103,16 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov_json_formatter-0.1.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov-0.22.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov-cobertura-2.1.0/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.11711-universal-darwin/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11711/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11711/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.11718-universal-darwin/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11718/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11718/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/thor-1.3.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/spoom-1.5.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/stackprof-0.2.26") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/stackprof-0.2.26/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/yard-0.9.37/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/yard-sorbet-0.9.0/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/tapioca-0.16.5/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/tapioca-0.16.6/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/vernier-1.5.0") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/vernier-1.5.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/warning-1.5.0/lib") diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/sorbet-runtime.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/sorbet-runtime.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/sorbet-runtime.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/sorbet-runtime.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/_types.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/_types.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/_types.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/_types.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/abstract_utils.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/abstract_utils.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/abstract_utils.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/abstract_utils.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/boolean.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/boolean.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/boolean.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/boolean.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/compatibility_patches.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/compatibility_patches.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/compatibility_patches.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/compatibility_patches.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/configuration.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/configuration.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/configuration.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/configuration.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/enum.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/enum.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/enum.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/enum.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/generic.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/generic.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/generic.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/generic.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/helpers.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/helpers.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/helpers.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/helpers.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/non_forcing_constants.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/non_forcing_constants.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/non_forcing_constants.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/non_forcing_constants.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/abstract/data.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/abstract/data.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/abstract/data.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/abstract/data.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/abstract/declare.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/abstract/declare.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/abstract/declare.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/abstract/declare.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/abstract/hooks.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/abstract/hooks.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/abstract/hooks.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/abstract/hooks.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/abstract/validate.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/abstract/validate.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/abstract/validate.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/abstract/validate.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/caller_utils.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/caller_utils.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/caller_utils.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/caller_utils.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/casts.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/casts.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/casts.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/casts.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/class_utils.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/class_utils.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/class_utils.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/class_utils.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/decl_state.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/decl_state.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/decl_state.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/decl_state.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/final.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/final.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/final.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/final.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/_methods.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/_methods.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/_methods.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/_methods.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/call_validation.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/call_validation.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/call_validation.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/call_validation.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/call_validation_2_6.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/call_validation_2_6.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/call_validation_2_6.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/call_validation_2_6.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/call_validation_2_7.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/call_validation_2_7.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/call_validation_2_7.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/call_validation_2_7.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/decl_builder.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/decl_builder.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/decl_builder.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/decl_builder.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/modes.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/modes.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/modes.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/modes.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/signature.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/signature.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/signature.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/signature.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/signature_validation.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/signature_validation.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/methods/signature_validation.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/methods/signature_validation.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/mixins/mixins.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/mixins/mixins.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/mixins/mixins.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/mixins/mixins.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/retry.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/retry.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/retry.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/retry.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/runtime_levels.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/runtime_levels.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/runtime_levels.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/runtime_levels.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/sealed.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/sealed.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/sealed.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/sealed.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/types/not_typed.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/types/not_typed.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/types/not_typed.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/types/not_typed.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/types/simple_pair_union.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/types/simple_pair_union.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/types/simple_pair_union.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/types/simple_pair_union.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/types/string_holder.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/types/string_holder.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/types/string_holder.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/types/string_holder.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/types/type_alias.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/types/type_alias.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/types/type_alias.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/types/type_alias.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/types/void.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/types/void.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/private/types/void.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/private/types/void.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/_props.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/_props.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/_props.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/_props.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/constructor.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/constructor.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/constructor.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/constructor.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/custom_type.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/custom_type.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/custom_type.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/custom_type.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/decorator.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/decorator.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/decorator.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/decorator.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/errors.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/errors.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/errors.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/errors.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/generated_code_validation.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/generated_code_validation.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/generated_code_validation.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/generated_code_validation.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/has_lazily_specialized_methods.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/has_lazily_specialized_methods.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/has_lazily_specialized_methods.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/has_lazily_specialized_methods.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/optional.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/optional.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/optional.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/optional.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/plugin.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/plugin.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/plugin.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/plugin.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/pretty_printable.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/pretty_printable.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/pretty_printable.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/pretty_printable.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/private/apply_default.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/private/apply_default.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/private/apply_default.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/private/apply_default.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/private/deserializer_generator.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/private/deserializer_generator.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/private/deserializer_generator.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/private/deserializer_generator.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/private/parser.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/private/parser.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/private/parser.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/private/parser.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/private/serde_transform.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/private/serde_transform.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/private/serde_transform.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/private/serde_transform.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/private/serializer_generator.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/private/serializer_generator.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/private/serializer_generator.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/private/serializer_generator.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/private/setter_factory.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/private/setter_factory.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/private/setter_factory.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/private/setter_factory.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/serializable.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/serializable.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/serializable.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/serializable.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/type_validation.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/type_validation.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/type_validation.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/type_validation.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/utils.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/utils.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/utils.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/utils.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/weak_constructor.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/weak_constructor.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/props/weak_constructor.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/props/weak_constructor.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/sig.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/sig.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/sig.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/sig.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/struct.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/struct.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/struct.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/struct.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/anything.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/anything.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/anything.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/anything.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/attached_class.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/attached_class.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/attached_class.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/attached_class.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/base.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/base.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/base.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/base.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/class_of.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/class_of.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/class_of.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/class_of.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/enum.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/enum.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/enum.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/enum.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/fixed_array.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/fixed_array.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/fixed_array.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/fixed_array.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/fixed_hash.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/fixed_hash.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/fixed_hash.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/fixed_hash.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/intersection.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/intersection.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/intersection.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/intersection.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/noreturn.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/noreturn.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/noreturn.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/noreturn.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/proc.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/proc.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/proc.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/proc.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/self_type.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/self_type.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/self_type.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/self_type.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/simple.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/simple.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/simple.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/simple.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/t_enum.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/t_enum.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/t_enum.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/t_enum.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/type_member.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/type_member.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/type_member.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/type_member.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/type_parameter.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/type_parameter.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/type_parameter.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/type_parameter.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/type_template.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/type_template.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/type_template.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/type_template.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/type_variable.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/type_variable.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/type_variable.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/type_variable.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_array.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_array.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_array.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_array.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_class.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_class.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_class.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_class.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_enumerable.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_enumerable.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_enumerable.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_enumerable.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_enumerator.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_enumerator.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_enumerator.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_enumerator.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_enumerator_chain.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_enumerator_chain.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_enumerator_chain.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_enumerator_chain.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_enumerator_lazy.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_enumerator_lazy.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_enumerator_lazy.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_enumerator_lazy.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_hash.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_hash.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_hash.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_hash.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_range.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_range.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_range.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_range.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_set.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_set.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/typed_set.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/typed_set.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/union.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/union.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/union.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/union.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/untyped.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/untyped.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/types/untyped.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/types/untyped.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/utils.rb b/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/utils.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11711/lib/types/utils.rb rename to Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11718/lib/types/utils.rb diff --git a/Library/Homebrew/vendor/gems/mechanize b/Library/Homebrew/vendor/gems/mechanize index 2303a259ca..9fcc70a110 120000 --- a/Library/Homebrew/vendor/gems/mechanize +++ b/Library/Homebrew/vendor/gems/mechanize @@ -1 +1 @@ -mechanize-2.13.0/ \ No newline at end of file +mechanize-2.14.0/ \ No newline at end of file diff --git a/Library/Homebrew/vendor/gems/mechanize-2.13.0/LICENSE.txt b/Library/Homebrew/vendor/gems/mechanize-2.14.0/LICENSE.txt similarity index 100% rename from Library/Homebrew/vendor/gems/mechanize-2.13.0/LICENSE.txt rename to Library/Homebrew/vendor/gems/mechanize-2.14.0/LICENSE.txt diff --git a/Library/Homebrew/vendor/gems/mechanize-2.13.0/lib/mechanize/http/content_disposition_parser.rb b/Library/Homebrew/vendor/gems/mechanize-2.14.0/lib/mechanize/http/content_disposition_parser.rb similarity index 100% rename from Library/Homebrew/vendor/gems/mechanize-2.13.0/lib/mechanize/http/content_disposition_parser.rb rename to Library/Homebrew/vendor/gems/mechanize-2.14.0/lib/mechanize/http/content_disposition_parser.rb diff --git a/Library/Homebrew/vendor/gems/mechanize-2.13.0/lib/mechanize/version.rb b/Library/Homebrew/vendor/gems/mechanize-2.14.0/lib/mechanize/version.rb similarity index 70% rename from Library/Homebrew/vendor/gems/mechanize-2.13.0/lib/mechanize/version.rb rename to Library/Homebrew/vendor/gems/mechanize-2.14.0/lib/mechanize/version.rb index 158a0ea8bd..c62793d6f2 100644 --- a/Library/Homebrew/vendor/gems/mechanize-2.13.0/lib/mechanize/version.rb +++ b/Library/Homebrew/vendor/gems/mechanize-2.14.0/lib/mechanize/version.rb @@ -1,4 +1,4 @@ # frozen_string_literal: true class Mechanize - VERSION = "2.13.0" + VERSION = "2.14.0" end From 4620cb8807dfbdc112b15a02a32ea5cb58c15556 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:19:03 +0000 Subject: [PATCH 3/4] Update RBI files for sorbet. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow. --- .../sorbet/rbi/gems/rspec-core@3.13.2.rbi | 11040 ---------------- .../rbi/gems/rspec-expectations@3.13.3.rbi | 8183 ------------ .../sorbet/rbi/gems/rspec-support@3.13.2.rbi | 1668 --- ...{tapioca@0.16.5.rbi => tapioca@0.16.6.rbi} | 177 +- 4 files changed, 89 insertions(+), 20979 deletions(-) delete mode 100644 Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.2.rbi delete mode 100644 Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi delete mode 100644 Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.2.rbi rename Library/Homebrew/sorbet/rbi/gems/{tapioca@0.16.5.rbi => tapioca@0.16.6.rbi} (96%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.2.rbi b/Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.2.rbi deleted file mode 100644 index 9b68be7aa5..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.2.rbi +++ /dev/null @@ -1,11040 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `rspec-core` gem. -# Please instead update this file by running `bin/tapioca gem rspec-core`. - - -module ERB::Escape - private - - def html_escape(_arg0); end - - class << self - def html_escape(_arg0); end - end -end - -# Namespace for all core RSpec code. -# -# source://rspec-core//lib/rspec/core/version.rb#1 -module RSpec - extend ::RSpec::Core::Warnings - - class << self - # Used to ensure examples get reloaded between multiple runs in the same - # process and ensures user configuration is persisted. - # - # Users must invoke this if they want to clear all examples but preserve - # current configuration when they use the runner multiple times within the - # same process. - # - # source://rspec-core//lib/rspec/core.rb#70 - def clear_examples; end - - # Returns the global [Configuration](RSpec/Core/Configuration) object. While - # you _can_ use this method to access the configuration, the more common - # convention is to use [RSpec.configure](RSpec#configure-class_method). - # - # @example - # RSpec.configuration.drb_port = 1234 - # @see RSpec.configure - # @see Core::Configuration - # - # source://rspec-core//lib/rspec/core.rb#85 - def configuration; end - - # Setters for shared global objects - # - # @api private - # - # source://rspec-core//lib/rspec/core.rb#49 - def configuration=(_arg0); end - - # Yields the global configuration to a block. - # - # @example - # RSpec.configure do |config| - # config.add_formatter 'documentation' - # end - # @see Core::Configuration - # @yield [Configuration] global configuration - # - # source://rspec-core//lib/rspec/core.rb#97 - def configure; end - - # @private - # - # source://rspec-core//lib/rspec/core.rb#194 - def const_missing(name); end - - # source://rspec-core//lib/rspec/core/dsl.rb#42 - def context(*args, &example_group_block); end - - # The example being executed. - # - # The primary audience for this method is library authors who need access - # to the example currently being executed and also want to support all - # versions of RSpec 2 and 3. - # - # @example - # - # RSpec.configure do |c| - # # context.example is deprecated, but RSpec.current_example is not - # # available until RSpec 3.0. - # fetch_current_example = RSpec.respond_to?(:current_example) ? - # proc { RSpec.current_example } : proc { |context| context.example } - # - # c.before(:example) do - # example = fetch_current_example.call(self) - # - # # ... - # end - # end - # - # source://rspec-core//lib/rspec/core.rb#122 - def current_example; end - - # Set the current example being executed. - # - # @api private - # - # source://rspec-core//lib/rspec/core.rb#128 - def current_example=(example); end - - # Get the current RSpec execution scope - # - # Returns (in order of lifecycle): - # * `:suite` as an initial value, this is outside of the test lifecycle. - # * `:before_suite_hook` during `before(:suite)` hooks. - # * `:before_context_hook` during `before(:context)` hooks. - # * `:before_example_hook` during `before(:example)` hooks and `around(:example)` before `example.run`. - # * `:example` within the example run. - # * `:after_example_hook` during `after(:example)` hooks and `around(:example)` after `example.run`. - # * `:after_context_hook` during `after(:context)` hooks. - # * `:after_suite_hook` during `after(:suite)` hooks. - # * `:suite` as a final value, again this is outside of the test lifecycle. - # - # Reminder, `:context` hooks have `:all` alias and `:example` hooks have `:each` alias. - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core.rb#154 - def current_scope; end - - # Set the current scope rspec is executing in - # - # @api private - # - # source://rspec-core//lib/rspec/core.rb#134 - def current_scope=(scope); end - - # source://rspec-core//lib/rspec/core/dsl.rb#42 - def describe(*args, &example_group_block); end - - # source://rspec-core//lib/rspec/core/dsl.rb#42 - def example_group(*args, &example_group_block); end - - # source://rspec-core//lib/rspec/core/dsl.rb#42 - def fcontext(*args, &example_group_block); end - - # source://rspec-core//lib/rspec/core/dsl.rb#42 - def fdescribe(*args, &example_group_block); end - - # Used to ensure examples get reloaded and user configuration gets reset to - # defaults between multiple runs in the same process. - # - # Users must invoke this if they want to have the configuration reset when - # they use the runner multiple times within the same process. Users must deal - # themselves with re-configuration of RSpec before run. - # - # source://rspec-core//lib/rspec/core.rb#58 - def reset; end - - # source://rspec-core//lib/rspec/core/shared_example_group.rb#110 - def shared_context(name, *args, &block); end - - # source://rspec-core//lib/rspec/core/shared_example_group.rb#110 - def shared_examples(name, *args, &block); end - - # source://rspec-core//lib/rspec/core/shared_example_group.rb#110 - def shared_examples_for(name, *args, &block); end - - # Internal container for global non-configuration data. - # - # @private - # - # source://rspec-core//lib/rspec/core.rb#160 - def world; end - - # Setters for shared global objects - # - # @api private - # - # source://rspec-core//lib/rspec/core.rb#49 - def world=(_arg0); end - - # source://rspec-core//lib/rspec/core/dsl.rb#42 - def xcontext(*args, &example_group_block); end - - # source://rspec-core//lib/rspec/core/dsl.rb#42 - def xdescribe(*args, &example_group_block); end - end -end - -# Namespace for the rspec-core code. -# -# source://rspec-core//lib/rspec/core/version.rb#2 -module RSpec::Core - class << self - # @private path to executable file. - # - # source://rspec-core//lib/rspec/core.rb#181 - def path_to_executable; end - end -end - -# Unnamed example group used by `SuiteHookContext`. -# -# @private -# -# source://rspec-core//lib/rspec/core/example_group.rb#775 -class RSpec::Core::AnonymousExampleGroup < ::RSpec::Core::ExampleGroup - class << self - # source://rspec-core//lib/rspec/core/example_group.rb#776 - def metadata; end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/backtrace_formatter.rb#4 -class RSpec::Core::BacktraceFormatter - # @return [BacktraceFormatter] a new instance of BacktraceFormatter - # - # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#8 - def initialize; end - - # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#49 - def backtrace_line(line); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#53 - def exclude?(line); end - - # @private - # - # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#6 - def exclusion_patterns; end - - # @private - # - # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#6 - def exclusion_patterns=(_arg0); end - - # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#28 - def filter_gem(gem_name); end - - # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#33 - def format_backtrace(backtrace, options = T.unsafe(nil)); end - - # Sets the attribute full_backtrace - # - # @param value the value to set the attribute full_backtrace to. - # - # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#22 - def full_backtrace=(_arg0); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#24 - def full_backtrace?; end - - # @private - # - # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#6 - def inclusion_patterns; end - - # @private - # - # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#6 - def inclusion_patterns=(_arg0); end - - private - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#60 - def matches?(patterns, line); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/bisect/utilities.rb#3 -module RSpec::Core::Bisect; end - -# @private -# -# source://rspec-core//lib/rspec/core/bisect/utilities.rb#8 -class RSpec::Core::Bisect::BisectFailedError < ::StandardError - class << self - # source://rspec-core//lib/rspec/core/bisect/utilities.rb#9 - def for_failed_spec_run(spec_output); end - end -end - -# Wraps a pipe to support sending objects between a child and -# parent process. Where supported, encoding is explicitly -# set to ensure binary data is able to pass from child to -# parent. -# -# @private -# -# source://rspec-core//lib/rspec/core/bisect/utilities.rb#36 -class RSpec::Core::Bisect::Channel - # @return [Channel] a new instance of Channel - # - # source://rspec-core//lib/rspec/core/bisect/utilities.rb#41 - def initialize; end - - # source://rspec-core//lib/rspec/core/bisect/utilities.rb#62 - def close; end - - # source://rspec-core//lib/rspec/core/bisect/utilities.rb#56 - def receive; end - - # source://rspec-core//lib/rspec/core/bisect/utilities.rb#50 - def send(message); end -end - -# source://rspec-core//lib/rspec/core/bisect/utilities.rb#38 -RSpec::Core::Bisect::Channel::MARSHAL_DUMP_ENCODING = T.let(T.unsafe(nil), Encoding) - -# @private -# -# source://rspec-core//lib/rspec/core/bisect/utilities.rb#5 -class RSpec::Core::Bisect::ExampleSetDescriptor < ::Struct - # Returns the value of attribute all_example_ids - # - # @return [Object] the current value of all_example_ids - def all_example_ids; end - - # Sets the attribute all_example_ids - # - # @param value [Object] the value to set the attribute all_example_ids to. - # @return [Object] the newly set value - def all_example_ids=(_); end - - # Returns the value of attribute failed_example_ids - # - # @return [Object] the current value of failed_example_ids - def failed_example_ids; end - - # Sets the attribute failed_example_ids - # - # @param value [Object] the value to set the attribute failed_example_ids to. - # @return [Object] the newly set value - def failed_example_ids=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# Wraps a `formatter` providing a simple means to notify it in place -# of an `RSpec::Core::Reporter`, without involving configuration in -# any way. -# -# @private -# -# source://rspec-core//lib/rspec/core/bisect/utilities.rb#19 -class RSpec::Core::Bisect::Notifier - # @return [Notifier] a new instance of Notifier - # - # source://rspec-core//lib/rspec/core/bisect/utilities.rb#20 - def initialize(formatter); end - - # source://rspec-core//lib/rspec/core/bisect/utilities.rb#24 - def publish(event, *args); end -end - -# Stores runtime configuration information. -# -# Configuration options are loaded from multiple files and joined together -# with command-line switches and the `SPEC_OPTS` environment variable. -# -# Precedence order (where later entries overwrite earlier entries on -# conflicts): -# -# * Global (`$XDG_CONFIG_HOME/rspec/options`, or `~/.rspec` if it does -# not exist) -# * Project-specific (`./.rspec`) -# * Local (`./.rspec-local`) -# * Command-line options -# * `SPEC_OPTS` -# -# For example, an option set in the local file will override an option set -# in your global file. -# -# The global, project-specific and local files can all be overridden with a -# separate custom file using the --options command-line parameter. -# -# @example Standard settings -# RSpec.configure do |c| -# c.drb = true -# c.drb_port = 1234 -# c.default_path = 'behavior' -# end -# @example Hooks -# RSpec.configure do |c| -# c.before(:suite) { establish_connection } -# c.before(:example) { log_in_as :authorized } -# c.around(:example) { |ex| Database.transaction(&ex) } -# end -# @see RSpec.configure -# @see Hooks -# -# source://rspec-core//lib/rspec/core/configuration.rb#47 -class RSpec::Core::Configuration - include ::RSpec::Core::Hooks - include ::RSpec::Core::Configuration::Readers - - # Build an object to store runtime configuration options and set defaults - # - # @return [Configuration] a new instance of Configuration - # - # source://rspec-core//lib/rspec/core/configuration.rb#528 - def initialize; end - - # Adds a formatter to the set RSpec will use for this run. - # - # @overload add_formatter - # @overload add_formatter - # @param formatter [Class, String, Object] formatter to use. Can be any of the - # string values supported from the CLI (`p`/`progress`, - # `d`/`doc`/`documentation`, `h`/`html`, or `j`/`json`), any - # class that implements the formatter protocol and has registered - # itself with RSpec as a formatter, or a formatter instance. - # @param output [String, IO] where the formatter will write its output. - # Can be an IO object or a string path to a file. If not provided, - # the configured `output_stream` (`$stdout`, by default) will be used. - # @see RSpec::Core::Formatters::Protocol - # - # source://rspec-core//lib/rspec/core/configuration.rb#996 - def add_formatter(formatter, output = T.unsafe(nil)); end - - # Adds a custom setting to the RSpec.configuration object. - # - # RSpec.configuration.add_setting :foo - # - # Used internally and by extension frameworks like rspec-rails, so they - # can add config settings that are domain specific. For example: - # - # RSpec.configure do |c| - # c.add_setting :use_transactional_fixtures, - # :default => true, - # :alias_with => :use_transactional_examples - # end - # - # `add_setting` creates three methods on the configuration object, a - # setter, a getter, and a predicate: - # - # RSpec.configuration.foo=(value) - # RSpec.configuration.foo - # RSpec.configuration.foo? # Returns true if foo returns anything but nil or false. - # - # @option opts - # @option opts - # @overload add_setting - # @overload add_setting - # @param opts [Hash] a customizable set of options - # - # source://rspec-core//lib/rspec/core/configuration.rb#659 - def add_setting(name, opts = T.unsafe(nil)); end - - # Defines a `after` hook. See {Hooks#after} for full docs. - # - # This method differs from {Hooks#after} in only one way: it supports - # the `:suite` scope. Hooks with the `:suite` scope will be run once after - # the last example of the entire suite is executed. Conditions passed along - # with `:suite` are effectively ignored. - # - # @see #append_after - # @see #before - # @see #prepend_before - # - # source://rspec-core//lib/rspec/core/configuration.rb#2031 - def after(scope = T.unsafe(nil), *meta, &block); end - - # Creates a method that defines an example group with the provided - # metadata. Can be used to define example group/metadata shortcuts. - # - # @example - # RSpec.configure do |config| - # config.alias_example_group_to :describe_model, :type => :model - # end - # - # shared_context_for "model tests", :type => :model do - # # define common model test helper methods, `let` declarations, etc - # end - # - # # This lets you do this: - # - # RSpec.describe_model User do - # end - # - # # ... which is the equivalent of - # - # RSpec.describe User, :type => :model do - # end - # @note The defined aliased will also be added to the top level - # (e.g. `main` and from within modules) if - # `expose_dsl_globally` is set to true. - # @see #alias_example_to - # @see #expose_dsl_globally= - # - # source://rspec-core//lib/rspec/core/configuration.rb#1209 - def alias_example_group_to(new_name, *args); end - - # Creates a method that delegates to `example` including the submitted - # `args`. Used internally to add variants of `example` like `pending`: - # - # @example - # RSpec.configure do |config| - # config.alias_example_to :pending, :pending => true - # end - # - # # This lets you do this: - # - # RSpec.describe Thing do - # pending "does something" do - # thing = Thing.new - # end - # end - # - # # ... which is the equivalent of - # - # RSpec.describe Thing do - # it "does something", :pending => true do - # thing = Thing.new - # end - # end - # @note The specific example alias below (`pending`) is already - # defined for you. - # @note Use with caution. This extends the language used in your - # specs, but does not add any additional documentation. We use this - # in RSpec to define methods like `focus` and `xit`, but we also add - # docs for those methods. - # @param name [String] example name alias - # @param args [Array, Hash] metadata for the generated example - # - # source://rspec-core//lib/rspec/core/configuration.rb#1177 - def alias_example_to(name, *args); end - - # Define an alias for it_should_behave_like that allows different - # language (like "it_has_behavior" or "it_behaves_like") to be - # employed when including shared examples. - # - # @example - # RSpec.configure do |config| - # config.alias_it_behaves_like_to(:it_has_behavior, 'has behavior:') - # end - # - # # allows the user to include a shared example group like: - # - # RSpec.describe Entity do - # it_has_behavior 'sortability' do - # let(:sortable) { Entity.new } - # end - # end - # - # # which is reported in the output as: - # # Entity - # # has behavior: sortability - # # ...sortability examples here - # @note Use with caution. This extends the language used in your - # specs, but does not add any additional documentation. We use this - # in RSpec to define `it_should_behave_like` (for backward - # compatibility), but we also add docs for that method. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1240 - def alias_it_behaves_like_to(new_name, report_label = T.unsafe(nil)); end - - # Define an alias for it_should_behave_like that allows different - # language (like "it_has_behavior" or "it_behaves_like") to be - # employed when including shared examples. - # - # @example - # RSpec.configure do |config| - # config.alias_it_behaves_like_to(:it_has_behavior, 'has behavior:') - # end - # - # # allows the user to include a shared example group like: - # - # RSpec.describe Entity do - # it_has_behavior 'sortability' do - # let(:sortable) { Entity.new } - # end - # end - # - # # which is reported in the output as: - # # Entity - # # has behavior: sortability - # # ...sortability examples here - # @note Use with caution. This extends the language used in your - # specs, but does not add any additional documentation. We use this - # in RSpec to define `it_should_behave_like` (for backward - # compatibility), but we also add docs for that method. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1240 - def alias_it_should_behave_like_to(new_name, report_label = T.unsafe(nil)); end - - # Adds `block` to the end of the list of `after` blocks in the same - # scope (`:example`, `:context`, or `:suite`), in contrast to {#after}, - # which adds the hook to the start of the list. - # - # See {Hooks#after} for full `after` hook docs. - # - # This method differs from {Hooks#append_after} in only one way: it supports - # the `:suite` scope. Hooks with the `:suite` scope will be run once after - # the last example of the entire suite is executed. Conditions passed along - # with `:suite` are effectively ignored. - # - # @see #append_after - # @see #before - # @see #prepend_before - # - # source://rspec-core//lib/rspec/core/configuration.rb#2061 - def append_after(scope = T.unsafe(nil), *meta, &block); end - - # Defines a `before` hook. See {Hooks#before} for full docs. - # - # This method differs from {Hooks#before} in only one way: it supports - # the `:suite` scope. Hooks with the `:suite` scope will be run once before - # the first example of the entire suite is executed. Conditions passed along - # with `:suite` are effectively ignored. - # - # @see #prepend_before - # @see #after - # @see #append_after - # - # source://rspec-core//lib/rspec/core/configuration.rb#1976 - def append_before(scope = T.unsafe(nil), *meta, &block); end - - # @private - # @raise [SystemStackError] - # - # source://rspec-core//lib/rspec/core/configuration.rb#1941 - def apply_derived_metadata_to(metadata); end - - # Registers `block` as an `around` hook. - # - # See {Hooks#around} for full `around` hook docs. - # - # source://rspec-core//lib/rspec/core/configuration.rb#2079 - def around(scope = T.unsafe(nil), *meta, &block); end - - # Regexps used to exclude lines from backtraces. - # - # Excludes lines from ruby (and jruby) source, installed gems, anything - # in any "bin" directory, and any of the RSpec libs (outside gem - # installs) by default. - # - # You can modify the list via the getter, or replace it with the setter. - # - # To override this behaviour and display a full backtrace, use - # `--backtrace` on the command line, in a `.rspec` file, or in the - # `rspec_options` attribute of RSpec's rake task. - # - # @return [Array] - # - # source://rspec-core//lib/rspec/core/configuration.rb#697 - def backtrace_exclusion_patterns; end - - # Set regular expressions used to exclude lines in backtrace. - # - # @param patterns [Array] set backtrace_formatter exclusion_patterns - # - # source://rspec-core//lib/rspec/core/configuration.rb#703 - def backtrace_exclusion_patterns=(patterns); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#522 - def backtrace_formatter; end - - # Regexps used to include lines in backtraces. - # - # Defaults to [Regexp.new Dir.getwd]. - # - # Lines that match an exclusion _and_ an inclusion pattern - # will be included. - # - # You can modify the list via the getter, or replace it with the setter. - # - # @return [Array] - # - # source://rspec-core//lib/rspec/core/configuration.rb#716 - def backtrace_inclusion_patterns; end - - # Set regular expressions used to include lines in backtrace. - # - # @attr patterns [Array] set backtrace_formatter inclusion_patterns - # - # source://rspec-core//lib/rspec/core/configuration.rb#722 - def backtrace_inclusion_patterns=(patterns); end - - # Defines a `before` hook. See {Hooks#before} for full docs. - # - # This method differs from {Hooks#before} in only one way: it supports - # the `:suite` scope. Hooks with the `:suite` scope will be run once before - # the first example of the entire suite is executed. Conditions passed along - # with `:suite` are effectively ignored. - # - # @see #prepend_before - # @see #after - # @see #append_after - # - # source://rspec-core//lib/rspec/core/configuration.rb#1976 - def before(scope = T.unsafe(nil), *meta, &block); end - - # Determines which bisect runner implementation gets used to run subsets - # of the suite during a bisection. Your choices are: - # - # - `:shell`: Performs a spec run by shelling out, booting RSpec and your - # application environment each time. This runner is the most widely - # compatible runner, but is not as fast. On platforms that do not - # support forking, this is the default. - # - `:fork`: Pre-boots RSpec and your application environment in a parent - # process, and then forks a child process for each spec run. This runner - # tends to be significantly faster than the `:shell` runner but cannot - # be used in some situations. On platforms that support forking, this - # is the default. If you use this runner, you should ensure that all - # of your one-time setup logic goes in a `before(:suite)` hook instead - # of getting run at the top-level of a file loaded by `--require`. - # - # @note This option will only be used by `--bisect` if you set it in a file - # loaded via `--require`. - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#499 - def bisect_runner; end - - # source://rspec-core//lib/rspec/core/configuration.rb#500 - def bisect_runner=(value); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#2125 - def bisect_runner_class; end - - # Enables color output if the output is a TTY. As of RSpec 3.6, this is - # the default behavior and this option is retained only for backwards - # compatibility. - # - # @deprecated No longer recommended because of complex behavior. Instead, - # rely on the fact that TTYs will display color by default, or set - # {#color_mode} to :on to display color on a non-TTY output. - # @return [Boolean] - # @see color_mode - # @see color_enabled? - # - # source://rspec-core//lib/rspec/core/configuration.rb#922 - def color; end - - # Toggle output color. - # - # @deprecated No longer recommended because of complex behavior. Instead, - # rely on the fact that TTYs will display color by default, or set - # {:color_mode} to :on to display color on a non-TTY output. - # - # source://rspec-core//lib/rspec/core/configuration.rb#960 - def color=(_arg0); end - - # Check if color is enabled for a particular output. - # - # @param output [IO] an output stream to use, defaults to the current - # `output_stream` - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#943 - def color_enabled?(output = T.unsafe(nil)); end - - # The mode for determining whether to display output in color. One of: - # - # - :automatic - the output will be in color if the output is a TTY (the - # default) - # - :on - the output will be in color, whether or not the output is a TTY - # - :off - the output will not be in color - # - # @return [Boolean] - # @see color_enabled? - # - # source://rspec-core//lib/rspec/core/configuration.rb#935 - def color_mode; end - - # Set the color mode. - # - # source://rspec-core//lib/rspec/core/configuration.rb#953 - def color_mode=(_arg0); end - - # Used internally to extend the singleton class of a single example's - # example group instance with modules using `include` and/or `extend`. - # - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1580 - def configure_example(example, example_hooks); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1622 - def configure_expectation_framework; end - - # Used internally to extend a group with modules using `include`, `prepend` and/or - # `extend`. - # - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1568 - def configure_group(group); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1616 - def configure_mock_framework; end - - # The default output color. Defaults to `:white` but can be set to one of - # the following: `[:black, :white, :red, :green, :yellow, :blue, - # :magenta, :cyan]` - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def default_color; end - - # The default output color. Defaults to `:white` but can be set to one of - # the following: `[:black, :white, :red, :green, :yellow, :blue, - # :magenta, :cyan]` - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def default_color=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def default_color?; end - - # The formatter that will be used if no formatter has been set. - # Defaults to 'progress'. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1003 - def default_formatter; end - - # Sets a fallback formatter to use if none other has been set. - # - # @example - # - # RSpec.configure do |rspec| - # rspec.default_formatter = 'doc' - # end - # - # source://rspec-core//lib/rspec/core/configuration.rb#1014 - def default_formatter=(value); end - - # Path to use if no path is provided to the `rspec` command (default: - # `"spec"`). Allows you to just type `rspec` instead of `rspec spec` to - # run all the examples in the `spec` directory. - # - # @note Other scripts invoking `rspec` indirectly will ignore this - # setting. - # @return [String] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def default_path; end - - # Path to use if no path is provided to the `rspec` command (default: - # `"spec"`). Allows you to just type `rspec` instead of `rspec spec` to - # run all the examples in the `spec` directory. - # - # @note Other scripts invoking `rspec` indirectly will ignore this - # setting. - # @return [String] - # - # source://rspec-core//lib/rspec/core/configuration.rb#121 - def default_path=(path); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def default_path?; end - - # Defines a callback that can assign derived metadata values. - # - # @example - # RSpec.configure do |config| - # # Tag all groups and examples in the spec/unit directory with - # # :type => :unit - # config.define_derived_metadata(:file_path => %r{/spec/unit/}) do |metadata| - # metadata[:type] = :unit - # end - # end - # @param filters [Array, Hash] metadata filters that determine - # which example or group metadata hashes the callback will be triggered - # for. If none are given, the callback will be run against the metadata - # hashes of all groups and examples. - # @yieldparam metadata [Hash] original metadata hash from an example or - # group. Mutate this in your block as needed. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1900 - def define_derived_metadata(*filters, &block); end - - # Determines where deprecation warnings are printed. - # Defaults to `$stderr`. - # - # @return [IO, String] IO or filename to write to - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def deprecation_stream; end - - # Determines where deprecation warnings are printed. - # - # @param value [IO, String] IO to write to or filename to write to - # - # source://rspec-core//lib/rspec/core/configuration.rb#168 - def deprecation_stream=(value); end - - # Color used to print details. Defaults to `:cyan` but can be set to one - # of the following: `[:black, :white, :red, :green, :yellow, :blue, - # :magenta, :cyan]` - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def detail_color; end - - # Color used to print details. Defaults to `:cyan` but can be set to one - # of the following: `[:black, :white, :red, :green, :yellow, :blue, - # :magenta, :cyan]` - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def detail_color=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def detail_color?; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1881 - def disable_monkey_patching; end - - # Enables zero monkey patching mode for RSpec. It removes monkey - # patching of the top-level DSL methods (`describe`, - # `shared_examples_for`, etc) onto `main` and `Module`, instead - # requiring you to prefix these methods with `RSpec.`. It enables - # expect-only syntax for rspec-mocks and rspec-expectations. It - # simply disables monkey patching on whatever pieces of RSpec - # the user is using. - # - # @example - # - # # It disables all monkey patching. - # RSpec.configure do |config| - # config.disable_monkey_patching! - # end - # - # # Is an equivalent to - # RSpec.configure do |config| - # config.expose_dsl_globally = false - # - # config.mock_with :rspec do |mocks| - # mocks.syntax = :expect - # mocks.patch_marshal_to_support_partial_doubles = false - # end - # - # config.expect_with :rspec do |expectations| - # expectations.syntax = :expect - # end - # end - # @note It configures rspec-mocks and rspec-expectations only - # if the user is using those (either explicitly or implicitly - # by not setting `mock_with` or `expect_with` to anything else). - # @note If the user uses this options with `mock_with :mocha` - # (or similar) they will still have monkey patching active - # in their test environment from mocha. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1873 - def disable_monkey_patching!; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1881 - def disable_monkey_patching=(_arg0); end - - # Run examples over DRb (default: `false`). RSpec doesn't supply the DRb - # server, but you can use tools like spork. - # - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def drb; end - - # Run examples over DRb (default: `false`). RSpec doesn't supply the DRb - # server, but you can use tools like spork. - # - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def drb=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def drb?; end - - # The drb_port (default: nil). - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def drb_port; end - - # The drb_port (default: nil). - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def drb_port=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def drb_port?; end - - # Prints the formatter output of your suite without running any - # examples or hooks. - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def dry_run; end - - # Prints the formatter output of your suite without running any - # examples or hooks. - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def dry_run=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def dry_run?; end - - # The exit code to return if there are any errors outside examples (default: failure_exit_code) - # - # @return [Integer] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def error_exit_code; end - - # The exit code to return if there are any errors outside examples (default: failure_exit_code) - # - # @return [Integer] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def error_exit_code=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def error_exit_code?; end - - # Default: `$stderr`. - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def error_stream; end - - # Default: `$stderr`. - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def error_stream=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def error_stream?; end - - # The file path to use for persisting example statuses. Necessary for the - # `--only-failures` and `--next-failure` CLI options. - # - # @overload example_status_persistence_file_path - # @overload example_status_persistence_file_path= - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def example_status_persistence_file_path; end - - # Sets the file path to use for persisting example statuses. Necessary for the - # `--only-failures` and `--next-failure` CLI options. - # - # source://rspec-core//lib/rspec/core/configuration.rb#192 - def example_status_persistence_file_path=(value); end - - # Exclude files matching this pattern. - # - # @return [String] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def exclude_pattern; end - - # Set pattern to match files to exclude. - # - # @attr value [String] the filename pattern to exclude spec files by - # - # source://rspec-core//lib/rspec/core/configuration.rb#304 - def exclude_pattern=(value); end - - # Returns the `exclusion_filter`. If none has been set, returns an empty - # hash. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1369 - def exclusion_filter; end - - # Clears and reassigns the `exclusion_filter`. Set to `nil` if you don't - # want any exclusion filter at all. - # - # ### Warning - # - # This overrides any exclusion filters/tags set on the command line or in - # configuration files. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1362 - def exclusion_filter=(filter); end - - # Sets the expectation framework module(s) to be included in each example - # group. - # - # `frameworks` can be `:rspec`, `:test_unit`, `:minitest`, a custom - # module, or any combination thereof: - # - # config.expect_with :rspec - # config.expect_with :test_unit - # config.expect_with :minitest - # config.expect_with :rspec, :minitest - # config.expect_with OtherExpectationFramework - # - # RSpec will translate `:rspec`, `:minitest`, and `:test_unit` into the - # appropriate modules. - # - # ## Configuration - # - # If the module responds to `configuration`, `expect_with` will - # yield the `configuration` object if given a block: - # - # config.expect_with OtherExpectationFramework do |custom_config| - # custom_config.custom_setting = true - # end - # - # source://rspec-core//lib/rspec/core/configuration.rb#858 - def expect_with(*frameworks); end - - # Delegates to expect_with(framework). - # - # source://rspec-core//lib/rspec/core/configuration.rb#831 - def expectation_framework=(framework); end - - # Returns the configured expectation framework adapter module(s) - # - # source://rspec-core//lib/rspec/core/configuration.rb#819 - def expectation_frameworks; end - - # Exposes the current running example via the named - # helper method. RSpec 2.x exposed this via `example`, - # but in RSpec 3.0, the example is instead exposed via - # an arg yielded to `it`, `before`, `let`, etc. However, - # some extension gems (such as Capybara) depend on the - # RSpec 2.x's `example` method, so this config option - # can be used to maintain compatibility. - # - # @example - # - # RSpec.configure do |rspec| - # rspec.expose_current_running_example_as :example - # end - # - # RSpec.describe MyClass do - # before do - # # `example` can be used here because of the above config. - # do_something if example.metadata[:type] == "foo" - # end - # end - # @param method_name [Symbol] the name of the helper method - # - # source://rspec-core//lib/rspec/core/configuration.rb#1811 - def expose_current_running_example_as(method_name); end - - # Use this to expose the core RSpec DSL via `Module` and the `main` - # object. It will be set automatically but you can override it to - # remove the DSL. - # Default: true - # - # source://rspec-core//lib/rspec/core/configuration.rb#151 - def expose_dsl_globally=(value); end - - # Indicates if the DSL has been exposed off of modules and `main`. - # Default: true - # - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#143 - def expose_dsl_globally?; end - - # Tells RSpec to extend example groups with `mod`. Methods defined in - # `mod` are exposed to example groups (not examples). Use `filters` to - # constrain the groups to extend. - # - # Similar to `include`, but behavior is added to example groups, which - # are classes, rather than the examples, which are instances of those - # classes. - # - # @example - # - # module UiHelpers - # def run_in_browser - # # ... - # end - # end - # - # module PermissionHelpers - # def define_permissions - # # ... - # end - # end - # - # RSpec.configure do |config| - # config.extend(UiHelpers, :type => :request) - # config.extend(PermissionHelpers, :with_permissions, :type => :request) - # end - # - # describe "edit profile", :with_permissions, :type => :request do - # run_in_browser - # define_permissions - # - # it "does stuff in the client" do - # # ... - # end - # end - # @see #include - # @see #prepend - # - # source://rspec-core//lib/rspec/core/configuration.rb#1518 - def extend(mod, *filters); end - - # If specified, indicates the number of failures required before cleaning - # up and exit (default: `nil`). Can also be `true` to fail and exit on first - # failure - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def fail_fast; end - - # @see fail_fast - # - # source://rspec-core//lib/rspec/core/configuration.rb#214 - def fail_fast=(value); end - - # Whether or not to fail when there are no RSpec examples (default: false). - # - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def fail_if_no_examples; end - - # Whether or not to fail when there are no RSpec examples (default: false). - # - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def fail_if_no_examples=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def fail_if_no_examples?; end - - # Color to use to indicate failure. Defaults to `:red` but can be set to - # one of the following: `[:black, :white, :red, :green, :yellow, :blue, - # :magenta, :cyan]` - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def failure_color; end - - # Color to use to indicate failure. Defaults to `:red` but can be set to - # one of the following: `[:black, :white, :red, :green, :yellow, :blue, - # :magenta, :cyan]` - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def failure_color=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def failure_color?; end - - # The exit code to return if there are any failures (default: 1). - # - # @return [Integer] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def failure_exit_code; end - - # The exit code to return if there are any failures (default: 1). - # - # @return [Integer] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def failure_exit_code=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def failure_exit_code?; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1083 - def files_or_directories_to_run=(*files); end - - # The spec files RSpec will run. - # - # @return [Array] specified files about to run - # - # source://rspec-core//lib/rspec/core/configuration.rb#1096 - def files_to_run; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#516 - def files_to_run=(_arg0); end - - # Returns the `inclusion_filter`. If none has been set, returns an empty - # hash. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1313 - def filter; end - - # Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't - # want any inclusion filter at all. - # - # ### Warning - # - # This overrides any inclusion filters/tags set on the command line or in - # configuration files. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1304 - def filter=(filter); end - - # Adds {#backtrace_exclusion_patterns} that will filter lines from - # the named gems from backtraces. - # - # @example - # RSpec.configure do |config| - # config.filter_gems_from_backtrace "rack", "rake" - # end - # @note The patterns this adds will match the named gems in their common - # locations (e.g. system gems, vendored with bundler, installed as a - # :git dependency with bundler, etc) but is not guaranteed to work for - # all possible gem locations. For example, if you have the gem source - # in a directory with a completely unrelated name, and use bundler's - # :path option, this will not filter it. - # @param gem_names [Array] Names of the gems to filter - # - # source://rspec-core//lib/rspec/core/configuration.rb#742 - def filter_gems_from_backtrace(*gem_names); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#518 - def filter_manager; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#518 - def filter_manager=(_arg0); end - - # Adds key/value pairs to the `inclusion_filter`. If `args` - # includes any symbols that are not part of the hash, each symbol - # is treated as a key in the hash with the value `true`. - # - # ### Note - # - # Filters set using this method can be overridden from the command line - # or config files (e.g. `.rspec`). - # - # @example - # # Given this declaration. - # describe "something", :foo => 'bar' do - # # ... - # end - # - # # Any of the following will include that group. - # config.filter_run_including :foo => 'bar' - # config.filter_run_including :foo => /^ba/ - # config.filter_run_including :foo => lambda {|v| v == 'bar'} - # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'} - # - # # Given a proc with an arity of 1, the lambda is passed the value - # # related to the key, e.g. - # config.filter_run_including :foo => lambda {|v| v == 'bar'} - # - # # Given a proc with an arity of 2, the lambda is passed the value - # # related to the key, and the metadata itself e.g. - # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'} - # - # filter_run_including :foo # same as filter_run_including :foo => true - # - # source://rspec-core//lib/rspec/core/configuration.rb#1275 - def filter_run(*args); end - - # Adds key/value pairs to the `exclusion_filter`. If `args` - # includes any symbols that are not part of the hash, each symbol - # is treated as a key in the hash with the value `true`. - # - # ### Note - # - # Filters set using this method can be overridden from the command line - # or config files (e.g. `.rspec`). - # - # @example - # # Given this declaration. - # describe "something", :foo => 'bar' do - # # ... - # end - # - # # Any of the following will exclude that group. - # config.filter_run_excluding :foo => 'bar' - # config.filter_run_excluding :foo => /^ba/ - # config.filter_run_excluding :foo => lambda {|v| v == 'bar'} - # config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'} - # - # # Given a proc with an arity of 1, the lambda is passed the value - # # related to the key, e.g. - # config.filter_run_excluding :foo => lambda {|v| v == 'bar'} - # - # # Given a proc with an arity of 2, the lambda is passed the value - # # related to the key, and the metadata itself e.g. - # config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'} - # - # filter_run_excluding :foo # same as filter_run_excluding :foo => true - # - # source://rspec-core//lib/rspec/core/configuration.rb#1349 - def filter_run_excluding(*args); end - - # Adds key/value pairs to the `inclusion_filter`. If `args` - # includes any symbols that are not part of the hash, each symbol - # is treated as a key in the hash with the value `true`. - # - # ### Note - # - # Filters set using this method can be overridden from the command line - # or config files (e.g. `.rspec`). - # - # @example - # # Given this declaration. - # describe "something", :foo => 'bar' do - # # ... - # end - # - # # Any of the following will include that group. - # config.filter_run_including :foo => 'bar' - # config.filter_run_including :foo => /^ba/ - # config.filter_run_including :foo => lambda {|v| v == 'bar'} - # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'} - # - # # Given a proc with an arity of 1, the lambda is passed the value - # # related to the key, e.g. - # config.filter_run_including :foo => lambda {|v| v == 'bar'} - # - # # Given a proc with an arity of 2, the lambda is passed the value - # # related to the key, and the metadata itself e.g. - # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'} - # - # filter_run_including :foo # same as filter_run_including :foo => true - # - # source://rspec-core//lib/rspec/core/configuration.rb#1275 - def filter_run_including(*args); end - - # Applies the provided filter only if any of examples match, in constrast - # to {#filter_run}, which always applies even if no examples match, in - # which case no examples will be run. This allows you to leave configured - # filters in place that are intended only for temporary use. The most common - # example is focus filtering: `config.filter_run_when_matching :focus`. - # With that configured, you can temporarily focus an example or group - # by tagging it with `:focus` metadata, or prefixing it with an `f` - # (as in `fdescribe`, `fcontext` and `fit`) since those are aliases for - # `describe`/`context`/`it` with `:focus` metadata. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1291 - def filter_run_when_matching(*args); end - - # Color used when a pending example is fixed. Defaults to `:blue` but can - # be set to one of the following: `[:black, :white, :red, :green, - # :yellow, :blue, :magenta, :cyan]` - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def fixed_color; end - - # Color used when a pending example is fixed. Defaults to `:blue` but can - # be set to one of the following: `[:black, :white, :red, :green, - # :yellow, :blue, :magenta, :cyan]` - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def fixed_color=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def fixed_color?; end - - # Used to set higher priority option values from the command line. - # - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#592 - def force(hash); end - - # Formats the docstring output using the block provided. - # - # @example - # # This will strip the descriptions of both examples and example - # # groups. - # RSpec.configure do |config| - # config.format_docstrings { |s| s.strip } - # end - # - # source://rspec-core//lib/rspec/core/configuration.rb#1661 - def format_docstrings(&block); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1666 - def format_docstrings_block; end - - # Adds a formatter to the set RSpec will use for this run. - # - # @overload add_formatter - # @overload add_formatter - # @param formatter [Class, String, Object] formatter to use. Can be any of the - # string values supported from the CLI (`p`/`progress`, - # `d`/`doc`/`documentation`, `h`/`html`, or `j`/`json`), any - # class that implements the formatter protocol and has registered - # itself with RSpec as a formatter, or a formatter instance. - # @param output [String, IO] where the formatter will write its output. - # Can be an IO object or a string path to a file. If not provided, - # the configured `output_stream` (`$stdout`, by default) will be used. - # @see RSpec::Core::Formatters::Protocol - # - # source://rspec-core//lib/rspec/core/configuration.rb#996 - def formatter=(formatter, output = T.unsafe(nil)); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1029 - def formatter_loader; end - - # Returns a duplicate of the formatters currently loaded in - # the `FormatterLoader` for introspection. - # - # Note as this is a duplicate, any mutations will be disregarded. - # - # @return [Array] the formatters currently loaded - # - # source://rspec-core//lib/rspec/core/configuration.rb#1024 - def formatters; end - - # Toggle full backtrace. - # - # @attr true_or_false [Boolean] toggle full backtrace display - # - # source://rspec-core//lib/rspec/core/configuration.rb#908 - def full_backtrace=(true_or_false); end - - # Check if full backtrace is enabled. - # - # @return [Boolean] is full backtrace enabled - # - # source://rspec-core//lib/rspec/core/configuration.rb#902 - def full_backtrace?; end - - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def full_cause_backtrace; end - - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def full_cause_backtrace=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def full_cause_backtrace?; end - - # @return [Array] full description filter - # - # source://rspec-core//lib/rspec/core/configuration.rb#977 - def full_description; end - - # Run examples matching on `description` in all files to run. - # - # @param description [String, Regexp] the pattern to filter on - # - # source://rspec-core//lib/rspec/core/configuration.rb#972 - def full_description=(description); end - - # Holds the various registered hooks. Here we use a FilterableItemRepository - # implementation that is specifically optimized for the read/write patterns - # of the config object. - # - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#2109 - def hooks; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1607 - def in_project_source_dir_regex; end - - # Tells RSpec to include `mod` in example groups. Methods defined in - # `mod` are exposed to examples (not example groups). Use `filters` to - # constrain the groups or examples in which to include the module. - # - # @example - # - # module AuthenticationHelpers - # def login_as(user) - # # ... - # end - # end - # - # module PreferencesHelpers - # def preferences(user, preferences = {}) - # # ... - # end - # end - # - # module UserHelpers - # def users(username) - # # ... - # end - # end - # - # RSpec.configure do |config| - # config.include(UserHelpers) # included in all groups - # - # # included in examples with `:preferences` metadata - # config.include(PreferenceHelpers, :preferences) - # - # # included in examples with `:type => :request` metadata - # config.include(AuthenticationHelpers, :type => :request) - # - # # included in examples where the `:type` metadata matches a proc condition - # config.include(AuthenticationHelpers, :type => proc { |type, _metadata| [:request, :controller].include?(type) }) - # end - # - # describe "edit profile", :preferences, :type => :request do - # it "can be viewed by owning user" do - # login_as preferences(users(:jdoe), :lang => 'es') - # get "/profiles/jdoe" - # assert_select ".username", :text => 'jdoe' - # end - # end - # @note Filtered module inclusions can also be applied to - # individual examples that have matching metadata. Just like - # Ruby's object model is that every object has a singleton class - # which has only a single instance, RSpec's model is that every - # example has a singleton example group containing just the one - # example. - # @see #include_context - # @see #extend - # @see #prepend - # - # source://rspec-core//lib/rspec/core/configuration.rb#1428 - def include(mod, *filters); end - - # Tells RSpec to include the named shared example group in example groups. - # Use `filters` to constrain the groups or examples in which to include - # the example group. - # - # @example - # - # RSpec.shared_context "example admin user" do - # let(:admin_user) { create_user(:admin) } - # end - # - # RSpec.shared_context "example guest user" do - # let(:guest_user) { create_user(:guest) } - # end - # - # RSpec.configure do |config| - # config.include_context "example guest user", :type => :request - # config.include_context "example admin user", :admin, :type => :request - # end - # - # RSpec.describe "The admin page", :type => :request do - # it "can be viewed by admins", :admin do - # login_with admin_user - # get "/admin" - # expect(response).to be_ok - # end - # - # it "cannot be viewed by guests" do - # login_with guest_user - # get "/admin" - # expect(response).to be_forbidden - # end - # end - # @note Filtered context inclusions can also be applied to - # individual examples that have matching metadata. Just like - # Ruby's object model is that every object has a singleton class - # which has only a single instance, RSpec's model is that every - # example has a singleton example group containing just the one - # example. - # @see #include - # - # source://rspec-core//lib/rspec/core/configuration.rb#1475 - def include_context(shared_group_name, *filters); end - - # Returns the `inclusion_filter`. If none has been set, returns an empty - # hash. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1313 - def inclusion_filter; end - - # Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't - # want any inclusion filter at all. - # - # ### Warning - # - # This overrides any inclusion filters/tags set on the command line or in - # configuration files. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1304 - def inclusion_filter=(filter); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1101 - def last_run_statuses; end - - # Returns dirs that have been prepended to the load path by the `-I` - # command line option. - # - # @return [Array] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def libs; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#963 - def libs=(libs); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1630 - def load_spec_files; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#522 - def loaded_spec_files; end - - # Maximum count of failed source lines to display in the failure reports - # (defaults to `10`). - # return [Integer] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def max_displayed_failure_line_count; end - - # Maximum count of failed source lines to display in the failure reports - # (defaults to `10`). - # return [Integer] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def max_displayed_failure_line_count=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def max_displayed_failure_line_count?; end - - # Returns the configured mock framework adapter module. - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#669 - def mock_framework; end - - # Delegates to mock_framework=(framework). - # - # source://rspec-core//lib/rspec/core/configuration.rb#681 - def mock_framework=(framework); end - - # Sets the mock framework adapter module. - # - # `framework` can be a Symbol or a Module. - # - # Given any of `:rspec`, `:mocha`, `:flexmock`, or `:rr`, configures the - # named framework. - # - # Given `:nothing`, configures no framework. Use this if you don't use - # any mocking framework to save a little bit of overhead. - # - # Given a Module, includes that module in every example group. The module - # should adhere to RSpec's mock framework adapter API: - # - # setup_mocks_for_rspec - # - called before each example - # - # verify_mocks_for_rspec - # - called after each example if the example hasn't yet failed. - # Framework should raise an exception when expectations fail - # - # teardown_mocks_for_rspec - # - called after verify_mocks_for_rspec (even if there are errors) - # - # If the module responds to `configuration` and `mock_with` receives a - # block, it will yield the configuration object to the block e.g. - # - # config.mock_with OtherMockFrameworkAdapter do |mod_config| - # mod_config.custom_setting = true - # end - # - # source://rspec-core//lib/rspec/core/configuration.rb#786 - def mock_with(framework); end - - # Invokes block before defining an example group - # - # source://rspec-core//lib/rspec/core/configuration.rb#2114 - def on_example_group_definition(&block); end - - # Returns an array of blocks to call before defining an example group - # - # @api private - # - # source://rspec-core//lib/rspec/core/configuration.rb#2120 - def on_example_group_definition_callbacks; end - - # Indicates if the `--only-failures` (or `--next-failure`) flag is being used. - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def only_failures; end - - # Indicates if the `--only-failures` (or `--next-failure`) flag is being used. - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def only_failures?; end - - # @private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#203 - def only_failures_but_not_configured?; end - - # Sets the default global ordering strategy. By default this can be one - # of `:defined`, `:random`, but is customizable through the - # `register_ordering` API. If order is set to `'rand:'`, - # the seed will also be set. - # - # @see #register_ordering - # - # source://rspec-core//lib/rspec/core/configuration.rb#1673 - def order=(*args, &block); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#522 - def ordering_manager; end - - # source://rspec-core//lib/rspec/core/configuration.rb#1673 - def ordering_registry(*args, &block); end - - # Determines where RSpec will send its output. - # Default: `$stdout`. - # - # @return [IO, String] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def output_stream; end - - # Set the output stream for reporter. - # - # @attr value [IO, String] IO to write to or filename to write to, defaults to $stdout - # - # source://rspec-core//lib/rspec/core/configuration.rb#274 - def output_stream=(value); end - - # Load files matching this pattern (default: `'**{,/*/**}/*_spec.rb'`). - # - # @return [String] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def pattern; end - - # Set pattern to match files to load. - # - # @attr value [String] the filename pattern to filter spec files by - # - # source://rspec-core//lib/rspec/core/configuration.rb#293 - def pattern=(value); end - - # Color to use to print pending examples. Defaults to `:yellow` but can - # be set to one of the following: `[:black, :white, :red, :green, - # :yellow, :blue, :magenta, :cyan]` - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def pending_color; end - - # Color to use to print pending examples. Defaults to `:yellow` but can - # be set to one of the following: `[:black, :white, :red, :green, - # :yellow, :blue, :magenta, :cyan]` - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def pending_color=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def pending_color?; end - - # Format the output for pending examples. Can be set to: - # - :full (default) - pending examples appear similarly to failures - # - :no_backtrace - same as above, but with no backtrace - # - :skip - do not show the section at all - # return [Symbol] - # - # @raise [ArgumentError] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def pending_failure_output; end - - # Format the output for pending examples. Can be set to: - # - :full (default) - pending examples appear similarly to failures - # - :no_backtrace - same as above, but with no backtrace - # - :skip - do not show the section at all - # return [Symbol] - # - # @raise [ArgumentError] - # - # source://rspec-core//lib/rspec/core/configuration.rb#473 - def pending_failure_output=(mode); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def pending_failure_output?; end - - # Tells RSpec to prepend example groups with `mod`. Methods defined in - # `mod` are exposed to examples (not example groups). Use `filters` to - # constrain the groups in which to prepend the module. - # - # Similar to `include`, but module is included before the example group's class - # in the ancestor chain. - # - # @example - # - # module OverrideMod - # def override_me - # "overridden" - # end - # end - # - # RSpec.configure do |config| - # config.prepend(OverrideMod, :method => :prepend) - # end - # - # describe "overriding example's class", :method => :prepend do - # it "finds the user" do - # self.class.class_eval do - # def override_me - # end - # end - # override_me # => "overridden" - # # ... - # end - # end - # @see #include - # @see #extend - # - # source://rspec-core//lib/rspec/core/configuration.rb#1557 - def prepend(mod, *filters); end - - # Defines a `after` hook. See {Hooks#after} for full docs. - # - # This method differs from {Hooks#after} in only one way: it supports - # the `:suite` scope. Hooks with the `:suite` scope will be run once after - # the last example of the entire suite is executed. Conditions passed along - # with `:suite` are effectively ignored. - # - # @see #append_after - # @see #before - # @see #prepend_before - # - # source://rspec-core//lib/rspec/core/configuration.rb#2031 - def prepend_after(scope = T.unsafe(nil), *meta, &block); end - - # Adds `block` to the start of the list of `before` blocks in the same - # scope (`:example`, `:context`, or `:suite`), in contrast to {#before}, - # which adds the hook to the end of the list. - # - # See {Hooks#before} for full `before` hook docs. - # - # This method differs from {Hooks#prepend_before} in only one way: it supports - # the `:suite` scope. Hooks with the `:suite` scope will be run once before - # the first example of the entire suite is executed. Conditions passed along - # with `:suite` are effectively ignored. - # - # @see #before - # @see #after - # @see #append_after - # - # source://rspec-core//lib/rspec/core/configuration.rb#2006 - def prepend_before(scope = T.unsafe(nil), *meta, &block); end - - # Defaults `profile_examples` to 10 examples when `@profile_examples` is - # `true`. - # - # @api private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1073 - def profile_examples; end - - # Report the times for the slowest examples (default: `false`). - # Use this to specify the number of examples to include in the profile. - # - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#322 - def profile_examples=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def profile_examples?; end - - # Specifies which directories contain the source code for your project. - # When a failure occurs, RSpec looks through the backtrace to find a - # a line of source to print. It first looks for a line coming from - # one of the project source directories so that, for example, it prints - # the expectation or assertion call rather than the source code from - # the expectation or assertion framework. - # - # @return [Array] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def project_source_dirs; end - - # Specifies which directories contain the source code for your project. - # When a failure occurs, RSpec looks through the backtrace to find a - # a line of source to print. It first looks for a line coming from - # one of the project source directories so that, for example, it prints - # the expectation or assertion call rather than the source code from - # the expectation or assertion framework. - # - # @return [Array] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def project_source_dirs=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def project_source_dirs?; end - - # Turns deprecation warnings into errors, in order to surface - # the full backtrace of the call site. This can be useful when - # you need more context to address a deprecation than the - # single-line call site normally provided. - # - # @example - # - # RSpec.configure do |rspec| - # rspec.raise_errors_for_deprecations! - # end - # - # source://rspec-core//lib/rspec/core/configuration.rb#1833 - def raise_errors_for_deprecations!; end - - # Turns RSpec warnings into errors. This can be useful when - # you want RSpec to run in a 'strict' no warning situation. - # (Note this does not capture or raise on Ruby warnings). - # - # @example - # - # RSpec.configure do |rspec| - # rspec.raise_on_warning = true - # end - # - # source://rspec-core//lib/rspec/core/configuration.rb#1781 - def raise_on_warning=(value); end - - # Registers a named ordering strategy that can later be - # used to order an example group's subgroups by adding - # `:order => ` metadata to the example group. - # - # @example - # RSpec.configure do |rspec| - # rspec.register_ordering :reverse do |list| - # list.reverse - # end - # end - # - # RSpec.describe 'MyClass', :order => :reverse do - # # ... - # end - # @example - # RSpec.configure do |rspec| - # rspec.register_ordering :global do |examples| - # acceptance, other = examples.partition do |example| - # example.metadata[:type] == :acceptance - # end - # other + acceptance - # end - # end - # - # RSpec.describe 'MyClass', :type => :acceptance do - # # will run last - # end - # - # RSpec.describe 'MyClass' do - # # will run first - # end - # @note Pass the symbol `:global` to set the ordering strategy that - # will be used to order the top-level example groups and any example - # groups that do not have declared `:order` metadata. - # @param name [Symbol] The name of the ordering. - # @yield Block that will order the given examples or example groups - # @yieldparam list [Array, Array] The examples or groups to order - # @yieldreturn [Array, Array] The re-ordered examples or groups - # - # source://rspec-core//lib/rspec/core/configuration.rb#1673 - def register_ordering(*args, &block); end - - # @return [RSpec::Core::Reporter] the currently configured reporter - # - # source://rspec-core//lib/rspec/core/configuration.rb#1056 - def reporter; end - - # Indicates files configured to be required. - # - # @return [Array] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def requires; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1597 - def requires=(paths); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#601 - def reset; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#614 - def reset_filters; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#607 - def reset_reporter; end - - # Run all examples if none match the configured filters - # (default: `false`). - # - # @deprecated Use {#filter_run_when_matching} instead for the specific - # filters that you want to be ignored if none match. - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def run_all_when_everything_filtered; end - - # Run all examples if none match the configured filters - # (default: `false`). - # - # @deprecated Use {#filter_run_when_matching} instead for the specific - # filters that you want to be ignored if none match. - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def run_all_when_everything_filtered=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def run_all_when_everything_filtered?; end - - # Seed for random ordering (default: generated randomly each run). - # - # When you run specs with `--order random`, RSpec generates a random seed - # for the randomization and prints it to the `output_stream` (assuming - # you're using RSpec's built-in formatters). If you discover an ordering - # dependency (i.e. examples fail intermittently depending on order), set - # this (on Configuration or on the command line with `--seed`) to run - # using the same seed while you debug the issue. - # - # We recommend, actually, that you use the command line approach so you - # don't accidentally leave the seed encoded. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1673 - def seed(*args, &block); end - - # Sets the seed value and sets the default global ordering to random. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1673 - def seed=(*args, &block); end - - # source://rspec-core//lib/rspec/core/configuration.rb#1673 - def seed_used?(*args, &block); end - - # Configures how RSpec treats metadata passed as part of a shared example - # group definition. For example, given this shared example group definition: - # - # RSpec.shared_context "uses DB", :db => true do - # around(:example) do |ex| - # MyORM.transaction(:rollback => true, &ex) - # end - # end - # - # ...there are two ways RSpec can treat the `:db => true` metadata, each - # of which has a corresponding config option: - # - # 1. `:trigger_inclusion`: this shared context will be implicitly included - # in any groups (or examples) that have `:db => true` metadata. - # 2. `:apply_to_host_groups`: the metadata will be inherited by the metadata - # hash of all host groups and examples. - # - # `:trigger_inclusion` is the legacy behavior from before RSpec 3.5 but should - # be considered deprecated. Instead, you can explicitly include a group with - # `include_context`: - # - # RSpec.describe "My model" do - # include_context "uses DB" - # end - # - # ...or you can configure RSpec to include the context based on matching metadata - # using an API that mirrors configured module inclusion: - # - # RSpec.configure do |rspec| - # rspec.include_context "uses DB", :db => true - # end - # - # `:apply_to_host_groups` is a new feature of RSpec 3.5 and will be the only - # supported behavior in RSpec 4. - # - # @overload shared_context_metadata_behavior - # @overload shared_context_metadata_behavior= - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def shared_context_metadata_behavior; end - - # @see shared_context_metadata_behavior - # - # source://rspec-core//lib/rspec/core/configuration.rb#434 - def shared_context_metadata_behavior=(value); end - - # Don't print filter info i.e. "Run options: include {:focus=>true}" - # (default `false`). - # return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def silence_filter_announcements; end - - # Don't print filter info i.e. "Run options: include {:focus=>true}" - # (default `false`). - # return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def silence_filter_announcements=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def silence_filter_announcements?; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1138 - def spec_files_with_failures; end - - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def start_time; end - - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def start_time=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def start_time?; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#520 - def static_config_filter_manager; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#520 - def static_config_filter_manager=(_arg0); end - - # Color to use to indicate success. Defaults to `:green` but can be set - # to one of the following: `[:black, :white, :red, :green, :yellow, - # :blue, :magenta, :cyan]` - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def success_color; end - - # Color to use to indicate success. Defaults to `:green` but can be set - # to one of the following: `[:black, :white, :red, :green, :yellow, - # :blue, :magenta, :cyan]` - # - # @return [Symbol] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def success_color=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def success_color?; end - - # Use threadsafe options where available. - # Currently this will place a mutex around memoized values such as let blocks. - # return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def threadsafe; end - - # Use threadsafe options where available. - # Currently this will place a mutex around memoized values such as let blocks. - # return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def threadsafe=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def threadsafe?; end - - # @deprecated This config option was added in RSpec 2 to pave the way - # for this being the default behavior in RSpec 3. Now this option is - # a no-op. - # - # source://rspec-core//lib/rspec/core/configuration.rb#383 - def treat_symbols_as_metadata_keys_with_true_values=(_value); end - - # source://rspec-core//lib/rspec/core/configuration.rb#66 - def tty; end - - # source://rspec-core//lib/rspec/core/configuration.rb#89 - def tty=(_arg0); end - - # source://rspec-core//lib/rspec/core/configuration.rb#78 - def tty?; end - - # Set Ruby warnings on or off. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1760 - def warnings=(value); end - - # @return [Boolean] Whether or not ruby warnings are enabled. - # - # source://rspec-core//lib/rspec/core/configuration.rb#1765 - def warnings?; end - - # Defines a callback that runs after the first example with matching - # metadata is defined. If no examples are defined with matching metadata, - # it will not get called at all. - # - # This can be used to ensure some setup is performed (such as bootstrapping - # a DB or loading a specific file that adds significantly to the boot time) - # if needed (as indicated by the presence of an example with matching metadata) - # but avoided otherwise. - # - # @example - # RSpec.configure do |config| - # config.when_first_matching_example_defined(:db) do - # # Load a support file that does some heavyweight setup, - # # including bootstrapping the DB, but only if we have loaded - # # any examples tagged with `:db`. - # require 'support/db' - # end - # end - # - # source://rspec-core//lib/rspec/core/configuration.rb#1923 - def when_first_matching_example_defined(*filters); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#2091 - def with_suite_hooks; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#518 - def world; end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#518 - def world=(_arg0); end - - private - - # :nocov: - # - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#2254 - def absolute_pattern?(pattern); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2355 - def add_hook_to_existing_matching_groups(meta, scope, &block); end - - # @raise [MustBeConfiguredBeforeExampleGroupsError] - # - # source://rspec-core//lib/rspec/core/configuration.rb#2294 - def assert_no_example_groups_defined(config_option); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2344 - def clear_values_derived_from_example_status_persistence_file_path; end - - # source://rspec-core//lib/rspec/core/configuration.rb#2276 - def command; end - - # source://rspec-core//lib/rspec/core/configuration.rb#2320 - def conditionally_disable_expectations_monkey_patching; end - - # source://rspec-core//lib/rspec/core/configuration.rb#2311 - def conditionally_disable_mocks_monkey_patching; end - - # source://rspec-core//lib/rspec/core/configuration.rb#2349 - def configure_group_with(group, module_list, application_method); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2284 - def define_built_in_hooks; end - - # source://rspec-core//lib/rspec/core/configuration.rb#2407 - def define_mixed_in_module(mod, filters, mod_list, config_method, &block); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2259 - def extract_location(path); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2236 - def file_glob_from(path, pattern); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2225 - def gather_directories(path); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2204 - def get_files_to_run(paths); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2231 - def get_matching_files(path, pattern); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2171 - def handle_suite_hook(scope, meta); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2143 - def load_file_handling_errors(method, file); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#2377 - def metadata_applies_to_group?(meta, group); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2369 - def on_existing_matching_groups(meta); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#2307 - def output_to_tty?(output = T.unsafe(nil)); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2303 - def output_wrapper; end - - # source://rspec-core//lib/rspec/core/configuration.rb#2216 - def paths_to_check(paths); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#2221 - def pattern_might_load_specs_from_vendored_dirs?; end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#2330 - def rspec_expectations_loaded?; end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration.rb#2326 - def rspec_mocks_loaded?; end - - # source://rspec-core//lib/rspec/core/configuration.rb#2186 - def run_suite_hooks(hook_description, hooks); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2392 - def safe_extend(mod, host); end - - # :nocov: - # - # source://rspec-core//lib/rspec/core/configuration.rb#2388 - def safe_include(mod, host); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2382 - def safe_prepend(mod, host); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2334 - def update_pattern_attr(name, value); end - - # source://rspec-core//lib/rspec/core/configuration.rb#2280 - def value_for(key); end - - class << self - # As `add_setting` but only add the reader. - # - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#100 - def add_read_only_setting(name, opts = T.unsafe(nil)); end - - # Invoked by the `add_setting` instance method. Use that method on a - # `Configuration` instance rather than this class method. - # - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#87 - def add_setting(name, opts = T.unsafe(nil)); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#70 - def define_alias(name, alias_name); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#77 - def define_predicate(name); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#60 - def define_reader(name); end - - # @private - # - # source://rspec-core//lib/rspec/core/configuration.rb#1671 - def delegate_to_ordering_manager(*methods); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/configuration.rb#1651 -RSpec::Core::Configuration::DEFAULT_FORMATTER = T.let(T.unsafe(nil), Proc) - -# This buffer is used to capture all messages sent to the reporter during -# reporter initialization. It can then replay those messages after the -# formatter is correctly initialized. Otherwise, deprecation warnings -# during formatter initialization can cause an infinite loop. -# -# @private -# -# source://rspec-core//lib/rspec/core/configuration.rb#1039 -class RSpec::Core::Configuration::DeprecationReporterBuffer - # @return [DeprecationReporterBuffer] a new instance of DeprecationReporterBuffer - # - # source://rspec-core//lib/rspec/core/configuration.rb#1040 - def initialize; end - - # source://rspec-core//lib/rspec/core/configuration.rb#1044 - def deprecation(*args); end - - # source://rspec-core//lib/rspec/core/configuration.rb#1048 - def play_onto(reporter); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/configuration.rb#1821 -module RSpec::Core::Configuration::ExposeCurrentExample; end - -# @private -# -# source://rspec-core//lib/rspec/core/configuration.rb#1126 -RSpec::Core::Configuration::FAILED_STATUS = T.let(T.unsafe(nil), String) - -# @private -# -# source://rspec-core//lib/rspec/core/configuration.rb#749 -RSpec::Core::Configuration::MOCKING_ADAPTERS = T.let(T.unsafe(nil), Hash) - -# @private -# -# source://rspec-core//lib/rspec/core/configuration.rb#57 -class RSpec::Core::Configuration::MustBeConfiguredBeforeExampleGroupsError < ::StandardError; end - -# @private -# -# source://rspec-core//lib/rspec/core/configuration.rb#1129 -RSpec::Core::Configuration::PASSED_STATUS = T.let(T.unsafe(nil), String) - -# @private -# -# source://rspec-core//lib/rspec/core/configuration.rb#1132 -RSpec::Core::Configuration::PENDING_STATUS = T.let(T.unsafe(nil), String) - -# @private -# -# source://rspec-core//lib/rspec/core/configuration.rb#1770 -RSpec::Core::Configuration::RAISE_ERROR_WARNING_NOTIFIER = T.let(T.unsafe(nil), Proc) - -# Module that holds `attr_reader` declarations. It's in a separate -# module to allow us to override those methods and use `super`. -# -# @private -# -# source://rspec-core//lib/rspec/core/configuration.rb#53 -module RSpec::Core::Configuration::Readers - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def clear_lets_on_failure; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def default_color; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def default_path; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def default_retry_count; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def default_sleep_interval; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def deprecation_stream; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def detail_color; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def display_try_failure_messages; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def drb; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def drb_port; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def dry_run; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def error_exit_code; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def error_stream; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def example_status_persistence_file_path; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def exceptions_to_hard_fail; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def exceptions_to_retry; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def exclude_pattern; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def exponential_backoff; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def fail_fast; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def fail_if_no_examples; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def failure_color; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def failure_exit_code; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def fixed_color; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def full_cause_backtrace; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def libs; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def max_displayed_failure_line_count; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def only_failures; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def output_stream; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def pattern; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def pending_color; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def pending_failure_output; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def project_source_dirs; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def requires; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def retry_callback; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def retry_count_condition; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def run_all_when_everything_filtered; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def shared_context_metadata_behavior; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def silence_filter_announcements; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def start_time; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def success_color; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def threadsafe; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def tty; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def verbose_retry; end -end - -# @private -# -# source://rspec-core//lib/rspec/core/configuration.rb#1123 -RSpec::Core::Configuration::UNKNOWN_STATUS = T.let(T.unsafe(nil), String) - -# @private -# -# source://rspec-core//lib/rspec/core/configuration.rb#1135 -RSpec::Core::Configuration::VALID_STATUSES = T.let(T.unsafe(nil), Array) - -# Responsible for utilizing externally provided configuration options, -# whether via the command line, `.rspec`, `~/.rspec`, -# `$XDG_CONFIG_HOME/rspec/options`, `.rspec-local` or a custom options -# file. -# -# source://rspec-core//lib/rspec/core/configuration_options.rb#10 -class RSpec::Core::ConfigurationOptions - # @param args [Array] command line arguments - # @return [ConfigurationOptions] a new instance of ConfigurationOptions - # - # source://rspec-core//lib/rspec/core/configuration_options.rb#12 - def initialize(args); end - - # @return [Array] the original command-line arguments - # - # source://rspec-core//lib/rspec/core/configuration_options.rb#40 - def args; end - - # Updates the provided {Configuration} instance based on the provided - # external configuration options. - # - # @param config [Configuration] the configuration instance to update - # - # source://rspec-core//lib/rspec/core/configuration_options.rb#21 - def configure(config); end - - # Updates the provided {FilterManager} based on the filter options. - # - # @api private - # @param filter_manager [FilterManager] instance to update - # - # source://rspec-core//lib/rspec/core/configuration_options.rb#30 - def configure_filter_manager(filter_manager); end - - # @return [Hash] the final merged options, drawn from all external sources - # - # source://rspec-core//lib/rspec/core/configuration_options.rb#37 - def options; end - - private - - # source://rspec-core//lib/rspec/core/configuration_options.rb#173 - def args_from_options_file(path); end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#142 - def command_line_options; end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#146 - def custom_options; end - - # :nocov: - # - # source://rspec-core//lib/rspec/core/configuration_options.rb#190 - def custom_options_file; end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#133 - def env_options; end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#125 - def file_options; end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/configuration_options.rb#66 - def force?(key); end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#158 - def global_options; end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#202 - def global_options_file; end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#213 - def home_options_file_path; end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#121 - def load_formatters_into(config); end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#150 - def local_options; end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#198 - def local_options_file; end - - # :nocov: - # - # source://rspec-core//lib/rspec/core/configuration_options.rb#181 - def options_file_as_erb_string(path); end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#162 - def options_from(path); end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#70 - def order(keys); end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#44 - def organize_options; end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#167 - def parse_args_ignoring_files_or_dirs_to_run(args, source); end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#113 - def process_options_into(config); end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#154 - def project_options; end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#194 - def project_options_file; end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#229 - def resolve_xdg_config_home; end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#206 - def xdg_options_file_if_exists; end - - # source://rspec-core//lib/rspec/core/configuration_options.rb#222 - def xdg_options_file_path; end -end - -# source://rspec-core//lib/rspec/core/configuration_options.rb#77 -RSpec::Core::ConfigurationOptions::OPTIONS_ORDER = T.let(T.unsafe(nil), Array) - -# source://rspec-core//lib/rspec/core/configuration_options.rb#59 -RSpec::Core::ConfigurationOptions::UNFORCED_OPTIONS = T.let(T.unsafe(nil), RSpec::Core::Set) - -# source://rspec-core//lib/rspec/core/configuration_options.rb#64 -RSpec::Core::ConfigurationOptions::UNPROCESSABLE_OPTIONS = T.let(T.unsafe(nil), RSpec::Core::Set) - -# DSL defines methods to group examples, most notably `describe`, -# and exposes them as class methods of {RSpec}. They can also be -# exposed globally (on `main` and instances of `Module`) through -# the {Configuration} option `expose_dsl_globally`. -# -# By default the methods `describe`, `context` and `example_group` -# are exposed. These methods define a named context for one or -# more examples. The given block is evaluated in the context of -# a generated subclass of {RSpec::Core::ExampleGroup}. -# -# ## Examples: -# -# RSpec.describe "something" do -# context "when something is a certain way" do -# it "does something" do -# # example code goes here -# end -# end -# end -# -# @see ExampleGroup -# @see ExampleGroup.example_group -# -# source://rspec-core//lib/rspec/core/dsl.rb#25 -module RSpec::Core::DSL - class << self - # @private - # - # source://rspec-core//lib/rspec/core/dsl.rb#89 - def change_global_dsl(&changes); end - - # @private - # - # source://rspec-core//lib/rspec/core/dsl.rb#27 - def example_group_aliases; end - - # @private - # - # source://rspec-core//lib/rspec/core/dsl.rb#37 - def expose_example_group_alias(name); end - - # @private - # - # source://rspec-core//lib/rspec/core/dsl.rb#81 - def expose_example_group_alias_globally(method_name); end - - # Adds the describe method to Module and the top level binding. - # - # @api private - # - # source://rspec-core//lib/rspec/core/dsl.rb#58 - def expose_globally!; end - - # @private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/dsl.rb#32 - def exposed_globally?; end - - # Removes the describe method from Module and the top level binding. - # - # @api private - # - # source://rspec-core//lib/rspec/core/dsl.rb#70 - def remove_globally!; end - - # @private - # - # source://rspec-core//lib/rspec/core/dsl.rb#53 - def top_level; end - - # @private - # - # source://rspec-core//lib/rspec/core/dsl.rb#53 - def top_level=(_arg0); end - end -end - -# Deprecation Error. -# -# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#221 -class RSpec::Core::DeprecationError < ::StandardError; end - -# Wrapper around Ruby's `DidYouMean::SpellChecker` when available to provide file name suggestions. -# -# @private -# -# source://rspec-core//lib/rspec/core/did_you_mean.rb#5 -class RSpec::Core::DidYouMean - # @return [DidYouMean] a new instance of DidYouMean - # - # source://rspec-core//lib/rspec/core/did_you_mean.rb#8 - def initialize(relative_file_name); end - - # return a hint if API for ::DidYouMean::SpellChecker not supported - # :nocov: - # - # source://rspec-core//lib/rspec/core/did_you_mean.rb#15 - def call; end - - # Returns the value of attribute relative_file_name. - # - # source://rspec-core//lib/rspec/core/did_you_mean.rb#6 - def relative_file_name; end - - private - - # :nocov: - # - # source://rspec-core//lib/rspec/core/did_you_mean.rb#35 - def formats(probables); end - - # source://rspec-core//lib/rspec/core/did_you_mean.rb#45 - def red_font(mytext); end - - # source://rspec-core//lib/rspec/core/did_you_mean.rb#40 - def top_and_tail(rspec_format); end -end - -# Wrapper for an instance of a subclass of {ExampleGroup}. An instance of -# `RSpec::Core::Example` is returned by example definition methods -# such as {ExampleGroup.it it} and is yielded to the {ExampleGroup.it it}, -# {Hooks#before before}, {Hooks#after after}, {Hooks#around around}, -# {MemoizedHelpers::ClassMethods#let let} and -# {MemoizedHelpers::ClassMethods#subject subject} blocks. -# -# This allows us to provide rich metadata about each individual -# example without adding tons of methods directly to the ExampleGroup -# that users may inadvertently redefine. -# -# Useful for configuring logging and/or taking some action based -# on the state of an example's metadata. -# -# @example -# -# RSpec.configure do |config| -# config.before do |example| -# log example.description -# end -# -# config.after do |example| -# log example.description -# end -# -# config.around do |example| -# log example.description -# example.run -# end -# end -# -# shared_examples "auditable" do -# it "does something" do -# log "#{example.full_description}: #{auditable.inspect}" -# auditable.should do_something -# end -# end -# @note Example blocks are evaluated in the context of an instance -# of an `ExampleGroup`, not in the context of an instance of `Example`. -# @see ExampleGroup -# -# source://rspec-core//lib/rspec/core/example.rb#44 -class RSpec::Core::Example - # Creates a new instance of Example. - # - # @api private - # @param example_group_class [Class] the subclass of ExampleGroup in which - # this Example is declared - # @param description [String] the String passed to the `it` method (or - # alias) - # @param user_metadata [Hash] additional args passed to `it` to be used as - # metadata - # @param example_block [Proc] the block of code that represents the - # example - # @return [Example] a new instance of Example - # - # source://rspec-core//lib/rspec/core/example.rb#186 - def initialize(example_group_class, description, user_metadata, example_block = T.unsafe(nil)); end - - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#4 - def attempts; end - - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#4 - def attempts=(_arg0); end - - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#6 - def clear_exception; end - - # @attr - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#174 - def clock; end - - # @attr - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#174 - def clock=(_arg0); end - - # Returns the string submitted to `example` or its aliases (e.g. - # `specify`, `it`, etc). If no string is submitted (e.g. - # `it { is_expected.to do_something }`) it returns the message generated - # by the matcher if there is one, otherwise returns a message including - # the location of the example. - # - # source://rspec-core//lib/rspec/core/example.rb#76 - def description; end - - # The exception that will be displayed to the user -- either the failure of - # the example or the `pending_exception` if the example is pending. - # - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#388 - def display_exception; end - - # Assigns the exception that will be displayed to the user -- either the failure of - # the example or the `pending_exception` if the example is pending. - # - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#396 - def display_exception=(ex); end - - # Duplicates the example and overrides metadata with the provided - # hash. - # - # @param metadata_overrides [Hash] the hash to override the example metadata - # @return [Example] a duplicate of the example with modified metadata - # - # source://rspec-core//lib/rspec/core/example.rb#132 - def duplicate_with(metadata_overrides = T.unsafe(nil)); end - - # Returns the example group class that provides the context for running - # this example. - # - # source://rspec-core//lib/rspec/core/example.rb#230 - def example_group; end - - # Returns the example_group_instance that provides the context for - # running this example. - # - # @attr_reader - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#170 - def example_group_instance; end - - # Returns the first exception raised in the context of running this - # example (nil if no exception is raised). - # - # @attr_reader - # - # source://rspec-core//lib/rspec/core/example.rb#158 - def exception; end - - # @return [ExecutionResult] represents the result of running this example. - # - # source://rspec-core//lib/rspec/core/example.rb#49 - def execution_result; end - - # Used internally to set an exception and fail without actually executing - # the example when an exception is raised in before(:context). - # - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#439 - def fail_with_exception(reporter, exception); end - - # @return [String] the relative path to the file where this example was - # defined. - # - # source://rspec-core//lib/rspec/core/example.rb#49 - def file_path; end - - # @return [String] the full description (including the docstrings of - # all parent example groups). - # - # source://rspec-core//lib/rspec/core/example.rb#49 - def full_description; end - - # @return [String] the unique id of this example. Pass - # this at the command line to re-run this exact example. - # - # source://rspec-core//lib/rspec/core/example.rb#117 - def id; end - - # Provide a human-readable representation of this class - # - # source://rspec-core//lib/rspec/core/example.rb#220 - def inspect; end - - # Returns a description of the example that always includes the location. - # - # source://rspec-core//lib/rspec/core/example.rb#87 - def inspect_output; end - - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#456 - def instance_exec(*args, &block); end - - # @return [String] the exact source location of this example in a form - # like `./path/to/spec.rb:17` - # - # source://rspec-core//lib/rspec/core/example.rb#49 - def location; end - - # Returns the location-based argument that can be passed to the `rspec` command to rerun this example. - # - # source://rspec-core//lib/rspec/core/example.rb#96 - def location_rerun_argument; end - - # Returns the metadata object associated with this example. - # - # @attr_reader - # - # source://rspec-core//lib/rspec/core/example.rb#163 - def metadata; end - - # @return [Boolean] flag that indicates that the example is not expected - # to pass. It will be run and will either have a pending result (if a - # failure occurs) or a failed result (if no failure occurs). - # - # source://rspec-core//lib/rspec/core/example.rb#49 - def pending; end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/example.rb#234 - def pending?; end - - # @return [RSpec::Core::Reporter] the current reporter for the example - # - # source://rspec-core//lib/rspec/core/example.rb#226 - def reporter; end - - # Returns the location-based argument that can be passed to the `rspec` command to rerun this example. - # - # @deprecated Use {#location_rerun_argument} instead. - # @note If there are multiple examples identified by this location, they will use {#id} - # to rerun instead, but this method will still return the location (that's why it is deprecated!). - # - # source://rspec-core//lib/rspec/core/example.rb#111 - def rerun_argument; end - - # instance_execs the block passed to the constructor in the context of - # the instance of {ExampleGroup}. - # - # @api private - # @param example_group_instance the instance of an ExampleGroup subclass - # - # source://rspec-core//lib/rspec/core/example.rb#246 - def run(example_group_instance, reporter); end - - # Used to set the exception when `aggregate_failures` fails. - # - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#425 - def set_aggregate_failures_exception(exception); end - - # Used internally to set an exception in an after hook, which - # captures the exception but doesn't raise it. - # - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#412 - def set_exception(exception); end - - # @return [Boolean] flag that will cause the example to not run. - # The {ExecutionResult} status will be `:pending`. - # - # source://rspec-core//lib/rspec/core/example.rb#49 - def skip; end - - # Used internally to skip without actually executing the example when - # skip is used in before(:context). - # - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#449 - def skip_with_exception(reporter, exception); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/example.rb#238 - def skipped?; end - - # Provide a human-readable representation of this class - # - # source://rspec-core//lib/rspec/core/example.rb#220 - def to_s; end - - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#148 - def update_inherited_metadata(updates); end - - private - - # source://rspec-core//lib/rspec/core/example.rb#534 - def assign_generated_description; end - - # source://rspec-core//lib/rspec/core/example.rb#478 - def finish(reporter); end - - # source://rspec-core//lib/rspec/core/example.rb#543 - def generate_description; end - - # source://rspec-core//lib/rspec/core/example.rb#462 - def hooks; end - - # source://rspec-core//lib/rspec/core/example.rb#550 - def location_description; end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/example.rb#530 - def mocks_need_verification?; end - - # source://rspec-core//lib/rspec/core/example.rb#498 - def record_finished(status, reporter); end - - # source://rspec-core//lib/rspec/core/example.rb#516 - def run_after_example; end - - # source://rspec-core//lib/rspec/core/example.rb#503 - def run_before_example; end - - # source://rspec-core//lib/rspec/core/example.rb#473 - def start(reporter); end - - # source://rspec-core//lib/rspec/core/example.rb#524 - def verify_mocks; end - - # source://rspec-core//lib/rspec/core/example.rb#508 - def with_around_and_singleton_context_hooks; end - - # source://rspec-core//lib/rspec/core/example.rb#466 - def with_around_example_hooks; end - - class << self - # Used to define methods that delegate to this example's metadata. - # - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#48 - def delegate_to_metadata(key); end - - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#122 - def parse_id(id); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/example.rb#310 -RSpec::Core::Example::AllExceptionsExcludingDangerousOnesOnRubiesThatAllowIt = RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue - -# Represents the result of executing an example. -# Behaves like a hash for backwards compatibility. -# -# source://rspec-core//lib/rspec/core/example.rb#556 -class RSpec::Core::Example::ExecutionResult - include ::RSpec::Core::HashImitatable - extend ::RSpec::Core::HashImitatable::ClassMethods - - # Populates finished_at and run_time if it has not yet been set - # - # @api private - # - # source://rspec-core//lib/rspec/core/example.rb#610 - def ensure_timing_set(clock); end - - # @return [Boolean] Indicates if the example was completely skipped - # (typically done via `:skip` metadata or the `skip` method). Skipped examples - # will have a `:pending` result. A `:pending` result can also come from examples - # that were marked as `:pending`, which causes them to be run, and produces a - # `:failed` result if the example passes. - # - # source://rspec-core//lib/rspec/core/example.rb#597 - def example_skipped?; end - - # @return [Exception, nil] The failure, if there was one. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def exception; end - - # @return [Exception, nil] The failure, if there was one. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def exception=(_arg0); end - - # @return [Time] When the example finished. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def finished_at; end - - # @return [Time] When the example finished. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def finished_at=(_arg0); end - - # @return [Exception, nil] The exception triggered while - # executing the pending example. If no exception was triggered - # it would no longer get a status of `:pending` unless it was - # tagged with `:skip`. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def pending_exception; end - - # @return [Exception, nil] The exception triggered while - # executing the pending example. If no exception was triggered - # it would no longer get a status of `:pending` unless it was - # tagged with `:skip`. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def pending_exception=(_arg0); end - - # @return [Boolean] For examples tagged with `:pending`, - # this indicates whether or not it now passes. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def pending_fixed; end - - # @return [Boolean] For examples tagged with `:pending`, - # this indicates whether or not it now passes. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def pending_fixed=(_arg0); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/example.rb#588 - def pending_fixed?; end - - # @return [String, nil] The reason the example was pending, - # or nil if the example was not pending. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def pending_message; end - - # @return [String, nil] The reason the example was pending, - # or nil if the example was not pending. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def pending_message=(_arg0); end - - # Records the finished status of the example. - # - # @api private - # - # source://rspec-core//lib/rspec/core/example.rb#603 - def record_finished(status, finished_at); end - - # @return [Float] How long the example took in seconds. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def run_time; end - - # @return [Float] How long the example took in seconds. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def run_time=(_arg0); end - - # @return [Time] When the example started. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def started_at; end - - # @return [Time] When the example started. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def started_at=(_arg0); end - - # @return [Symbol] `:passed`, `:failed` or `:pending`. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def status; end - - # @return [Symbol] `:passed`, `:failed` or `:pending`. - # - # source://rspec-core//lib/rspec/core/metadata.rb#442 - def status=(_arg0); end - - private - - # source://rspec-core//lib/rspec/core/example.rb#616 - def calculate_run_time(finished_at); end - - # source://rspec-core//lib/rspec/core/example.rb#634 - def get_value(name); end - - # For backwards compatibility we present `status` as a string - # when presenting the legacy hash interface. - # - # source://rspec-core//lib/rspec/core/example.rb#623 - def hash_for_delegation; end - - # source://rspec-core//lib/rspec/core/example.rb#642 - def issue_deprecation(_method_name, *_args); end - - # source://rspec-core//lib/rspec/core/example.rb#629 - def set_value(name, value); end -end - -# Wraps both a `Proc` and an {Example} for use in {Hooks#around -# around} hooks. In around hooks we need to yield this special -# kind of object (rather than the raw {Example}) because when -# there are multiple `around` hooks we have to wrap them recursively. -# -# @example -# -# RSpec.configure do |c| -# c.around do |ex| # Procsy which wraps the example -# if ex.metadata[:key] == :some_value && some_global_condition -# raise "some message" -# end -# ex.run # run delegates to ex.call. -# end -# end -# @note This class also exposes the instance methods of {Example}, -# proxying them through to the wrapped {Example} instance. -# -# source://rspec-core//lib/rspec/core/example.rb#331 -class RSpec::Core::Example::Procsy - # @return [Procsy] a new instance of Procsy - # - # source://rspec-core//lib/rspec/core/example.rb#362 - def initialize(example, &block); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def <<(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def ==(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def ===(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def >>(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def [](*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def arity(*a, &b); end - - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#15 - def attempts; end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def binding(*a, &b); end - - # Calls the proc and notes that the example has been executed. - # - # source://rspec-core//lib/rspec/core/example.rb#350 - def call(*args, &block); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def clock(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def clock=(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def clone(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def curry(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def description(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def dup(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def duplicate_with(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def eql?(*a, &b); end - - # The {Example} instance. - # - # source://rspec-core//lib/rspec/core/example.rb#333 - def example; end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def example_group(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def example_group_instance(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def exception(*a, &b); end - - # Indicates whether or not the around hook has executed the example. - # - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/example.rb#374 - def executed?; end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def execution_result(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def file_path(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def full_description(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def hash(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def id(*a, &b); end - - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#379 - def inspect; end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def inspect_output(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def lambda?(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def location(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def location_rerun_argument(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def metadata(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def parameters(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def pending(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def pending?(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def reporter(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def rerun_argument(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def ruby2_keywords(*a, &b); end - - # Calls the proc and notes that the example has been executed. - # - # source://rspec-core//lib/rspec/core/example.rb#350 - def run(*args, &block); end - - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#11 - def run_with_retry(opts = T.unsafe(nil)); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def skip(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def skipped?(*a, &b); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def source_location(*a, &b); end - - # Provides a wrapped proc that will update our `executed?` state when - # executed. - # - # source://rspec-core//lib/rspec/core/example.rb#358 - def to_proc; end - - # source://rspec-core//lib/rspec/core/example.rb#339 - def update_inherited_metadata(*a, &b); end - - # @private - # - # source://rspec-core//lib/rspec/core/example.rb#369 - def wrap(&block); end - - # source://rspec-core//lib/rspec/core/example.rb#346 - def yield(*a, &b); end -end - -# ExampleGroup and {Example} are the main structural elements of -# rspec-core. Consider this example: -# -# RSpec.describe Thing do -# it "does something" do -# end -# end -# -# The object returned by `describe Thing` is a subclass of ExampleGroup. -# The object returned by `it "does something"` is an instance of Example, -# which serves as a wrapper for an instance of the ExampleGroup in which it -# is declared. -# -# Example group bodies (e.g. `describe` or `context` blocks) are evaluated -# in the context of a new subclass of ExampleGroup. Individual examples are -# evaluated in the context of an instance of the specific ExampleGroup -# subclass to which they belong. -# -# Besides the class methods defined here, there are other interesting macros -# defined in {Hooks}, {MemoizedHelpers::ClassMethods} and -# {SharedExampleGroup}. There are additional instance methods available to -# your examples defined in {MemoizedHelpers} and {Pending}. -# -# source://rspec-core//lib/rspec/core/example_group.rb#29 -class RSpec::Core::ExampleGroup - include ::RSpec::Core::MemoizedHelpers - include ::RSpec::Core::Pending - extend ::RSpec::Core::Hooks - extend ::RSpec::Core::MemoizedHelpers::ClassMethods - extend ::RSpec::Core::SharedExampleGroup - - # source://rspec-core//lib/rspec/core/example_group.rb#707 - def initialize(inspect_output = T.unsafe(nil)); end - - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#34 - def clear_lets; end - - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#26 - def clear_memoized; end - - # Returns the class or module passed to the `describe` method (or alias). - # Returns nil if the subject is not a class or module. - # - # @example - # RSpec.describe Thing do - # it "does something" do - # described_class == Thing - # end - # end - # - # source://rspec-core//lib/rspec/core/example_group.rb#99 - def described_class; end - - # source://rspec-core//lib/rspec/core/example_group.rb#713 - def inspect; end - - private - - # source://rspec-core//lib/rspec/core/example_group.rb#758 - def method_missing(name, *args, **_arg2); end - - class << self - # Adds an example to the example group - # - # source://rspec-core//lib/rspec/core/example_group.rb#367 - def add_example(example); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#529 - def before_context_ivars; end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#466 - def children; end - - # source://rspec-core//lib/rspec/core/example_group.rb#247 - def context(*args, &example_group_block); end - - # Returns true if a `before(:context)` or `after(:context)` - # hook is currently executing. - # - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/example_group.rb#542 - def currently_executing_a_context_hook?; end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#667 - def declaration_locations; end - - # @private - # @see DSL#describe - # - # source://rspec-core//lib/rspec/core/example_group.rb#246 - def define_example_group_method(name, metadata = T.unsafe(nil)); end - - # @example - # $1 "does something", :slow, :load_factor => 100 do - # end - # - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#145 - def define_example_method(name, extra_options = T.unsafe(nil)); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#317 - def define_nested_shared_group_method(new_name, report_label = T.unsafe(nil)); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#76 - def delegate_to_metadata(*names); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#460 - def descendant_filtered_examples; end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#503 - def descendants; end - - # source://rspec-core//lib/rspec/core/example_group.rb#247 - def describe(*args, &example_group_block); end - - # source://rspec-core//lib/rspec/core/example_group.rb#78 - def described_class; end - - # @return [String] the current example group description - # - # source://rspec-core//lib/rspec/core/example_group.rb#85 - def description; end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#700 - def each_instance_variable_for_example(group); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#518 - def ensure_example_groups_are_configured; end - - # Defines an example within a group. - # - # @example - # example do - # end - # - # example "does something" do - # end - # - # example "does something", :slow, :uses_js do - # end - # - # example "does something", :with => 'additional metadata' do - # end - # - # example "does something" do |ex| - # # ex is the Example object that contains metadata about the example - # end - # @overload example - # @overload example - # @overload example - # @overload example - # @yield [Example] the example object - # - # source://rspec-core//lib/rspec/core/example_group.rb#146 - def example(*all_args, &block); end - - # source://rspec-core//lib/rspec/core/example_group.rb#247 - def example_group(*args, &example_group_block); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#450 - def examples; end - - # source://rspec-core//lib/rspec/core/example_group.rb#247 - def fcontext(*args, &example_group_block); end - - # source://rspec-core//lib/rspec/core/example_group.rb#247 - def fdescribe(*args, &example_group_block); end - - # Shortcut to define an example with `:focus => true`. - # - # @example - # fexample do - # end - # - # fexample "does something" do - # end - # - # fexample "does something", :slow, :uses_js do - # end - # - # fexample "does something", :with => 'additional metadata' do - # end - # - # fexample "does something" do |ex| - # # ex is the Example object that contains metadata about the example - # end - # @overload fexample - # @overload fexample - # @overload fexample - # @overload fexample - # @see example - # @yield [Example] the example object - # - # source://rspec-core//lib/rspec/core/example_group.rb#146 - def fexample(*all_args, &block); end - - # source://rspec-core//lib/rspec/core/example_group.rb#78 - def file_path; end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#455 - def filtered_examples; end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#379 - def find_and_eval_shared(label, name, inclusion_location, *args, &customization_block); end - - # Shortcut to define an example with `:focus => true`. - # - # @example - # fit do - # end - # - # fit "does something" do - # end - # - # fit "does something", :slow, :uses_js do - # end - # - # fit "does something", :with => 'additional metadata' do - # end - # - # fit "does something" do |ex| - # # ex is the Example object that contains metadata about the example - # end - # @overload fit - # @overload fit - # @overload fit - # @overload fit - # @see example - # @yield [Example] the example object - # - # source://rspec-core//lib/rspec/core/example_group.rb#146 - def fit(*all_args, &block); end - - # Shortcut to define an example with `:focus => true`. - # - # @example - # focus do - # end - # - # focus "does something" do - # end - # - # focus "does something", :slow, :uses_js do - # end - # - # focus "does something", :with => 'additional metadata' do - # end - # - # focus "does something" do |ex| - # # ex is the Example object that contains metadata about the example - # end - # @overload focus - # @overload focus - # @overload focus - # @overload focus - # @see example - # @yield [Example] the example object - # - # source://rspec-core//lib/rspec/core/example_group.rb#146 - def focus(*all_args, &block); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#655 - def for_filtered_examples(reporter, &block); end - - # Shortcut to define an example with `:focus => true`. - # - # @example - # fspecify do - # end - # - # fspecify "does something" do - # end - # - # fspecify "does something", :slow, :uses_js do - # end - # - # fspecify "does something", :with => 'additional metadata' do - # end - # - # fspecify "does something" do |ex| - # # ex is the Example object that contains metadata about the example - # end - # @overload fspecify - # @overload fspecify - # @overload fspecify - # @overload fspecify - # @see example - # @yield [Example] the example object - # - # source://rspec-core//lib/rspec/core/example_group.rb#146 - def fspecify(*all_args, &block); end - - # @return [String] the unique id of this example group. Pass - # this at the command line to re-run this exact example group. - # - # source://rspec-core//lib/rspec/core/example_group.rb#675 - def id; end - - # Define a singleton method for the singleton class (remove the method if - # it's already been defined). - # - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#40 - def idempotently_define_singleton_method(name, &definition); end - - # Includes shared content mapped to `name` directly in the group in which - # it is declared, as opposed to `it_behaves_like`, which creates a nested - # group. If given a block, that block is also eval'd in the current - # context. - # - # @see SharedExampleGroup - # - # source://rspec-core//lib/rspec/core/example_group.rb#343 - def include_context(name, *args, &block); end - - # Includes shared content mapped to `name` directly in the group in which - # it is declared, as opposed to `it_behaves_like`, which creates a nested - # group. If given a block, that block is also eval'd in the current - # context. - # - # @see SharedExampleGroup - # - # source://rspec-core//lib/rspec/core/example_group.rb#353 - def include_examples(name, *args, &block); end - - # Defines an example within a group. - # This is the primary API to define a code example. - # - # @example - # it do - # end - # - # it "does something" do - # end - # - # it "does something", :slow, :uses_js do - # end - # - # it "does something", :with => 'additional metadata' do - # end - # - # it "does something" do |ex| - # # ex is the Example object that contains metadata about the example - # end - # @overload it - # @overload it - # @overload it - # @overload it - # @yield [Example] the example object - # - # source://rspec-core//lib/rspec/core/example_group.rb#146 - def it(*all_args, &block); end - - # source://rspec-core//lib/rspec/core/example_group.rb#318 - def it_behaves_like(name, *args, &customization_block); end - - # source://rspec-core//lib/rspec/core/example_group.rb#318 - def it_should_behave_like(name, *args, &customization_block); end - - # source://rspec-core//lib/rspec/core/example_group.rb#78 - def location; end - - # The [Metadata](Metadata) object associated with this group. - # - # @see Metadata - # - # source://rspec-core//lib/rspec/core/example_group.rb#51 - def metadata; end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#485 - def next_runnable_index_for(file); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#625 - def ordering_strategy; end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#508 - def parent_groups; end - - # Shortcut to define an example with `:pending => true` - # - # @example - # pending do - # end - # - # pending "does something" do - # end - # - # pending "does something", :slow, :uses_js do - # end - # - # pending "does something", :with => 'additional metadata' do - # end - # - # pending "does something" do |ex| - # # ex is the Example object that contains metadata about the example - # end - # @overload pending - # @overload pending - # @overload pending - # @overload pending - # @see example - # @yield [Example] the example object - # - # source://rspec-core//lib/rspec/core/example_group.rb#146 - def pending(*all_args, &block); end - - # Removes an example from the example group - # - # source://rspec-core//lib/rspec/core/example_group.rb#373 - def remove_example(example); end - - # Clear memoized values when adding/removing examples - # - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#359 - def reset_memoized; end - - # Runs all the examples in this group. - # - # source://rspec-core//lib/rspec/core/example_group.rb#599 - def run(reporter = T.unsafe(nil)); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#585 - def run_after_context_hooks(example_group_instance); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#547 - def run_before_context_hooks(example_group_instance); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#641 - def run_examples(reporter); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#410 - def set_it_up(description, args, registration_collection, &example_group_block); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#685 - def set_ivars(instance, ivars); end - - # Shortcut to define an example with `:skip => true` - # - # @example - # skip do - # end - # - # skip "does something" do - # end - # - # skip "does something", :slow, :uses_js do - # end - # - # skip "does something", :with => 'additional metadata' do - # end - # - # skip "does something" do |ex| - # # ex is the Example object that contains metadata about the example - # end - # @overload skip - # @overload skip - # @overload skip - # @overload skip - # @see example - # @yield [Example] the example object - # - # source://rspec-core//lib/rspec/core/example_group.rb#146 - def skip(*all_args, &block); end - - # Defines an example within a group. - # Useful for when your docstring does not read well off of `it`. - # - # @example - # RSpec.describe MyClass do - # specify "#do_something is deprecated" do - # # ... - # end - # end - # @example - # specify do - # end - # - # specify "does something" do - # end - # - # specify "does something", :slow, :uses_js do - # end - # - # specify "does something", :with => 'additional metadata' do - # end - # - # specify "does something" do |ex| - # # ex is the Example object that contains metadata about the example - # end - # @overload specify - # @overload specify - # @overload specify - # @overload specify - # @yield [Example] the example object - # - # source://rspec-core//lib/rspec/core/example_group.rb#146 - def specify(*all_args, &block); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#534 - def store_before_context_ivars(example_group_instance); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#395 - def subclass(parent, description, args, registration_collection, &example_group_block); end - - # :nocov: - # - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#562 - def superclass_before_context_ivars; end - - # @private - # @return [Metadata] belonging to the parent of a nested {ExampleGroup} - # - # source://rspec-core//lib/rspec/core/example_group.rb#71 - def superclass_metadata; end - - # @private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/example_group.rb#513 - def top_level?; end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#680 - def top_level_description; end - - # Traverses the tree of groups, starting with `self`, then the children, recursively. - # Halts the traversal of a branch of the tree as soon as the passed block returns true. - # Note that siblings groups and their sub-trees will continue to be explored. - # This is intended to make it easy to find the top-most group that satisfies some - # condition. - # - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#476 - def traverse_tree_until(&block); end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#727 - def update_inherited_metadata(updates); end - - # Temporarily replace the provided metadata. - # Intended primarily to allow an example group's singleton class - # to return the metadata of the example that it exists for. This - # is necessary for shared example group inclusion to work properly - # with singleton example groups. - # - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#61 - def with_replaced_metadata(meta); end - - # source://rspec-core//lib/rspec/core/example_group.rb#247 - def xcontext(*args, &example_group_block); end - - # source://rspec-core//lib/rspec/core/example_group.rb#247 - def xdescribe(*args, &example_group_block); end - - # Shortcut to define an example with `:skip => 'Temporarily skipped with xexample'`. - # - # @example - # xexample do - # end - # - # xexample "does something" do - # end - # - # xexample "does something", :slow, :uses_js do - # end - # - # xexample "does something", :with => 'additional metadata' do - # end - # - # xexample "does something" do |ex| - # # ex is the Example object that contains metadata about the example - # end - # @overload xexample - # @overload xexample - # @overload xexample - # @overload xexample - # @see example - # @yield [Example] the example object - # - # source://rspec-core//lib/rspec/core/example_group.rb#146 - def xexample(*all_args, &block); end - - # Shortcut to define an example with `:skip => 'Temporarily skipped with xit'`. - # - # @example - # xit do - # end - # - # xit "does something" do - # end - # - # xit "does something", :slow, :uses_js do - # end - # - # xit "does something", :with => 'additional metadata' do - # end - # - # xit "does something" do |ex| - # # ex is the Example object that contains metadata about the example - # end - # @overload xit - # @overload xit - # @overload xit - # @overload xit - # @see example - # @yield [Example] the example object - # - # source://rspec-core//lib/rspec/core/example_group.rb#146 - def xit(*all_args, &block); end - - # Shortcut to define an example with `:skip => 'Temporarily skipped with xspecify'`. - # - # @example - # xspecify do - # end - # - # xspecify "does something" do - # end - # - # xspecify "does something", :slow, :uses_js do - # end - # - # xspecify "does something", :with => 'additional metadata' do - # end - # - # xspecify "does something" do |ex| - # # ex is the Example object that contains metadata about the example - # end - # @overload xspecify - # @overload xspecify - # @overload xspecify - # @overload xspecify - # @see example - # @yield [Example] the example object - # - # source://rspec-core//lib/rspec/core/example_group.rb#146 - def xspecify(*all_args, &block); end - - private - - # source://rspec-core//lib/rspec/core/example_group.rb#742 - def method_missing(name, *args); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/example_group.rb#696 -RSpec::Core::ExampleGroup::INSTANCE_VARIABLE_TO_IGNORE = T.let(T.unsafe(nil), Symbol) - -# Raised when an RSpec API is called in the wrong scope, such as `before` -# being called from within an example rather than from within an example -# group block. -# -# source://rspec-core//lib/rspec/core/example_group.rb#740 -class RSpec::Core::ExampleGroup::WrongScopeError < ::NoMethodError; end - -# Dumps a list of hashes in a pretty, human readable format -# for later parsing. The hashes are expected to have symbol -# keys and string values, and each hash should have the same -# set of keys. -# -# @private -# -# source://rspec-core//lib/rspec/core/example_status_persister.rb#143 -class RSpec::Core::ExampleStatusDumper - # @return [ExampleStatusDumper] a new instance of ExampleStatusDumper - # - # source://rspec-core//lib/rspec/core/example_status_persister.rb#148 - def initialize(examples); end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#152 - def dump; end - - private - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#188 - def column_widths; end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#159 - def formatted_header_rows; end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#176 - def formatted_row_from(row_values); end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#166 - def formatted_value_rows; end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#184 - def headers; end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#172 - def rows; end - - class << self - # source://rspec-core//lib/rspec/core/example_status_persister.rb#144 - def dump(examples); end - end -end - -# Merges together a list of example statuses from this run -# and a list from previous runs (presumably loaded from disk). -# Each example status object is expected to be a hash with -# at least an `:example_id` and a `:status` key. Examples that -# were loaded but not executed (due to filtering, `--fail-fast` -# or whatever) should have a `:status` of `UNKNOWN_STATUS`. -# -# This will produce a new list that: -# - Will be missing examples from previous runs that we know for sure -# no longer exist. -# - Will have the latest known status for any examples that either -# definitively do exist or may still exist. -# - Is sorted by file name and example definition order, so that -# the saved file is easily scannable if users want to inspect it. -# -# @private -# -# source://rspec-core//lib/rspec/core/example_status_persister.rb#74 -class RSpec::Core::ExampleStatusMerger - # @return [ExampleStatusMerger] a new instance of ExampleStatusMerger - # - # source://rspec-core//lib/rspec/core/example_status_persister.rb#79 - def initialize(this_run, from_previous_runs); end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#85 - def merge; end - - private - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#102 - def delete_previous_examples_that_no_longer_exist; end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/example_status_persister.rb#108 - def example_must_no_longer_exist?(ex_id); end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#95 - def hash_from(example_list); end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#124 - def loaded_spec_files; end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#132 - def sort_value_from(example); end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#128 - def spec_file_from(ex_id); end - - class << self - # source://rspec-core//lib/rspec/core/example_status_persister.rb#75 - def merge(this_run, from_previous_runs); end - end -end - -# Parses a string that has been previously dumped by ExampleStatusDumper. -# Note that this parser is a bit naive in that it does a simple split on -# "\n" and " | ", with no concern for handling escaping. For now, that's -# OK because the values we plan to persist (example id, status, and perhaps -# example duration) are highly unlikely to contain "\n" or " | " -- after -# all, who puts those in file names? -# -# @private -# -# source://rspec-core//lib/rspec/core/example_status_persister.rb#207 -class RSpec::Core::ExampleStatusParser - # @return [ExampleStatusParser] a new instance of ExampleStatusParser - # - # source://rspec-core//lib/rspec/core/example_status_persister.rb#212 - def initialize(string); end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#216 - def parse; end - - private - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#226 - def headers; end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#222 - def parse_row(line); end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#230 - def split_line(line); end - - class << self - # source://rspec-core//lib/rspec/core/example_status_persister.rb#208 - def parse(string); end - end -end - -# Persists example ids and their statuses so that we can filter -# to just the ones that failed the last time they ran. -# -# @private -# -# source://rspec-core//lib/rspec/core/example_status_persister.rb#8 -class RSpec::Core::ExampleStatusPersister - # @return [ExampleStatusPersister] a new instance of ExampleStatusPersister - # - # source://rspec-core//lib/rspec/core/example_status_persister.rb#18 - def initialize(examples, file_name); end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#23 - def persist; end - - private - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#40 - def dump_statuses(unparsed_previous_runs); end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#46 - def statuses_from_this_run; end - - class << self - # source://rspec-core//lib/rspec/core/example_status_persister.rb#9 - def load_from(file_name); end - - # source://rspec-core//lib/rspec/core/example_status_persister.rb#14 - def persist(examples, file_name); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/filter_manager.rb#183 -RSpec::Core::ExclusionRules = RSpec::Core::FilterRules - -# @private -# -# source://rspec-core//lib/rspec/core/filter_manager.rb#4 -class RSpec::Core::FilterManager - # @return [FilterManager] a new instance of FilterManager - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#7 - def initialize; end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#22 - def add_ids(rerun_path, scoped_ids); end - - # @api private - # @param file_path [String] - # @param line_numbers [Array] - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#15 - def add_location(file_path, line_numbers); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#30 - def empty?; end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#57 - def exclude(*args); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#61 - def exclude_only(*args); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#65 - def exclude_with_low_priority(*args); end - - # Returns the value of attribute exclusions. - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#5 - def exclusions; end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#69 - def include(*args); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#73 - def include_only(*args); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#77 - def include_with_low_priority(*args); end - - # Returns the value of attribute inclusions. - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#5 - def inclusions; end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#34 - def prune(examples); end - - private - - # source://rspec-core//lib/rspec/core/filter_manager.rb#83 - def add_path_to_arrays_filter(filter_key, path, values); end - - # When a user specifies a particular spec location, that takes priority - # over any exclusion filters (such as if the spec is tagged with `:slow` - # and there is a `:slow => true` exclusion filter), but only for specs - # defined in the same file as the location filters. Excluded specs in - # other files should still be excluded. - # - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#101 - def file_scoped_include?(ex_metadata, ids, locations); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#89 - def prune_conditionally_filtered_examples(examples); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/filter_manager.rb#115 -class RSpec::Core::FilterRules - # @return [FilterRules] a new instance of FilterRules - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#130 - def initialize(rules = T.unsafe(nil)); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#161 - def [](key); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#134 - def add(updated); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#138 - def add_with_low_priority(updated); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#149 - def clear; end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#153 - def delete(key); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#173 - def description; end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#169 - def each_pair(&block); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#165 - def empty?; end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#157 - def fetch(*args, &block); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#177 - def include_example?(example); end - - # Returns the value of attribute opposite. - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#119 - def opposite; end - - # Sets the attribute opposite - # - # @param value the value to set the attribute opposite to. - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#119 - def opposite=(_arg0); end - - # Returns the value of attribute rules. - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#120 - def rules; end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#144 - def use_only(updated); end - - class << self - # source://rspec-core//lib/rspec/core/filter_manager.rb#122 - def build; end - end -end - -# source://rspec-core//lib/rspec/core/filter_manager.rb#116 -RSpec::Core::FilterRules::PROC_HEX_NUMBER = T.let(T.unsafe(nil), Regexp) - -# source://rspec-core//lib/rspec/core/filter_manager.rb#117 -RSpec::Core::FilterRules::PROJECT_DIR = T.let(T.unsafe(nil), String) - -# Tracks a collection of filterable items (e.g. modules, hooks, etc) -# and provides an optimized API to get the applicable items for the -# metadata of an example or example group. -# -# There are two implementations, optimized for different uses. -# -# @private -# -# source://rspec-core//lib/rspec/core/metadata_filter.rb#87 -module RSpec::Core::FilterableItemRepository; end - -# This implementation is much more complex, and is optimized for -# rare (or hopefully no) updates once the queries start. Updates -# incur a cost as it has to clear the memoization and keep track -# of applicable keys. Queries will be O(N) the first time an item -# is provided with a given set of applicable metadata; subsequent -# queries with items with the same set of applicable metadata will -# be O(1) due to internal memoization. -# -# This is ideal for use by config, where filterable items (e.g. hooks) -# are typically added at the start of the process (e.g. in `spec_helper`) -# and then repeatedly queried as example groups and examples are defined. -# -# @private -# -# source://rspec-core//lib/rspec/core/metadata_filter.rb#151 -class RSpec::Core::FilterableItemRepository::QueryOptimized < ::RSpec::Core::FilterableItemRepository::UpdateOptimized - # @return [QueryOptimized] a new instance of QueryOptimized - # - # source://rspec-core//lib/rspec/core/metadata_filter.rb#155 - def initialize(applies_predicate); end - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#164 - def append(item, metadata); end - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#174 - def delete(item, metadata); end - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#179 - def items_for(metadata); end - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#169 - def prepend(item, metadata); end - - private - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#217 - def applicable_metadata_from(metadata); end - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#118 - def find_items_for(request_meta); end - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#211 - def handle_mutation(metadata); end - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#235 - def proc_keys_from(metadata); end - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#203 - def reconstruct_caches; end -end - -# This implementation is simple, and is optimized for frequent -# updates but rare queries. `append` and `prepend` do no extra -# processing, and no internal memoization is done, since this -# is not optimized for queries. -# -# This is ideal for use by a example or example group, which may -# be updated multiple times with globally configured hooks, etc, -# but will not be queried frequently by other examples or example -# groups. -# -# @private -# -# source://rspec-core//lib/rspec/core/metadata_filter.rb#98 -class RSpec::Core::FilterableItemRepository::UpdateOptimized - # @return [UpdateOptimized] a new instance of UpdateOptimized - # - # source://rspec-core//lib/rspec/core/metadata_filter.rb#101 - def initialize(applies_predicate); end - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#106 - def append(item, metadata); end - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#114 - def delete(item, metadata); end - - # Returns the value of attribute items_and_filters. - # - # source://rspec-core//lib/rspec/core/metadata_filter.rb#99 - def items_and_filters; end - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#118 - def items_for(request_meta); end - - # source://rspec-core//lib/rspec/core/metadata_filter.rb#110 - def prepend(item, metadata); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/flat_map.rb#4 -module RSpec::Core::FlatMap - private - - # :nocov: - # - # source://rspec-core//lib/rspec/core/flat_map.rb#6 - def flat_map(array, &block); end - - class << self - # :nocov: - # - # source://rspec-core//lib/rspec/core/flat_map.rb#6 - def flat_map(array, &block); end - end -end - -# ## Built-in Formatters -# -# * progress (default) - Prints dots for passing examples, `F` for failures, `*` -# for pending. -# * documentation - Prints the docstrings passed to `describe` and `it` methods -# (and their aliases). -# * html -# * json - Useful for archiving data for subsequent analysis. -# -# The progress formatter is the default, but you can choose any one or more of -# the other formatters by passing with the `--format` (or `-f` for short) -# command-line option, e.g. -# -# rspec --format documentation -# -# You can also send the output of multiple formatters to different streams, e.g. -# -# rspec --format documentation --format html --out results.html -# -# This example sends the output of the documentation formatter to `$stdout`, and -# the output of the html formatter to results.html. -# -# ## Custom Formatters -# -# You can tell RSpec to use a custom formatter by passing its path and name to -# the `rspec` command. For example, if you define MyCustomFormatter in -# path/to/my_custom_formatter.rb, you would type this command: -# -# rspec --require path/to/my_custom_formatter.rb --format MyCustomFormatter -# -# The reporter calls every formatter with this protocol: -# -# * To start -# * `start(StartNotification)` -# * Once per example group -# * `example_group_started(GroupNotification)` -# * Once per example -# * `example_started(ExampleNotification)` -# * One of these per example, depending on outcome -# * `example_passed(ExampleNotification)` -# * `example_failed(FailedExampleNotification)` -# * `example_pending(ExampleNotification)` -# * Optionally at any time -# * `message(MessageNotification)` -# * At the end of the suite -# * `stop(ExamplesNotification)` -# * `start_dump(NullNotification)` -# * `dump_pending(ExamplesNotification)` -# * `dump_failures(ExamplesNotification)` -# * `dump_summary(SummaryNotification)` -# * `seed(SeedNotification)` -# * `close(NullNotification)` -# -# Only the notifications to which you subscribe your formatter will be called -# on your formatter. To subscribe your formatter use: -# `RSpec::Core::Formatters#register` e.g. -# -# `RSpec::Core::Formatters.register FormatterClassName, :example_passed, :example_failed` -# -# We recommend you implement the methods yourself; for simplicity we provide the -# default formatter output via our notification objects but if you prefer you -# can subclass `RSpec::Core::Formatters::BaseTextFormatter` and override the -# methods you wish to enhance. -# -# @see RSpec::Core::Formatters::BaseTextFormatter -# @see RSpec::Core::Reporter -# -# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#3 -module RSpec::Core::Formatters - class << self - # Register the formatter class - # - # @param formatter_class [Class] formatter class to register - # @param notifications [Array] one or more notifications to be - # registered to the specified formatter - # @see RSpec::Core::Formatters::BaseFormatter - # - # source://rspec-core//lib/rspec/core/formatters.rb#86 - def register(formatter_class, *notifications); end - end -end - -# Contains common logic for formatters used by `--bisect` to communicate results -# back to the bisect runner. -# -# Subclasses must define a `notify_results(all_example_ids, failed_example_ids)` -# method. -# -# @private -# -# source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#12 -class RSpec::Core::Formatters::BaseBisectFormatter - # @return [BaseBisectFormatter] a new instance of BaseBisectFormatter - # - # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#17 - def initialize(expected_failures); end - - # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#23 - def example_failed(notification); end - - # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#27 - def example_finished(notification); end - - # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#37 - def start_dump(_notification); end - - class << self - # @private - # - # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#13 - def inherited(formatter); end - end -end - -# RSpec's built-in formatters are all subclasses of -# RSpec::Core::Formatters::BaseFormatter. -# -# @see RSpec::Core::Formatters::BaseTextFormatter -# @see RSpec::Core::Reporter -# @see RSpec::Core::Formatters::Protocol -# -# source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#13 -class RSpec::Core::Formatters::BaseFormatter - # @api public - # @param output [IO] the formatter output - # @return [BaseFormatter] a new instance of BaseFormatter - # @see RSpec::Core::Formatters::Protocol#initialize - # - # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#23 - def initialize(output); end - - # @api public - # @param _notification [NullNotification] (Ignored) - # @see RSpec::Core::Formatters::Protocol#close - # - # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#50 - def close(_notification); end - - # Returns the value of attribute example_group. - # - # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#17 - def example_group; end - - # Sets the attribute example_group - # - # @param value the value to set the attribute example_group to. - # - # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#17 - def example_group=(_arg0); end - - # @api public - # @param notification [GroupNotification] containing example_group - # subclass of `RSpec::Core::ExampleGroup` - # @see RSpec::Core::Formatters::Protocol#example_group_started - # - # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#42 - def example_group_started(notification); end - - # Returns the value of attribute output. - # - # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#18 - def output; end - - # @api public - # @param notification [StartNotification] - # @see RSpec::Core::Formatters::Protocol#start - # - # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#32 - def start(notification); end - - private - - # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#64 - def output_supports_sync; end - - # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#60 - def restore_sync_output; end - - # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#56 - def start_sync_output; end -end - -# Base for all of RSpec's built-in formatters. See -# RSpec::Core::Formatters::BaseFormatter to learn more about all of the -# methods called by the reporter. -# -# @see RSpec::Core::Formatters::BaseFormatter -# @see RSpec::Core::Reporter -# -# source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#12 -class RSpec::Core::Formatters::BaseTextFormatter < ::RSpec::Core::Formatters::BaseFormatter - # Invoked at the end of a suite run. Allows the formatter to do any - # tidying up, but be aware that formatter output streams may be used - # elsewhere so don't actually close them. - # - # @api public - # @param _notification [NullNotification] (Ignored) - # - # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#65 - def close(_notification); end - - # Dumps detailed information about each example failure. - # - # @api public - # @param notification [NullNotification] - # - # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#30 - def dump_failures(notification); end - - # @private - # - # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#47 - def dump_pending(notification); end - - # This method is invoked after the dumping of examples and failures. - # Each parameter is assigned to a corresponding attribute. - # - # @api public - # @param summary [SummaryNotification] containing duration, - # example_count, failure_count and pending_count - # - # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#42 - def dump_summary(summary); end - - # Used by the reporter to send messages to the output stream. - # - # @api public - # @param notification [MessageNotification] containing message - # - # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#21 - def message(notification); end - - # @private - # - # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#53 - def seed(notification); end -end - -# Used by `--bisect`. When it shells out and runs a portion of the suite, it uses -# this formatter as a means to have the status reported back to it, via DRb. -# -# Note that since DRb calls carry considerable overhead compared to normal -# method calls, we try to minimize the number of DRb calls for perf reasons, -# opting to communicate only at the start and the end of the run, rather than -# after each example. -# -# @private -# -# source://rspec-core//lib/rspec/core/formatters/bisect_drb_formatter.rb#15 -class RSpec::Core::Formatters::BisectDRbFormatter < ::RSpec::Core::Formatters::BaseBisectFormatter - # @return [BisectDRbFormatter] a new instance of BisectDRbFormatter - # - # source://rspec-core//lib/rspec/core/formatters/bisect_drb_formatter.rb#16 - def initialize(_output); end - - # source://rspec-core//lib/rspec/core/formatters/bisect_drb_formatter.rb#23 - def notify_results(results); end -end - -# ConsoleCodes provides helpers for formatting console output -# with ANSI codes, e.g. color's and bold. -# -# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#6 -module RSpec::Core::Formatters::ConsoleCodes - private - - # @private - # - # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#34 - def config_colors_to_methods; end - - # Fetches the correct code for the supplied symbol, or checks - # that a code is valid. Defaults to white (37). - # - # @param code_or_symbol [Symbol, Fixnum] Symbol or code to check - # @return [Fixnum] a console code - # - # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#47 - def console_code_for(code_or_symbol); end - - # Wraps a piece of text in ANSI codes with the supplied code. Will - # only apply the control code if `RSpec.configuration.color_enabled?` - # returns true. - # - # @param text [String] the text to wrap - # @param code_or_symbol [Symbol, Fixnum] the desired control code - # @return [String] the wrapped text - # - # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#66 - def wrap(text, code_or_symbol); end - - class << self - # @private - # - # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#34 - def config_colors_to_methods; end - - # Fetches the correct code for the supplied symbol, or checks - # that a code is valid. Defaults to white (37). - # - # @param code_or_symbol [Symbol, Fixnum] Symbol or code to check - # @return [Fixnum] a console code - # - # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#47 - def console_code_for(code_or_symbol); end - - # Wraps a piece of text in ANSI codes with the supplied code. Will - # only apply the control code if `RSpec.configuration.color_enabled?` - # returns true. - # - # @param text [String] the text to wrap - # @param code_or_symbol [Symbol, Fixnum] the desired control code - # @return [String] the wrapped text - # - # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#66 - def wrap(text, code_or_symbol); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#8 -RSpec::Core::Formatters::ConsoleCodes::VT100_CODES = T.let(T.unsafe(nil), Hash) - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#29 -RSpec::Core::Formatters::ConsoleCodes::VT100_CODE_VALUES = T.let(T.unsafe(nil), Hash) - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#7 -class RSpec::Core::Formatters::DeprecationFormatter - # @return [DeprecationFormatter] a new instance of DeprecationFormatter - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#12 - def initialize(deprecation_stream, summary_stream); end - - # Returns the value of attribute count. - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 - def count; end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#32 - def deprecation(notification); end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#44 - def deprecation_message_for(data); end - - # Returns the value of attribute deprecation_stream. - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 - def deprecation_stream; end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#40 - def deprecation_summary(_notification); end - - # Returns the value of attribute deprecation_stream. - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 - def output; end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#20 - def printer; end - - # Returns the value of attribute summary_stream. - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 - def summary_stream; end -end - -# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#60 -RSpec::Core::Formatters::DeprecationFormatter::DEPRECATION_STREAM_NOTICE = T.let(T.unsafe(nil), String) - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#135 -class RSpec::Core::Formatters::DeprecationFormatter::DelayedPrinter - # @return [DelayedPrinter] a new instance of DelayedPrinter - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#140 - def initialize(deprecation_stream, summary_stream, deprecation_formatter); end - - # Returns the value of attribute deprecation_formatter. - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#138 - def deprecation_formatter; end - - # Returns the value of attribute deprecation_stream. - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#138 - def deprecation_stream; end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#163 - def deprecation_summary; end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#172 - def print_deferred_deprecation_warnings; end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#148 - def print_deprecation_message(data); end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#155 - def stash_deprecation_message(deprecation_message); end - - # Returns the value of attribute summary_stream. - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#138 - def summary_stream; end -end - -# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#136 -RSpec::Core::Formatters::DeprecationFormatter::DelayedPrinter::TOO_MANY_USES_LIMIT = T.let(T.unsafe(nil), Integer) - -# Wraps a File object and provides file-specific operations. -# -# @private -# -# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#196 -class RSpec::Core::Formatters::DeprecationFormatter::FileStream - # @return [FileStream] a new instance of FileStream - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#197 - def initialize(file); end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#207 - def puts(*args); end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#211 - def summarize(summary_stream, deprecation_count); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#94 -class RSpec::Core::Formatters::DeprecationFormatter::GeneratedDeprecationMessage < ::Struct - # @return [GeneratedDeprecationMessage] a new instance of GeneratedDeprecationMessage - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#95 - def initialize(data); end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#100 - def to_s; end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#107 - def too_many_warnings_message; end - - # Returns the value of attribute type - # - # @return [Object] the current value of type - def type; end - - # Sets the attribute type - # - # @param value [Object] the value to set the attribute type to. - # @return [Object] the newly set value - def type=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#113 -class RSpec::Core::Formatters::DeprecationFormatter::ImmediatePrinter - # @return [ImmediatePrinter] a new instance of ImmediatePrinter - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#116 - def initialize(deprecation_stream, summary_stream, deprecation_formatter); end - - # Returns the value of attribute deprecation_formatter. - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#114 - def deprecation_formatter; end - - # Returns the value of attribute deprecation_stream. - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#114 - def deprecation_stream; end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#128 - def deprecation_summary; end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#123 - def print_deprecation_message(data); end - - # Returns the value of attribute summary_stream. - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#114 - def summary_stream; end -end - -# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#52 -RSpec::Core::Formatters::DeprecationFormatter::RAISE_ERROR_CONFIG_NOTICE = T.let(T.unsafe(nil), String) - -# Not really a stream, but is usable in place of one. -# -# @private -# -# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#184 -class RSpec::Core::Formatters::DeprecationFormatter::RaiseErrorStream - # @raise [DeprecationError] - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#185 - def puts(message); end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#189 - def summarize(summary_stream, deprecation_count); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#66 -class RSpec::Core::Formatters::DeprecationFormatter::SpecifiedDeprecationMessage < ::Struct - # @return [SpecifiedDeprecationMessage] a new instance of SpecifiedDeprecationMessage - # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#67 - def initialize(data); end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#72 - def to_s; end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#76 - def too_many_warnings_message; end - - # Returns the value of attribute type - # - # @return [Object] the current value of type - def type; end - - # Sets the attribute type - # - # @param value [Object] the value to set the attribute type to. - # @return [Object] the newly set value - def type=(_); end - - private - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#88 - def deprecation_type_for(data); end - - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#82 - def output_formatted(str); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#62 -RSpec::Core::Formatters::DeprecationFormatter::TOO_MANY_WARNINGS_NOTICE = T.let(T.unsafe(nil), String) - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#8 -class RSpec::Core::Formatters::DocumentationFormatter < ::RSpec::Core::Formatters::BaseTextFormatter - # @return [DocumentationFormatter] a new instance of DocumentationFormatter - # - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#12 - def initialize(output); end - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#50 - def example_failed(failure); end - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#31 - def example_group_finished(_notification); end - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#24 - def example_group_started(notification); end - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#35 - def example_passed(passed); end - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#42 - def example_pending(pending); end - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#20 - def example_started(_notification); end - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#57 - def message(notification); end - - private - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#96 - def current_indentation(offset = T.unsafe(nil)); end - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#85 - def failure_output(example); end - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#67 - def flush_messages; end - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#91 - def next_failure_index; end - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#75 - def passed_output(example); end - - # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#79 - def pending_output(example, message); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#11 -class RSpec::Core::Formatters::ExceptionPresenter - # @return [ExceptionPresenter] a new instance of ExceptionPresenter - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#16 - def initialize(exception, example, options = T.unsafe(nil)); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#78 - def colorized_formatted_backtrace(colorizer = T.unsafe(nil)); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#33 - def colorized_message_lines(colorizer = T.unsafe(nil)); end - - # Returns the value of attribute description. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 - def description; end - - # Returns the value of attribute example. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 - def example; end - - # Returns the value of attribute exception. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 - def exception; end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#39 - def formatted_backtrace(exception = T.unsafe(nil)); end - - # :nocov: - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#45 - def formatted_cause(exception); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#84 - def fully_formatted(failure_number, colorizer = T.unsafe(nil)); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#89 - def fully_formatted_lines(failure_number, colorizer); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#29 - def message_lines; end - - private - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#226 - def add_shared_group_lines(lines, colorizer); end - - # Returns the value of attribute backtrace_formatter. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 - def backtrace_formatter; end - - # Returns the value of attribute detail_formatter. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 - def detail_formatter; end - - # :nocov: - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#286 - def encoded_description(description); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#120 - def encoded_string(string); end - - # :nocov: - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#116 - def encoding_of(string); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#298 - def exception_backtrace; end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#150 - def exception_class_name(exception = T.unsafe(nil)); end - - # :nocov: - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#204 - def exception_lines; end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#185 - def exception_message_string(exception); end - - # Returns the value of attribute extra_detail_formatter. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 - def extra_detail_formatter; end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#215 - def extra_failure_lines; end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#156 - def failure_lines; end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#170 - def failure_slash_error_lines; end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#104 - def final_exception(exception, previous = T.unsafe(nil)); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#262 - def find_failed_line; end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#277 - def formatted_message_and_backtrace(colorizer); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#134 - def indent_lines(lines, failure_number); end - - # Returns the value of attribute message_color. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 - def message_color; end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#236 - def read_failed_lines; end -end - -# Configuring the `ExceptionPresenter` with the right set of options to handle -# pending vs failed vs skipped and aggregated (or not) failures is not simple. -# This class takes care of building an appropriate `ExceptionPresenter` for the -# provided example. -# -# @private -# -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#307 -class RSpec::Core::Formatters::ExceptionPresenter::Factory - # @return [Factory] a new instance of Factory - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#314 - def initialize(example); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#308 - def build; end - - private - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#369 - def multiple_exception_summarizer(exception, prior_detail_formatter, color); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#365 - def multiple_exceptions_error?(exception); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#324 - def options; end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#328 - def pending_options; end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#390 - def sub_failure_list_formatter(exception, message_color); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#349 - def with_multiple_error_options_as_needed(exception, options); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#423 -class RSpec::Core::Formatters::ExceptionPresenter::Factory::CommonBacktraceTruncater - # @return [CommonBacktraceTruncater] a new instance of CommonBacktraceTruncater - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#424 - def initialize(parent); end - - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#428 - def with_truncated_backtrace(child); end -end - -# Used to prevent a confusing backtrace from showing up from the `aggregate_failures` -# block declared for `:aggregate_failures` metadata. -# -# @private -# -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#416 -module RSpec::Core::Formatters::ExceptionPresenter::Factory::EmptyBacktraceFormatter - class << self - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#417 - def format_backtrace(*_arg0); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#448 -RSpec::Core::Formatters::ExceptionPresenter::PENDING_DETAIL_FORMATTER = T.let(T.unsafe(nil), Proc) - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/failure_list_formatter.rb#7 -class RSpec::Core::Formatters::FailureListFormatter < ::RSpec::Core::Formatters::BaseFormatter - # Discard profile and messages - # - # These outputs are not really relevant in the context of this failure - # list formatter. - # - # source://rspec-core//lib/rspec/core/formatters/failure_list_formatter.rb#18 - def dump_profile(_profile); end - - # source://rspec-core//lib/rspec/core/formatters/failure_list_formatter.rb#10 - def example_failed(failure); end - - # source://rspec-core//lib/rspec/core/formatters/failure_list_formatter.rb#19 - def message(_message); end -end - -# Formatter for providing message output as a fallback when no other -# profiler implements #message -# -# @api private -# -# source://rspec-core//lib/rspec/core/formatters/fallback_message_formatter.rb#7 -class RSpec::Core::Formatters::FallbackMessageFormatter - # @api private - # @return [FallbackMessageFormatter] a new instance of FallbackMessageFormatter - # - # source://rspec-core//lib/rspec/core/formatters/fallback_message_formatter.rb#10 - def initialize(output); end - - # Used by the reporter to send messages to the output stream. - # - # @api public - # @param notification [MessageNotification] containing message - # - # source://rspec-core//lib/rspec/core/formatters/fallback_message_formatter.rb#22 - def message(notification); end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/formatters/fallback_message_formatter.rb#15 - def output; end -end - -# Formatters helpers. -# -# source://rspec-core//lib/rspec/core/formatters/helpers.rb#7 -module RSpec::Core::Formatters::Helpers - class << self - # Formats seconds into a human-readable string. - # - # @api private - # @example - # format_duration(1) #=> "1 minute 1 second" - # format_duration(135.14) #=> "2 minutes 15.14 seconds" - # @param duration [Float, Fixnum] in seconds - # @return [String] human-readable time - # - # source://rspec-core//lib/rspec/core/formatters/helpers.rb#24 - def format_duration(duration); end - - # Formats seconds to have 5 digits of precision with trailing zeros - # removed if the number is less than 1 or with 2 digits of precision if - # the number is greater than zero. - # - # The precision used is set in {Helpers::SUB_SECOND_PRECISION} and - # {Helpers::DEFAULT_PRECISION}. - # - # @api private - # @example - # format_seconds(0.000006) #=> "0.00001" - # format_seconds(0.020000) #=> "0.02" - # format_seconds(1.00000000001) #=> "1" - # @param float [Float] - # @return [String] formatted float - # @see #strip_trailing_zeroes - # - # source://rspec-core//lib/rspec/core/formatters/helpers.rb#60 - def format_seconds(float, precision = T.unsafe(nil)); end - - # Given a list of example ids, organizes them into a compact, ordered list. - # - # @api private - # - # source://rspec-core//lib/rspec/core/formatters/helpers.rb#102 - def organize_ids(ids); end - - # Pluralize a word based on a count. - # - # @api private - # @param count [Fixnum] number of objects - # @param string [String] word to be pluralized - # @return [String] pluralized word - # - # source://rspec-core//lib/rspec/core/formatters/helpers.rb#88 - def pluralize(count, string); end - - private - - # Remove trailing zeros from a string. - # - # Only remove trailing zeros after a decimal place. - # see: http://rubular.com/r/ojtTydOgpn - # - # @api private - # @param string [String] string with trailing zeros - # @return [String] string with trailing zeros removed - # - # source://rspec-core//lib/rspec/core/formatters/helpers.rb#76 - def strip_trailing_zeroes(string); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/helpers.rb#12 -RSpec::Core::Formatters::Helpers::DEFAULT_PRECISION = T.let(T.unsafe(nil), Integer) - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/helpers.rb#9 -RSpec::Core::Formatters::Helpers::SUB_SECOND_PRECISION = T.let(T.unsafe(nil), Integer) - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#8 -class RSpec::Core::Formatters::HtmlFormatter < ::RSpec::Core::Formatters::BaseFormatter - # @return [HtmlFormatter] a new instance of HtmlFormatter - # - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#13 - def initialize(output); end - - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#103 - def dump_summary(summary); end - - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#55 - def example_failed(failure); end - - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#28 - def example_group_started(notification); end - - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#49 - def example_passed(passed); end - - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#93 - def example_pending(pending); end - - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#45 - def example_started(_notification); end - - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#22 - def start(notification); end - - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#40 - def start_dump(_notification); end - - private - - # The number of the currently running example_group. - # - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#120 - def example_group_number; end - - # The number of the currently running example (a global counter). - # - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#125 - def example_number; end - - # Override this method if you wish to output extra HTML for a failed - # spec. For example, you could output links to images or other files - # produced during the specs. - # - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#141 - def extra_failure_content(failure); end - - # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#130 - def percent_done; end -end - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#7 -class RSpec::Core::Formatters::HtmlPrinter - include ::ERB::Escape - include ::ERB::Util - - # @return [HtmlPrinter] a new instance of HtmlPrinter - # - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#9 - def initialize(output); end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#79 - def flush; end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#96 - def make_example_group_header_red(group_id); end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#103 - def make_example_group_header_yellow(group_id); end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#88 - def make_header_red; end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#92 - def make_header_yellow; end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#83 - def move_progress(percent_done); end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#36 - def print_example_failed(pending_fixed, description, run_time, failure_id, exception, extra_content); end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#18 - def print_example_group_end; end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#23 - def print_example_group_start(group_id, description, number_of_parents); end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#29 - def print_example_passed(description, run_time); end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#53 - def print_example_pending(description, pending_message); end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#13 - def print_html_start; end - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#59 - def print_summary(duration, example_count, failure_count, pending_count); end - - private - - # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#112 - def indentation_style(number_of_parents); end -end - -# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#140 -RSpec::Core::Formatters::HtmlPrinter::GLOBAL_SCRIPTS = T.let(T.unsafe(nil), String) - -# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#218 -RSpec::Core::Formatters::HtmlPrinter::GLOBAL_STYLES = T.let(T.unsafe(nil), String) - -# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#382 -RSpec::Core::Formatters::HtmlPrinter::HTML_HEADER = T.let(T.unsafe(nil), String) - -# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#116 -RSpec::Core::Formatters::HtmlPrinter::REPORT_HEADER = T.let(T.unsafe(nil), String) - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#8 -class RSpec::Core::Formatters::JsonFormatter < ::RSpec::Core::Formatters::BaseFormatter - # @return [JsonFormatter] a new instance of JsonFormatter - # - # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#13 - def initialize(output); end - - # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#56 - def close(_notification); end - - # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#60 - def dump_profile(profile); end - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#79 - def dump_profile_slowest_example_groups(profile); end - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#67 - def dump_profile_slowest_examples(profile); end - - # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#24 - def dump_summary(summary); end - - # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#20 - def message(notification); end - - # Returns the value of attribute output_hash. - # - # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#11 - def output_hash; end - - # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#51 - def seed(notification); end - - # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#35 - def stop(group_notification); end - - private - - # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#88 - def format_example(example); end -end - -# `RSpec::Core::Formatters::Loader` is an internal class for -# managing formatters used by a particular configuration. It is -# not expected to be used directly, but only through the configuration -# interface. -# -# @api private -# -# source://rspec-core//lib/rspec/core/formatters.rb#96 -class RSpec::Core::Formatters::Loader - # @api private - # @return [Loader] a new instance of Loader - # - # source://rspec-core//lib/rspec/core/formatters.rb#105 - def initialize(reporter); end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/formatters.rb#144 - def add(formatter_to_use, *paths); end - - # @api private - # @return [String] the default formatter to setup, defaults to `progress` - # - # source://rspec-core//lib/rspec/core/formatters.rb#118 - def default_formatter; end - - # @api private - # @return [String] the default formatter to setup, defaults to `progress` - # - # source://rspec-core//lib/rspec/core/formatters.rb#118 - def default_formatter=(_arg0); end - - # @api private - # @return [Array] the loaded formatters - # - # source://rspec-core//lib/rspec/core/formatters.rb#112 - def formatters; end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/formatters.rb#121 - def prepare_default(output_stream, deprecation_stream); end - - # @api private - # @return [Reporter] the reporter - # - # source://rspec-core//lib/rspec/core/formatters.rb#115 - def reporter; end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/formatters.rb#126 - def setup_default(output_stream, deprecation_stream); end - - private - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters.rb#211 - def built_in_formatter(key); end - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters.rb#234 - def custom_formatter(formatter_ref); end - - # @api private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/formatters.rb#195 - def duplicate_formatter_exists?(new_formatter); end - - # @api private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/formatters.rb#207 - def existing_formatter_implements?(notification); end - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters.rb#181 - def find_formatter(formatter_to_use); end - - # @api private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/formatters.rb#202 - def has_matching_output?(formatter, new_formatter); end - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters.rb#228 - def notifications_for(formatter_class); end - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters.rb#269 - def open_stream(path_or_wrapper); end - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters.rb#250 - def path_for(const_ref); end - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters.rb#188 - def register(formatter, notifications); end - - # @api private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/formatters.rb#246 - def string_const?(str); end - - # activesupport/lib/active_support/inflector/methods.rb, line 48 - # - # @api private - # - # source://rspec-core//lib/rspec/core/formatters.rb#259 - def underscore(camel_cased_word); end - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters.rb#254 - def underscore_with_fix_for_non_standard_rspec_naming(string); end - - class << self - # Internal formatters are stored here when loaded. - # - # @api private - # - # source://rspec-core//lib/rspec/core/formatters.rb#100 - def formatters; end - end -end - -# Formatter for providing profile output. -# -# @api private -# -# source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#8 -class RSpec::Core::Formatters::ProfileFormatter - # @api private - # @return [ProfileFormatter] a new instance of ProfileFormatter - # - # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#11 - def initialize(output); end - - # This method is invoked after the dumping the summary if profiling is - # enabled. - # - # @api public - # @param profile [ProfileNotification] containing duration, - # slowest_examples and slowest_example_groups - # - # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#25 - def dump_profile(profile); end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#16 - def output; end - - private - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#62 - def bold(text); end - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#44 - def dump_profile_slowest_example_groups(profile); end - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#32 - def dump_profile_slowest_examples(profile); end - - # @api private - # - # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#57 - def format_caller(caller_info); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#8 -class RSpec::Core::Formatters::ProgressFormatter < ::RSpec::Core::Formatters::BaseTextFormatter - # source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#19 - def example_failed(_notification); end - - # source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#11 - def example_passed(_notification); end - - # source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#15 - def example_pending(_notification); end - - # source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#23 - def start_dump(_notification); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#5 -class RSpec::Core::Formatters::SnippetExtractor - # @return [SnippetExtractor] a new instance of SnippetExtractor - # - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#35 - def initialize(source, beginning_line_number, max_line_count = T.unsafe(nil)); end - - # Returns the value of attribute beginning_line_number. - # - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#24 - def beginning_line_number; end - - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#41 - def expression_lines; end - - # Returns the value of attribute max_line_count. - # - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#24 - def max_line_count; end - - # Returns the value of attribute source. - # - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#24 - def source; end - - private - - # @raise [NoExpressionAtLineError] - # - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#95 - def expression_node; end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#107 - def expression_outmost_node?(node); end - - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#55 - def line_range_of_expression; end - - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#87 - def line_range_of_location_nodes_in_expression; end - - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#117 - def location_nodes_at_beginning_line; end - - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#70 - def unclosed_tokens_in_line_range(line_range); end - - class << self - # :nocov: - # - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#26 - def extract_expression_lines_at(file_path, beginning_line_number, max_line_count = T.unsafe(nil)); end - - # @raise [NoSuchLineError] - # - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#9 - def extract_line_at(file_path, line_number); end - - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#128 - def least_indentation_from(lines); end - - # @raise [NoSuchFileError] - # - # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#16 - def source_from_file(path); end - end -end - -# source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#22 -class RSpec::Core::Formatters::SnippetExtractor::NoExpressionAtLineError < ::StandardError; end - -# source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#6 -class RSpec::Core::Formatters::SnippetExtractor::NoSuchFileError < ::StandardError; end - -# source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#7 -class RSpec::Core::Formatters::SnippetExtractor::NoSuchLineError < ::StandardError; end - -# Provides terminal syntax highlighting of code snippets -# when coderay is available. -# -# @private -# -# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#7 -class RSpec::Core::Formatters::SyntaxHighlighter - # @return [SyntaxHighlighter] a new instance of SyntaxHighlighter - # - # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#8 - def initialize(configuration); end - - # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#12 - def highlight(lines); end - - private - - # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#50 - def color_enabled_implementation; end - - # :nocov: - # - # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#44 - def implementation; end - - class << self - # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#18 - def attempt_to_add_rspec_terms_to_coderay_keywords; end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#61 -module RSpec::Core::Formatters::SyntaxHighlighter::CodeRayImplementation - class << self - # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#64 - def highlight_syntax(lines); end - end -end - -# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#62 -RSpec::Core::Formatters::SyntaxHighlighter::CodeRayImplementation::RESET_CODE = T.let(T.unsafe(nil), String) - -# @private -# -# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#78 -module RSpec::Core::Formatters::SyntaxHighlighter::NoSyntaxHighlightingImplementation - class << self - # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#79 - def highlight_syntax(lines); end - end -end - -# Not sure why, but our code above (and/or coderay itself) does not work -# on Windows, so we disable the feature on Windows. -# -# @private -# -# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#87 -RSpec::Core::Formatters::SyntaxHighlighter::WindowsImplementation = RSpec::Core::Formatters::SyntaxHighlighter::NoSyntaxHighlightingImplementation - -# Mixin that makes the including class imitate a hash for backwards -# compatibility. The including class should use `attr_accessor` to -# declare attributes. -# -# @private -# -# source://rspec-core//lib/rspec/core/metadata.rb#349 -module RSpec::Core::HashImitatable - mixes_in_class_methods ::RSpec::Core::HashImitatable::ClassMethods - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def <(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def <=(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def >(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def >=(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#388 - def [](key); end - - # source://rspec-core//lib/rspec/core/metadata.rb#398 - def []=(key, value); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def all?(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def any?(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def assoc(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def chain(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def chunk(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def chunk_while(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def clear(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def collect(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def collect_concat(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def compact(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def compact!(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def compare_by_identity(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def compare_by_identity?(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def count(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def cycle(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def deconstruct_keys(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def default(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def default=(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def default_proc(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def default_proc=(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def delete(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def delete_if(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def detect(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def dig(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def drop(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def drop_while(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def each(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def each_cons(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def each_entry(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def each_key(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def each_pair(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def each_slice(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def each_value(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def each_with_index(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def each_with_object(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def empty?(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def entries(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def except(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def fetch(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def fetch_values(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def filter(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def filter!(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def filter_map(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def find(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def find_all(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def find_index(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def first(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def flat_map(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def flatten(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def grep(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def grep_v(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def group_by(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def has_key?(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def has_value?(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def include?(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def inject(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def invert(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def keep_if(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def key(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def key?(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def keys(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def lazy(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def length(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def map(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def max(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def max_by(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def member?(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def merge(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def merge!(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def min(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def min_by(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def minmax(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def minmax_by(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def none?(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def one?(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def partition(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def rassoc(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def reduce(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def rehash(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def reject(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def reject!(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def replace(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def reverse_each(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def save_plist(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def select(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def select!(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def shift(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def size(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def slice(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def slice_after(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def slice_before(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def slice_when(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def sort(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def sort_by(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def store(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def sum(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def take(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def take_while(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def tally(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def to_a(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#354 - def to_h; end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def to_hash(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def to_plist(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def to_proc(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def to_set(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def transform_keys(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def transform_keys!(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def transform_values(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def transform_values!(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def uniq(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def update(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def value?(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def values(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def values_at(*args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#367 - def zip(*args, &block); end - - private - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/metadata.rb#414 - def directly_supports_attribute?(name); end - - # source://rspec-core//lib/rspec/core/metadata.rb#410 - def extra_hash_attributes; end - - # source://rspec-core//lib/rspec/core/metadata.rb#418 - def get_value(name); end - - # source://rspec-core//lib/rspec/core/metadata.rb#426 - def hash_for_delegation; end - - # source://rspec-core//lib/rspec/core/metadata.rb#430 - def issue_deprecation(_method_name, *_args); end - - # source://rspec-core//lib/rspec/core/metadata.rb#422 - def set_value(name, value); end - - class << self - # @private - # - # source://rspec-core//lib/rspec/core/metadata.rb#350 - def included(klass); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/metadata.rb#435 -module RSpec::Core::HashImitatable::ClassMethods - # source://rspec-core//lib/rspec/core/metadata.rb#440 - def attr_accessor(*names); end - - # source://rspec-core//lib/rspec/core/metadata.rb#436 - def hash_attribute_names; end -end - -# Provides `before`, `after` and `around` hooks as a means of -# supporting common setup and teardown. This module is extended -# onto {ExampleGroup}, making the methods available from any `describe` -# or `context` block and included in {Configuration}, making them -# available off of the configuration object to define global setup -# or teardown logic. -# -# source://rspec-core//lib/rspec/core/hooks.rb#9 -module RSpec::Core::Hooks - # Declare a block of code to be run after each example (using `:example`) - # or once after all examples n the context (using `:context`). See - # {#before} for more information about ordering. - # - # ### Exceptions - # - # `after` hooks are guaranteed to run even when there are exceptions in - # `before` hooks or examples. When an exception is raised in an after - # block, the exception is captured for later reporting, and subsequent - # `after` blocks are run. - # - # ### Order - # - # `after` hooks are stored in three scopes, which are run in order: - # `:example`, `:context`, and `:suite`. They can also be declared in - # several different places: `RSpec.configure`, a parent group, the current - # group. They are run in the following order: - # - # after(:example) # Declared in the current group. - # after(:example) # Declared in a parent group. - # after(:example) # Declared in RSpec.configure. - # after(:context) # Declared in the current group. - # after(:context) # Declared in a parent group. - # after(:context) # Declared in RSpec.configure. - # after(:suite) # Declared in RSpec.configure. - # - # This is the reverse of the order in which `before` hooks are run. - # Similarly, if more than one `after` is declared within any example - # group, they are run in reverse order of that in which they are declared. - # Also `around` hooks will run after any `after` example hooks are - # invoked but before any `after` context hooks. - # - # @api public - # @note The `:suite` scope is only supported for hooks registered on - # `RSpec.configuration` since they exist independently of any - # example or example group. - # @note The `:example` and `:context` scopes are also available as - # `:each` and `:all`, respectively. Use whichever you prefer. - # @overload after - # @overload after - # @overload after - # @overload after - # @see #before - # @see #around - # @see ExampleGroup - # @see SharedContext - # @see SharedExampleGroup - # @see Configuration - # - # source://rspec-core//lib/rspec/core/hooks.rb#277 - def after(*args, &block); end - - # Adds `block` to the back of the list of `after` blocks in the same - # scope (`:example`, `:context`, or `:suite`). - # - # See {#after} for scoping semantics. - # - # source://rspec-core//lib/rspec/core/hooks.rb#287 - def append_after(*args, &block); end - - # Declare a block of code to be run before each example (using `:example`) - # or once before any example (using `:context`). These are usually - # declared directly in the {ExampleGroup} to which they apply, but they - # can also be shared across multiple groups. - # - # You can also use `before(:suite)` to run a block of code before any - # example groups are run. This should be declared in {RSpec.configure}. - # - # Instance variables declared in `before(:example)` or `before(:context)` - # are accessible within each example. - # - # ### Order - # - # `before` hooks are stored in three scopes, which are run in order: - # `:suite`, `:context`, and `:example`. They can also be declared in - # several different places: `RSpec.configure`, a parent group, the current - # group. They are run in the following order: - # - # before(:suite) # Declared in RSpec.configure. - # before(:context) # Declared in RSpec.configure. - # before(:context) # Declared in a parent group. - # before(:context) # Declared in the current group. - # before(:example) # Declared in RSpec.configure. - # before(:example) # Declared in a parent group. - # before(:example) # Declared in the current group. - # - # If more than one `before` is declared within any one example group, they - # are run in the order in which they are declared. Any `around` hooks will - # execute after `before` context hooks but before any `before` example - # hook regardless of where they are declared. - # - # ### Conditions - # - # When you add a conditions hash to `before(:example)` or - # `before(:context)`, RSpec will only apply that hook to groups or - # examples that match the conditions. e.g. - # - # RSpec.configure do |config| - # config.before(:example, :authorized => true) do - # log_in_as :authorized_user - # end - # end - # - # RSpec.describe Something, :authorized => true do - # # The before hook will run in before each example in this group. - # end - # - # RSpec.describe SomethingElse do - # it "does something", :authorized => true do - # # The before hook will run before this example. - # end - # - # it "does something else" do - # # The hook will not run before this example. - # end - # end - # - # Note that filtered config `:context` hooks can still be applied - # to individual examples that have matching metadata. Just like - # Ruby's object model is that every object has a singleton class - # which has only a single instance, RSpec's model is that every - # example has a singleton example group containing just the one - # example. - # - # ### Warning: `before(:suite, :with => :conditions)` - # - # The conditions hash is used to match against specific examples. Since - # `before(:suite)` is not run in relation to any specific example or - # group, conditions passed along with `:suite` are effectively ignored. - # - # ### Exceptions - # - # When an exception is raised in a `before` block, RSpec skips any - # subsequent `before` blocks and the example, but runs all of the - # `after(:example)` and `after(:context)` hooks. - # - # ### Warning: implicit before blocks - # - # `before` hooks can also be declared in shared contexts which get - # included implicitly either by you or by extension libraries. Since - # RSpec runs these in the order in which they are declared within each - # scope, load order matters, and can lead to confusing results when one - # before block depends on state that is prepared in another before block - # that gets run later. - # - # ### Warning: `before(:context)` - # - # It is very tempting to use `before(:context)` to speed things up, but we - # recommend that you avoid this as there are a number of gotchas, as well - # as things that simply don't work. - # - # #### Context - # - # `before(:context)` is run in an example that is generated to provide - # group context for the block. - # - # #### Instance variables - # - # Instance variables declared in `before(:context)` are shared across all - # the examples in the group. This means that each example can change the - # state of a shared object, resulting in an ordering dependency that can - # make it difficult to reason about failures. - # - # #### Unsupported RSpec constructs - # - # RSpec has several constructs that reset state between each example - # automatically. These are not intended for use from within - # `before(:context)`: - # - # * `let` declarations - # * `subject` declarations - # * Any mocking, stubbing or test double declaration - # - # ### other frameworks - # - # Mock object frameworks and database transaction managers (like - # ActiveRecord) are typically designed around the idea of setting up - # before an example, running that one example, and then tearing down. This - # means that mocks and stubs can (sometimes) be declared in - # `before(:context)`, but get torn down before the first real example is - # ever run. - # - # You _can_ create database-backed model objects in a `before(:context)` - # in rspec-rails, but it will not be wrapped in a transaction for you, so - # you are on your own to clean up in an `after(:context)` block. - # - # @api public - # @example before(:example) declared in an {ExampleGroup} - # RSpec.describe Thing do - # before(:example) do - # @thing = Thing.new - # end - # - # it "does something" do - # # Here you can access @thing. - # end - # end - # @example before(:context) declared in an {ExampleGroup} - # RSpec.describe Parser do - # before(:context) do - # File.open(file_to_parse, 'w') do |f| - # f.write <<-CONTENT - # stuff in the file - # CONTENT - # end - # end - # - # it "parses the file" do - # Parser.parse(file_to_parse) - # end - # - # after(:context) do - # File.delete(file_to_parse) - # end - # end - # @note The `:example` and `:context` scopes are also available as - # `:each` and `:all`, respectively. Use whichever you prefer. - # @note The `:suite` scope is only supported for hooks registered on - # `RSpec.configuration` since they exist independently of any - # example or example group. - # @overload before - # @overload before - # @overload before - # @overload before - # @see #after - # @see #around - # @see ExampleGroup - # @see SharedContext - # @see SharedExampleGroup - # @see Configuration - # - # source://rspec-core//lib/rspec/core/hooks.rb#200 - def append_before(*args, &block); end - - # Declare a block of code, parts of which will be run before and parts - # after the example. It is your responsibility to run the example: - # - # around(:example) do |ex| - # # Do some stuff before. - # ex.run - # # Do some stuff after. - # end - # - # The yielded example aliases `run` with `call`, which lets you treat it - # like a `Proc`. This is especially handy when working with libraries - # that manage their own setup and teardown using a block or proc syntax, - # e.g. - # - # around(:example) {|ex| Database.transaction(&ex)} - # around(:example) {|ex| FakeFS(&ex)} - # - # ### Order - # - # The `around` hooks execute surrounding an example and its hooks. - # - # This means after any `before` context hooks, but before any `before` - # example hooks, and similarly after any `after` example hooks but before - # any `after` context hooks. - # - # They are not a synonym for `before`/`after`. - # - # @api public - # @note `:example`/`:each` is the only supported scope. - # @note the syntax of `around` is similar to that of `before` and `after` - # but the semantics are quite different. `before` and `after` hooks are - # run in the context of the examples with which they are associated, - # whereas `around` hooks are actually responsible for running the - # examples. Consequently, `around` hooks do not have direct access to - # resources that are made available within the examples and their - # associated `before` and `after` hooks. - # @overload around - # @overload around - # @overload around - # @overload around - # @yield [Example] the example to run - # - # source://rspec-core//lib/rspec/core/hooks.rb#349 - def around(*args, &block); end - - # Declare a block of code to be run before each example (using `:example`) - # or once before any example (using `:context`). These are usually - # declared directly in the {ExampleGroup} to which they apply, but they - # can also be shared across multiple groups. - # - # You can also use `before(:suite)` to run a block of code before any - # example groups are run. This should be declared in {RSpec.configure}. - # - # Instance variables declared in `before(:example)` or `before(:context)` - # are accessible within each example. - # - # ### Order - # - # `before` hooks are stored in three scopes, which are run in order: - # `:suite`, `:context`, and `:example`. They can also be declared in - # several different places: `RSpec.configure`, a parent group, the current - # group. They are run in the following order: - # - # before(:suite) # Declared in RSpec.configure. - # before(:context) # Declared in RSpec.configure. - # before(:context) # Declared in a parent group. - # before(:context) # Declared in the current group. - # before(:example) # Declared in RSpec.configure. - # before(:example) # Declared in a parent group. - # before(:example) # Declared in the current group. - # - # If more than one `before` is declared within any one example group, they - # are run in the order in which they are declared. Any `around` hooks will - # execute after `before` context hooks but before any `before` example - # hook regardless of where they are declared. - # - # ### Conditions - # - # When you add a conditions hash to `before(:example)` or - # `before(:context)`, RSpec will only apply that hook to groups or - # examples that match the conditions. e.g. - # - # RSpec.configure do |config| - # config.before(:example, :authorized => true) do - # log_in_as :authorized_user - # end - # end - # - # RSpec.describe Something, :authorized => true do - # # The before hook will run in before each example in this group. - # end - # - # RSpec.describe SomethingElse do - # it "does something", :authorized => true do - # # The before hook will run before this example. - # end - # - # it "does something else" do - # # The hook will not run before this example. - # end - # end - # - # Note that filtered config `:context` hooks can still be applied - # to individual examples that have matching metadata. Just like - # Ruby's object model is that every object has a singleton class - # which has only a single instance, RSpec's model is that every - # example has a singleton example group containing just the one - # example. - # - # ### Warning: `before(:suite, :with => :conditions)` - # - # The conditions hash is used to match against specific examples. Since - # `before(:suite)` is not run in relation to any specific example or - # group, conditions passed along with `:suite` are effectively ignored. - # - # ### Exceptions - # - # When an exception is raised in a `before` block, RSpec skips any - # subsequent `before` blocks and the example, but runs all of the - # `after(:example)` and `after(:context)` hooks. - # - # ### Warning: implicit before blocks - # - # `before` hooks can also be declared in shared contexts which get - # included implicitly either by you or by extension libraries. Since - # RSpec runs these in the order in which they are declared within each - # scope, load order matters, and can lead to confusing results when one - # before block depends on state that is prepared in another before block - # that gets run later. - # - # ### Warning: `before(:context)` - # - # It is very tempting to use `before(:context)` to speed things up, but we - # recommend that you avoid this as there are a number of gotchas, as well - # as things that simply don't work. - # - # #### Context - # - # `before(:context)` is run in an example that is generated to provide - # group context for the block. - # - # #### Instance variables - # - # Instance variables declared in `before(:context)` are shared across all - # the examples in the group. This means that each example can change the - # state of a shared object, resulting in an ordering dependency that can - # make it difficult to reason about failures. - # - # #### Unsupported RSpec constructs - # - # RSpec has several constructs that reset state between each example - # automatically. These are not intended for use from within - # `before(:context)`: - # - # * `let` declarations - # * `subject` declarations - # * Any mocking, stubbing or test double declaration - # - # ### other frameworks - # - # Mock object frameworks and database transaction managers (like - # ActiveRecord) are typically designed around the idea of setting up - # before an example, running that one example, and then tearing down. This - # means that mocks and stubs can (sometimes) be declared in - # `before(:context)`, but get torn down before the first real example is - # ever run. - # - # You _can_ create database-backed model objects in a `before(:context)` - # in rspec-rails, but it will not be wrapped in a transaction for you, so - # you are on your own to clean up in an `after(:context)` block. - # - # @api public - # @example before(:example) declared in an {ExampleGroup} - # - # RSpec.describe Thing do - # before(:example) do - # @thing = Thing.new - # end - # - # it "does something" do - # # Here you can access @thing. - # end - # end - # @example before(:context) declared in an {ExampleGroup} - # - # RSpec.describe Parser do - # before(:context) do - # File.open(file_to_parse, 'w') do |f| - # f.write <<-CONTENT - # stuff in the file - # CONTENT - # end - # end - # - # it "parses the file" do - # Parser.parse(file_to_parse) - # end - # - # after(:context) do - # File.delete(file_to_parse) - # end - # end - # @note The `:example` and `:context` scopes are also available as - # `:each` and `:all`, respectively. Use whichever you prefer. - # @note The `:suite` scope is only supported for hooks registered on - # `RSpec.configuration` since they exist independently of any - # example or example group. - # @overload before - # @overload before - # @overload before - # @overload before - # @see #after - # @see #around - # @see ExampleGroup - # @see SharedContext - # @see SharedExampleGroup - # @see Configuration - # - # source://rspec-core//lib/rspec/core/hooks.rb#200 - def before(*args, &block); end - - # Holds the various registered hooks. - # - # @private - # - # source://rspec-core//lib/rspec/core/hooks.rb#355 - def hooks; end - - # Declare a block of code to be run after each example (using `:example`) - # or once after all examples n the context (using `:context`). See - # {#before} for more information about ordering. - # - # ### Exceptions - # - # `after` hooks are guaranteed to run even when there are exceptions in - # `before` hooks or examples. When an exception is raised in an after - # block, the exception is captured for later reporting, and subsequent - # `after` blocks are run. - # - # ### Order - # - # `after` hooks are stored in three scopes, which are run in order: - # `:example`, `:context`, and `:suite`. They can also be declared in - # several different places: `RSpec.configure`, a parent group, the current - # group. They are run in the following order: - # - # after(:example) # Declared in the current group. - # after(:example) # Declared in a parent group. - # after(:example) # Declared in RSpec.configure. - # after(:context) # Declared in the current group. - # after(:context) # Declared in a parent group. - # after(:context) # Declared in RSpec.configure. - # after(:suite) # Declared in RSpec.configure. - # - # This is the reverse of the order in which `before` hooks are run. - # Similarly, if more than one `after` is declared within any example - # group, they are run in reverse order of that in which they are declared. - # Also `around` hooks will run after any `after` example hooks are - # invoked but before any `after` context hooks. - # - # @api public - # @note The `:suite` scope is only supported for hooks registered on - # `RSpec.configuration` since they exist independently of any - # example or example group. - # @note The `:example` and `:context` scopes are also available as - # `:each` and `:all`, respectively. Use whichever you prefer. - # @overload after - # @overload after - # @overload after - # @overload after - # @see #before - # @see #around - # @see ExampleGroup - # @see SharedContext - # @see SharedExampleGroup - # @see Configuration - # - # source://rspec-core//lib/rspec/core/hooks.rb#277 - def prepend_after(*args, &block); end - - # Adds `block` to the front of the list of `before` blocks in the same - # scope (`:example`, `:context`, or `:suite`). - # - # See {#before} for scoping semantics. - # - # source://rspec-core//lib/rspec/core/hooks.rb#210 - def prepend_before(*args, &block); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/hooks.rb#379 -class RSpec::Core::Hooks::AfterContextHook < ::RSpec::Core::Hooks::Hook - # source://rspec-core//lib/rspec/core/hooks.rb#380 - def run(example); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/hooks.rb#370 -class RSpec::Core::Hooks::AfterHook < ::RSpec::Core::Hooks::Hook - # source://rspec-core//lib/rspec/core/hooks.rb#371 - def run(example); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/hooks.rb#388 -class RSpec::Core::Hooks::AroundHook < ::RSpec::Core::Hooks::Hook - # source://rspec-core//lib/rspec/core/hooks.rb#389 - def execute_with(example, procsy); end - - # :nocov: - # - # source://rspec-core//lib/rspec/core/hooks.rb#397 - def hook_description; end -end - -# @private -# -# source://rspec-core//lib/rspec/core/hooks.rb#363 -class RSpec::Core::Hooks::BeforeHook < ::RSpec::Core::Hooks::Hook - # source://rspec-core//lib/rspec/core/hooks.rb#364 - def run(example); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/hooks.rb#360 -class RSpec::Core::Hooks::Hook < ::Struct - # Returns the value of attribute block - # - # @return [Object] the current value of block - def block; end - - # Sets the attribute block - # - # @param value [Object] the value to set the attribute block to. - # @return [Object] the newly set value - def block=(_); end - - # Returns the value of attribute options - # - # @return [Object] the current value of options - def options; end - - # Sets the attribute options - # - # @param value [Object] the value to set the attribute options to. - # @return [Object] the newly set value - def options=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# This provides the primary API used by other parts of rspec-core. By hiding all -# implementation details behind this facade, it's allowed us to heavily optimize -# this, so that, for example, hook collection objects are only instantiated when -# a hook is added. This allows us to avoid many object allocations for the common -# case of a group having no hooks. -# -# This is only possible because this interface provides a "tell, don't ask"-style -# API, so that callers _tell_ this class what to do with the hooks, rather than -# asking this class for a list of hooks, and then doing something with them. -# -# @private -# -# source://rspec-core//lib/rspec/core/hooks.rb#420 -class RSpec::Core::Hooks::HookCollections - # @return [HookCollections] a new instance of HookCollections - # - # source://rspec-core//lib/rspec/core/hooks.rb#421 - def initialize(owner, filterable_item_repo_class); end - - # source://rspec-core//lib/rspec/core/hooks.rb#449 - def register(prepend_or_append, position, *args, &block); end - - # source://rspec-core//lib/rspec/core/hooks.rb#442 - def register_global_singleton_context_hooks(example, globals); end - - # source://rspec-core//lib/rspec/core/hooks.rb#431 - def register_globals(host, globals); end - - # Runs all of the blocks stored with the hook in the context of the - # example. If no example is provided, just calls the hook directly. - # - # @private - # - # source://rspec-core//lib/rspec/core/hooks.rb#475 - def run(position, scope, example_or_group); end - - protected - - # source://rspec-core//lib/rspec/core/hooks.rb#523 - def all_hooks_for(position, scope); end - - # source://rspec-core//lib/rspec/core/hooks.rb#507 - def matching_hooks_for(position, scope, example_or_group); end - - # source://rspec-core//lib/rspec/core/hooks.rb#533 - def processable_hooks_for(position, scope, host); end - - # source://rspec-core//lib/rspec/core/hooks.rb#527 - def run_owned_hooks_for(position, scope, example_or_group); end - - private - - # source://rspec-core//lib/rspec/core/hooks.rb#553 - def ensure_hooks_initialized_for(position, scope); end - - # source://rspec-core//lib/rspec/core/hooks.rb#591 - def extract_scope_from(args); end - - # source://rspec-core//lib/rspec/core/hooks.rb#543 - def hooks_for(position, scope); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/hooks.rb#605 - def known_scope?(scope); end - - # source://rspec-core//lib/rspec/core/hooks.rb#609 - def normalized_scope_for(scope); end - - # :nocov: - # - # source://rspec-core//lib/rspec/core/hooks.rb#633 - def owner_parent_groups; end - - # source://rspec-core//lib/rspec/core/hooks.rb#571 - def process(host, parent_groups, globals, position, scope); end - - # source://rspec-core//lib/rspec/core/hooks.rb#619 - def run_around_example_hooks_for(example); end - - # source://rspec-core//lib/rspec/core/hooks.rb#613 - def run_example_hooks_for(example, position, each_method); end - - # source://rspec-core//lib/rspec/core/hooks.rb#584 - def scope_and_options_from(*args); end -end - -# source://rspec-core//lib/rspec/core/hooks.rb#505 -RSpec::Core::Hooks::HookCollections::EMPTY_HOOK_ARRAY = T.let(T.unsafe(nil), Array) - -# source://rspec-core//lib/rspec/core/hooks.rb#495 -RSpec::Core::Hooks::HookCollections::HOOK_TYPES = T.let(T.unsafe(nil), Hash) - -# source://rspec-core//lib/rspec/core/hooks.rb#491 -RSpec::Core::Hooks::HookCollections::SCOPES = T.let(T.unsafe(nil), Array) - -# source://rspec-core//lib/rspec/core/hooks.rb#493 -RSpec::Core::Hooks::HookCollections::SCOPE_ALIASES = T.let(T.unsafe(nil), Hash) - -# @private -# -# source://rspec-core//lib/rspec/core/filter_manager.rb#186 -class RSpec::Core::InclusionRules < ::RSpec::Core::FilterRules - # source://rspec-core//lib/rspec/core/filter_manager.rb#187 - def add(*args); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#191 - def add_with_low_priority(*args); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#195 - def include_example?(example); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#203 - def split_file_scoped_rules; end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#199 - def standalone?; end - - private - - # source://rspec-core//lib/rspec/core/filter_manager.rb#213 - def apply_standalone_filter(updated); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/filter_manager.rb#226 - def is_standalone_filter?(rules); end - - # source://rspec-core//lib/rspec/core/filter_manager.rb#221 - def replace_filters(new_rules); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/invocations.rb#4 -module RSpec::Core::Invocations; end - -# @private -# -# source://rspec-core//lib/rspec/core/invocations.rb#28 -class RSpec::Core::Invocations::Bisect - # source://rspec-core//lib/rspec/core/invocations.rb#29 - def call(options, err, out); end - - private - - # source://rspec-core//lib/rspec/core/invocations.rb#45 - def bisect_formatter_klass_for(argument); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/invocations.rb#15 -class RSpec::Core::Invocations::DRbWithFallback - # source://rspec-core//lib/rspec/core/invocations.rb#16 - def call(options, err, out); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/invocations.rb#6 -class RSpec::Core::Invocations::InitializeProject - # source://rspec-core//lib/rspec/core/invocations.rb#7 - def call(*_args); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/invocations.rb#78 -class RSpec::Core::Invocations::PrintHelp < ::Struct - # source://rspec-core//lib/rspec/core/invocations.rb#79 - def call(_options, _err, out); end - - # Returns the value of attribute hidden_options - # - # @return [Object] the current value of hidden_options - def hidden_options; end - - # Sets the attribute hidden_options - # - # @param value [Object] the value to set the attribute hidden_options to. - # @return [Object] the newly set value - def hidden_options=(_); end - - # Returns the value of attribute parser - # - # @return [Object] the current value of parser - def parser; end - - # Sets the attribute parser - # - # @param value [Object] the value to set the attribute parser to. - # @return [Object] the newly set value - def parser=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/invocations.rb#52 -class RSpec::Core::Invocations::PrintVersion - # source://rspec-core//lib/rspec/core/invocations.rb#53 - def call(_options, _err, out); end -end - -# Together with the example group metadata hash default block, -# provides backwards compatibility for the old `:example_group` -# key. In RSpec 2.x, the computed keys of a group's metadata -# were exposed from a nested subhash keyed by `[:example_group]`, and -# then the parent group's metadata was exposed by sub-subhash -# keyed by `[:example_group][:example_group]`. -# -# In RSpec 3, we reorganized this to that the computed keys are -# exposed directly of the group metadata hash (no nesting), and -# `:parent_example_group` returns the parent group's metadata. -# -# Maintaining backwards compatibility was difficult: we wanted -# `:example_group` to return an object that: -# -# * Exposes the top-level metadata keys that used to be nested -# under `:example_group`. -# * Supports mutation (rspec-rails, for example, assigns -# `metadata[:example_group][:described_class]` when you use -# anonymous controller specs) such that changes are written -# back to the top-level metadata hash. -# * Exposes the parent group metadata as -# `[:example_group][:example_group]`. -# -# @private -# -# source://rspec-core//lib/rspec/core/metadata.rb#470 -class RSpec::Core::LegacyExampleGroupHash - include ::RSpec::Core::HashImitatable - extend ::RSpec::Core::HashImitatable::ClassMethods - - # @return [LegacyExampleGroupHash] a new instance of LegacyExampleGroupHash - # - # source://rspec-core//lib/rspec/core/metadata.rb#473 - def initialize(metadata); end - - # source://rspec-core//lib/rspec/core/metadata.rb#479 - def to_h; end - - private - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/metadata.rb#485 - def directly_supports_attribute?(name); end - - # source://rspec-core//lib/rspec/core/metadata.rb#489 - def get_value(name); end - - # source://rspec-core//lib/rspec/core/metadata.rb#493 - def set_value(name, value); end -end - -# This module is included in {ExampleGroup}, making the methods -# available to be called from within example blocks. -# -# @see ClassMethods -# -# source://rspec-core//lib/rspec/core/memoized_helpers.rb#9 -module RSpec::Core::MemoizedHelpers - # @private - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#135 - def initialize(*_arg0); end - - # Wraps the `subject` in `expect` to make it the target of an expectation. - # Designed to read nicely for one-liners. - # - # @example - # - # describe [1, 2, 3] do - # it { is_expected.to be_an Array } - # it { is_expected.not_to include 4 } - # end - # @note This only works if you are using rspec-expectations. - # @see #subject - # @see #should - # @see #should_not - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#120 - def is_expected; end - - # When `should` is called with no explicit receiver, the call is - # delegated to the object returned by `subject`. Combined with an - # implicit subject this supports very concise expressions. - # - # @example - # - # RSpec.describe Person do - # it { should be_eligible_to_vote } - # end - # @note This only works if you are using rspec-expectations. - # @note If you are using RSpec's newer expect-based syntax you may - # want to use `is_expected.to` instead of `should`. - # @see #subject - # @see #is_expected - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#80 - def should(matcher = T.unsafe(nil), message = T.unsafe(nil)); end - - # Just like `should`, `should_not` delegates to the subject (implicit or - # explicit) of the example group. - # - # @example - # - # RSpec.describe Person do - # it { should_not be_eligible_to_vote } - # end - # @note This only works if you are using rspec-expectations. - # @note If you are using RSpec's newer expect-based syntax you may - # want to use `is_expected.to_not` instead of `should_not`. - # @see #subject - # @see #is_expected - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#100 - def should_not(matcher = T.unsafe(nil), message = T.unsafe(nil)); end - - # @example - # - # # Explicit declaration of subject. - # RSpec.describe Person do - # subject { Person.new(:birthdate => 19.years.ago) } - # it "should be eligible to vote" do - # subject.should be_eligible_to_vote - # # ^ ^ explicit reference to subject not recommended - # end - # end - # - # # Implicit subject => { Person.new }. - # RSpec.describe Person do - # it "should be eligible to vote" do - # subject.should be_eligible_to_vote - # # ^ ^ explicit reference to subject not recommended - # end - # end - # - # # One-liner syntax - expectation is set on the subject. - # RSpec.describe Person do - # it { is_expected.to be_eligible_to_vote } - # # or - # it { should be_eligible_to_vote } - # end - # @note `subject` was contributed by Joe Ferris to support the one-liner - # syntax embraced by shoulda matchers: - # - # RSpec.describe Widget do - # it { is_expected.to validate_presence_of(:name) } - # # or - # it { should validate_presence_of(:name) } - # end - # - # While the examples below demonstrate how to use `subject` - # explicitly in examples, we recommend that you define a method with - # an intention revealing name instead. - # @note Because `subject` is designed to create state that is reset - # between each example, and `before(:context)` is designed to setup - # state that is shared across _all_ examples in an example group, - # `subject` is _not_ intended to be used in a `before(:context)` hook. - # @see #should - # @see #should_not - # @see #is_expected - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#57 - def subject; end - - private - - # @private - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#141 - def __init_memoized; end - - # should just be placed in private section, - # but Ruby issues warnings on private attributes. - # and expanding it to the equivalent method upsets Rubocop, - # b/c it should obviously be a reader - # - # @private - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#129 - def __memoized; end - - # @private - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#150 - def enforce_value_expectation(matcher, method_name); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#163 - def matcher_supports_value_expectations?(matcher); end - - class << self - # @private - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#542 - def define_helpers_on(example_group); end - - # Gets the named constant or yields. - # On 1.9, const_defined? / const_get take into account the - # the inheritance by default, and accept an argument to - # disable this behavior. It's important that we don't - # consider inheritance here; each example group level that - # uses a `let` should get its own `LetDefinitions` module. - # - # @private - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#570 - def get_constant_or_yield(example_group, name); end - - # Gets the LetDefinitions module. The module is mixed into - # the example group and is used to hold all let definitions. - # This is done so that the block passed to `let` can be - # forwarded directly on to `define_method`, so that all method - # constructs (including `super` and `return`) can be used in - # a `let` block. - # - # The memoization is provided by a method definition on the - # example group that supers to the LetDefinitions definition - # in order to get the value to memoize. - # - # @private - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#528 - def module_for(example_group); end - end -end - -# This module is extended onto {ExampleGroup}, making the methods -# available to be called from within example group blocks. -# You can think of them as being analagous to class macros. -# -# source://rspec-core//lib/rspec/core/memoized_helpers.rb#274 -module RSpec::Core::MemoizedHelpers::ClassMethods - # Generates a method whose return value is memoized after the first - # call. Useful for reducing duplication between examples that assign - # values to the same local variable. - # - # @example - # - # RSpec.describe Thing do - # let(:thing) { Thing.new } - # - # it "does something" do - # # First invocation, executes block, memoizes and returns result. - # thing.do_something - # - # # Second invocation, returns the memoized value. - # thing.should be_something - # end - # end - # @note `let` _can_ enhance readability when used sparingly (1,2, or - # maybe 3 declarations) in any given example group, but that can - # quickly degrade with overuse. YMMV. - # @note `let` can be configured to be threadsafe or not. - # If it is threadsafe, it will take longer to access the value. - # If it is not threadsafe, it may behave in surprising ways in examples - # that spawn separate threads. Specify this on `RSpec.configure` - # @note Because `let` is designed to create state that is reset between - # each example, and `before(:context)` is designed to setup state that - # is shared across _all_ examples in an example group, `let` is _not_ - # intended to be used in a `before(:context)` hook. - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#306 - def let(name, &block); end - - # Just like `let`, except the block is invoked by an implicit `before` - # hook. This serves a dual purpose of setting up state and providing a - # memoized reference to that state. - # - # @example - # - # class Thing - # def self.count - # @count ||= 0 - # end - # - # def self.count=(val) - # @count += val - # end - # - # def self.reset_count - # @count = 0 - # end - # - # def initialize - # self.class.count += 1 - # end - # end - # - # RSpec.describe Thing do - # after(:example) { Thing.reset_count } - # - # context "using let" do - # let(:thing) { Thing.new } - # - # it "is not invoked implicitly" do - # Thing.count.should eq(0) - # end - # - # it "can be invoked explicitly" do - # thing - # Thing.count.should eq(1) - # end - # end - # - # context "using let!" do - # let!(:thing) { Thing.new } - # - # it "is invoked implicitly" do - # Thing.count.should eq(1) - # end - # - # it "returns memoized version on first invocation" do - # thing - # Thing.count.should eq(1) - # end - # end - # end - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#400 - def let!(name, &block); end - - # Declares a `subject` for an example group which can then be wrapped - # with `expect` using `is_expected` to make it the target of an - # expectation in a concise, one-line example. - # - # Given a `name`, defines a method with that name which returns the - # `subject`. This lets you declare the subject once and access it - # implicitly in one-liners and explicitly using an intention revealing - # name. - # - # When given a `name`, calling `super` in the block is not supported. - # - # @example - # - # RSpec.describe CheckingAccount, "with $50" do - # subject { CheckingAccount.new(Money.new(50, :USD)) } - # it { is_expected.to have_a_balance_of(Money.new(50, :USD)) } - # it { is_expected.not_to be_overdrawn } - # end - # - # RSpec.describe CheckingAccount, "with a non-zero starting balance" do - # subject(:account) { CheckingAccount.new(Money.new(50, :USD)) } - # it { is_expected.not_to be_overdrawn } - # it "has a balance equal to the starting balance" do - # account.balance.should eq(Money.new(50, :USD)) - # end - # end - # @note `subject` can be configured to be threadsafe or not. - # If it is threadsafe, it will take longer to access the value. - # If it is not threadsafe, it may behave in surprising ways in examples - # that spawn separate threads. Specify this on `RSpec.configure` - # @param name [String, Symbol] used to define an accessor with an - # intention revealing name - # @param block defines the value to be returned by `subject` in examples - # @see MemoizedHelpers#should - # @see MemoizedHelpers#should_not - # @see MemoizedHelpers#is_expected - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#444 - def subject(name = T.unsafe(nil), &block); end - - # Just like `subject`, except the block is invoked by an implicit - # `before` hook. This serves a dual purpose of setting up state and - # providing a memoized reference to that state. - # - # @example - # - # class Thing - # def self.count - # @count ||= 0 - # end - # - # def self.count=(val) - # @count += val - # end - # - # def self.reset_count - # @count = 0 - # end - # - # def initialize - # self.class.count += 1 - # end - # end - # - # RSpec.describe Thing do - # after(:example) { Thing.reset_count } - # - # context "using subject" do - # subject { Thing.new } - # - # it "is not invoked implicitly" do - # Thing.count.should eq(0) - # end - # - # it "can be invoked explicitly" do - # subject - # Thing.count.should eq(1) - # end - # end - # - # context "using subject!" do - # subject!(:thing) { Thing.new } - # - # it "is invoked implicitly" do - # Thing.count.should eq(1) - # end - # - # it "returns memoized version on first invocation" do - # subject - # Thing.count.should eq(1) - # end - # end - # end - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#510 - def subject!(name = T.unsafe(nil), &block); end -end - -# Used internally to customize the behavior of the -# memoized hash when used in a `before(:context)` hook. -# -# @private -# -# source://rspec-core//lib/rspec/core/memoized_helpers.rb#200 -class RSpec::Core::MemoizedHelpers::ContextHookMemoized - class << self - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#222 - def fetch_or_store(key, &_block); end - - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#201 - def isolate_for_context_hook(example_group_instance); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/memoized_helpers.rb#256 -class RSpec::Core::MemoizedHelpers::ContextHookMemoized::After < ::RSpec::Core::MemoizedHelpers::ContextHookMemoized - class << self - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#261 - def article; end - - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#257 - def hook_expression; end - - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#265 - def hook_intention; end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/memoized_helpers.rb#241 -class RSpec::Core::MemoizedHelpers::ContextHookMemoized::Before < ::RSpec::Core::MemoizedHelpers::ContextHookMemoized - class << self - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#246 - def article; end - - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#242 - def hook_expression; end - - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#250 - def hook_intention; end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/memoized_helpers.rb#186 -class RSpec::Core::MemoizedHelpers::NonThreadSafeMemoized - # @return [NonThreadSafeMemoized] a new instance of NonThreadSafeMemoized - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#187 - def initialize; end - - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#191 - def fetch_or_store(key); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/memoized_helpers.rb#170 -class RSpec::Core::MemoizedHelpers::ThreadsafeMemoized - # @return [ThreadsafeMemoized] a new instance of ThreadsafeMemoized - # - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#171 - def initialize; end - - # source://rspec-core//lib/rspec/core/memoized_helpers.rb#176 - def fetch_or_store(key); end -end - -# Each ExampleGroup class and Example instance owns an instance of -# Metadata, which is Hash extended to support lazy evaluation of values -# associated with keys that may or may not be used by any example or group. -# -# In addition to metadata that is used internally, this also stores -# user-supplied metadata, e.g. -# -# RSpec.describe Something, :type => :ui do -# it "does something", :slow => true do -# # ... -# end -# end -# -# `:type => :ui` is stored in the Metadata owned by the example group, and -# `:slow => true` is stored in the Metadata owned by the example. These can -# then be used to select which examples are run using the `--tag` option on -# the command line, or several methods on `Configuration` used to filter a -# run (e.g. `filter_run_including`, `filter_run_excluding`, etc). -# -# @see Example#metadata -# @see ExampleGroup.metadata -# @see FilterManager -# @see Configuration#filter_run_including -# @see Configuration#filter_run_excluding -# -# source://rspec-core//lib/rspec/core/metadata.rb#27 -module RSpec::Core::Metadata - class << self - # Returns an enumerator that iteratively walks up the given metadata through all - # example group ancestors, yielding each metadata hash along the way. - # - # @private - # - # source://rspec-core//lib/rspec/core/metadata.rb#71 - def ascend(metadata); end - - # Iteratively walks up from the given metadata through all - # example group ancestors, yielding each metadata hash along the way. - # - # @private - # @yield [metadata] - # - # source://rspec-core//lib/rspec/core/metadata.rb#58 - def ascending(metadata); end - - # Used internally to build a hash from an args array. - # Symbols are converted into hash keys with a value of `true`. - # This is done to support simple tagging using a symbol, rather - # than needing to do `:symbol => true`. - # - # @private - # - # source://rspec-core//lib/rspec/core/metadata.rb#80 - def build_hash_from(args, warn_about_example_group_filtering = T.unsafe(nil)); end - - # @private - # - # source://rspec-core//lib/rspec/core/metadata.rb#94 - def deep_hash_dup(object); end - - # @private - # - # source://rspec-core//lib/rspec/core/metadata.rb#105 - def id_from(metadata); end - - # @private - # - # source://rspec-core//lib/rspec/core/metadata.rb#110 - def location_tuple_from(metadata); end - - # @api private - # @param line [String] current code line - # @return [String] relative path to line - # - # source://rspec-core//lib/rspec/core/metadata.rb#44 - def relative_path(line); end - - # Matches strings either at the beginning of the input or prefixed with a - # whitespace, containing the current path, either postfixed with the - # separator, or at the end of the string. Match groups are the character - # before and the character after the string if any. - # - # http://rubular.com/r/fT0gmX6VJX - # http://rubular.com/r/duOrD4i3wb - # http://rubular.com/r/sbAMHFrOx1 - # - # source://rspec-core//lib/rspec/core/metadata.rb#36 - def relative_path_regex; end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/metadata.rb#247 -class RSpec::Core::Metadata::ExampleGroupHash < ::RSpec::Core::Metadata::HashPopulator - private - - # source://rspec-core//lib/rspec/core/metadata.rb#304 - def described_class; end - - # source://rspec-core//lib/rspec/core/metadata.rb#311 - def full_description; end - - class << self - # source://rspec-core//lib/rspec/core/metadata.rb#265 - def backwards_compatibility_default_proc(&example_group_selector); end - - # source://rspec-core//lib/rspec/core/metadata.rb#248 - def create(parent_group_metadata, user_metadata, example_group_index, *args, &block); end - - # source://rspec-core//lib/rspec/core/metadata.rb#261 - def hash_with_backwards_compatibility_default_proc; end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/metadata.rb#213 -class RSpec::Core::Metadata::ExampleHash < ::RSpec::Core::Metadata::HashPopulator - private - - # source://rspec-core//lib/rspec/core/metadata.rb#234 - def described_class; end - - # source://rspec-core//lib/rspec/core/metadata.rb#238 - def full_description; end - - class << self - # source://rspec-core//lib/rspec/core/metadata.rb#214 - def create(group_metadata, user_metadata, index_provider, description, block); end - end -end - -# Used internally to populate metadata hashes with computed keys -# managed by RSpec. -# -# @private -# -# source://rspec-core//lib/rspec/core/metadata.rb#117 -class RSpec::Core::Metadata::HashPopulator - # @return [HashPopulator] a new instance of HashPopulator - # - # source://rspec-core//lib/rspec/core/metadata.rb#120 - def initialize(metadata, user_metadata, index_provider, description_args, block); end - - # Returns the value of attribute block. - # - # source://rspec-core//lib/rspec/core/metadata.rb#118 - def block; end - - # Returns the value of attribute description_args. - # - # source://rspec-core//lib/rspec/core/metadata.rb#118 - def description_args; end - - # Returns the value of attribute metadata. - # - # source://rspec-core//lib/rspec/core/metadata.rb#118 - def metadata; end - - # source://rspec-core//lib/rspec/core/metadata.rb#128 - def populate; end - - # Returns the value of attribute user_metadata. - # - # source://rspec-core//lib/rspec/core/metadata.rb#118 - def user_metadata; end - - private - - # source://rspec-core//lib/rspec/core/metadata.rb#178 - def build_description_from(parent_description = T.unsafe(nil), my_description = T.unsafe(nil)); end - - # source://rspec-core//lib/rspec/core/metadata.rb#185 - def build_scoped_id_for(file_path); end - - # source://rspec-core//lib/rspec/core/metadata.rb#170 - def description_separator(parent_part, child_part); end - - # source://rspec-core//lib/rspec/core/metadata.rb#191 - def ensure_valid_user_keys; end - - # source://rspec-core//lib/rspec/core/metadata.rb#164 - def file_path_and_line_number_from(backtrace); end - - # source://rspec-core//lib/rspec/core/metadata.rb#143 - def populate_location_attributes; end -end - -# @private -# -# source://rspec-core//lib/rspec/core/metadata.rb#325 -RSpec::Core::Metadata::RESERVED_KEYS = T.let(T.unsafe(nil), Array) - -# Contains metadata filtering logic. This has been extracted from -# the metadata classes because it operates ON a metadata hash but -# does not manage any of the state in the hash. We're moving towards -# having metadata be a raw hash (not a custom subclass), so externalizing -# this filtering logic helps us move in that direction. -# -# source://rspec-core//lib/rspec/core/metadata_filter.rb#8 -module RSpec::Core::MetadataFilter - class << self - # @private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/metadata_filter.rb#11 - def apply?(predicate, filters, metadata); end - - # @private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/metadata_filter.rb#16 - def filter_applies?(key, filter_value, metadata); end - - # @private - # - # source://rspec-core//lib/rspec/core/metadata_filter.rb#33 - def silence_metadata_example_group_deprecations; end - - private - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/metadata_filter.rb#42 - def filter_applies_to_any_value?(key, value, metadata); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/metadata_filter.rb#73 - def filters_apply?(key, value, metadata); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/metadata_filter.rb#46 - def id_filter_applies?(rerun_paths_to_scoped_ids, metadata); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/metadata_filter.rb#54 - def location_filter_applies?(locations, metadata); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/metadata_filter.rb#65 - def proc_filter_applies?(key, proc, metadata); end - end -end - -# Provides a single exception instance that provides access to -# multiple sub-exceptions. This is used in situations where a single -# individual spec has multiple exceptions, such as one in the `it` block -# and one in an `after` block. -# -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#458 -class RSpec::Core::MultipleExceptionError < ::StandardError - include ::RSpec::Core::MultipleExceptionError::InterfaceTag - - # @param exceptions [Array] The initial list of exceptions. - # @return [MultipleExceptionError] a new instance of MultipleExceptionError - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#519 - def initialize(*exceptions); end - - # @return [nil] Provided only for interface compatibility with - # `RSpec::Expectations::MultipleExpectationsNotMetError`. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#516 - def aggregation_block_label; end - - # @return [Hash] Metadata used by RSpec for formatting purposes. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#512 - def aggregation_metadata; end - - # @return [Array] The list of failures and other exceptions, combined. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#509 - def all_exceptions; end - - # return [String] A description of the failure/error counts. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#544 - def exception_count_description; end - - # @return [Array] The list of failures. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#503 - def failures; end - - # @note RSpec does not actually use this -- instead it formats each exception - # individually. - # @return [String] Combines all the exception messages into a single string. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#534 - def message; end - - # @return [Array] The list of other errors. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#506 - def other_errors; end - - # @return [String] A summary of the failure, including the block label and a count of failures. - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#539 - def summary; end -end - -# Used so there is a common module in the ancestor chain of this class -# and `RSpec::Expectations::MultipleExpectationsNotMetError`, which allows -# code to detect exceptions that are instances of either, without first -# checking to see if rspec-expectations is loaded. -# -# @private -# -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#464 -module RSpec::Core::MultipleExceptionError::InterfaceTag - # Appends the provided exception to the list. - # - # @param exception [Exception] Exception to append to the list. - # @private - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#468 - def add(exception); end - - class << self - # Provides a way to force `ex` to be something that satisfies the multiple - # exception error interface. If it already satisfies it, it will be returned; - # otherwise it will wrap it in a `MultipleExceptionError`. - # - # @private - # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#494 - def for(ex); end - end -end - -# Notifications are value objects passed to formatters to provide them -# with information about a particular event of interest. -# -# source://rspec-core//lib/rspec/core/notifications.rb#9 -module RSpec::Core::Notifications; end - -# `CustomNotification` is used when sending custom events to formatters / -# other registered listeners, it creates attributes based on supplied hash -# of options. -# -# source://rspec-core//lib/rspec/core/notifications.rb#512 -class RSpec::Core::Notifications::CustomNotification < ::Struct - class << self - # Build a custom notification based on the supplied option key / values. - # - # @param options [Hash] A hash of method / value pairs to create on this notification - # @return [CustomNotification] - # - # source://rspec-core//lib/rspec/core/notifications.rb#517 - def for(options = T.unsafe(nil)); end - end -end - -# The `DeprecationNotification` is issued by the reporter when a deprecated -# part of RSpec is encountered. It represents information about the -# deprecated call site. -# -# @attr message [String] A custom message about the deprecation -# @attr deprecated [String] A custom message about the deprecation (alias of -# message) -# @attr replacement [String] An optional replacement for the deprecation -# @attr call_site [String] An optional call site from which the deprecation -# was issued -# -# source://rspec-core//lib/rspec/core/notifications.rb#493 -class RSpec::Core::Notifications::DeprecationNotification < ::Struct - # An optional call site from which the deprecation - # was issued - # - # @return [String] the current value of call_site - def call_site; end - - # An optional call site from which the deprecation - # was issued - # - # @param value [String] the value to set the attribute call_site to. - # @return [String] the newly set value - def call_site=(_); end - - # A custom message about the deprecation (alias of - # message) - # - # @return [String] the current value of deprecated - def deprecated; end - - # A custom message about the deprecation (alias of - # message) - # - # @param value [String] the value to set the attribute deprecated to. - # @return [String] the newly set value - def deprecated=(_); end - - # A custom message about the deprecation - # - # @return [String] the current value of message - def message; end - - # A custom message about the deprecation - # - # @param value [String] the value to set the attribute message to. - # @return [String] the newly set value - def message=(_); end - - # An optional replacement for the deprecation - # - # @return [String] the current value of replacement - def replacement; end - - # An optional replacement for the deprecation - # - # @param value [String] the value to set the attribute replacement to. - # @return [String] the newly set value - def replacement=(_); end - - class << self - def [](*_arg0); end - - # Convenience way to initialize the notification - # - # @api - # - # source://rspec-core//lib/rspec/core/notifications.rb#499 - def from_hash(data); end - - def inspect; end - def keyword_init?; end - def members; end - - private - - def new(*_arg0); end - end -end - -# The `ExampleNotification` represents notifications sent by the reporter -# which contain information about the current (or soon to be) example. -# It is used by formatters to access information about that example. -# -# @attr example [RSpec::Core::Example] the current example -# @example -# def example_started(notification) -# puts "Hey I started #{notification.example.description}" -# end -# -# source://rspec-core//lib/rspec/core/notifications.rb#38 -class RSpec::Core::Notifications::ExampleNotification < ::Struct - # the current example - # - # @return [RSpec::Core::Example] the current value of example - def example; end - - # the current example - # - # @param value [RSpec::Core::Example] the value to set the attribute example to. - # @return [RSpec::Core::Example] the newly set value - def example=(_); end - - class << self - def [](*_arg0); end - - # @private - # - # source://rspec-core//lib/rspec/core/notifications.rb#41 - def for(example); end - - def inspect; end - def keyword_init?; end - def members; end - - private - - def new(*_arg0); end - end -end - -# The `ExamplesNotification` represents notifications sent by the reporter -# which contain information about the suites examples. -# -# @example -# def stop(notification) -# puts "Hey I ran #{notification.examples.size}" -# end -# -# source://rspec-core//lib/rspec/core/notifications.rb#69 -class RSpec::Core::Notifications::ExamplesNotification - # @return [ExamplesNotification] a new instance of ExamplesNotification - # - # source://rspec-core//lib/rspec/core/notifications.rb#70 - def initialize(reporter); end - - # @return [Array] list of examples - # - # source://rspec-core//lib/rspec/core/notifications.rb#75 - def examples; end - - # @return [Array] list of failed examples - # - # source://rspec-core//lib/rspec/core/notifications.rb#80 - def failed_examples; end - - # @return [Array] returns failed examples as notifications - # - # source://rspec-core//lib/rspec/core/notifications.rb#97 - def failure_notifications; end - - # @return [String] The list of failed examples, fully formatted in the way - # that RSpec's built-in formatters emit. - # - # source://rspec-core//lib/rspec/core/notifications.rb#110 - def fully_formatted_failed_examples(colorizer = T.unsafe(nil)); end - - # @return [String] The list of pending examples, fully formatted in the - # way that RSpec's built-in formatters emit. - # - # source://rspec-core//lib/rspec/core/notifications.rb#122 - def fully_formatted_pending_examples(colorizer = T.unsafe(nil)); end - - # @return [Array] returns examples as notifications - # - # source://rspec-core//lib/rspec/core/notifications.rb#91 - def notifications; end - - # @return [Array] list of pending examples - # - # source://rspec-core//lib/rspec/core/notifications.rb#85 - def pending_examples; end - - # returns pending examples as notifications - # - # @return [Array] - # - # source://rspec-core//lib/rspec/core/notifications.rb#104 - def pending_notifications; end - - private - - # source://rspec-core//lib/rspec/core/notifications.rb#136 - def format_examples(examples); end -end - -# The `FailedExampleNotification` extends `ExampleNotification` with -# things useful for examples that have failure info -- typically a -# failed or pending spec. -# -# @attr example [RSpec::Core::Example] the current example -# @example -# def example_failed(notification) -# puts "Hey I failed :(" -# puts "Here's my stack trace" -# puts notification.exception.backtrace.join("\n") -# end -# @see ExampleNotification -# -# source://rspec-core//lib/rspec/core/notifications.rb#156 -class RSpec::Core::Notifications::FailedExampleNotification < ::RSpec::Core::Notifications::ExampleNotification - # @return [FailedExampleNotification] a new instance of FailedExampleNotification - # - # source://rspec-core//lib/rspec/core/notifications.rb#213 - def initialize(example, exception_presenter = T.unsafe(nil)); end - - # Returns the failures colorized formatted backtrace. - # - # @param colorizer [#wrap] An object to colorize the message_lines by - # @return [Array] the examples colorized backtrace lines - # - # source://rspec-core//lib/rspec/core/notifications.rb#195 - def colorized_formatted_backtrace(colorizer = T.unsafe(nil)); end - - # Returns the message generated for this failure colorized line by line. - # - # @param colorizer [#wrap] An object to colorize the message_lines by - # @return [Array] The example failure message colorized - # - # source://rspec-core//lib/rspec/core/notifications.rb#180 - def colorized_message_lines(colorizer = T.unsafe(nil)); end - - # @return [String] The example description - # - # source://rspec-core//lib/rspec/core/notifications.rb#165 - def description; end - - # @return [Exception] The example failure - # - # source://rspec-core//lib/rspec/core/notifications.rb#160 - def exception; end - - # Returns the failures formatted backtrace. - # - # @return [Array] the examples backtrace lines - # - # source://rspec-core//lib/rspec/core/notifications.rb#187 - def formatted_backtrace; end - - # @return [String] The failure information fully formatted in the way that - # RSpec's built-in formatters emit. - # - # source://rspec-core//lib/rspec/core/notifications.rb#201 - def fully_formatted(failure_number, colorizer = T.unsafe(nil)); end - - # @return [Array] The failure information fully formatted in the way that - # RSpec's built-in formatters emit, split by line. - # - # source://rspec-core//lib/rspec/core/notifications.rb#207 - def fully_formatted_lines(failure_number, colorizer = T.unsafe(nil)); end - - # Returns the message generated for this failure line by line. - # - # @return [Array] The example failure message - # - # source://rspec-core//lib/rspec/core/notifications.rb#172 - def message_lines; end - - class << self - def new(*_arg0); end - end -end - -# The `GroupNotification` represents notifications sent by the reporter -# which contain information about the currently running (or soon to be) -# example group. It is used by formatters to access information about that -# group. -# -# @attr group [RSpec::Core::ExampleGroup] the current group -# @example -# def example_group_started(notification) -# puts "Hey I started #{notification.group.description}" -# end -# -# source://rspec-core//lib/rspec/core/notifications.rb#258 -class RSpec::Core::Notifications::GroupNotification < ::Struct - # the current group - # - # @return [RSpec::Core::ExampleGroup] the current value of group - def group; end - - # the current group - # - # @param value [RSpec::Core::ExampleGroup] the value to set the attribute group to. - # @return [RSpec::Core::ExampleGroup] the newly set value - def group=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# The `MessageNotification` encapsulates generic messages that the reporter -# sends to formatters. -# -# @attr message [String] the message -# -# source://rspec-core//lib/rspec/core/notifications.rb#264 -class RSpec::Core::Notifications::MessageNotification < ::Struct - # the message - # - # @return [String] the current value of message - def message; end - - # the message - # - # @param value [String] the value to set the attribute message to. - # @return [String] the newly set value - def message=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/notifications.rb#11 -module RSpec::Core::Notifications::NullColorizer - private - - # source://rspec-core//lib/rspec/core/notifications.rb#14 - def wrap(line, _code_or_symbol); end - - class << self - # source://rspec-core//lib/rspec/core/notifications.rb#14 - def wrap(line, _code_or_symbol); end - end -end - -# `NullNotification` represents a placeholder value for notifications that -# currently require no information, but we may wish to extend in future. -# -# source://rspec-core//lib/rspec/core/notifications.rb#506 -class RSpec::Core::Notifications::NullNotification; end - -# @deprecated Use {FailedExampleNotification} instead. -# -# source://rspec-core//lib/rspec/core/notifications.rb#223 -class RSpec::Core::Notifications::PendingExampleFailedAsExpectedNotification < ::RSpec::Core::Notifications::FailedExampleNotification; end - -# @deprecated Use {FailedExampleNotification} instead. -# -# source://rspec-core//lib/rspec/core/notifications.rb#220 -class RSpec::Core::Notifications::PendingExampleFixedNotification < ::RSpec::Core::Notifications::FailedExampleNotification; end - -# The `ProfileNotification` holds information about the results of running a -# test suite when profiling is enabled. It is used by formatters to provide -# information at the end of the test run for profiling information. -# -# @attr duration [Float] the time taken (in seconds) to run the suite -# @attr examples [Array] the examples run -# @attr number_of_examples [Fixnum] the number of examples to profile -# @attr example_groups [Array] example groups run -# -# source://rspec-core//lib/rspec/core/notifications.rb#429 -class RSpec::Core::Notifications::ProfileNotification - # @return [ProfileNotification] a new instance of ProfileNotification - # - # source://rspec-core//lib/rspec/core/notifications.rb#430 - def initialize(duration, examples, number_of_examples, example_groups); end - - # the time taken (in seconds) to run the suite - # - # @return [Float] the current value of duration - # - # source://rspec-core//lib/rspec/core/notifications.rb#436 - def duration; end - - # the examples run - # - # @return [Array] the current value of examples - # - # source://rspec-core//lib/rspec/core/notifications.rb#436 - def examples; end - - # the number of examples to profile - # - # @return [Fixnum] the current value of number_of_examples - # - # source://rspec-core//lib/rspec/core/notifications.rb#436 - def number_of_examples; end - - # @return [String] the percentage of total time taken - # - # source://rspec-core//lib/rspec/core/notifications.rb#455 - def percentage; end - - # @return [Float] the time taken (in seconds) to run the slowest examples - # - # source://rspec-core//lib/rspec/core/notifications.rb#447 - def slow_duration; end - - # @return [Array] the slowest examples - # - # source://rspec-core//lib/rspec/core/notifications.rb#439 - def slowest_examples; end - - # @return [Array] the slowest example groups - # - # source://rspec-core//lib/rspec/core/notifications.rb#464 - def slowest_groups; end - - private - - # source://rspec-core//lib/rspec/core/notifications.rb#470 - def calculate_slowest_groups; end -end - -# The `SeedNotification` holds the seed used to randomize examples and -# whether that seed has been used or not. -# -# @attr seed [Fixnum] the seed used to randomize ordering -# @attr used [Boolean] whether the seed has been used or not -# -# source://rspec-core//lib/rspec/core/notifications.rb#271 -class RSpec::Core::Notifications::SeedNotification < ::Struct - # @return [String] The seed information fully formatted in the way that - # RSpec's built-in formatters emit. - # - # source://rspec-core//lib/rspec/core/notifications.rb#282 - def fully_formatted; end - - # the seed used to randomize ordering - # - # @return [Fixnum] the current value of seed - def seed; end - - # the seed used to randomize ordering - # - # @param value [Fixnum] the value to set the attribute seed to. - # @return [Fixnum] the newly set value - def seed=(_); end - - # @api - # @return [Boolean] has the seed been used? - # - # source://rspec-core//lib/rspec/core/notifications.rb#275 - def seed_used?; end - - # whether the seed has been used or not - # - # @param value [Boolean] the value to set the attribute used to. - # @return [Boolean] the newly set value - def used=(_); end - - private - - # whether the seed has been used or not - # - # @return [Boolean] the current value of used - def used; end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# The `SkippedExampleNotification` extends `ExampleNotification` with -# things useful for specs that are skipped. -# -# @attr example [RSpec::Core::Example] the current example -# @see ExampleNotification -# -# source://rspec-core//lib/rspec/core/notifications.rb#230 -class RSpec::Core::Notifications::SkippedExampleNotification < ::RSpec::Core::Notifications::ExampleNotification - # @return [String] The pending detail fully formatted in the way that - # RSpec's built-in formatters emit. - # - # source://rspec-core//lib/rspec/core/notifications.rb#235 - def fully_formatted(pending_number, colorizer = T.unsafe(nil)); end - - class << self - def new(*_arg0); end - end -end - -# The `StartNotification` represents a notification sent by the reporter -# when the suite is started. It contains the expected amount of examples -# to be executed, and the load time of RSpec. -# -# @attr count [Fixnum] the number counted -# @attr load_time [Float] the number of seconds taken to boot RSpec -# and load the spec files -# -# source://rspec-core//lib/rspec/core/notifications.rb#26 -class RSpec::Core::Notifications::StartNotification < ::Struct - # the number counted - # - # @return [Fixnum] the current value of count - def count; end - - # the number counted - # - # @param value [Fixnum] the value to set the attribute count to. - # @return [Fixnum] the newly set value - def count=(_); end - - # the number of seconds taken to boot RSpec - # and load the spec files - # - # @return [Float] the current value of load_time - def load_time; end - - # the number of seconds taken to boot RSpec - # and load the spec files - # - # @param value [Float] the value to set the attribute load_time to. - # @return [Float] the newly set value - def load_time=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# The `SummaryNotification` holds information about the results of running -# a test suite. It is used by formatters to provide information at the end -# of the test run. -# -# @attr duration [Float] the time taken (in seconds) to run the suite -# @attr examples [Array] the examples run -# @attr failed_examples [Array] the failed examples -# @attr pending_examples [Array] the pending examples -# @attr load_time [Float] the number of seconds taken to boot RSpec -# and load the spec files -# @attr errors_outside_of_examples_count [Integer] the number of errors that -# have occurred processing -# the spec suite -# -# source://rspec-core//lib/rspec/core/notifications.rb#300 -class RSpec::Core::Notifications::SummaryNotification < ::Struct - include ::RSpec::Core::ShellEscape - - # Formats failures into a rerunable command format. - # - # @api public - # @param colorizer [#wrap] An object which supports wrapping text with - # specific colors. - # @return [String] A colorized summary line. - # - # source://rspec-core//lib/rspec/core/notifications.rb#364 - def colorized_rerun_commands(colorizer = T.unsafe(nil)); end - - # Wraps the results line with colors based on the configured - # colors for failure, pending, and success. Defaults to red, - # yellow, green accordingly. - # - # @api public - # @param colorizer [#wrap] An object which supports wrapping text with - # specific colors. - # @return [String] A colorized results line. - # - # source://rspec-core//lib/rspec/core/notifications.rb#347 - def colorized_totals_line(colorizer = T.unsafe(nil)); end - - # the time taken (in seconds) to run the suite - # - # @return [Float] the current value of duration - def duration; end - - # the time taken (in seconds) to run the suite - # - # @param value [Float] the value to set the attribute duration to. - # @return [Float] the newly set value - def duration=(_); end - - # the number of errors that - # have occurred processing - # the spec suite - # - # @return [Integer] the current value of errors_outside_of_examples_count - def errors_outside_of_examples_count; end - - # the number of errors that - # have occurred processing - # the spec suite - # - # @param value [Integer] the value to set the attribute errors_outside_of_examples_count to. - # @return [Integer] the newly set value - def errors_outside_of_examples_count=(_); end - - # @api - # @return [Fixnum] the number of examples run - # - # source://rspec-core//lib/rspec/core/notifications.rb#306 - def example_count; end - - # the examples run - # - # @return [Array] the current value of examples - def examples; end - - # the examples run - # - # @param value [Array] the value to set the attribute examples to. - # @return [Array] the newly set value - def examples=(_); end - - # the failed examples - # - # @return [Array] the current value of failed_examples - def failed_examples; end - - # the failed examples - # - # @param value [Array] the value to set the attribute failed_examples to. - # @return [Array] the newly set value - def failed_examples=(_); end - - # @api - # @return [Fixnum] the number of failed examples - # - # source://rspec-core//lib/rspec/core/notifications.rb#312 - def failure_count; end - - # @return [String] a formatted version of the time it took to run the - # suite - # - # source://rspec-core//lib/rspec/core/notifications.rb#374 - def formatted_duration; end - - # @return [String] a formatted version of the time it took to boot RSpec - # and load the spec files - # - # source://rspec-core//lib/rspec/core/notifications.rb#380 - def formatted_load_time; end - - # @return [String] The summary information fully formatted in the way that - # RSpec's built-in formatters emit. - # - # source://rspec-core//lib/rspec/core/notifications.rb#386 - def fully_formatted(colorizer = T.unsafe(nil)); end - - # the number of seconds taken to boot RSpec - # and load the spec files - # - # @return [Float] the current value of load_time - def load_time; end - - # the number of seconds taken to boot RSpec - # and load the spec files - # - # @param value [Float] the value to set the attribute load_time to. - # @return [Float] the newly set value - def load_time=(_); end - - # @api - # @return [Fixnum] the number of pending examples - # - # source://rspec-core//lib/rspec/core/notifications.rb#318 - def pending_count; end - - # the pending examples - # - # @return [Array] the current value of pending_examples - def pending_examples; end - - # the pending examples - # - # @param value [Array] the value to set the attribute pending_examples to. - # @return [Array] the newly set value - def pending_examples=(_); end - - # @api - # @return [String] A line summarising the result totals of the spec run. - # - # source://rspec-core//lib/rspec/core/notifications.rb#324 - def totals_line; end - - private - - # source://rspec-core//lib/rspec/core/notifications.rb#408 - def duplicate_rerun_locations; end - - # source://rspec-core//lib/rspec/core/notifications.rb#402 - def rerun_argument_for(example); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# # Used in place of a {Reporter} for situations where we don't want reporting output. -# -# @private -# -# source://rspec-core//lib/rspec/core/reporter.rb#259 -class RSpec::Core::NullReporter - class << self - private - - # source://rspec-core//lib/rspec/core/reporter.rb#260 - def method_missing(*_arg0); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/ordering.rb#4 -module RSpec::Core::Ordering; end - -# Manages ordering configuration. -# -# @note This is not intended to be used externally. Use -# the APIs provided by `RSpec::Core::Configuration` instead. -# @private -# -# source://rspec-core//lib/rspec/core/ordering.rb#144 -class RSpec::Core::Ordering::ConfigurationManager - # @return [ConfigurationManager] a new instance of ConfigurationManager - # - # source://rspec-core//lib/rspec/core/ordering.rb#147 - def initialize; end - - # source://rspec-core//lib/rspec/core/ordering.rb#190 - def force(hash); end - - # source://rspec-core//lib/rspec/core/ordering.rb#164 - def order=(type); end - - # Returns the value of attribute ordering_registry. - # - # source://rspec-core//lib/rspec/core/ordering.rb#145 - def ordering_registry; end - - # source://rspec-core//lib/rspec/core/ordering.rb#201 - def register_ordering(name, strategy = T.unsafe(nil)); end - - # Returns the value of attribute seed. - # - # source://rspec-core//lib/rspec/core/ordering.rb#145 - def seed; end - - # source://rspec-core//lib/rspec/core/ordering.rb#158 - def seed=(seed); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/ordering.rb#154 - def seed_used?; end -end - -# Orders items based on a custom block. -# -# @private -# -# source://rspec-core//lib/rspec/core/ordering.rb#71 -class RSpec::Core::Ordering::Custom - # @return [Custom] a new instance of Custom - # - # source://rspec-core//lib/rspec/core/ordering.rb#72 - def initialize(callable); end - - # source://rspec-core//lib/rspec/core/ordering.rb#76 - def order(list); end -end - -# A strategy which delays looking up the ordering until needed -# -# @private -# -# source://rspec-core//lib/rspec/core/ordering.rb#83 -class RSpec::Core::Ordering::Delayed - # @return [Delayed] a new instance of Delayed - # - # source://rspec-core//lib/rspec/core/ordering.rb#84 - def initialize(registry, name); end - - # source://rspec-core//lib/rspec/core/ordering.rb#89 - def order(list); end - - private - - # source://rspec-core//lib/rspec/core/ordering.rb#99 - def lookup_strategy; end - - # source://rspec-core//lib/rspec/core/ordering.rb#95 - def strategy; end -end - -# The default global ordering (defined order). -# -# @private -# -# source://rspec-core//lib/rspec/core/ordering.rb#7 -class RSpec::Core::Ordering::Identity - # source://rspec-core//lib/rspec/core/ordering.rb#8 - def order(items); end -end - -# Orders items randomly. -# -# @private -# -# source://rspec-core//lib/rspec/core/ordering.rb#15 -class RSpec::Core::Ordering::Random - # @return [Random] a new instance of Random - # - # source://rspec-core//lib/rspec/core/ordering.rb#16 - def initialize(configuration); end - - # source://rspec-core//lib/rspec/core/ordering.rb#25 - def order(items); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/ordering.rb#21 - def used?; end - - private - - # http://en.wikipedia.org/wiki/Jenkins_hash_function - # Jenkins provides a good distribution and is simpler than MD5. - # It's a bit slower than MD5 (primarily because `Digest::MD5` is - # implemented in C) but has the advantage of not requiring us - # to load another part of stdlib, which we try to minimize. - # - # source://rspec-core//lib/rspec/core/ordering.rb#39 - def jenkins_hash_digest(string); end -end - -# source://rspec-core//lib/rspec/core/ordering.rb#58 -RSpec::Core::Ordering::Random::MAX_32_BIT = T.let(T.unsafe(nil), Integer) - -# Orders items by modification time (most recent modified first). -# -# @private -# -# source://rspec-core//lib/rspec/core/ordering.rb#63 -class RSpec::Core::Ordering::RecentlyModified - # source://rspec-core//lib/rspec/core/ordering.rb#64 - def order(list); end -end - -# Stores the different ordering strategies. -# -# @private -# -# source://rspec-core//lib/rspec/core/ordering.rb#107 -class RSpec::Core::Ordering::Registry - # @return [Registry] a new instance of Registry - # - # source://rspec-core//lib/rspec/core/ordering.rb#108 - def initialize(configuration); end - - # source://rspec-core//lib/rspec/core/ordering.rb#122 - def fetch(name, &fallback); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/ordering.rb#126 - def has_strategy?(name); end - - # source://rspec-core//lib/rspec/core/ordering.rb#130 - def register(sym, strategy); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/ordering.rb#134 - def used_random_seed?; end -end - -# @private -# -# source://rspec-core//lib/rspec/core/output_wrapper.rb#4 -class RSpec::Core::OutputWrapper - # @private - # @return [OutputWrapper] a new instance of OutputWrapper - # - # source://rspec-core//lib/rspec/core/output_wrapper.rb#9 - def initialize(output); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def <<(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def advise(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def autoclose=(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def autoclose?(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def beep(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def binmode(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def binmode?(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def check_winsize_changed(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def clear_screen(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def close(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def close_on_exec=(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def close_on_exec?(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def close_read(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def close_write(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def closed?(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def console_mode(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def console_mode=(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def cooked(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def cooked!(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def cursor(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def cursor=(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def cursor_down(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def cursor_left(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def cursor_right(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def cursor_up(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def each(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def each_byte(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def each_char(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def each_codepoint(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def each_line(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def echo=(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def echo?(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def eof(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def eof?(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def erase_line(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def erase_screen(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def external_encoding(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def fcntl(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def fdatasync(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def fileno(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def flush(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def fsync(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def getbyte(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def getc(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def getch(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def getpass(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def gets(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def goto(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def goto_column(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def iflush(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def inspect(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def internal_encoding(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def ioctl(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def ioflush(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def isatty(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def lineno(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def lineno=(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#17 - def method_missing(name, *args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def noecho(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def nread(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def oflush(*args, &block); end - - # @private - # - # source://rspec-core//lib/rspec/core/output_wrapper.rb#6 - def output; end - - # @private - # - # source://rspec-core//lib/rspec/core/output_wrapper.rb#6 - def output=(_arg0); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def path(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def pathconf(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def pid(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def pos(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def pos=(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def pread(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def pressed?(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def print(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def printf(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def putc(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def puts(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def pwrite(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def raw(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def raw!(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def read(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def read_nonblock(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def readbyte(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def readchar(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def readline(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def readlines(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def readpartial(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def ready?(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def reopen(*args, &block); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/output_wrapper.rb#13 - def respond_to?(name, priv = T.unsafe(nil)); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def rewind(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def scroll_backward(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def scroll_forward(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def seek(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def set_encoding(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def set_encoding_by_bom(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def stat(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def sync(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def sync=(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def sysread(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def sysseek(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def syswrite(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def tell(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def timeout(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def timeout=(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def to_i(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def to_io(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def to_path(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def tty?(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def ungetbyte(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def ungetc(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def wait(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def wait_priority(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def wait_readable(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def wait_writable(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def winsize(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def winsize=(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def write(*args, &block); end - - # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 - def write_nonblock(*args, &block); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/option_parser.rb#6 -class RSpec::Core::Parser - # @return [Parser] a new instance of Parser - # - # source://rspec-core//lib/rspec/core/option_parser.rb#13 - def initialize(original_args); end - - # Returns the value of attribute original_args. - # - # source://rspec-core//lib/rspec/core/option_parser.rb#11 - def original_args; end - - # source://rspec-core//lib/rspec/core/option_parser.rb#17 - def parse(source = T.unsafe(nil)); end - - private - - # source://rspec-core//lib/rspec/core/option_parser.rb#312 - def add_tag_filter(options, filter_type, tag_name, value = T.unsafe(nil)); end - - # source://rspec-core//lib/rspec/core/option_parser.rb#320 - def configure_only_failures(options); end - - # source://rspec-core//lib/rspec/core/option_parser.rb#39 - def parser(options); end - - # source://rspec-core//lib/rspec/core/option_parser.rb#316 - def set_fail_fast(options, value); end - - class << self - # source://rspec-core//lib/rspec/core/option_parser.rb#7 - def parse(args, source = T.unsafe(nil)); end - end -end - -# Provides methods to mark examples as pending. These methods are available -# to be called from within any example or hook. -# -# source://rspec-core//lib/rspec/core/pending.rb#5 -module RSpec::Core::Pending - # Marks an example as pending. The rest of the example will still be - # executed, and if it passes the example will fail to indicate that the - # pending can be removed. - # - # @example - # describe "some behaviour" do - # # reported as "Pending: no reason given" - # it "is pending with no message" do - # pending - # raise "broken" - # end - # - # # reported as "Pending: something else getting finished" - # it "is pending with a custom message" do - # pending("something else getting finished") - # raise "broken" - # end - # end - # @note When using `pending` inside an example body using this method - # hooks, such as `before(:example)`, have already be run. This means that - # a failure from the code in the `before` hook will prevent the example - # from being considered pending, as the example body would not be - # executed. If you need to consider hooks as pending as well you can use - # the pending metadata as an alternative, e.g. - # `it "does something", pending: "message"`. - # @overload pending - # @overload pending - # @param message [String] optional message to add to the summary report. - # - # source://rspec-core//lib/rspec/core/pending.rb#62 - def pending(message = T.unsafe(nil), &_block); end - - # Marks an example as pending and skips execution. - # - # @example - # describe "an example" do - # # reported as "Pending: no reason given" - # it "is skipped with no message" do - # skip - # end - # - # # reported as "Pending: something else getting finished" - # it "is skipped with a custom message" do - # skip "something else getting finished" - # end - # end - # @overload skip - # @overload skip - # @param message [String] optional message to add to the summary report. - # @raise [SkipDeclaredInExample] - # - # source://rspec-core//lib/rspec/core/pending.rb#110 - def skip(message = T.unsafe(nil)); end - - class << self - # Mark example as fixed. - # - # @param example [RSpec::Core::Example] the example to mark as fixed - # @private - # - # source://rspec-core//lib/rspec/core/pending.rb#152 - def mark_fixed!(example); end - - # Mark example as pending. - # - # @param example [RSpec::Core::Example] the example to mark as pending - # @param message_or_bool [Boolean, String] the message to use, or true - # @private - # - # source://rspec-core//lib/rspec/core/pending.rb#135 - def mark_pending!(example, message_or_bool); end - - # Mark example as skipped. - # - # @param example [RSpec::Core::Example] the example to mark as skipped - # @param message_or_bool [Boolean, String] the message to use, or true - # @private - # - # source://rspec-core//lib/rspec/core/pending.rb#124 - def mark_skipped!(example, message_or_bool); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/pending.rb#29 -RSpec::Core::Pending::NOT_YET_IMPLEMENTED = T.let(T.unsafe(nil), String) - -# @private -# -# source://rspec-core//lib/rspec/core/pending.rb#26 -RSpec::Core::Pending::NO_REASON_GIVEN = T.let(T.unsafe(nil), String) - -# source://rspec-core//lib/rspec/core/pending.rb#22 -class RSpec::Core::Pending::PendingExampleFixedError < ::StandardError; end - -# Raised in the middle of an example to indicate that it should be marked -# as skipped. -# -# source://rspec-core//lib/rspec/core/pending.rb#8 -class RSpec::Core::Pending::SkipDeclaredInExample < ::StandardError - # @return [SkipDeclaredInExample] a new instance of SkipDeclaredInExample - # - # source://rspec-core//lib/rspec/core/pending.rb#11 - def initialize(argument); end - - # Returns the value of attribute argument. - # - # source://rspec-core//lib/rspec/core/pending.rb#9 - def argument; end -end - -# @private -# -# source://rspec-core//lib/rspec/core/profiler.rb#4 -class RSpec::Core::Profiler - # @return [Profiler] a new instance of Profiler - # - # source://rspec-core//lib/rspec/core/profiler.rb#7 - def initialize; end - - # source://rspec-core//lib/rspec/core/profiler.rb#20 - def example_group_finished(notification); end - - # source://rspec-core//lib/rspec/core/profiler.rb#13 - def example_group_started(notification); end - - # Returns the value of attribute example_groups. - # - # source://rspec-core//lib/rspec/core/profiler.rb#11 - def example_groups; end - - # source://rspec-core//lib/rspec/core/profiler.rb#28 - def example_started(notification); end -end - -# source://rspec-core//lib/rspec/core/profiler.rb#5 -RSpec::Core::Profiler::NOTIFICATIONS = T.let(T.unsafe(nil), Array) - -# A reporter will send notifications to listeners, usually formatters for the -# spec suite run. -# -# source://rspec-core//lib/rspec/core/reporter.rb#4 -class RSpec::Core::Reporter - # @return [Reporter] a new instance of Reporter - # - # source://rspec-core//lib/rspec/core/reporter.rb#14 - def initialize(configuration); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#214 - def abort_with(msg, exit_status); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#193 - def close_after; end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#155 - def deprecation(hash); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#143 - def example_failed(example); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#133 - def example_finished(example); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#122 - def example_group_finished(group); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#117 - def example_group_started(group); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#138 - def example_passed(example); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#149 - def example_pending(example); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#127 - def example_started(example); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#28 - def examples; end - - # Reports a run that exited early without having run any examples. - # - # @param exit_code [Integer] the exit_code to be return by the reporter - # - # source://rspec-core//lib/rspec/core/reporter.rb#84 - def exit_early(exit_code); end - - # @private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/reporter.rb#221 - def fail_fast_limit_met?; end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#28 - def failed_examples; end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#173 - def finish; end - - # Send a custom message to supporting formatters. - # - # @param message [#to_s] A message object to send to formatters - # - # source://rspec-core//lib/rspec/core/reporter.rb#99 - def message(message); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#206 - def notify(event, notification); end - - # Provides a way to notify of an exception that is not tied to any - # particular example (such as an exception encountered in a :suite hook). - # Exceptions will be formatted the same way they normally are. - # - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#163 - def notify_non_example_exception(exception, context_description); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#28 - def pending_examples; end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#45 - def prepare_default(loader, output_stream, deprecation_stream); end - - # Publish a custom event to supporting registered formatters. - # - # @param event [Symbol] Name of the custom event to trigger on formatters - # @param options [Hash] Hash of arguments to provide via `CustomNotification` - # @see RSpec::Core::Notifications::CustomNotification - # - # source://rspec-core//lib/rspec/core/reporter.rb#108 - def publish(event, options = T.unsafe(nil)); end - - # Registers a listener to a list of notifications. The reporter will send - # notification of events to all registered listeners. - # - # @param listener [Object] An object that wishes to be notified of reporter - # events - # @param notifications [Array] Array of symbols represents the events a - # listener wishes to subscribe too - # - # source://rspec-core//lib/rspec/core/reporter.rb#37 - def register_listener(listener, *notifications); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#52 - def registered_listeners(notification); end - - # Initializes the report run and yields itself for further reporting. The - # block is required, so that the reporter can manage cleaning up after the - # run. - # - # @example - # - # reporter.report(group.examples.size) do |r| - # example_groups.map {|g| g.run(r) } - # end - # @overload report - # @overload report - # @param expected_example_count [Integer] the number of examples being run - # @yield [Block] block yields itself for further reporting. - # - # source://rspec-core//lib/rspec/core/reporter.rb#71 - def report(expected_example_count); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#89 - def start(expected_example_count, time = T.unsafe(nil)); end - - # @private - # - # source://rspec-core//lib/rspec/core/reporter.rb#200 - def stop; end - - private - - # source://rspec-core//lib/rspec/core/reporter.rb#242 - def close; end - - # source://rspec-core//lib/rspec/core/reporter.rb#233 - def ensure_listeners_ready; end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/reporter.rb#246 - def mute_profile_output?; end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/reporter.rb#252 - def seed_used?; end -end - -# @private -# -# source://rspec-core//lib/rspec/core/reporter.rb#6 -RSpec::Core::Reporter::RSPEC_NOTIFICATIONS = T.let(T.unsafe(nil), RSpec::Core::Set) - -# @private -# -# source://rspec-core//lib/rspec/core/ruby_project.rb#7 -module RSpec::Core::RubyProject - private - - # source://rspec-core//lib/rspec/core/ruby_project.rb#12 - def add_dir_to_load_path(dir); end - - # source://rspec-core//lib/rspec/core/ruby_project.rb#8 - def add_to_load_path(*dirs); end - - # source://rspec-core//lib/rspec/core/ruby_project.rb#28 - def ascend_until; end - - # source://rspec-core//lib/rspec/core/ruby_project.rb#20 - def determine_root; end - - # source://rspec-core//lib/rspec/core/ruby_project.rb#24 - def find_first_parent_containing(dir); end - - # source://rspec-core//lib/rspec/core/ruby_project.rb#16 - def root; end - - class << self - # source://rspec-core//lib/rspec/core/ruby_project.rb#12 - def add_dir_to_load_path(dir); end - - # source://rspec-core//lib/rspec/core/ruby_project.rb#8 - def add_to_load_path(*dirs); end - - # source://rspec-core//lib/rspec/core/ruby_project.rb#28 - def ascend_until; end - - # source://rspec-core//lib/rspec/core/ruby_project.rb#20 - def determine_root; end - - # source://rspec-core//lib/rspec/core/ruby_project.rb#24 - def find_first_parent_containing(dir); end - - # source://rspec-core//lib/rspec/core/ruby_project.rb#16 - def root; end - end -end - -# Provides the main entry point to run a suite of RSpec examples. -# -# source://rspec-core//lib/rspec/core/runner.rb#4 -class RSpec::Core::Runner - # @return [Runner] a new instance of Runner - # - # source://rspec-core//lib/rspec/core/runner.rb#75 - def initialize(options, configuration = T.unsafe(nil), world = T.unsafe(nil)); end - - # @attr_reader - # @private - # - # source://rspec-core//lib/rspec/core/runner.rb#7 - def configuration; end - - # @private - # - # source://rspec-core//lib/rspec/core/runner.rb#129 - def configure(err, out); end - - # @private - # - # source://rspec-core//lib/rspec/core/runner.rb#194 - def exit_code(examples_passed = T.unsafe(nil)); end - - # @attr_reader - # @private - # - # source://rspec-core//lib/rspec/core/runner.rb#7 - def options; end - - # Configures and runs a spec suite. - # - # @param err [IO] error stream - # @param out [IO] output stream - # - # source://rspec-core//lib/rspec/core/runner.rb#85 - def run(err, out); end - - # Runs the provided example groups. - # - # @param example_groups [Array] groups to run - # @return [Fixnum] exit status code. 0 if all specs passed, - # or the configured failure exit code (1 by default) if specs - # failed. - # - # source://rspec-core//lib/rspec/core/runner.rb#113 - def run_specs(example_groups); end - - # Wires together the various configuration objects and state holders. - # - # @param err [IO] error stream - # @param out [IO] output stream - # - # source://rspec-core//lib/rspec/core/runner.rb#98 - def setup(err, out); end - - # @attr_reader - # @private - # - # source://rspec-core//lib/rspec/core/runner.rb#7 - def world; end - - private - - # source://rspec-core//lib/rspec/core/runner.rb#203 - def persist_example_statuses; end - - class << self - # Register an `at_exit` hook that runs the suite when the process exits. - # - # @note This is not generally needed. The `rspec` command takes care - # of running examples for you without involving an `at_exit` - # hook. This is only needed if you are running specs using - # the `ruby` command, and even then, the normal way to invoke - # this is by requiring `rspec/autorun`. - # - # source://rspec-core//lib/rspec/core/runner.rb#16 - def autorun; end - - # @private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/runner.rb#141 - def autorun_disabled?; end - - # @private - # - # source://rspec-core//lib/rspec/core/runner.rb#136 - def disable_autorun!; end - - # @private - # - # source://rspec-core//lib/rspec/core/runner.rb#180 - def handle_interrupt; end - - # @private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/runner.rb#146 - def installed_at_exit?; end - - # Runs the suite of specs and exits the process with an appropriate exit - # code. - # - # source://rspec-core//lib/rspec/core/runner.rb#43 - def invoke; end - - # @private - # - # source://rspec-core//lib/rspec/core/runner.rb#29 - def perform_at_exit; end - - # Run a suite of RSpec examples. Does not exit. - # - # This is used internally by RSpec to run a suite, but is available - # for use by any other automation tool. - # - # If you want to run this multiple times in the same process, and you - # want files like `spec_helper.rb` to be reloaded, be sure to load `load` - # instead of `require`. - # - # @param args [Array] command-line-supported arguments - # @param err [IO] error stream - # @param out [IO] output stream - # @return [Fixnum] exit status code. 0 if all specs passed, - # or the configured failure exit code (1 by default) if specs - # failed. - # - # source://rspec-core//lib/rspec/core/runner.rb#64 - def run(args, err = T.unsafe(nil), out = T.unsafe(nil)); end - - # @private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/runner.rb#151 - def running_in_drb?; end - - # @private - # - # source://rspec-core//lib/rspec/core/runner.rb#175 - def trap_interrupt; end - end -end - -# We use this to replace `::Set` so we can have the advantage of -# constant time key lookups for unique arrays but without the -# potential to pollute a developers environment with an extra -# piece of the stdlib. This helps to prevent false positive -# builds. -# -# @private -# -# source://rspec-core//lib/rspec/core/set.rb#11 -class RSpec::Core::Set - include ::Enumerable - - # @return [Set] a new instance of Set - # - # source://rspec-core//lib/rspec/core/set.rb#14 - def initialize(array = T.unsafe(nil)); end - - # source://rspec-core//lib/rspec/core/set.rb#23 - def <<(key); end - - # source://rspec-core//lib/rspec/core/set.rb#48 - def clear; end - - # source://rspec-core//lib/rspec/core/set.rb#28 - def delete(key); end - - # source://rspec-core//lib/rspec/core/set.rb#32 - def each(&block); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/set.rb#19 - def empty?; end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/set.rb#37 - def include?(key); end - - # source://rspec-core//lib/rspec/core/set.rb#41 - def merge(values); end -end - -# Exposes {ExampleGroup}-level methods to a module, so you can include that -# module in an {ExampleGroup}. -# -# @example -# -# module LoggedInAsAdmin -# extend RSpec::Core::SharedContext -# before(:example) do -# log_in_as :admin -# end -# end -# -# describe "admin section" do -# include LoggedInAsAdmin -# # ... -# end -# -# source://rspec-core//lib/rspec/core/shared_context.rb#19 -module RSpec::Core::SharedContext - # @private - # - # source://rspec-core//lib/rspec/core/shared_context.rb#28 - def __shared_context_recordings; end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def after(*args, &block); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def append_after(*args, &block); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def append_before(*args, &block); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def around(*args, &block); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def before(*args, &block); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def context(*args, &block); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def describe(*args, &block); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def hooks(*args, &block); end - - # @private - # - # source://rspec-core//lib/rspec/core/shared_context.rb#21 - def included(group); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def let(*args, &block); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def let!(*args, &block); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def prepend_after(*args, &block); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def prepend_before(*args, &block); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def subject(*args, &block); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#42 - def subject!(*args, &block); end - - class << self - # @private - # - # source://rspec-core//lib/rspec/core/shared_context.rb#40 - def record(methods); end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core/shared_context.rb#33 -class RSpec::Core::SharedContext::Recording < ::Struct - # Returns the value of attribute args - # - # @return [Object] the current value of args - def args; end - - # Sets the attribute args - # - # @param value [Object] the value to set the attribute args to. - # @return [Object] the newly set value - def args=(_); end - - # Returns the value of attribute block - # - # @return [Object] the current value of block - def block; end - - # Sets the attribute block - # - # @param value [Object] the value to set the attribute block to. - # @return [Object] the newly set value - def block=(_); end - - # Returns the value of attribute method_name - # - # @return [Object] the current value of method_name - def method_name; end - - # Sets the attribute method_name - # - # @param value [Object] the value to set the attribute method_name to. - # @return [Object] the newly set value - def method_name=(_); end - - # source://rspec-core//lib/rspec/core/shared_context.rb#34 - def playback_onto(group); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# Shared example groups let you define common context and/or common -# examples that you wish to use in multiple example groups. -# -# When defined, the shared group block is stored for later evaluation. -# It can later be included in an example group either explicitly -# (using `include_examples`, `include_context` or `it_behaves_like`) -# or implicitly (via matching metadata). -# -# Named shared example groups are scoped based on where they are -# defined. Shared groups defined in an example group are available -# for inclusion in that example group or any child example groups, -# but not in any parent or sibling example groups. Shared example -# groups defined at the top level can be included from any example group. -# -# source://rspec-core//lib/rspec/core/shared_example_group.rb#57 -module RSpec::Core::SharedExampleGroup - # Stores the block for later use. The block will be evaluated - # in the context of an example group via `include_examples`, - # `include_context`, or `it_behaves_like`. - # - # @example - # shared_examples "auditable" do - # it "stores an audit record on save!" do - # expect { auditable.save! }.to change(Audit, :count).by(1) - # end - # end - # - # RSpec.describe Account do - # it_behaves_like "auditable" do - # let(:auditable) { Account.new } - # end - # end - # @overload shared_examples - # @overload shared_examples - # @see ExampleGroup.it_behaves_like - # @see ExampleGroup.include_examples - # @see ExampleGroup.include_context - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#90 - def shared_context(name, *args, &block); end - - # Stores the block for later use. The block will be evaluated - # in the context of an example group via `include_examples`, - # `include_context`, or `it_behaves_like`. - # - # @example - # shared_examples "auditable" do - # it "stores an audit record on save!" do - # expect { auditable.save! }.to change(Audit, :count).by(1) - # end - # end - # - # RSpec.describe Account do - # it_behaves_like "auditable" do - # let(:auditable) { Account.new } - # end - # end - # @overload shared_examples - # @overload shared_examples - # @see ExampleGroup.it_behaves_like - # @see ExampleGroup.include_examples - # @see ExampleGroup.include_context - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#90 - def shared_examples(name, *args, &block); end - - # Stores the block for later use. The block will be evaluated - # in the context of an example group via `include_examples`, - # `include_context`, or `it_behaves_like`. - # - # @example - # shared_examples "auditable" do - # it "stores an audit record on save!" do - # expect { auditable.save! }.to change(Audit, :count).by(1) - # end - # end - # - # RSpec.describe Account do - # it_behaves_like "auditable" do - # let(:auditable) { Account.new } - # end - # end - # @overload shared_examples - # @overload shared_examples - # @see ExampleGroup.it_behaves_like - # @see ExampleGroup.include_examples - # @see ExampleGroup.include_context - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#90 - def shared_examples_for(name, *args, &block); end -end - -# @private -# -# source://rspec-core//lib/rspec/core/shared_example_group.rb#149 -class RSpec::Core::SharedExampleGroup::Registry - # source://rspec-core//lib/rspec/core/shared_example_group.rb#150 - def add(context, name, *metadata_args, &block); end - - # source://rspec-core//lib/rspec/core/shared_example_group.rb#174 - def find(lookup_contexts, name); end - - private - - # :nocov: - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#257 - def ensure_block_has_source_location(_block); end - - # :nocov: - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#245 - def formatted_location(block); end - - # TODO: remove this in RSpec 4. This exists only to support - # `config.shared_context_metadata_behavior == :trigger_inclusion`, - # the legacy behavior of shared context metadata, which we do - # not want to support in RSpec 4. - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#189 - def legacy_add(context, name, *metadata_args, &block); end - - # source://rspec-core//lib/rspec/core/shared_example_group.rb#204 - def shared_example_groups; end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#208 - def valid_name?(candidate); end - - # source://rspec-core//lib/rspec/core/shared_example_group.rb#215 - def warn_if_key_taken(context, key, new_block); end -end - -# Shared examples top level DSL. -# -# @api private -# -# source://rspec-core//lib/rspec/core/shared_example_group.rb#106 -module RSpec::Core::SharedExampleGroup::TopLevelDSL - class << self - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#108 - def definitions; end - - # Adds the top level DSL methods to Module and the top level binding. - # - # @api private - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#126 - def expose_globally!; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#119 - def exposed_globally?; end - - # Removes the top level DSL methods to Module and the top level binding. - # - # @api private - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#135 - def remove_globally!; end - end -end - -# Contains information about the inclusion site of a shared example group. -# -# source://rspec-core//lib/rspec/core/example_group.rb#782 -class RSpec::Core::SharedExampleGroupInclusionStackFrame - # @private - # @return [SharedExampleGroupInclusionStackFrame] a new instance of SharedExampleGroupInclusionStackFrame - # - # source://rspec-core//lib/rspec/core/example_group.rb#789 - def initialize(shared_group_name, inclusion_location); end - - # @return [String] Description of this stack frame, in the form used by - # RSpec's built-in formatters. - # - # source://rspec-core//lib/rspec/core/example_group.rb#805 - def description; end - - # @return [String] The {#inclusion_location}, formatted for display by a formatter. - # - # source://rspec-core//lib/rspec/core/example_group.rb#795 - def formatted_inclusion_location; end - - # @return [String] the location where the shared example was included - # - # source://rspec-core//lib/rspec/core/example_group.rb#786 - def inclusion_location; end - - # @return [String] the name of the shared example group - # - # source://rspec-core//lib/rspec/core/example_group.rb#784 - def shared_group_name; end - - class << self - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#811 - def current_backtrace; end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#829 - def shared_example_group_inclusions; end - - # @private - # - # source://rspec-core//lib/rspec/core/example_group.rb#816 - def with_frame(name, location); end - end -end - -# Represents some functionality that is shared with multiple example groups. -# The functionality is defined by the provided block, which is lazily -# eval'd when the `SharedExampleGroupModule` instance is included in an example -# group. -# -# source://rspec-core//lib/rspec/core/shared_example_group.rb#9 -class RSpec::Core::SharedExampleGroupModule < ::Module - # @return [SharedExampleGroupModule] a new instance of SharedExampleGroupModule - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#13 - def initialize(description, definition, metadata); end - - # @private - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#11 - def definition; end - - # @private - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#34 - def include_in(klass, inclusion_line, args, customization_block); end - - # Ruby callback for when a module is included in another module is class. - # Our definition evaluates the shared group block in the context of the - # including example group. - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#28 - def included(klass); end - - # Provides a human-readable representation of this module. - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#20 - def inspect; end - - # Provides a human-readable representation of this module. - # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#20 - def to_s; end -end - -# Deals with the fact that `shellwords` only works on POSIX systems. -# -# @private -# -# source://rspec-core//lib/rspec/core/shell_escape.rb#5 -module RSpec::Core::ShellEscape - private - - # source://rspec-core//lib/rspec/core/shell_escape.rb#32 - def conditionally_quote(id); end - - # :nocov: - # - # source://rspec-core//lib/rspec/core/shell_escape.rb#19 - def escape(shell_command); end - - # source://rspec-core//lib/rspec/core/shell_escape.rb#8 - def quote(argument); end - - # source://rspec-core//lib/rspec/core/shell_escape.rb#37 - def shell_allows_unquoted_ids?; end - - class << self - # source://rspec-core//lib/rspec/core/shell_escape.rb#32 - def conditionally_quote(id); end - - # source://rspec-core//lib/rspec/core/shell_escape.rb#19 - def escape(shell_command); end - - # source://rspec-core//lib/rspec/core/shell_escape.rb#8 - def quote(argument); end - - # @return [Boolean] - # - # source://rspec-core//lib/rspec/core/shell_escape.rb#37 - def shell_allows_unquoted_ids?; end - end -end - -# Known shells that require quoting: zsh, csh, tcsh. -# -# Feel free to add other shells to this list that are known to -# allow `rspec ./some_spec.rb[1:1]` syntax without quoting the id. -# -# @private -# -# source://rspec-core//lib/rspec/core/shell_escape.rb#30 -RSpec::Core::ShellEscape::SHELLS_ALLOWING_UNQUOTED_IDS = T.let(T.unsafe(nil), Array) - -# Provides an execution context for before/after :suite hooks. -# -# @private -# -# source://rspec-core//lib/rspec/core/example.rb#651 -class RSpec::Core::SuiteHookContext < ::RSpec::Core::Example - # @return [SuiteHookContext] a new instance of SuiteHookContext - # - # source://rspec-core//lib/rspec/core/example.rb#652 - def initialize(hook_description, reporter); end - - # source://rspec-core//lib/rspec/core/example.rb#659 - def set_exception(exception); end -end - -# This avoids issues with reporting time caused by examples that -# change the value/meaning of Time.now without properly restoring -# it. -# -# @private -# -# source://rspec-core//lib/rspec/core.rb#174 -class RSpec::Core::Time - class << self - def now(in: T.unsafe(nil)); end - end -end - -# Version information for RSpec Core. -# -# source://rspec-core//lib/rspec/core/version.rb#4 -module RSpec::Core::Version; end - -# Current version of RSpec Core, in semantic versioning format. -# -# source://rspec-core//lib/rspec/core/version.rb#6 -RSpec::Core::Version::STRING = T.let(T.unsafe(nil), String) - -# @private -# -# source://rspec-core//lib/rspec/core/warnings.rb#6 -module RSpec::Core::Warnings - # Used internally to print deprecation warnings. - # - # @private - # - # source://rspec-core//lib/rspec/core/warnings.rb#10 - def deprecate(deprecated, data = T.unsafe(nil)); end - - # Used internally to print deprecation warnings. - # - # @private - # - # source://rspec-core//lib/rspec/core/warnings.rb#22 - def warn_deprecation(message, opts = T.unsafe(nil)); end - - # @private - # - # source://rspec-core//lib/rspec/core/warnings.rb#27 - def warn_with(message, options = T.unsafe(nil)); end -end - -# Internal container for global non-configuration data. -# -# @api private -# -# source://rspec-core//lib/rspec/core/world.rb#6 -class RSpec::Core::World - # @api private - # @return [World] a new instance of World - # - # source://rspec-core//lib/rspec/core/world.rb#26 - def initialize(configuration = T.unsafe(nil)); end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#115 - def all_example_groups; end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#120 - def all_examples; end - - # Add exclusion filters to announcement message. - # - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#226 - def announce_exclusion_filter(announcements); end - - # Notify reporter of filters. - # - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#171 - def announce_filters; end - - # Add inclusion filters to announcement message. - # - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#217 - def announce_inclusion_filter(announcements); end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#210 - def everything_filtered_message; end - - # Get count of examples to be run. - # - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#109 - def example_count(groups = T.unsafe(nil)); end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#8 - def example_group_counts_by_spec_file; end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#8 - def example_groups; end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#102 - def exclusion_filter; end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#69 - def filter_manager; end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#8 - def filtered_examples; end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#97 - def inclusion_filter; end - - # Used internally to signal that a failure outside of an example - # has occurred, and that therefore the exit status should indicate - # the run failed. - # - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#24 - def non_example_failure; end - - # Used internally to signal that a failure outside of an example - # has occurred, and that therefore the exit status should indicate - # the run failed. - # - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#24 - def non_example_failure=(_arg0); end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#87 - def num_example_groups_defined_in(file); end - - # Apply ordering strategy from configuration to example groups. - # - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#52 - def ordered_example_groups; end - - # Find line number of previous declaration. - # - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#140 - def preceding_declaration_line(absolute_file_name, filter_line); end - - # Prepares filters so that they apply to example groups when they run. - # - # This is a separate method so that filters can be modified/replaced and - # examples refiltered during a process's lifetime, which can be useful for - # a custom runner. - # - # @api public - # - # source://rspec-core//lib/rspec/core/world.rb#43 - def prepare_example_filtering; end - - # Records an example group. - # - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#81 - def record(example_group); end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#74 - def registered_example_group_files; end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#205 - def report_filter_message(message); end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#149 - def reporter; end - - # Reset world to 'scratch' before running suite. - # - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#60 - def reset; end - - # Used internally to signify that a SystemExit occurred in - # `Configuration#load_file_handling_errors`, and thus examples cannot - # be counted accurately. Specifically, we cannot accurately report - # "No examples found". - # - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#18 - def rspec_is_quitting; end - - # Used internally to signify that a SystemExit occurred in - # `Configuration#load_file_handling_errors`, and thus examples cannot - # be counted accurately. Specifically, we cannot accurately report - # "No examples found". - # - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#18 - def rspec_is_quitting=(_arg0); end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#92 - def shared_example_group_registry; end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#154 - def source_from_file(path); end - - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#164 - def syntax_highlighter; end - - # Traverses the tree of each top level group. - # For each it yields the group, then the children, recursively. - # Halts the traversal of a branch of the tree as soon as the passed block returns true. - # Note that siblings groups and their sub-trees will continue to be explored. - # This is intended to make it easy to find the top-most group that satisfies some - # condition. - # - # @api private - # @private - # - # source://rspec-core//lib/rspec/core/world.rb#131 - def traverse_example_group_trees_until(&block); end - - # Used internally to determine what to do when a SIGINT is received. - # - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#11 - def wants_to_quit; end - - # Used internally to determine what to do when a SIGINT is received. - # - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#11 - def wants_to_quit=(_arg0); end - - private - - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#234 - def descending_declaration_line_numbers_by_file; end - - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#252 - def fail_if_config_and_cli_options_invalid; end -end - -# Provides a null implementation for initial use by configuration. -# -# @api private -# @private -# -# source://rspec-core//lib/rspec/core/world.rb#264 -module RSpec::Core::World::Null - class << self - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#280 - def all_example_groups; end - - # :nocov: - # - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#276 - def example_groups; end - - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#265 - def non_example_failure; end - - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#266 - def non_example_failure=(_); end - - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#268 - def registered_example_group_files; end - - # @api private - # - # source://rspec-core//lib/rspec/core/world.rb#272 - def traverse_example_group_trees_until; end - end -end - -# Namespace for the example group subclasses generated by top-level -# `describe`. -# -# @private -# -# source://rspec-core//lib/rspec/core/example_group.rb#839 -module RSpec::ExampleGroups - extend ::RSpec::Support::RecursiveConstMethods - - class << self - # source://rspec-core//lib/rspec/core/example_group.rb#842 - def assign_const(group); end - - # source://rspec-core//lib/rspec/core/example_group.rb#862 - def base_name_for(group); end - - # source://rspec-core//lib/rspec/core/example_group.rb#850 - def constant_scope_for(group); end - - # source://rspec-core//lib/rspec/core/example_group.rb#895 - def disambiguate(name, const_scope); end - - # source://rspec-core//lib/rspec/core/example_group.rb#856 - def remove_all_constants; end - end -end - -# @private -# -# source://rspec-core//lib/rspec/core.rb#187 -RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash) - -# @private -# -# source://rspec-core//lib/rspec/core/shared_context.rb#54 -RSpec::SharedContext = RSpec::Core::SharedContext diff --git a/Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi b/Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi deleted file mode 100644 index 1dc0477091..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi +++ /dev/null @@ -1,8183 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `rspec-expectations` gem. -# Please instead update this file by running `bin/tapioca gem rspec-expectations`. - - -# RSpec's top level namespace. All of rspec-expectations is contained -# in the `RSpec::Expectations` and `RSpec::Matchers` namespaces. -# -# source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#1 -module RSpec - class << self - # source://rspec-core/3.13.1/lib/rspec/core.rb#70 - def clear_examples; end - - # source://rspec-core/3.13.1/lib/rspec/core.rb#85 - def configuration; end - - # source://rspec-core/3.13.1/lib/rspec/core.rb#49 - def configuration=(_arg0); end - - # source://rspec-core/3.13.1/lib/rspec/core.rb#97 - def configure; end - - # source://rspec-core/3.13.1/lib/rspec/core.rb#194 - def const_missing(name); end - - # source://rspec-core/3.13.1/lib/rspec/core/dsl.rb#42 - def context(*args, &example_group_block); end - - # source://rspec-core/3.13.1/lib/rspec/core.rb#122 - def current_example; end - - # source://rspec-core/3.13.1/lib/rspec/core.rb#128 - def current_example=(example); end - - # source://rspec-core/3.13.1/lib/rspec/core.rb#154 - def current_scope; end - - # source://rspec-core/3.13.1/lib/rspec/core.rb#134 - def current_scope=(scope); end - - # source://rspec-core/3.13.1/lib/rspec/core/dsl.rb#42 - def describe(*args, &example_group_block); end - - # source://rspec-core/3.13.1/lib/rspec/core/dsl.rb#42 - def example_group(*args, &example_group_block); end - - # source://rspec-core/3.13.1/lib/rspec/core/dsl.rb#42 - def fcontext(*args, &example_group_block); end - - # source://rspec-core/3.13.1/lib/rspec/core/dsl.rb#42 - def fdescribe(*args, &example_group_block); end - - # source://rspec-core/3.13.1/lib/rspec/core.rb#58 - def reset; end - - # source://rspec-core/3.13.1/lib/rspec/core/shared_example_group.rb#110 - def shared_context(name, *args, &block); end - - # source://rspec-core/3.13.1/lib/rspec/core/shared_example_group.rb#110 - def shared_examples(name, *args, &block); end - - # source://rspec-core/3.13.1/lib/rspec/core/shared_example_group.rb#110 - def shared_examples_for(name, *args, &block); end - - # source://rspec-core/3.13.1/lib/rspec/core.rb#160 - def world; end - - # source://rspec-core/3.13.1/lib/rspec/core.rb#49 - def world=(_arg0); end - - # source://rspec-core/3.13.1/lib/rspec/core/dsl.rb#42 - def xcontext(*args, &example_group_block); end - - # source://rspec-core/3.13.1/lib/rspec/core/dsl.rb#42 - def xdescribe(*args, &example_group_block); end - end -end - -# RSpec::Expectations provides a simple, readable API to express -# the expected outcomes in a code example. To express an expected -# outcome, wrap an object or block in `expect`, call `to` or `to_not` -# (aliased as `not_to`) and pass it a matcher object: -# -# expect(order.total).to eq(Money.new(5.55, :USD)) -# expect(list).to include(user) -# expect(message).not_to match(/foo/) -# expect { do_something }.to raise_error -# -# The last form (the block form) is needed to match against ruby constructs -# that are not objects, but can only be observed when executing a block -# of code. This includes raising errors, throwing symbols, yielding, -# and changing values. -# -# When `expect(...).to` is invoked with a matcher, it turns around -# and calls `matcher.matches?()`. For example, -# in the expression: -# -# expect(order.total).to eq(Money.new(5.55, :USD)) -# -# ...`eq(Money.new(5.55, :USD))` returns a matcher object, and it results -# in the equivalent of `eq.matches?(order.total)`. If `matches?` returns -# `true`, the expectation is met and execution continues. If `false`, then -# the spec fails with the message returned by `eq.failure_message`. -# -# Given the expression: -# -# expect(order.entries).not_to include(entry) -# -# ...the `not_to` method (also available as `to_not`) invokes the equivalent of -# `include.matches?(order.entries)`, but it interprets `false` as success, and -# `true` as a failure, using the message generated by -# `include.failure_message_when_negated`. -# -# rspec-expectations ships with a standard set of useful matchers, and writing -# your own matchers is quite simple. -# -# See [RSpec::Matchers](../RSpec/Matchers) for more information about the -# built-in matchers that ship with rspec-expectations, and how to write your -# own custom matchers. -# -# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#2 -module RSpec::Expectations - class << self - # The configuration object. - # - # @return [RSpec::Expectations::Configuration] the configuration object - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#228 - def configuration; end - - # @private - # - # source://rspec-expectations//lib/rspec/expectations/fail_with.rb#13 - def differ; end - - # Raises an RSpec::Expectations::ExpectationNotMetError with message. - # Adds a diff to the failure message when `expected` and `actual` are - # both present. - # - # @param message [String] - # @param expected [Object] - # @param actual [Object] - # - # source://rspec-expectations//lib/rspec/expectations/fail_with.rb#27 - def fail_with(message, expected = T.unsafe(nil), actual = T.unsafe(nil)); end - end -end - -# Validates the provided matcher to ensure it supports block -# expectations, in order to avoid user confusion when they -# use a block thinking the expectation will be on the return -# value of the block rather than the block itself. -# -# @private -# -# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#136 -class RSpec::Expectations::BlockExpectationTarget < ::RSpec::Expectations::ExpectationTarget - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#142 - def not_to(matcher, message = T.unsafe(nil), &block); end - - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#137 - def to(matcher, message = T.unsafe(nil), &block); end - - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#142 - def to_not(matcher, message = T.unsafe(nil), &block); end - - private - - # @raise [ExpectationNotMetError] - # - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#150 - def enforce_block_expectation(matcher); end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#158 - def supports_block_expectations?(matcher); end -end - -# @private -# -# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#4 -class RSpec::Expectations::BlockSnippetExtractor - # @return [BlockSnippetExtractor] a new instance of BlockSnippetExtractor - # - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#17 - def initialize(proc, method_name); end - - # Ideally we should properly handle indentations of multiline snippet, - # but it's not implemented yet since because we use result of this method only when it's a - # single line and implementing the logic introduces additional complexity. - # - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#25 - def body_content_lines; end - - # rubocop should properly handle `Struct.new {}` as an inner class definition. - # - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#7 - def method_name; end - - # rubocop should properly handle `Struct.new {}` as an inner class definition. - # - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#7 - def proc; end - - private - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#62 - def beginning_line_number; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#39 - def block_token_extractor; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#58 - def file_path; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#31 - def raw_body_lines; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#35 - def raw_body_snippet; end - - # @raise [TargetNotFoundError] - # - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#44 - def source; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#66 - def source_location; end - - class << self - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#9 - def try_extracting_single_line_body_of(proc, method_name); end - end -end - -# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#72 -class RSpec::Expectations::BlockSnippetExtractor::AmbiguousTargetError < ::RSpec::Expectations::BlockSnippetExtractor::Error; end - -# Locates target block with node information (semantics), which tokens don't have. -# -# @private -# -# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 -class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct - # Returns the value of attribute beginning_line_number - # - # @return [Object] the current value of beginning_line_number - def beginning_line_number; end - - # Sets the attribute beginning_line_number - # - # @param value [Object] the value to set the attribute beginning_line_number to. - # @return [Object] the newly set value - def beginning_line_number=(_); end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#205 - def body_content_locations; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#201 - def method_call_location; end - - # Returns the value of attribute method_name - # - # @return [Object] the current value of method_name - def method_name; end - - # Sets the attribute method_name - # - # @param value [Object] the value to set the attribute method_name to. - # @return [Object] the newly set value - def method_name=(_); end - - # Returns the value of attribute source - # - # @return [Object] the current value of source - def source; end - - # Sets the attribute source - # - # @param value [Object] the value to set the attribute source to. - # @return [Object] the newly set value - def source=(_); end - - private - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#218 - def block_body_node; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#223 - def block_wrapper_node; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#234 - def candidate_block_wrapper_nodes; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#243 - def candidate_method_ident_nodes; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#211 - def method_ident_node; end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#249 - def method_ident_node?(node); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# Performs extraction of block body snippet using tokens, -# which cannot be done with node information. -# -# @private -# -# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 -class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct - # @return [BlockTokenExtractor] a new instance of BlockTokenExtractor - # - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#80 - def initialize(*_arg0); end - - # Returns the value of attribute beginning_line_number - # - # @return [Object] the current value of beginning_line_number - def beginning_line_number; end - - # Sets the attribute beginning_line_number - # - # @param value [Object] the value to set the attribute beginning_line_number to. - # @return [Object] the newly set value - def beginning_line_number=(_); end - - # Returns the value of attribute body_tokens. - # - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#78 - def body_tokens; end - - # Returns the value of attribute method_name - # - # @return [Object] the current value of method_name - def method_name; end - - # Sets the attribute method_name - # - # @param value [Object] the value to set the attribute method_name to. - # @return [Object] the newly set value - def method_name=(_); end - - # Returns the value of attribute source - # - # @return [Object] the current value of source - def source; end - - # Sets the attribute source - # - # @param value [Object] the value to set the attribute source to. - # @return [Object] the newly set value - def source=(_); end - - # Returns the value of attribute state. - # - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#78 - def state; end - - private - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#126 - def after_beginning_of_args_state(token); end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#130 - def after_beginning_of_body_state(token); end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#109 - def after_method_call_state(token); end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#113 - def after_opener_state(token); end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#193 - def block_locator; end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#187 - def correct_block?(body_tokens); end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#143 - def finalize_pending_tokens!; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#97 - def finish!; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#149 - def finish_or_find_next_block_if_incorrect!; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#170 - def handle_closer_token(token); end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#160 - def handle_opener_token(token); end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#105 - def initial_state(token); end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#101 - def invoke_state_handler(token); end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#166 - def opener_token?(token); end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#179 - def opener_token_stack; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#87 - def parse!; end - - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#139 - def pending_tokens; end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#183 - def pipe_token?(token); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#70 -class RSpec::Expectations::BlockSnippetExtractor::Error < ::StandardError; end - -# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#71 -class RSpec::Expectations::BlockSnippetExtractor::TargetNotFoundError < ::RSpec::Expectations::BlockSnippetExtractor::Error; end - -# Provides configuration options for rspec-expectations. -# If you are using rspec-core, you can access this via a -# block passed to `RSpec::Core::Configuration#expect_with`. -# Otherwise, you can access it via RSpec::Expectations.configuration. -# -# @example -# RSpec.configure do |rspec| -# rspec.expect_with :rspec do |c| -# # c is the config object -# end -# end -# -# # or -# -# RSpec::Expectations.configuration -# -# source://rspec-expectations//lib/rspec/expectations/configuration.rb#20 -class RSpec::Expectations::Configuration - # @return [Configuration] a new instance of Configuration - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#29 - def initialize; end - - # :nocov: Because this is only really _useful_ on 1.8, and hard to test elsewhere. - # - # Adds `should` and `should_not` to the given classes - # or modules. This can be used to ensure `should` works - # properly on things like proxy objects (particular - # `Delegator`-subclassed objects on 1.8). - # - # @param modules [Array] the list of classes or modules - # to add `should` and `should_not` to. - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#116 - def add_should_and_should_not_to(*modules); end - - # Sets or gets the backtrace formatter. The backtrace formatter should - # implement `#format_backtrace(Array)`. This is used - # to format backtraces of errors handled by the `raise_error` - # matcher. - # - # If you are using rspec-core, rspec-core's backtrace formatting - # will be used (including respecting the presence or absence of - # the `--backtrace` option). - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#134 - def backtrace_formatter; end - - # Sets or gets the backtrace formatter. The backtrace formatter should - # implement `#format_backtrace(Array)`. This is used - # to format backtraces of errors handled by the `raise_error` - # matcher. - # - # If you are using rspec-core, rspec-core's backtrace formatting - # will be used (including respecting the presence or absence of - # the `--backtrace` option). - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#133 - def backtrace_formatter=(_arg0); end - - # Indicates whether or not diffs should be colored. - # Delegates to rspec-core's color option if rspec-core - # is loaded; otherwise you can set it here. - # - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#88 - def color?; end - - # @private - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#221 - def false_positives_handler; end - - # Sets if custom matcher descriptions and failure messages - # should include clauses from methods defined using `chain`. - # - # @param value [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#145 - def include_chain_clauses_in_custom_matcher_descriptions=(_arg0); end - - # Indicates whether or not custom matcher descriptions and failure messages - # should include clauses from methods defined using `chain`. It is - # false by default for backwards compatibility. - # - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#150 - def include_chain_clauses_in_custom_matcher_descriptions?; end - - # Configures the maximum character length that RSpec will print while - # formatting an object. You can set length to nil to prevent RSpec from - # doing truncation. - # - # @example - # RSpec.configure do |rspec| - # rspec.expect_with :rspec do |c| - # c.max_formatted_output_length = 200 - # end - # end - # @param length [Fixnum] the number of characters to limit the formatted output to. - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#70 - def max_formatted_output_length=(length); end - - # Indicates what RSpec will do about matcher use which will - # potentially cause false positives in tests, generally you want to - # avoid such scenarios so this defaults to `true`. - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#211 - def on_potential_false_positives; end - - # Configures what RSpec will do about matcher use which will - # potentially cause false positives in tests. - # - # @param behavior [Symbol] can be set to :warn, :raise or :nothing - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#187 - def on_potential_false_positives=(behavior); end - - # @private - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#155 - def reset_syntaxes_to_default; end - - # Returns the value of attribute strict_predicate_matchers. - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#202 - def strict_predicate_matchers; end - - # Configures RSpec to check predicate matchers to `be(true)` / `be(false)` (strict), - # or `be_truthy` / `be_falsey` (not strict). - # Historically, the default was `false`, but `true` is recommended. - # - # @raise [ArgumentError] - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#197 - def strict_predicate_matchers=(flag); end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#204 - def strict_predicate_matchers?; end - - # The list of configured syntaxes. - # - # @example - # unless RSpec::Matchers.configuration.syntax.include?(:expect) - # raise "this RSpec extension gem requires the rspec-expectations `:expect` syntax" - # end - # @return [Array] the list of configured syntaxes. - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#80 - def syntax; end - - # Configures the supported syntax. - # - # @example - # RSpec.configure do |rspec| - # rspec.expect_with :rspec do |c| - # c.syntax = :should - # # or - # c.syntax = :expect - # # or - # c.syntax = [:should, :expect] - # end - # end - # @param values [Array, Symbol] the syntaxes to enable - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#46 - def syntax=(values); end - - # Configures whether RSpec will warn about matcher use which will - # potentially cause false positives in tests. - # - # @param boolean [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#173 - def warn_about_potential_false_positives=(boolean); end - - # Indicates whether RSpec will warn about matcher use which will - # potentially cause false positives in tests, generally you want to - # avoid such scenarios so this defaults to `true`. - # - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#216 - def warn_about_potential_false_positives?; end -end - -# @private -# -# source://rspec-expectations//lib/rspec/expectations/configuration.rb#22 -RSpec::Expectations::Configuration::FALSE_POSITIVE_BEHAVIOURS = T.let(T.unsafe(nil), Hash) - -# Null implementation of a backtrace formatter used by default -# when rspec-core is not loaded. Does no filtering. -# -# @api private -# -# source://rspec-expectations//lib/rspec/expectations/configuration.rb#163 -module RSpec::Expectations::Configuration::NullBacktraceFormatter - class << self - # source://rspec-expectations//lib/rspec/expectations/configuration.rb#164 - def format_backtrace(backtrace); end - end -end - -# @private -# -# source://rspec-expectations//lib/rspec/expectations/handler.rb#4 -module RSpec::Expectations::ExpectationHelper - class << self - # source://rspec-expectations//lib/rspec/expectations/handler.rb#5 - def check_message(msg); end - - # source://rspec-expectations//lib/rspec/expectations/handler.rb#32 - def handle_failure(matcher, message, failure_message_method); end - - # Returns an RSpec-3+ compatible matcher, wrapping a legacy one - # in an adapter if necessary. - # - # @private - # - # source://rspec-expectations//lib/rspec/expectations/handler.rb#18 - def modern_matcher_from(matcher); end - - # source://rspec-expectations//lib/rspec/expectations/handler.rb#23 - def with_matcher(handler, matcher, message); end - end -end - -# Exception raised when an expectation fails. -# -# the user sets an expectation, it can't be caught in their -# code by a bare `rescue`. -# -# @api public -# @note We subclass Exception so that in a stub implementation if -# -# source://rspec-expectations//lib/rspec/expectations.rb#67 -class RSpec::Expectations::ExpectationNotMetError < ::Exception; end - -# Wraps the target of an expectation. -# -# @example -# expect(something) # => ExpectationTarget wrapping something -# expect { do_something } # => ExpectationTarget wrapping the block -# -# # used with `to` -# expect(actual).to eq(3) -# -# # with `not_to` -# expect(actual).not_to eq(3) -# @note `ExpectationTarget` is not intended to be instantiated -# directly by users. Use `expect` instead. -# -# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#17 -class RSpec::Expectations::ExpectationTarget - include ::RSpec::Expectations::ExpectationTarget::InstanceMethods - - # @api private - # @return [ExpectationTarget] a new instance of ExpectationTarget - # - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#31 - def initialize(value); end - - # @note this name aligns with `Minitest::Expectation` so that our - # {InstanceMethods} module can be included in that class when - # used in a Minitest context. - # @return [Object] the target of the expectation - # - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#28 - def target; end - - class << self - # @private - # - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#36 - def for(value, block); end - end -end - -# Defines instance {ExpectationTarget} instance methods. These are defined -# in a module so we can include it in `Minitest::Expectation` when -# `rspec/expectations/minitest_integration` is loaded in order to -# support usage with Minitest. -# -# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#53 -module RSpec::Expectations::ExpectationTarget::InstanceMethods - # Runs the given expectation, passing if `matcher` returns false. - # - # @example - # expect(value).not_to eq(5) - # @param matcher [Matcher] - # @param message [String, Proc] optional message to display when the expectation fails - # @return [Boolean] false if the negative expectation succeeds (else raises) - # @see RSpec::Matchers - # - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#76 - def not_to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end - - # Runs the given expectation, passing if `matcher` returns true. - # - # @example - # expect(value).to eq(5) - # expect { perform }.to raise_error - # @param matcher [Matcher] - # @param message [String, Proc] optional message to display when the expectation fails - # @return [Boolean] true if the expectation succeeds (else raises) - # @see RSpec::Matchers - # - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#63 - def to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end - - # Runs the given expectation, passing if `matcher` returns false. - # - # @example - # expect(value).not_to eq(5) - # @param matcher [Matcher] - # @param message [String, Proc] optional message to display when the expectation fails - # @return [Boolean] false if the negative expectation succeeds (else raises) - # @see RSpec::Matchers - # - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#76 - def to_not(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end - - private - - # @raise [ArgumentError] - # - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#84 - def prevent_operator_matchers(verb); end -end - -# Used as a sentinel value to be able to tell when the user -# did not pass an argument. We can't use `nil` for that because -# `nil` is a valid value to pass. -# -# @private -# -# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#22 -module RSpec::Expectations::ExpectationTarget::UndefinedValue; end - -# @private -# -# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#4 -class RSpec::Expectations::FailureAggregator - # @return [FailureAggregator] a new instance of FailureAggregator - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#97 - def initialize(block_label, metadata); end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#27 - def aggregate; end - - # Returns the value of attribute block_label. - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#5 - def block_label; end - - # This method is defined to satisfy the callable interface - # expected by `RSpec::Support.with_failure_notifier`. - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#64 - def call(failure, options); end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#54 - def failures; end - - # Returns the value of attribute metadata. - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#5 - def metadata; end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#58 - def other_errors; end - - private - - # Using `caller` performs better (and is simpler) than `raise` on most Rubies. - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#92 - def assign_backtrace(failure); end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#103 - def notify_aggregated_failures; end -end - -# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#25 -RSpec::Expectations::FailureAggregator::AGGREGATED_FAILURE = T.let(T.unsafe(nil), RSpec::Expectations::FailureAggregator::AggregatedFailure) - -# @private -# -# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#8 -class RSpec::Expectations::FailureAggregator::AggregatedFailure - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#19 - def inspect; end -end - -# :nocov: -# `inspect` was apparently used by some versions early in ruby 3 while constructing -# NoMethodError, but seems to be no longer. -# -# @private -# -# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#14 -RSpec::Expectations::FailureAggregator::AggregatedFailure::MESSAGE = T.let(T.unsafe(nil), String) - -# RSpec 3.0 was released with the class name misspelled. For SemVer compatibility, -# we will provide this misspelled alias until 4.0. -# -# @deprecated Use LegacyMatcherAdapter instead. -# @private -# -# source://rspec-expectations//lib/rspec/expectations/handler.rb#179 -RSpec::Expectations::LegacyMacherAdapter = RSpec::Expectations::LegacyMatcherAdapter - -# Wraps a matcher written against one of the legacy protocols in -# order to present the current protocol. -# -# @private -# -# source://rspec-expectations//lib/rspec/expectations/handler.rb#112 -class RSpec::Expectations::LegacyMatcherAdapter < ::RSpec::Matchers::MatcherDelegator - # @return [LegacyMatcherAdapter] a new instance of LegacyMatcherAdapter - # - # source://rspec-expectations//lib/rspec/expectations/handler.rb#113 - def initialize(matcher); end - - class << self - # source://rspec-expectations//lib/rspec/expectations/handler.rb#123 - def wrap(matcher); end - end -end - -# Before RSpec 1.2, the failure message protocol was: -# * `failure_message` -# * `negative_failure_message` -# -# @private -# -# source://rspec-expectations//lib/rspec/expectations/handler.rb#156 -class RSpec::Expectations::LegacyMatcherAdapter::RSpec1 < ::RSpec::Expectations::LegacyMatcherAdapter - # source://rspec-expectations//lib/rspec/expectations/handler.rb#157 - def failure_message; end - - # source://rspec-expectations//lib/rspec/expectations/handler.rb#161 - def failure_message_when_negated; end - - class << self - # Note: `failure_message` is part of the RSpec 3 protocol - # (paired with `failure_message_when_negated`), so we don't check - # for `failure_message` here. - # - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/handler.rb#168 - def interface_matches?(matcher); end - end -end - -# Starting in RSpec 1.2 (and continuing through all 2.x releases), -# the failure message protocol was: -# * `failure_message_for_should` -# * `failure_message_for_should_not` -# -# @private -# -# source://rspec-expectations//lib/rspec/expectations/handler.rb#132 -class RSpec::Expectations::LegacyMatcherAdapter::RSpec2 < ::RSpec::Expectations::LegacyMatcherAdapter - # source://rspec-expectations//lib/rspec/expectations/handler.rb#133 - def failure_message; end - - # source://rspec-expectations//lib/rspec/expectations/handler.rb#137 - def failure_message_when_negated; end - - class << self - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/handler.rb#141 - def interface_matches?(matcher); end - end -end - -# Exception raised from `aggregate_failures` when multiple expectations fail. -# -# @note The constant is defined here but the extensive logic of this class -# is lazily defined when `FailureAggregator` is autoloaded, since we do -# not need to waste time defining that functionality unless -# `aggregate_failures` is used. -# -# source://rspec-expectations//lib/rspec/expectations.rb#76 -class RSpec::Expectations::MultipleExpectationsNotMetError < ::RSpec::Expectations::ExpectationNotMetError - # @return [MultipleExpectationsNotMetError] a new instance of MultipleExpectationsNotMetError - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#160 - def initialize(failure_aggregator); end - - # @return [String] The user-assigned label for the aggregation block. - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#135 - def aggregation_block_label; end - - # @return [Hash] The metadata hash passed to `aggregate_failures`. - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#140 - def aggregation_metadata; end - - # @return [Array] The list of expectation failures and other exceptions, combined. - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#132 - def all_exceptions; end - - # return [String] A description of the failure/error counts. - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#151 - def exception_count_description; end - - # @return [Array] The list of expectation failures. - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#122 - def failures; end - - # @return [String] The fully formatted exception message. - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#117 - def message; end - - # @return [Array] The list of other exceptions. - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#127 - def other_errors; end - - # @return [String] A summary of the failure, including the block label and a count of failures. - # - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#145 - def summary; end - - private - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#192 - def backtrace_line(line); end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#165 - def block_description; end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#174 - def enumerated(exceptions, index_offset); end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#204 - def enumerated_errors; end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#200 - def enumerated_failures; end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#182 - def exclusion_patterns; end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#188 - def format_backtrace(backtrace); end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#219 - def indentation; end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#210 - def indented(failure_message, index); end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#231 - def index_label(index); end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#223 - def longest_index_label_width; end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#170 - def pluralize(noun, count); end - - # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#227 - def width_of_label(index); end -end - -# @private -# -# source://rspec-expectations//lib/rspec/expectations/handler.rb#73 -class RSpec::Expectations::NegativeExpectationHandler - class << self - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/handler.rb#87 - def does_not_match?(matcher, actual, &block); end - - # source://rspec-expectations//lib/rspec/expectations/handler.rb#74 - def handle_matcher(actual, initial_matcher, custom_message = T.unsafe(nil), &block); end - - # source://rspec-expectations//lib/rspec/expectations/handler.rb#103 - def opposite_should_method; end - - # source://rspec-expectations//lib/rspec/expectations/handler.rb#99 - def should_method; end - - # source://rspec-expectations//lib/rspec/expectations/handler.rb#95 - def verb; end - end -end - -# @private -# -# source://rspec-expectations//lib/rspec/expectations/handler.rb#45 -class RSpec::Expectations::PositiveExpectationHandler - class << self - # source://rspec-expectations//lib/rspec/expectations/handler.rb#46 - def handle_matcher(actual, initial_matcher, custom_message = T.unsafe(nil), &block); end - - # source://rspec-expectations//lib/rspec/expectations/handler.rb#67 - def opposite_should_method; end - - # source://rspec-expectations//lib/rspec/expectations/handler.rb#63 - def should_method; end - - # source://rspec-expectations//lib/rspec/expectations/handler.rb#59 - def verb; end - end -end - -# Provides methods for enabling and disabling the available -# syntaxes provided by rspec-expectations. -# -# @api private -# -# source://rspec-expectations//lib/rspec/expectations/syntax.rb#6 -module RSpec::Expectations::Syntax - private - - # Determines where we add `should` and `should_not`. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#11 - def default_should_host; end - - # Disables the `expect` syntax. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#80 - def disable_expect(syntax_host = T.unsafe(nil)); end - - # Disables the `should` syntax. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#57 - def disable_should(syntax_host = T.unsafe(nil)); end - - # Enables the `expect` syntax. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#68 - def enable_expect(syntax_host = T.unsafe(nil)); end - - # Enables the `should` syntax. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#38 - def enable_should(syntax_host = T.unsafe(nil)); end - - # Indicates whether or not the `expect` syntax is enabled. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#96 - def expect_enabled?(syntax_host = T.unsafe(nil)); end - - # Indicates whether or not the `should` syntax is enabled. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#90 - def should_enabled?(syntax_host = T.unsafe(nil)); end - - # Instructs rspec-expectations to warn on first usage of `should` or `should_not`. - # Enabled by default. This is largely here to facilitate testing. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#18 - def warn_about_should!; end - - # Generates a deprecation warning for the given method if no warning - # has already been issued. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#25 - def warn_about_should_unless_configured(method_name); end - - class << self - # Determines where we add `should` and `should_not`. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#11 - def default_should_host; end - - # Disables the `expect` syntax. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#80 - def disable_expect(syntax_host = T.unsafe(nil)); end - - # Disables the `should` syntax. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#57 - def disable_should(syntax_host = T.unsafe(nil)); end - - # Enables the `expect` syntax. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#68 - def enable_expect(syntax_host = T.unsafe(nil)); end - - # Enables the `should` syntax. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#38 - def enable_should(syntax_host = T.unsafe(nil)); end - - # Indicates whether or not the `expect` syntax is enabled. - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#96 - def expect_enabled?(syntax_host = T.unsafe(nil)); end - - # Indicates whether or not the `should` syntax is enabled. - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#90 - def should_enabled?(syntax_host = T.unsafe(nil)); end - - # Instructs rspec-expectations to warn on first usage of `should` or `should_not`. - # Enabled by default. This is largely here to facilitate testing. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#18 - def warn_about_should!; end - - # Generates a deprecation warning for the given method if no warning - # has already been issued. - # - # @api private - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#25 - def warn_about_should_unless_configured(method_name); end - end -end - -# Validates the provided matcher to ensure it supports block -# expectations, in order to avoid user confusion when they -# use a block thinking the expectation will be on the return -# value of the block rather than the block itself. -# -# @private -# -# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#98 -class RSpec::Expectations::ValueExpectationTarget < ::RSpec::Expectations::ExpectationTarget - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#104 - def not_to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end - - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#99 - def to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end - - private - - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#111 - def enforce_value_expectation(matcher); end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#126 - def supports_value_expectations?(matcher); end -end - -# @private -# -# source://rspec-expectations//lib/rspec/expectations/version.rb#4 -module RSpec::Expectations::Version; end - -# source://rspec-expectations//lib/rspec/expectations/version.rb#5 -RSpec::Expectations::Version::STRING = T.let(T.unsafe(nil), String) - -# RSpec::Matchers provides a number of useful matchers we use to define -# expectations. Any object that implements the [matcher protocol](Matchers/MatcherProtocol) -# can be used as a matcher. -# -# ## Predicates -# -# In addition to matchers that are defined explicitly, RSpec will create -# custom matchers on the fly for any arbitrary predicate, giving your specs a -# much more natural language feel. -# -# A Ruby predicate is a method that ends with a "?" and returns true or false. -# Common examples are `empty?`, `nil?`, and `instance_of?`. -# -# All you need to do is write `expect(..).to be_` followed by the predicate -# without the question mark, and RSpec will figure it out from there. -# For example: -# -# expect([]).to be_empty # => [].empty?() | passes -# expect([]).not_to be_empty # => [].empty?() | fails -# -# In addition to prefixing the predicate matchers with "be_", you can also use "be_a_" -# and "be_an_", making your specs read much more naturally: -# -# expect("a string").to be_an_instance_of(String) # =>"a string".instance_of?(String) # passes -# -# expect(3).to be_a_kind_of(Integer) # => 3.kind_of?(Numeric) | passes -# expect(3).to be_a_kind_of(Numeric) # => 3.kind_of?(Numeric) | passes -# expect(3).to be_an_instance_of(Integer) # => 3.instance_of?(Integer) | passes -# expect(3).not_to be_an_instance_of(Numeric) # => 3.instance_of?(Numeric) | fails -# -# RSpec will also create custom matchers for predicates like `has_key?`. To -# use this feature, just state that the object should have_key(:key) and RSpec will -# call has_key?(:key) on the target. For example: -# -# expect(:a => "A").to have_key(:a) -# expect(:a => "A").to have_key(:b) # fails -# -# You can use this feature to invoke any predicate that begins with "has_", whether it is -# part of the Ruby libraries (like `Hash#has_key?`) or a method you wrote on your own class. -# -# Note that RSpec does not provide composable aliases for these dynamic predicate -# matchers. You can easily define your own aliases, though: -# -# RSpec::Matchers.alias_matcher :a_user_who_is_an_admin, :be_an_admin -# expect(user_list).to include(a_user_who_is_an_admin) -# -# ## Alias Matchers -# -# With {RSpec::Matchers.alias_matcher}, you can easily create an -# alternate name for a given matcher. -# -# The description will also change according to the new name: -# -# RSpec::Matchers.alias_matcher :a_list_that_sums_to, :sum_to -# sum_to(3).description # => "sum to 3" -# a_list_that_sums_to(3).description # => "a list that sums to 3" -# -# or you can specify a custom description like this: -# -# RSpec::Matchers.alias_matcher :a_list_sorted_by, :be_sorted_by do |description| -# description.sub("be sorted by", "a list sorted by") -# end -# -# be_sorted_by(:age).description # => "be sorted by age" -# a_list_sorted_by(:age).description # => "a list sorted by age" -# -# ## Custom Matchers -# -# When you find that none of the stock matchers provide a natural feeling -# expectation, you can very easily write your own using RSpec's matcher DSL -# or writing one from scratch. -# -# ### Matcher DSL -# -# Imagine that you are writing a game in which players can be in various -# zones on a virtual board. To specify that bob should be in zone 4, you -# could say: -# -# expect(bob.current_zone).to eql(Zone.new("4")) -# -# But you might find it more expressive to say: -# -# expect(bob).to be_in_zone("4") -# -# and/or -# -# expect(bob).not_to be_in_zone("3") -# -# You can create such a matcher like so: -# -# RSpec::Matchers.define :be_in_zone do |zone| -# match do |player| -# player.in_zone?(zone) -# end -# end -# -# This will generate a be_in_zone method that returns a matcher -# with logical default messages for failures. You can override the failure -# messages and the generated description as follows: -# -# RSpec::Matchers.define :be_in_zone do |zone| -# match do |player| -# player.in_zone?(zone) -# end -# -# failure_message do |player| -# # generate and return the appropriate string. -# end -# -# failure_message_when_negated do |player| -# # generate and return the appropriate string. -# end -# -# description do -# # generate and return the appropriate string. -# end -# end -# -# Each of the message-generation methods has access to the block arguments -# passed to the create method (in this case, zone). The -# failure message methods (failure_message and -# failure_message_when_negated) are passed the actual value (the -# receiver of expect(..) or expect(..).not_to). -# -# ### Custom Matcher from scratch -# -# You could also write a custom matcher from scratch, as follows: -# -# class BeInZone -# def initialize(expected) -# @expected = expected -# end -# -# def matches?(target) -# @target = target -# @target.current_zone.eql?(Zone.new(@expected)) -# end -# -# def failure_message -# "expected #{@target.inspect} to be in Zone #{@expected}" -# end -# -# def failure_message_when_negated -# "expected #{@target.inspect} not to be in Zone #{@expected}" -# end -# end -# -# ... and a method like this: -# -# def be_in_zone(expected) -# BeInZone.new(expected) -# end -# -# And then expose the method to your specs. This is normally done -# by including the method and the class in a module, which is then -# included in your spec: -# -# module CustomGameMatchers -# class BeInZone -# # ... -# end -# -# def be_in_zone(expected) -# # ... -# end -# end -# -# describe "Player behaviour" do -# include CustomGameMatchers -# # ... -# end -# -# or you can include in globally in a spec_helper.rb file required -# from your spec file(s): -# -# RSpec::configure do |config| -# config.include(CustomGameMatchers) -# end -# -# ### Making custom matchers composable -# -# RSpec's built-in matchers are designed to be composed, in expressions like: -# -# expect(["barn", 2.45]).to contain_exactly( -# a_value_within(0.1).of(2.5), -# a_string_starting_with("bar") -# ) -# -# Custom matchers can easily participate in composed matcher expressions like these. -# Include {RSpec::Matchers::Composable} in your custom matcher to make it support -# being composed (matchers defined using the DSL have this included automatically). -# Within your matcher's `matches?` method (or the `match` block, if using the DSL), -# use `values_match?(expected, actual)` rather than `expected == actual`. -# Under the covers, `values_match?` is able to match arbitrary -# nested data structures containing a mix of both matchers and non-matcher objects. -# It uses `===` and `==` to perform the matching, considering the values to -# match if either returns `true`. The `Composable` mixin also provides some helper -# methods for surfacing the matcher descriptions within your matcher's description -# or failure messages. -# -# RSpec's built-in matchers each have a number of aliases that rephrase the matcher -# from a verb phrase (such as `be_within`) to a noun phrase (such as `a_value_within`), -# which reads better when the matcher is passed as an argument in a composed matcher -# expressions, and also uses the noun-phrase wording in the matcher's `description`, -# for readable failure messages. You can alias your custom matchers in similar fashion -# using {RSpec::Matchers.alias_matcher}. -# -# ## Negated Matchers -# -# Sometimes if you want to test for the opposite using a more descriptive name -# instead of using `not_to`, you can use {RSpec::Matchers.define_negated_matcher}: -# -# RSpec::Matchers.define_negated_matcher :exclude, :include -# include(1, 2).description # => "include 1 and 2" -# exclude(1, 2).description # => "exclude 1 and 2" -# -# While the most obvious negated form may be to add a `not_` prefix, -# the failure messages you get with that form can be confusing (e.g. -# "expected [actual] to not [verb], but did not"). We've found it works -# best to find a more positive name for the negated form, such as -# `avoid_changing` rather than `not_change`. -# -# source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#2 -module RSpec::Matchers - extend ::RSpec::Matchers::DSL - - # Applied to a proc, specifies that its execution will cause some value to - # change. - # - # You can either pass receiver and message, or a block, - # but not both. - # - # When passing a block, it must use the `{ ... }` format, not - # do/end, as `{ ... }` binds to the `change` method, whereas do/end - # would errantly bind to the `expect(..).to` or `expect(...).not_to` method. - # - # You can chain any of the following off of the end to specify details - # about the change: - # - # * `from` - # * `to` - # - # or any one of: - # - # * `by` - # * `by_at_least` - # * `by_at_most` - # - # == Notes - # - # Evaluates `receiver.message` or `block` before and after it - # evaluates the block passed to `expect`. If the value is the same - # object, its before/after `hash` value is used to see if it has changed. - # Therefore, your object needs to properly implement `hash` to work correctly - # with this matcher. - # - # `expect( ... ).not_to change` supports the form that specifies `from` - # (which specifies what you expect the starting, unchanged value to be) - # but does not support forms with subsequent calls to `by`, `by_at_least`, - # `by_at_most` or `to`. - # - # @example - # expect { - # team.add_player(player) - # }.to change(roster, :count) - # - # expect { - # team.add_player(player) - # }.to change(roster, :count).by(1) - # - # expect { - # team.add_player(player) - # }.to change(roster, :count).by_at_least(1) - # - # expect { - # team.add_player(player) - # }.to change(roster, :count).by_at_most(1) - # - # string = "string" - # expect { - # string.reverse! - # }.to change { string }.from("string").to("gnirts") - # - # string = "string" - # expect { - # string - # }.not_to change { string }.from("string") - # - # expect { - # person.happy_birthday - # }.to change(person, :birthday).from(32).to(33) - # - # expect { - # employee.develop_great_new_social_networking_app - # }.to change(employee, :title).from("Mail Clerk").to("CEO") - # - # expect { - # doctor.leave_office - # }.to change(doctor, :sign).from(/is in/).to(/is out/) - # - # user = User.new(:type => "admin") - # expect { - # user.symbolize_type - # }.to change(user, :type).from(String).to(Symbol) - # @param receiver [Object] - # @param message [Symbol] the message to send the receiver - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_block_changing(*args, **_arg1, &block); end - - # With no arg, passes if the block outputs `to_stdout` or `to_stderr`. - # With a string, passes if the block outputs that specific string `to_stdout` or `to_stderr`. - # With a regexp or matcher, passes if the block outputs a string `to_stdout` or `to_stderr` that matches. - # - # To capture output from any spawned subprocess as well, use `to_stdout_from_any_process` or - # `to_stderr_from_any_process`. Output from any process that inherits the main process's corresponding - # standard stream will be captured. - # - # @example - # expect { print 'foo' }.to output.to_stdout - # expect { print 'foo' }.to output('foo').to_stdout - # expect { print 'foo' }.to output(/foo/).to_stdout - # - # expect { do_something }.to_not output.to_stdout - # - # expect { warn('foo') }.to output.to_stderr - # expect { warn('foo') }.to output('foo').to_stderr - # expect { warn('foo') }.to output(/foo/).to_stderr - # - # expect { do_something }.to_not output.to_stderr - # - # expect { system('echo foo') }.to output("foo\n").to_stdout_from_any_process - # expect { system('echo foo', out: :err) }.to output("foo\n").to_stderr_from_any_process - # @note `to_stdout` and `to_stderr` work by temporarily replacing `$stdout` or `$stderr`, - # so they're not able to intercept stream output that explicitly uses `STDOUT`/`STDERR` - # or that uses a reference to `$stdout`/`$stderr` that was stored before the - # matcher was used. - # @note `to_stdout_from_any_process` and `to_stderr_from_any_process` use Tempfiles, and - # are thus significantly (~30x) slower than `to_stdout` and `to_stderr`. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_block_outputting(*args, **_arg1, &block); end - - # With no args, matches if any error is raised. - # With a named error, matches only if that specific error is raised. - # With a named error and message specified as a String, matches only if both match. - # With a named error and message specified as a Regexp, matches only if both match. - # Pass an optional block to perform extra verifications on the exception matched - # - # @example - # expect { do_something_risky }.to raise_error - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) { |error| expect(error.data).to eq 42 } - # expect { do_something_risky }.to raise_error { |error| expect(error.data).to eq 42 } - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, "that was too risky") - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, /oo ri/) - # expect { do_something_risky }.to raise_error("that was too risky") - # - # expect { do_something_risky }.not_to raise_error - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_block_raising(*args, **_arg1, &block); end - - # Given no argument, matches if a proc throws any Symbol. - # - # Given a Symbol, matches if the given proc throws the specified Symbol. - # - # Given a Symbol and an arg, matches if the given proc throws the - # specified Symbol with the specified arg. - # - # @example - # expect { do_something_risky }.to throw_symbol - # expect { do_something_risky }.to throw_symbol(:that_was_risky) - # expect { do_something_risky }.to throw_symbol(:that_was_risky, 'culprit') - # - # expect { do_something_risky }.not_to throw_symbol - # expect { do_something_risky }.not_to throw_symbol(:that_was_risky) - # expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit') - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_block_throwing(*args, **_arg1, &block); end - - # Passes if the method called in the expect block yields, regardless - # of whether or not arguments are yielded. - # - # @example - # expect { |b| 5.tap(&b) }.to yield_control - # expect { |b| "a".to_sym(&b) }.not_to yield_control - # @note Your expect block must accept a parameter and pass it on to - # the method-under-test as a block. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_block_yielding_control(*args, **_arg1, &block); end - - # Designed for use with methods that repeatedly yield (such as - # iterators). Passes if the method called in the expect block yields - # multiple times with arguments matching those given. - # - # Argument matching is done using `===` (the case match operator) - # and `==`. If the expected and actual arguments match with either - # operator, the matcher will pass. - # - # @example - # expect { |b| [1, 2, 3].each(&b) }.to yield_successive_args(1, 2, 3) - # expect { |b| { :a => 1, :b => 2 }.each(&b) }.to yield_successive_args([:a, 1], [:b, 2]) - # expect { |b| [1, 2, 3].each(&b) }.not_to yield_successive_args(1, 2) - # @note Your expect block must accept a parameter and pass it on to - # the method-under-test as a block. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_block_yielding_successive_args(*args, **_arg1, &block); end - - # Given no arguments, matches if the method called in the expect - # block yields with arguments (regardless of what they are or how - # many there are). - # - # Given arguments, matches if the method called in the expect block - # yields with arguments that match the given arguments. - # - # Argument matching is done using `===` (the case match operator) - # and `==`. If the expected and actual arguments match with either - # operator, the matcher will pass. - # - # @example - # expect { |b| 5.tap(&b) }.to yield_with_args # because #tap yields an arg - # expect { |b| 5.tap(&b) }.to yield_with_args(5) # because 5 == 5 - # expect { |b| 5.tap(&b) }.to yield_with_args(Integer) # because Integer === 5 - # expect { |b| File.open("f.txt", &b) }.to yield_with_args(/txt/) # because /txt/ === "f.txt" - # - # expect { |b| User.transaction(&b) }.not_to yield_with_args # because it yields no args - # expect { |b| 5.tap(&b) }.not_to yield_with_args(1, 2, 3) - # @note Your expect block must accept a parameter and pass it on to - # the method-under-test as a block. - # @note This matcher is not designed for use with methods that yield - # multiple times. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_block_yielding_with_args(*args, **_arg1, &block); end - - # Passes if the method called in the expect block yields with - # no arguments. Fails if it does not yield, or yields with arguments. - # - # @example - # expect { |b| User.transaction(&b) }.to yield_with_no_args - # expect { |b| 5.tap(&b) }.not_to yield_with_no_args # because it yields with `5` - # expect { |b| "a".to_sym(&b) }.not_to yield_with_no_args # because it does not yield - # @note Your expect block must accept a parameter and pass it on to - # the method-under-test as a block. - # @note This matcher is not designed for use with methods that yield - # multiple times. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_block_yielding_with_no_args(*args, **_arg1, &block); end - - # Passes if actual contains all of the expected regardless of order. - # This works for collections. Pass in multiple args and it will only - # pass if all args are found in collection. - # - # @example - # expect([1, 2, 3]).to contain_exactly(1, 2, 3) - # expect([1, 2, 3]).to contain_exactly(1, 3, 2) - # @note This is also available using the `=~` operator with `should`, - # but `=~` is not supported with `expect`. - # @see #match_array - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_collection_containing_exactly(*args, **_arg1, &block); end - - # Matches if the actual value ends with the expected value(s). In the case - # of a string, matches against the last `expected.length` characters of the - # actual string. In the case of an array, matches against the last - # `expected.length` elements of the actual array. - # - # @example - # expect("this string").to end_with "string" - # expect([0, 1, 2, 3, 4]).to end_with 4 - # expect([0, 2, 3, 4, 4]).to end_with 3, 4 - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_collection_ending_with(*args, **_arg1, &block); end - - # Passes if actual includes expected. This works for - # collections and Strings. You can also pass in multiple args - # and it will only pass if all args are found in collection. - # - # @example - # expect([1,2,3]).to include(3) - # expect([1,2,3]).to include(2,3) - # expect([1,2,3]).to include(2,3,4) # fails - # expect([1,2,3]).not_to include(4) - # expect("spread").to include("read") - # expect("spread").not_to include("red") - # expect(:a => 1, :b => 2).to include(:a) - # expect(:a => 1, :b => 2).to include(:a, :b) - # expect(:a => 1, :b => 2).to include(:a => 1) - # expect(:a => 1, :b => 2).to include(:b => 2, :a => 1) - # expect(:a => 1, :b => 2).to include(:c) # fails - # expect(:a => 1, :b => 2).not_to include(:a => 2) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_collection_including(*args, **_arg1, &block); end - - # Matches if the actual value starts with the expected value(s). In the - # case of a string, matches against the first `expected.length` characters - # of the actual string. In the case of an array, matches against the first - # `expected.length` elements of the actual array. - # - # @example - # expect("this string").to start_with "this s" - # expect([0, 1, 2, 3, 4]).to start_with 0 - # expect([0, 2, 3, 4, 4]).to start_with 0, 1 - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_collection_starting_with(*args, **_arg1, &block); end - - # Passes if actual is falsey (false or nil) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_falsey_value(*args, **_arg1, &block); end - - # Passes if actual is falsey (false or nil) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_falsy_value(*args, **_arg1, &block); end - - # Passes if actual includes expected. This works for - # collections and Strings. You can also pass in multiple args - # and it will only pass if all args are found in collection. - # - # @example - # expect([1,2,3]).to include(3) - # expect([1,2,3]).to include(2,3) - # expect([1,2,3]).to include(2,3,4) # fails - # expect([1,2,3]).not_to include(4) - # expect("spread").to include("read") - # expect("spread").not_to include("red") - # expect(:a => 1, :b => 2).to include(:a) - # expect(:a => 1, :b => 2).to include(:a, :b) - # expect(:a => 1, :b => 2).to include(:a => 1) - # expect(:a => 1, :b => 2).to include(:b => 2, :a => 1) - # expect(:a => 1, :b => 2).to include(:c) # fails - # expect(:a => 1, :b => 2).not_to include(:a => 2) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_hash_including(*args, **_arg1, &block); end - - # Passes if actual.kind_of?(expected) - # - # @example - # expect(5).to be_a_kind_of(Integer) - # expect(5).to be_a_kind_of(Numeric) - # expect(5).not_to be_a_kind_of(Float) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_kind_of(*args, **_arg1, &block); end - - # Passes if actual is nil - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_nil_value(*args, **_arg1, &block); end - - # Passes if actual covers expected. This works for - # Ranges. You can also pass in multiple args - # and it will only pass if all args are found in Range. - # - # ### Warning:: Ruby >= 1.9 only - # - # @example - # expect(1..10).to cover(5) - # expect(1..10).to cover(4, 6) - # expect(1..10).to cover(4, 6, 11) # fails - # expect(1..10).not_to cover(11) - # expect(1..10).not_to cover(5) # fails - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_range_covering(*args, **_arg1, &block); end - - # Matches if the actual value ends with the expected value(s). In the case - # of a string, matches against the last `expected.length` characters of the - # actual string. In the case of an array, matches against the last - # `expected.length` elements of the actual array. - # - # @example - # expect("this string").to end_with "string" - # expect([0, 1, 2, 3, 4]).to end_with 4 - # expect([0, 2, 3, 4, 4]).to end_with 3, 4 - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_string_ending_with(*args, **_arg1, &block); end - - # Passes if actual includes expected. This works for - # collections and Strings. You can also pass in multiple args - # and it will only pass if all args are found in collection. - # - # @example - # expect([1,2,3]).to include(3) - # expect([1,2,3]).to include(2,3) - # expect([1,2,3]).to include(2,3,4) # fails - # expect([1,2,3]).not_to include(4) - # expect("spread").to include("read") - # expect("spread").not_to include("red") - # expect(:a => 1, :b => 2).to include(:a) - # expect(:a => 1, :b => 2).to include(:a, :b) - # expect(:a => 1, :b => 2).to include(:a => 1) - # expect(:a => 1, :b => 2).to include(:b => 2, :a => 1) - # expect(:a => 1, :b => 2).to include(:c) # fails - # expect(:a => 1, :b => 2).not_to include(:a => 2) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_string_including(*args, **_arg1, &block); end - - # Given a `Regexp` or `String`, passes if `actual.match(pattern)` - # Given an arbitrary nested data structure (e.g. arrays and hashes), - # matches if `expected === actual` || `actual == expected` for each - # pair of elements. - # - # @example - # expect(email).to match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i) - # expect(email).to match("@example.com") - # @example - # hash = { - # :a => { - # :b => ["foo", 5], - # :c => { :d => 2.05 } - # } - # } - # - # expect(hash).to match( - # :a => { - # :b => a_collection_containing_exactly( - # a_string_starting_with("f"), - # an_instance_of(Integer) - # ), - # :c => { :d => (a_value < 3) } - # } - # ) - # @note The `match_regex` alias is deprecated and is not recommended for use. - # It was added in 2.12.1 to facilitate its use from within custom - # matchers (due to how the custom matcher DSL was evaluated in 2.x, - # `match` could not be used there), but is no longer needed in 3.x. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_string_matching(*args, **_arg1, &block); end - - # Matches if the actual value starts with the expected value(s). In the - # case of a string, matches against the first `expected.length` characters - # of the actual string. In the case of an array, matches against the first - # `expected.length` elements of the actual array. - # - # @example - # expect("this string").to start_with "this s" - # expect([0, 1, 2, 3, 4]).to start_with 0 - # expect([0, 2, 3, 4, 4]).to start_with 0, 1 - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_string_starting_with(*args, **_arg1, &block); end - - # Passes if actual is truthy (anything but false or nil) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_truthy_value(*args, **_arg1, &block); end - - # Given true, false, or nil, will pass if actual value is true, false or - # nil (respectively). Given no args means the caller should satisfy an if - # condition (to be or not to be). - # - # Predicates are any Ruby method that ends in a "?" and returns true or - # false. Given be_ followed by arbitrary_predicate (without the "?"), - # RSpec will match convert that into a query against the target object. - # - # The arbitrary_predicate feature will handle any predicate prefixed with - # "be_an_" (e.g. be_an_instance_of), "be_a_" (e.g. be_a_kind_of) or "be_" - # (e.g. be_empty), letting you choose the prefix that best suits the - # predicate. - # - # @example - # expect(actual).to be_truthy - # expect(actual).to be_falsey - # expect(actual).to be_nil - # expect(actual).to be_[arbitrary_predicate](*args) - # expect(actual).not_to be_nil - # expect(actual).not_to be_[arbitrary_predicate](*args) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_value(*args, **_arg1, &block); end - - # Passes if actual.between?(min, max). Works with any Comparable object, - # including String, Symbol, Time, or Numeric (Fixnum, Bignum, Integer, - # Float, Complex, and Rational). - # - # By default, `be_between` is inclusive (i.e. passes when given either the max or min value), - # but you can make it `exclusive` by chaining that off the matcher. - # - # @example - # expect(5).to be_between(1, 10) - # expect(11).not_to be_between(1, 10) - # expect(10).not_to be_between(1, 10).exclusive - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_value_between(*args, **_arg1, &block); end - - # Passes if actual == expected +/- delta - # - # @example - # expect(result).to be_within(0.5).of(3.0) - # expect(result).not_to be_within(0.5).of(3.0) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def a_value_within(*args, **_arg1, &block); end - - # Allows multiple expectations in the provided block to fail, and then - # aggregates them into a single exception, rather than aborting on the - # first expectation failure like normal. This allows you to see all - # failures from an entire set of expectations without splitting each - # off into its own example (which may slow things down if the example - # setup is expensive). - # - # @example - # aggregate_failures("verifying response") do - # expect(response.status).to eq(200) - # expect(response.headers).to include("Content-Type" => "text/plain") - # expect(response.body).to include("Success") - # end - # @note The implementation of this feature uses a thread-local variable, - # which means that if you have an expectation failure in another thread, - # it'll abort like normal. - # @param label [String] label for this aggregation block, which will be - # included in the aggregated exception message. - # @param metadata [Hash] additional metadata about this failure aggregation - # block. If multiple expectations fail, it will be exposed from the - # {Expectations::MultipleExpectationsNotMetError} exception. Mostly - # intended for internal RSpec use but you can use it as well. - # @raise [Expectations::MultipleExpectationsNotMetError] raised when - # multiple expectations fail. - # @raise [Expectations::ExpectationNotMetError] raised when a single - # expectation fails. - # @raise [Exception] other sorts of exceptions will be raised as normal. - # @yield Block containing as many expectation as you want. The block is - # simply yielded to, so you can trust that anything that works outside - # the block should work within it. - # - # source://rspec-expectations//lib/rspec/matchers.rb#305 - def aggregate_failures(label = T.unsafe(nil), metadata = T.unsafe(nil), &block); end - - # Passes if the provided matcher passes when checked against all - # elements of the collection. - # - # @example - # expect([1, 3, 5]).to all be_odd - # expect([1, 3, 6]).to all be_odd # fails - # @example - # expect([1, 3, 5]).to all( be_odd.and be_an(Integer) ) - # @note The negative form `not_to all` is not supported. Instead - # use `not_to include` or pass a negative form of a matcher - # as the argument (e.g. `all exclude(:foo)`). - # @note You can also use this with compound matchers as well. - # - # source://rspec-expectations//lib/rspec/matchers.rb#662 - def all(expected); end - - # An alternate form of `contain_exactly` that accepts - # the expected contents as a single array arg rather - # than splatted out as individual items. - # - # @example - # expect(results).to contain_exactly(1, 2) - # # is identical to: - # expect(results).to match_array([1, 2]) - # @see #contain_exactly - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def an_array_matching(*args, **_arg1, &block); end - - # Passes if actual.instance_of?(expected) - # - # @example - # expect(5).to be_an_instance_of(Integer) - # expect(5).not_to be_an_instance_of(Numeric) - # expect(5).not_to be_an_instance_of(Float) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def an_instance_of(*args, **_arg1, &block); end - - # Passes if actual == expected. - # - # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more - # information about equality in Ruby. - # - # @example - # expect(5).to eq(5) - # expect(5).not_to eq(3) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def an_object_eq_to(*args, **_arg1, &block); end - - # Passes if `actual.eql?(expected)` - # - # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more - # information about equality in Ruby. - # - # @example - # expect(5).to eql(5) - # expect(5).not_to eql(3) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def an_object_eql_to(*args, **_arg1, &block); end - - # Passes if actual.equal?(expected) (object identity). - # - # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more - # information about equality in Ruby. - # - # @example - # expect(5).to equal(5) # Integers are equal - # expect("5").not_to equal("5") # Strings that look the same are not the same object - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def an_object_equal_to(*args, **_arg1, &block); end - - # Passes if `actual.exist?` or `actual.exists?` - # - # @example - # expect(File).to exist("path/to/file") - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def an_object_existing(*args, **_arg1, &block); end - - # Passes if actual's attribute values match the expected attributes hash. - # This works no matter how you define your attribute readers. - # - # @example - # Person = Struct.new(:name, :age) - # person = Person.new("Bob", 32) - # - # expect(person).to have_attributes(:name => "Bob", :age => 32) - # expect(person).to have_attributes(:name => a_string_starting_with("B"), :age => (a_value > 30) ) - # @example - # expect(person).to have_attributes(:color => "red") - # @note It will fail if actual doesn't respond to any of the expected attributes. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def an_object_having_attributes(*args, **_arg1, &block); end - - # Given a `Regexp` or `String`, passes if `actual.match(pattern)` - # Given an arbitrary nested data structure (e.g. arrays and hashes), - # matches if `expected === actual` || `actual == expected` for each - # pair of elements. - # - # @example - # expect(email).to match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i) - # expect(email).to match("@example.com") - # @example - # hash = { - # :a => { - # :b => ["foo", 5], - # :c => { :d => 2.05 } - # } - # } - # - # expect(hash).to match( - # :a => { - # :b => a_collection_containing_exactly( - # a_string_starting_with("f"), - # an_instance_of(Integer) - # ), - # :c => { :d => (a_value < 3) } - # } - # ) - # @note The `match_regex` alias is deprecated and is not recommended for use. - # It was added in 2.12.1 to facilitate its use from within custom - # matchers (due to how the custom matcher DSL was evaluated in 2.x, - # `match` could not be used there), but is no longer needed in 3.x. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def an_object_matching(*args, **_arg1, &block); end - - # Matches if the target object responds to all of the names - # provided. Names can be Strings or Symbols. - # - # @example - # expect("string").to respond_to(:length) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def an_object_responding_to(*args, **_arg1, &block); end - - # Passes if the submitted block returns true. Yields target to the - # block. - # - # Generally speaking, this should be thought of as a last resort when - # you can't find any other way to specify the behaviour you wish to - # specify. - # - # If you do find yourself in such a situation, you could always write - # a custom matcher, which would likely make your specs more expressive. - # - # @example - # expect(5).to satisfy { |n| n > 3 } - # expect(5).to satisfy("be greater than 3") { |n| n > 3 } - # @param description [String] optional description to be used for this matcher. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def an_object_satisfying(*args, **_arg1, &block); end - - # Given true, false, or nil, will pass if actual value is true, false or - # nil (respectively). Given no args means the caller should satisfy an if - # condition (to be or not to be). - # - # Predicates are any Ruby method that ends in a "?" and returns true or - # false. Given be_ followed by arbitrary_predicate (without the "?"), - # RSpec will match convert that into a query against the target object. - # - # The arbitrary_predicate feature will handle any predicate prefixed with - # "be_an_" (e.g. be_an_instance_of), "be_a_" (e.g. be_a_kind_of) or "be_" - # (e.g. be_empty), letting you choose the prefix that best suits the - # predicate. - # - # @example - # expect(actual).to be_truthy - # expect(actual).to be_falsey - # expect(actual).to be_nil - # expect(actual).to be_[arbitrary_predicate](*args) - # expect(actual).not_to be_nil - # expect(actual).not_to be_[arbitrary_predicate](*args) - # - # source://rspec-expectations//lib/rspec/matchers.rb#349 - def be(*args); end - - # passes if target.kind_of?(klass) - # - # source://rspec-expectations//lib/rspec/matchers.rb#355 - def be_a(klass); end - - # Passes if actual.kind_of?(expected) - # - # @example - # expect(5).to be_a_kind_of(Integer) - # expect(5).to be_a_kind_of(Numeric) - # expect(5).not_to be_a_kind_of(Float) - # - # source://rspec-expectations//lib/rspec/matchers.rb#378 - def be_a_kind_of(expected); end - - # passes if target.kind_of?(klass) - # - # source://rspec-expectations//lib/rspec/matchers.rb#355 - def be_an(klass); end - - # Passes if actual.instance_of?(expected) - # - # @example - # expect(5).to be_an_instance_of(Integer) - # expect(5).not_to be_an_instance_of(Numeric) - # expect(5).not_to be_an_instance_of(Float) - # - # source://rspec-expectations//lib/rspec/matchers.rb#366 - def be_an_instance_of(expected); end - - # Passes if actual.between?(min, max). Works with any Comparable object, - # including String, Symbol, Time, or Numeric (Fixnum, Bignum, Integer, - # Float, Complex, and Rational). - # - # By default, `be_between` is inclusive (i.e. passes when given either the max or min value), - # but you can make it `exclusive` by chaining that off the matcher. - # - # @example - # expect(5).to be_between(1, 10) - # expect(11).not_to be_between(1, 10) - # expect(10).not_to be_between(1, 10).exclusive - # - # source://rspec-expectations//lib/rspec/matchers.rb#395 - def be_between(min, max); end - - # Passes if actual is falsey (false or nil) - # - # source://rspec-expectations//lib/rspec/matchers.rb#316 - def be_falsey; end - - # Passes if actual is falsey (false or nil) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def be_falsy(*args, **_arg1, &block); end - - # Passes if actual.instance_of?(expected) - # - # @example - # expect(5).to be_an_instance_of(Integer) - # expect(5).not_to be_an_instance_of(Numeric) - # expect(5).not_to be_an_instance_of(Float) - # - # source://rspec-expectations//lib/rspec/matchers.rb#366 - def be_instance_of(expected); end - - # Passes if actual.kind_of?(expected) - # - # @example - # expect(5).to be_a_kind_of(Integer) - # expect(5).to be_a_kind_of(Numeric) - # expect(5).not_to be_a_kind_of(Float) - # - # source://rspec-expectations//lib/rspec/matchers.rb#378 - def be_kind_of(expected); end - - # Passes if actual is nil - # - # source://rspec-expectations//lib/rspec/matchers.rb#324 - def be_nil; end - - # Passes if actual is truthy (anything but false or nil) - # - # source://rspec-expectations//lib/rspec/matchers.rb#310 - def be_truthy; end - - # Passes if actual == expected +/- delta - # - # @example - # expect(result).to be_within(0.5).of(3.0) - # expect(result).not_to be_within(0.5).of(3.0) - # - # source://rspec-expectations//lib/rspec/matchers.rb#405 - def be_within(delta); end - - # Applied to a proc, specifies that its execution will cause some value to - # change. - # - # You can either pass receiver and message, or a block, - # but not both. - # - # When passing a block, it must use the `{ ... }` format, not - # do/end, as `{ ... }` binds to the `change` method, whereas do/end - # would errantly bind to the `expect(..).to` or `expect(...).not_to` method. - # - # You can chain any of the following off of the end to specify details - # about the change: - # - # * `from` - # * `to` - # - # or any one of: - # - # * `by` - # * `by_at_least` - # * `by_at_most` - # - # == Notes - # - # Evaluates `receiver.message` or `block` before and after it - # evaluates the block passed to `expect`. If the value is the same - # object, its before/after `hash` value is used to see if it has changed. - # Therefore, your object needs to properly implement `hash` to work correctly - # with this matcher. - # - # `expect( ... ).not_to change` supports the form that specifies `from` - # (which specifies what you expect the starting, unchanged value to be) - # but does not support forms with subsequent calls to `by`, `by_at_least`, - # `by_at_most` or `to`. - # - # @example - # expect { - # team.add_player(player) - # }.to change(roster, :count) - # - # expect { - # team.add_player(player) - # }.to change(roster, :count).by(1) - # - # expect { - # team.add_player(player) - # }.to change(roster, :count).by_at_least(1) - # - # expect { - # team.add_player(player) - # }.to change(roster, :count).by_at_most(1) - # - # string = "string" - # expect { - # string.reverse! - # }.to change { string }.from("string").to("gnirts") - # - # string = "string" - # expect { - # string - # }.not_to change { string }.from("string") - # - # expect { - # person.happy_birthday - # }.to change(person, :birthday).from(32).to(33) - # - # expect { - # employee.develop_great_new_social_networking_app - # }.to change(employee, :title).from("Mail Clerk").to("CEO") - # - # expect { - # doctor.leave_office - # }.to change(doctor, :sign).from(/is in/).to(/is out/) - # - # user = User.new(:type => "admin") - # expect { - # user.symbolize_type - # }.to change(user, :type).from(String).to(Symbol) - # @param receiver [Object] - # @param message [Symbol] the message to send the receiver - # - # source://rspec-expectations//lib/rspec/matchers.rb#492 - def change(receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end - - # Applied to a proc, specifies that its execution will cause some value to - # change. - # - # You can either pass receiver and message, or a block, - # but not both. - # - # When passing a block, it must use the `{ ... }` format, not - # do/end, as `{ ... }` binds to the `change` method, whereas do/end - # would errantly bind to the `expect(..).to` or `expect(...).not_to` method. - # - # You can chain any of the following off of the end to specify details - # about the change: - # - # * `from` - # * `to` - # - # or any one of: - # - # * `by` - # * `by_at_least` - # * `by_at_most` - # - # == Notes - # - # Evaluates `receiver.message` or `block` before and after it - # evaluates the block passed to `expect`. If the value is the same - # object, its before/after `hash` value is used to see if it has changed. - # Therefore, your object needs to properly implement `hash` to work correctly - # with this matcher. - # - # `expect( ... ).not_to change` supports the form that specifies `from` - # (which specifies what you expect the starting, unchanged value to be) - # but does not support forms with subsequent calls to `by`, `by_at_least`, - # `by_at_most` or `to`. - # - # @example - # expect { - # team.add_player(player) - # }.to change(roster, :count) - # - # expect { - # team.add_player(player) - # }.to change(roster, :count).by(1) - # - # expect { - # team.add_player(player) - # }.to change(roster, :count).by_at_least(1) - # - # expect { - # team.add_player(player) - # }.to change(roster, :count).by_at_most(1) - # - # string = "string" - # expect { - # string.reverse! - # }.to change { string }.from("string").to("gnirts") - # - # string = "string" - # expect { - # string - # }.not_to change { string }.from("string") - # - # expect { - # person.happy_birthday - # }.to change(person, :birthday).from(32).to(33) - # - # expect { - # employee.develop_great_new_social_networking_app - # }.to change(employee, :title).from("Mail Clerk").to("CEO") - # - # expect { - # doctor.leave_office - # }.to change(doctor, :sign).from(/is in/).to(/is out/) - # - # user = User.new(:type => "admin") - # expect { - # user.symbolize_type - # }.to change(user, :type).from(String).to(Symbol) - # @param receiver [Object] - # @param message [Symbol] the message to send the receiver - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def changing(*args, **_arg1, &block); end - - # Passes if actual contains all of the expected regardless of order. - # This works for collections. Pass in multiple args and it will only - # pass if all args are found in collection. - # - # @example - # expect([1, 2, 3]).to contain_exactly(1, 2, 3) - # expect([1, 2, 3]).to contain_exactly(1, 3, 2) - # @note This is also available using the `=~` operator with `should`, - # but `=~` is not supported with `expect`. - # @see #match_array - # - # source://rspec-expectations//lib/rspec/matchers.rb#510 - def contain_exactly(*items); end - - # Passes if actual contains all of the expected regardless of order. - # This works for collections. Pass in multiple args and it will only - # pass if all args are found in collection. - # - # @example - # expect([1, 2, 3]).to contain_exactly(1, 2, 3) - # expect([1, 2, 3]).to contain_exactly(1, 3, 2) - # @note This is also available using the `=~` operator with `should`, - # but `=~` is not supported with `expect`. - # @see #match_array - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def containing_exactly(*args, **_arg1, &block); end - - # Passes if actual covers expected. This works for - # Ranges. You can also pass in multiple args - # and it will only pass if all args are found in Range. - # - # ### Warning:: Ruby >= 1.9 only - # - # @example - # expect(1..10).to cover(5) - # expect(1..10).to cover(4, 6) - # expect(1..10).to cover(4, 6, 11) # fails - # expect(1..10).not_to cover(11) - # expect(1..10).not_to cover(5) # fails - # - # source://rspec-expectations//lib/rspec/matchers.rb#528 - def cover(*values); end - - # Passes if actual covers expected. This works for - # Ranges. You can also pass in multiple args - # and it will only pass if all args are found in Range. - # - # ### Warning:: Ruby >= 1.9 only - # - # @example - # expect(1..10).to cover(5) - # expect(1..10).to cover(4, 6) - # expect(1..10).to cover(4, 6, 11) # fails - # expect(1..10).not_to cover(11) - # expect(1..10).not_to cover(5) # fails - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def covering(*args, **_arg1, &block); end - - # Matches if the actual value ends with the expected value(s). In the case - # of a string, matches against the last `expected.length` characters of the - # actual string. In the case of an array, matches against the last - # `expected.length` elements of the actual array. - # - # @example - # expect("this string").to end_with "string" - # expect([0, 1, 2, 3, 4]).to end_with 4 - # expect([0, 2, 3, 4, 4]).to end_with 3, 4 - # - # source://rspec-expectations//lib/rspec/matchers.rb#543 - def end_with(*expected); end - - # Matches if the actual value ends with the expected value(s). In the case - # of a string, matches against the last `expected.length` characters of the - # actual string. In the case of an array, matches against the last - # `expected.length` elements of the actual array. - # - # @example - # expect("this string").to end_with "string" - # expect([0, 1, 2, 3, 4]).to end_with 4 - # expect([0, 2, 3, 4, 4]).to end_with 3, 4 - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def ending_with(*args, **_arg1, &block); end - - # Passes if actual == expected. - # - # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more - # information about equality in Ruby. - # - # @example - # expect(5).to eq(5) - # expect(5).not_to eq(3) - # - # source://rspec-expectations//lib/rspec/matchers.rb#558 - def eq(expected); end - - # Passes if actual == expected. - # - # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more - # information about equality in Ruby. - # - # @example - # expect(5).to eq(5) - # expect(5).not_to eq(3) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def eq_to(*args, **_arg1, &block); end - - # Passes if `actual.eql?(expected)` - # - # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more - # information about equality in Ruby. - # - # @example - # expect(5).to eql(5) - # expect(5).not_to eql(3) - # - # source://rspec-expectations//lib/rspec/matchers.rb#572 - def eql(expected); end - - # Passes if `actual.eql?(expected)` - # - # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more - # information about equality in Ruby. - # - # @example - # expect(5).to eql(5) - # expect(5).not_to eql(3) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def eql_to(*args, **_arg1, &block); end - - # Passes if actual.equal?(expected) (object identity). - # - # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more - # information about equality in Ruby. - # - # @example - # expect(5).to equal(5) # Integers are equal - # expect("5").not_to equal("5") # Strings that look the same are not the same object - # - # source://rspec-expectations//lib/rspec/matchers.rb#586 - def equal(expected); end - - # Passes if actual.equal?(expected) (object identity). - # - # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more - # information about equality in Ruby. - # - # @example - # expect(5).to equal(5) # Integers are equal - # expect("5").not_to equal("5") # Strings that look the same are not the same object - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def equal_to(*args, **_arg1, &block); end - - # Passes if `actual.exist?` or `actual.exists?` - # - # @example - # expect(File).to exist("path/to/file") - # - # source://rspec-expectations//lib/rspec/matchers.rb#596 - def exist(*args); end - - # Passes if `actual.exist?` or `actual.exists?` - # - # @example - # expect(File).to exist("path/to/file") - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def existing(*args, **_arg1, &block); end - - # Supports `expect(actual).to matcher` syntax by wrapping `actual` in an - # `ExpectationTarget`. - # - # @example - # expect(actual).to eq(expected) - # expect(actual).not_to eq(expected) - # @return [Expectations::ExpectationTarget] - # @see Expectations::ExpectationTarget#to - # @see Expectations::ExpectationTarget#not_to - # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#72 - def expect(value = T.unsafe(nil), &block); end - - # Passes if actual's attribute values match the expected attributes hash. - # This works no matter how you define your attribute readers. - # - # @example - # Person = Struct.new(:name, :age) - # person = Person.new("Bob", 32) - # - # expect(person).to have_attributes(:name => "Bob", :age => 32) - # expect(person).to have_attributes(:name => a_string_starting_with("B"), :age => (a_value > 30) ) - # @example - # expect(person).to have_attributes(:color => "red") - # @note It will fail if actual doesn't respond to any of the expected attributes. - # - # source://rspec-expectations//lib/rspec/matchers.rb#616 - def have_attributes(expected); end - - # Passes if actual's attribute values match the expected attributes hash. - # This works no matter how you define your attribute readers. - # - # @example - # Person = Struct.new(:name, :age) - # person = Person.new("Bob", 32) - # - # expect(person).to have_attributes(:name => "Bob", :age => 32) - # expect(person).to have_attributes(:name => a_string_starting_with("B"), :age => (a_value > 30) ) - # @example - # expect(person).to have_attributes(:color => "red") - # @note It will fail if actual doesn't respond to any of the expected attributes. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def having_attributes(*args, **_arg1, &block); end - - # Passes if actual includes expected. This works for - # collections and Strings. You can also pass in multiple args - # and it will only pass if all args are found in collection. - # - # @example - # expect([1,2,3]).to include(3) - # expect([1,2,3]).to include(2,3) - # expect([1,2,3]).to include(2,3,4) # fails - # expect([1,2,3]).not_to include(4) - # expect("spread").to include("read") - # expect("spread").not_to include("red") - # expect(:a => 1, :b => 2).to include(:a) - # expect(:a => 1, :b => 2).to include(:a, :b) - # expect(:a => 1, :b => 2).to include(:a => 1) - # expect(:a => 1, :b => 2).to include(:b => 2, :a => 1) - # expect(:a => 1, :b => 2).to include(:c) # fails - # expect(:a => 1, :b => 2).not_to include(:a => 2) - # - # source://rspec-expectations//lib/rspec/matchers.rb#639 - def include(*expected); end - - # Passes if actual includes expected. This works for - # collections and Strings. You can also pass in multiple args - # and it will only pass if all args are found in collection. - # - # @example - # expect([1,2,3]).to include(3) - # expect([1,2,3]).to include(2,3) - # expect([1,2,3]).to include(2,3,4) # fails - # expect([1,2,3]).not_to include(4) - # expect("spread").to include("read") - # expect("spread").not_to include("red") - # expect(:a => 1, :b => 2).to include(:a) - # expect(:a => 1, :b => 2).to include(:a, :b) - # expect(:a => 1, :b => 2).to include(:a => 1) - # expect(:a => 1, :b => 2).to include(:b => 2, :a => 1) - # expect(:a => 1, :b => 2).to include(:c) # fails - # expect(:a => 1, :b => 2).not_to include(:a => 2) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def including(*args, **_arg1, &block); end - - # Given a `Regexp` or `String`, passes if `actual.match(pattern)` - # Given an arbitrary nested data structure (e.g. arrays and hashes), - # matches if `expected === actual` || `actual == expected` for each - # pair of elements. - # - # @example - # expect(email).to match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i) - # expect(email).to match("@example.com") - # @example - # hash = { - # :a => { - # :b => ["foo", 5], - # :c => { :d => 2.05 } - # } - # } - # - # expect(hash).to match( - # :a => { - # :b => a_collection_containing_exactly( - # a_string_starting_with("f"), - # an_instance_of(Integer) - # ), - # :c => { :d => (a_value < 3) } - # } - # ) - # @note The `match_regex` alias is deprecated and is not recommended for use. - # It was added in 2.12.1 to facilitate its use from within custom - # matchers (due to how the custom matcher DSL was evaluated in 2.x, - # `match` could not be used there), but is no longer needed in 3.x. - # - # source://rspec-expectations//lib/rspec/matchers.rb#697 - def match(expected); end - - # An alternate form of `contain_exactly` that accepts - # the expected contents as a single array arg rather - # than splatted out as individual items. - # - # @example - # expect(results).to contain_exactly(1, 2) - # # is identical to: - # expect(results).to match_array([1, 2]) - # @see #contain_exactly - # - # source://rspec-expectations//lib/rspec/matchers.rb#715 - def match_array(items); end - - # Given a `Regexp` or `String`, passes if `actual.match(pattern)` - # Given an arbitrary nested data structure (e.g. arrays and hashes), - # matches if `expected === actual` || `actual == expected` for each - # pair of elements. - # - # @example - # expect(email).to match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i) - # expect(email).to match("@example.com") - # @example - # hash = { - # :a => { - # :b => ["foo", 5], - # :c => { :d => 2.05 } - # } - # } - # - # expect(hash).to match( - # :a => { - # :b => a_collection_containing_exactly( - # a_string_starting_with("f"), - # an_instance_of(Integer) - # ), - # :c => { :d => (a_value < 3) } - # } - # ) - # @note The `match_regex` alias is deprecated and is not recommended for use. - # It was added in 2.12.1 to facilitate its use from within custom - # matchers (due to how the custom matcher DSL was evaluated in 2.x, - # `match` could not be used there), but is no longer needed in 3.x. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def match_regex(*args, **_arg1, &block); end - - # Given a `Regexp` or `String`, passes if `actual.match(pattern)` - # Given an arbitrary nested data structure (e.g. arrays and hashes), - # matches if `expected === actual` || `actual == expected` for each - # pair of elements. - # - # @example - # expect(email).to match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i) - # expect(email).to match("@example.com") - # @example - # hash = { - # :a => { - # :b => ["foo", 5], - # :c => { :d => 2.05 } - # } - # } - # - # expect(hash).to match( - # :a => { - # :b => a_collection_containing_exactly( - # a_string_starting_with("f"), - # an_instance_of(Integer) - # ), - # :c => { :d => (a_value < 3) } - # } - # ) - # @note The `match_regex` alias is deprecated and is not recommended for use. - # It was added in 2.12.1 to facilitate its use from within custom - # matchers (due to how the custom matcher DSL was evaluated in 2.x, - # `match` could not be used there), but is no longer needed in 3.x. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def matching(*args, **_arg1, &block); end - - # With no arg, passes if the block outputs `to_stdout` or `to_stderr`. - # With a string, passes if the block outputs that specific string `to_stdout` or `to_stderr`. - # With a regexp or matcher, passes if the block outputs a string `to_stdout` or `to_stderr` that matches. - # - # To capture output from any spawned subprocess as well, use `to_stdout_from_any_process` or - # `to_stderr_from_any_process`. Output from any process that inherits the main process's corresponding - # standard stream will be captured. - # - # @example - # expect { print 'foo' }.to output.to_stdout - # expect { print 'foo' }.to output('foo').to_stdout - # expect { print 'foo' }.to output(/foo/).to_stdout - # - # expect { do_something }.to_not output.to_stdout - # - # expect { warn('foo') }.to output.to_stderr - # expect { warn('foo') }.to output('foo').to_stderr - # expect { warn('foo') }.to output(/foo/).to_stderr - # - # expect { do_something }.to_not output.to_stderr - # - # expect { system('echo foo') }.to output("foo\n").to_stdout_from_any_process - # expect { system('echo foo', out: :err) }.to output("foo\n").to_stderr_from_any_process - # @note `to_stdout` and `to_stderr` work by temporarily replacing `$stdout` or `$stderr`, - # so they're not able to intercept stream output that explicitly uses `STDOUT`/`STDERR` - # or that uses a reference to `$stdout`/`$stderr` that was stored before the - # matcher was used. - # @note `to_stdout_from_any_process` and `to_stderr_from_any_process` use Tempfiles, and - # are thus significantly (~30x) slower than `to_stdout` and `to_stderr`. - # - # source://rspec-expectations//lib/rspec/matchers.rb#752 - def output(expected = T.unsafe(nil)); end - - # With no args, matches if any error is raised. - # With a named error, matches only if that specific error is raised. - # With a named error and message specified as a String, matches only if both match. - # With a named error and message specified as a Regexp, matches only if both match. - # Pass an optional block to perform extra verifications on the exception matched - # - # @example - # expect { do_something_risky }.to raise_error - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) { |error| expect(error.data).to eq 42 } - # expect { do_something_risky }.to raise_error { |error| expect(error.data).to eq 42 } - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, "that was too risky") - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, /oo ri/) - # expect { do_something_risky }.to raise_error("that was too risky") - # - # expect { do_something_risky }.not_to raise_error - # - # source://rspec-expectations//lib/rspec/matchers.rb#773 - def raise_error(error = T.unsafe(nil), message = T.unsafe(nil), &block); end - - # With no args, matches if any error is raised. - # With a named error, matches only if that specific error is raised. - # With a named error and message specified as a String, matches only if both match. - # With a named error and message specified as a Regexp, matches only if both match. - # Pass an optional block to perform extra verifications on the exception matched - # - # @example - # expect { do_something_risky }.to raise_error - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) { |error| expect(error.data).to eq 42 } - # expect { do_something_risky }.to raise_error { |error| expect(error.data).to eq 42 } - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, "that was too risky") - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, /oo ri/) - # expect { do_something_risky }.to raise_error("that was too risky") - # - # expect { do_something_risky }.not_to raise_error - # - # source://rspec-expectations//lib/rspec/matchers.rb#773 - def raise_exception(error = T.unsafe(nil), message = T.unsafe(nil), &block); end - - # With no args, matches if any error is raised. - # With a named error, matches only if that specific error is raised. - # With a named error and message specified as a String, matches only if both match. - # With a named error and message specified as a Regexp, matches only if both match. - # Pass an optional block to perform extra verifications on the exception matched - # - # @example - # expect { do_something_risky }.to raise_error - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) { |error| expect(error.data).to eq 42 } - # expect { do_something_risky }.to raise_error { |error| expect(error.data).to eq 42 } - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, "that was too risky") - # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, /oo ri/) - # expect { do_something_risky }.to raise_error("that was too risky") - # - # expect { do_something_risky }.not_to raise_error - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def raising(*args, **_arg1, &block); end - - # Matches if the target object responds to all of the names - # provided. Names can be Strings or Symbols. - # - # @example - # expect("string").to respond_to(:length) - # - # source://rspec-expectations//lib/rspec/matchers.rb#792 - def respond_to(*names); end - - # Matches if the target object responds to all of the names - # provided. Names can be Strings or Symbols. - # - # @example - # expect("string").to respond_to(:length) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def responding_to(*args, **_arg1, &block); end - - # Passes if the submitted block returns true. Yields target to the - # block. - # - # Generally speaking, this should be thought of as a last resort when - # you can't find any other way to specify the behaviour you wish to - # specify. - # - # If you do find yourself in such a situation, you could always write - # a custom matcher, which would likely make your specs more expressive. - # - # @example - # expect(5).to satisfy { |n| n > 3 } - # expect(5).to satisfy("be greater than 3") { |n| n > 3 } - # @param description [String] optional description to be used for this matcher. - # - # source://rspec-expectations//lib/rspec/matchers.rb#813 - def satisfy(description = T.unsafe(nil), &block); end - - # Passes if the submitted block returns true. Yields target to the - # block. - # - # Generally speaking, this should be thought of as a last resort when - # you can't find any other way to specify the behaviour you wish to - # specify. - # - # If you do find yourself in such a situation, you could always write - # a custom matcher, which would likely make your specs more expressive. - # - # @example - # expect(5).to satisfy { |n| n > 3 } - # expect(5).to satisfy("be greater than 3") { |n| n > 3 } - # @param description [String] optional description to be used for this matcher. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def satisfying(*args, **_arg1, &block); end - - # Matches if the actual value starts with the expected value(s). In the - # case of a string, matches against the first `expected.length` characters - # of the actual string. In the case of an array, matches against the first - # `expected.length` elements of the actual array. - # - # @example - # expect("this string").to start_with "this s" - # expect([0, 1, 2, 3, 4]).to start_with 0 - # expect([0, 2, 3, 4, 4]).to start_with 0, 1 - # - # source://rspec-expectations//lib/rspec/matchers.rb#828 - def start_with(*expected); end - - # Matches if the actual value starts with the expected value(s). In the - # case of a string, matches against the first `expected.length` characters - # of the actual string. In the case of an array, matches against the first - # `expected.length` elements of the actual array. - # - # @example - # expect("this string").to start_with "this s" - # expect([0, 1, 2, 3, 4]).to start_with 0 - # expect([0, 2, 3, 4, 4]).to start_with 0, 1 - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def starting_with(*args, **_arg1, &block); end - - # Given no argument, matches if a proc throws any Symbol. - # - # Given a Symbol, matches if the given proc throws the specified Symbol. - # - # Given a Symbol and an arg, matches if the given proc throws the - # specified Symbol with the specified arg. - # - # @example - # expect { do_something_risky }.to throw_symbol - # expect { do_something_risky }.to throw_symbol(:that_was_risky) - # expect { do_something_risky }.to throw_symbol(:that_was_risky, 'culprit') - # - # expect { do_something_risky }.not_to throw_symbol - # expect { do_something_risky }.not_to throw_symbol(:that_was_risky) - # expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit') - # - # source://rspec-expectations//lib/rspec/matchers.rb#850 - def throw_symbol(expected_symbol = T.unsafe(nil), expected_arg = T.unsafe(nil)); end - - # Given no argument, matches if a proc throws any Symbol. - # - # Given a Symbol, matches if the given proc throws the specified Symbol. - # - # Given a Symbol and an arg, matches if the given proc throws the - # specified Symbol with the specified arg. - # - # @example - # expect { do_something_risky }.to throw_symbol - # expect { do_something_risky }.to throw_symbol(:that_was_risky) - # expect { do_something_risky }.to throw_symbol(:that_was_risky, 'culprit') - # - # expect { do_something_risky }.not_to throw_symbol - # expect { do_something_risky }.not_to throw_symbol(:that_was_risky) - # expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit') - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def throwing(*args, **_arg1, &block); end - - # Passes if actual == expected +/- delta - # - # @example - # expect(result).to be_within(0.5).of(3.0) - # expect(result).not_to be_within(0.5).of(3.0) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def within(*args, **_arg1, &block); end - - # Passes if the method called in the expect block yields, regardless - # of whether or not arguments are yielded. - # - # @example - # expect { |b| 5.tap(&b) }.to yield_control - # expect { |b| "a".to_sym(&b) }.not_to yield_control - # @note Your expect block must accept a parameter and pass it on to - # the method-under-test as a block. - # - # source://rspec-expectations//lib/rspec/matchers.rb#871 - def yield_control; end - - # Designed for use with methods that repeatedly yield (such as - # iterators). Passes if the method called in the expect block yields - # multiple times with arguments matching those given. - # - # Argument matching is done using `===` (the case match operator) - # and `==`. If the expected and actual arguments match with either - # operator, the matcher will pass. - # - # @example - # expect { |b| [1, 2, 3].each(&b) }.to yield_successive_args(1, 2, 3) - # expect { |b| { :a => 1, :b => 2 }.each(&b) }.to yield_successive_args([:a, 1], [:b, 2]) - # expect { |b| [1, 2, 3].each(&b) }.not_to yield_successive_args(1, 2) - # @note Your expect block must accept a parameter and pass it on to - # the method-under-test as a block. - # - # source://rspec-expectations//lib/rspec/matchers.rb#940 - def yield_successive_args(*args); end - - # Given no arguments, matches if the method called in the expect - # block yields with arguments (regardless of what they are or how - # many there are). - # - # Given arguments, matches if the method called in the expect block - # yields with arguments that match the given arguments. - # - # Argument matching is done using `===` (the case match operator) - # and `==`. If the expected and actual arguments match with either - # operator, the matcher will pass. - # - # @example - # expect { |b| 5.tap(&b) }.to yield_with_args # because #tap yields an arg - # expect { |b| 5.tap(&b) }.to yield_with_args(5) # because 5 == 5 - # expect { |b| 5.tap(&b) }.to yield_with_args(Integer) # because Integer === 5 - # expect { |b| File.open("f.txt", &b) }.to yield_with_args(/txt/) # because /txt/ === "f.txt" - # - # expect { |b| User.transaction(&b) }.not_to yield_with_args # because it yields no args - # expect { |b| 5.tap(&b) }.not_to yield_with_args(1, 2, 3) - # @note Your expect block must accept a parameter and pass it on to - # the method-under-test as a block. - # @note This matcher is not designed for use with methods that yield - # multiple times. - # - # source://rspec-expectations//lib/rspec/matchers.rb#919 - def yield_with_args(*args); end - - # Passes if the method called in the expect block yields with - # no arguments. Fails if it does not yield, or yields with arguments. - # - # @example - # expect { |b| User.transaction(&b) }.to yield_with_no_args - # expect { |b| 5.tap(&b) }.not_to yield_with_no_args # because it yields with `5` - # expect { |b| "a".to_sym(&b) }.not_to yield_with_no_args # because it does not yield - # @note Your expect block must accept a parameter and pass it on to - # the method-under-test as a block. - # @note This matcher is not designed for use with methods that yield - # multiple times. - # - # source://rspec-expectations//lib/rspec/matchers.rb#889 - def yield_with_no_args; end - - # Passes if the method called in the expect block yields, regardless - # of whether or not arguments are yielded. - # - # @example - # expect { |b| 5.tap(&b) }.to yield_control - # expect { |b| "a".to_sym(&b) }.not_to yield_control - # @note Your expect block must accept a parameter and pass it on to - # the method-under-test as a block. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def yielding_control(*args, **_arg1, &block); end - - # Designed for use with methods that repeatedly yield (such as - # iterators). Passes if the method called in the expect block yields - # multiple times with arguments matching those given. - # - # Argument matching is done using `===` (the case match operator) - # and `==`. If the expected and actual arguments match with either - # operator, the matcher will pass. - # - # @example - # expect { |b| [1, 2, 3].each(&b) }.to yield_successive_args(1, 2, 3) - # expect { |b| { :a => 1, :b => 2 }.each(&b) }.to yield_successive_args([:a, 1], [:b, 2]) - # expect { |b| [1, 2, 3].each(&b) }.not_to yield_successive_args(1, 2) - # @note Your expect block must accept a parameter and pass it on to - # the method-under-test as a block. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def yielding_successive_args(*args, **_arg1, &block); end - - # Given no arguments, matches if the method called in the expect - # block yields with arguments (regardless of what they are or how - # many there are). - # - # Given arguments, matches if the method called in the expect block - # yields with arguments that match the given arguments. - # - # Argument matching is done using `===` (the case match operator) - # and `==`. If the expected and actual arguments match with either - # operator, the matcher will pass. - # - # @example - # expect { |b| 5.tap(&b) }.to yield_with_args # because #tap yields an arg - # expect { |b| 5.tap(&b) }.to yield_with_args(5) # because 5 == 5 - # expect { |b| 5.tap(&b) }.to yield_with_args(Integer) # because Integer === 5 - # expect { |b| File.open("f.txt", &b) }.to yield_with_args(/txt/) # because /txt/ === "f.txt" - # - # expect { |b| User.transaction(&b) }.not_to yield_with_args # because it yields no args - # expect { |b| 5.tap(&b) }.not_to yield_with_args(1, 2, 3) - # @note Your expect block must accept a parameter and pass it on to - # the method-under-test as a block. - # @note This matcher is not designed for use with methods that yield - # multiple times. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def yielding_with_args(*args, **_arg1, &block); end - - # Passes if the method called in the expect block yields with - # no arguments. Fails if it does not yield, or yields with arguments. - # - # @example - # expect { |b| User.transaction(&b) }.to yield_with_no_args - # expect { |b| 5.tap(&b) }.not_to yield_with_no_args # because it yields with `5` - # expect { |b| "a".to_sym(&b) }.not_to yield_with_no_args # because it does not yield - # @note Your expect block must accept a parameter and pass it on to - # the method-under-test as a block. - # @note This matcher is not designed for use with methods that yield - # multiple times. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 - def yielding_with_no_args(*args, **_arg1, &block); end - - private - - # source://rspec-expectations//lib/rspec/matchers.rb#961 - def method_missing(method, *args, **_arg2, &block); end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers.rb#974 - def respond_to_missing?(method, *_arg1); end - - class << self - # Extended from {RSpec::Matchers::DSL#alias_matcher}. - # - # source://rspec-expectations//lib/rspec/matchers.rb#250 - def alias_matcher(*args, &block); end - - # Used by rspec-core to clear the state used to generate - # descriptions after an example. - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#11 - def clear_generated_description; end - - # Delegates to {RSpec::Expectations.configuration}. - # This is here because rspec-core's `expect_with` option - # looks for a `configuration` method on the mixin - # (`RSpec::Matchers`) to yield to a block. - # - # @return [RSpec::Expectations::Configuration] the configuration object - # - # source://rspec-expectations//lib/rspec/matchers.rb#951 - def configuration; end - - # Generates an an example description based on the last expectation. - # Used by rspec-core's one-liner syntax. - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#19 - def generated_description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers.rb#1008 - def is_a_describable_matcher?(obj); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers.rb#988 - def is_a_matcher?(obj); end - - # @private - # - # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#25 - def last_description; end - - # @private - # - # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#5 - def last_expectation_handler; end - - # @private - # - # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#5 - def last_expectation_handler=(_arg0); end - - # @private - # - # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#5 - def last_matcher; end - - # @private - # - # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#5 - def last_matcher=(_arg0); end - end -end - -# Decorator that wraps a matcher and overrides `description` -# using the provided block in order to support an alias -# of a matcher. This is intended for use when composing -# matchers, so that you can use an expression like -# `include( a_value_within(0.1).of(3) )` rather than -# `include( be_within(0.1).of(3) )`, and have the corresponding -# description read naturally. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#12 -class RSpec::Matchers::AliasedMatcher < ::RSpec::Matchers::MatcherDelegator - # @api private - # @return [AliasedMatcher] a new instance of AliasedMatcher - # - # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#13 - def initialize(base_matcher, description_block); end - - # Provides the description of the aliased matcher. Aliased matchers - # are designed to behave identically to the original matcher except - # for the description and failure messages. The description is different - # to reflect the aliased name. - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#36 - def description; end - - # Provides the failure_message of the aliased matcher. Aliased matchers - # are designed to behave identically to the original matcher except - # for the description and failure messages. The failure_message is different - # to reflect the aliased name. - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#46 - def failure_message; end - - # Provides the failure_message_when_negated of the aliased matcher. Aliased matchers - # are designed to behave identically to the original matcher except - # for the description and failure messages. The failure_message_when_negated is different - # to reflect the aliased name. - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#56 - def failure_message_when_negated; end - - # Forward messages on to the wrapped matcher. - # Since many matchers provide a fluent interface - # (e.g. `a_value_within(0.1).of(3)`), we need to wrap - # the returned value if it responds to `description`, - # so that our override can be applied when it is eventually - # used. - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#24 - def method_missing(*_arg0); end -end - -# Decorator used for matchers that have special implementations of -# operators like `==` and `===`. -# -# @private -# -# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#64 -class RSpec::Matchers::AliasedMatcherWithOperatorSupport < ::RSpec::Matchers::AliasedMatcher; end - -# @private -# -# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#71 -class RSpec::Matchers::AliasedNegatedMatcher < ::RSpec::Matchers::AliasedMatcher - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#80 - def does_not_match?(*args, &block); end - - # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#84 - def failure_message; end - - # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#88 - def failure_message_when_negated; end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#72 - def matches?(*args, &block); end - - private - - # For a matcher that uses the default failure messages, we prefer to - # use the override provided by the `description_block`, because it - # includes the phrasing that the user has expressed a preference for - # by going through the effort of defining a negated matcher. - # - # However, if the override didn't actually change anything, then we - # should return the opposite failure message instead -- the overridden - # message is going to be confusing if we return it as-is, as it represents - # the non-negated failure message for a negated match (or vice versa). - # - # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#105 - def optimal_failure_message(same, inverted); end -end - -# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#94 -RSpec::Matchers::AliasedNegatedMatcher::DefaultFailureMessages = RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages - -# source://rspec-expectations//lib/rspec/matchers.rb#957 -RSpec::Matchers::BE_PREDICATE_REGEX = T.let(T.unsafe(nil), Regexp) - -# Provides a base class with as little methods as possible, so that -# most methods can be delegated via `method_missing`. -# -# On Ruby 2.0+ BasicObject could be used for this purpose, but it -# introduce some extra complexity with constant resolution, so the -# BlankSlate pattern was prefered. -# -# @private -# -# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#10 -class RSpec::Matchers::BaseDelegator; end - -# Container module for all built-in matchers. The matcher classes are here -# (rather than directly under `RSpec::Matchers`) in order to prevent name -# collisions, since `RSpec::Matchers` gets included into the user's namespace. -# -# Autoloading is used to delay when the matcher classes get loaded, allowing -# rspec-matchers to boot faster, and avoiding loading matchers the user is -# not using. -# -# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#3 -module RSpec::Matchers::BuiltIn; end - -# Provides the implementation for `all`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#7 -class RSpec::Matchers::BuiltIn::All < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [All] a new instance of All - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#11 - def initialize(matcher); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#37 - def description; end - - # @api private - # @private - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#17 - def does_not_match?(_actual); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#9 - def failed_objects; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#23 - def failure_message; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#9 - def matcher; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#63 - def add_new_line_if_needed(message); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#58 - def failure_message_for_item(index, failure_message); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#67 - def indent_multiline_message(message); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#50 - def index_failed_objects; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#74 - def initialize_copy(other); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#80 - def iterable?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#43 - def match(_expected, _actual); end -end - -# Used _internally_ as a base class for matchers that ship with -# rspec-expectations and rspec-rails. -# -# ### Warning: -# -# This class is for internal use, and subject to change without notice. -# We strongly recommend that you do not base your custom matchers on this -# class. If/when this changes, we will announce it and remove this warning. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#14 -class RSpec::Matchers::BuiltIn::BaseMatcher - include ::RSpec::Matchers::Composable - include ::RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting - include ::RSpec::Matchers::BuiltIn::BaseMatcher::StringEncodingFormatting - include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages - - # @api private - # @return [BaseMatcher] a new instance of BaseMatcher - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#28 - def initialize(expected = T.unsafe(nil)); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#23 - def actual; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#97 - def actual_formatted; end - - # Generates a description using {EnglishPhrasing}. - # - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#60 - def description; end - - # Matchers are not diffable by default. Override this to make your - # subclass diffable. - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#69 - def diffable?; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#23 - def expected; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#92 - def expected_formatted; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#87 - def expects_call_stack_jump?; end - - # Used to wrap a block of code that will indicate failure by - # raising one of the named exceptions. - # - # This is used by rspec-rails for some of its matchers that - # wrap rails' assertions. - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#47 - def match_unless_raises(*exceptions); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#107 - def matcher_name; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#26 - def matcher_name=(_arg0); end - - # Indicates if the match is successful. Delegates to `match`, which - # should be defined on a subclass. Takes care of consistently - # initializing the `actual` attribute. - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#36 - def matches?(actual); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#23 - def rescued_exception; end - - # Most matchers are value matchers (i.e. meant to work with `expect(value)`) - # rather than block matchers (i.e. meant to work with `expect { }`), so - # this defaults to false. Block matchers must override this to return true. - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#77 - def supports_block_expectations?; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#82 - def supports_value_expectations?; end - - class << self - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#102 - def matcher_name; end - - private - - # Borrowed from ActiveSupport. - # - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#117 - def underscore(camel_cased_word); end - end -end - -# Provides default implementations of failure messages, based on the `description`. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#193 -module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages - # Provides a good generic failure message. Based on `description`. - # When subclassing, if you are not satisfied with this failure message - # you often only need to override `description`. - # - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#199 - def failure_message; end - - # Provides a good generic negative failure message. Based on `description`. - # When subclassing, if you are not satisfied with this failure message - # you often only need to override `description`. - # - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#208 - def failure_message_when_negated; end - - class << self - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#213 - def has_default_failure_messages?(matcher); end - end -end - -# @api private -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#128 -module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting - private - - # `{ :a => 5, :b => 2 }.inspect` produces: - # - # {:a=>5, :b=>2} - # - # ...but it looks much better as: - # - # {:a => 5, :b => 2} - # - # This is idempotent and safe to run on a string multiple times. - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#138 - def improve_hash_formatting(inspect_string); end - - class << self - # `{ :a => 5, :b => 2 }.inspect` produces: - # - # {:a=>5, :b=>2} - # - # ...but it looks much better as: - # - # {:a => 5, :b => 2} - # - # This is idempotent and safe to run on a string multiple times. - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#138 - def improve_hash_formatting(inspect_string); end - end -end - -# @api private -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#147 -module RSpec::Matchers::BuiltIn::BaseMatcher::StringEncodingFormatting - private - - # Formats a String's encoding as a human readable string - # :nocov: - # - # @api private - # @param _value [String] - # @return [nil] nil as the curent Ruby version does not support String encoding - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#172 - def format_encoding(value); end - - # :nocov: - # - # @api private - # @return [Boolean] False always as the curent Ruby version does not support String encoding - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#153 - def string_encoding_differs?; end - - class << self - # Formats a String's encoding as a human readable string - # :nocov: - # - # @api private - # @param _value [String] - # @return [nil] nil as the curent Ruby version does not support String encoding - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#172 - def format_encoding(value); end - - # :nocov: - # - # @api private - # @return [Boolean] False always as the curent Ruby version does not support String encoding - # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#153 - def string_encoding_differs?; end - end -end - -# Used to detect when no arg is passed to `initialize`. -# `nil` cannot be used because it's a valid value to pass. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#20 -RSpec::Matchers::BuiltIn::BaseMatcher::UNDEFINED = T.let(T.unsafe(nil), Object) - -# Provides the implementation for `be`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#101 -class RSpec::Matchers::BuiltIn::Be < ::RSpec::Matchers::BuiltIn::BaseMatcher - include ::RSpec::Matchers::BuiltIn::BeHelpers - - # @api private - # @return [Be] a new instance of Be - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#104 - def initialize(*args); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 - def <(operand); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 - def <=(operand); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 - def ==(operand); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 - def ===(operand); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 - def =~(operand); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 - def >(operand); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 - def >=(operand); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#110 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#116 - def failure_message_when_negated; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#128 - def match(_, actual); end -end - -# Provides the implementation for `be_a_kind_of`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/be_kind_of.rb#7 -class RSpec::Matchers::BuiltIn::BeAKindOf < ::RSpec::Matchers::BuiltIn::BaseMatcher - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_kind_of.rb#10 - def match(expected, actual); end -end - -# Provides the implementation for `be_an_instance_of`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/be_instance_of.rb#7 -class RSpec::Matchers::BuiltIn::BeAnInstanceOf < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_instance_of.rb#10 - def description; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_instance_of.rb#16 - def match(expected, actual); end -end - -# Provides the implementation for `be_between`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#7 -class RSpec::Matchers::BuiltIn::BeBetween < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [BeBetween] a new instance of BeBetween - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#8 - def initialize(min, max); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#57 - def description; end - - # Makes the between comparison exclusive. - # - # @api public - # @example - # expect(3).to be_between(2, 4).exclusive - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#33 - def exclusive; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#51 - def failure_message; end - - # Makes the between comparison inclusive. - # - # @api public - # @example - # expect(3).to be_between(2, 3).inclusive - # @note The matcher is inclusive by default; this simply provides - # a way to be more explicit about it. - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#21 - def inclusive; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#42 - def matches?(actual); end - - private - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#63 - def comparable?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#71 - def compare; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#67 - def not_comparable_clause; end -end - -# Provides the implementation of `be value`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#136 -class RSpec::Matchers::BuiltIn::BeComparedTo < ::RSpec::Matchers::BuiltIn::BaseMatcher - include ::RSpec::Matchers::BuiltIn::BeHelpers - - # @api private - # @return [BeComparedTo] a new instance of BeComparedTo - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#139 - def initialize(operand, operator); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#178 - def description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#151 - def does_not_match?(actual); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#159 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#166 - def failure_message_when_negated; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#145 - def matches?(actual); end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#184 - def perform_match(actual); end -end - -# Provides the implementation for `be_falsey`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#30 -class RSpec::Matchers::BuiltIn::BeFalsey < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#33 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#39 - def failure_message_when_negated; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#45 - def match(_, actual); end -end - -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#74 -module RSpec::Matchers::BuiltIn::BeHelpers - private - - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#77 - def args_to_s; end - - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#93 - def args_to_sentence; end - - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#89 - def expected_to_sentence; end - - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#85 - def inspected_args; end - - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#81 - def parenthesize(string); end -end - -# Provides the implementation for `be_nil`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#53 -class RSpec::Matchers::BuiltIn::BeNil < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#56 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#62 - def failure_message_when_negated; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#68 - def match(_, actual); end -end - -# Provides the implementation of `be_`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#164 -class RSpec::Matchers::BuiltIn::BePredicate < ::RSpec::Matchers::BuiltIn::DynamicPredicate - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#176 - def failure_to_respond_explanation; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#168 - def predicate; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#184 - def predicate_accessible?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#172 - def predicate_method_name; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#188 - def present_tense_predicate; end -end - -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#166 -RSpec::Matchers::BuiltIn::BePredicate::REGEX = T.let(T.unsafe(nil), Regexp) - -# Provides the implementation for `be_truthy`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#7 -class RSpec::Matchers::BuiltIn::BeTruthy < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#10 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#16 - def failure_message_when_negated; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#22 - def match(_, actual); end -end - -# Provides the implementation for `be_within`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#7 -class RSpec::Matchers::BuiltIn::BeWithin < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [BeWithin] a new instance of BeWithin - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#8 - def initialize(delta); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#52 - def description; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#40 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#46 - def failure_message_when_negated; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#32 - def matches?(actual); end - - # Sets the expected value. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#14 - def of(expected); end - - # Sets the expected value, and makes the matcher do - # a percent comparison. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#24 - def percent_of(expected); end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#62 - def needs_expected; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#66 - def not_numeric_clause; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#58 - def numeric?; end -end - -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#159 -module RSpec::Matchers::BuiltIn::CaptureStderr - class << self - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#164 - def capture(block); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#160 - def name; end - end -end - -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#139 -module RSpec::Matchers::BuiltIn::CaptureStdout - class << self - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#144 - def capture(block); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#140 - def name; end - end -end - -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#179 -class RSpec::Matchers::BuiltIn::CaptureStreamToTempfile < ::Struct - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#180 - def capture(block); end -end - -# Provides the implementation for `change`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#7 -class RSpec::Matchers::BuiltIn::Change < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [Change] a new instance of Change - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#87 - def initialize(receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end - - # Specifies the delta of the expected change. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#10 - def by(expected_delta); end - - # Specifies a minimum delta of the expected change. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#18 - def by_at_least(minimum); end - - # Specifies a maximum delta of the expected change. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#26 - def by_at_most(maximum); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#71 - def description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#50 - def does_not_match?(event_proc); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#57 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#64 - def failure_message_when_negated; end - - # Specifies the original value. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#40 - def from(value); end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#45 - def matches?(event_proc); end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#76 - def supports_block_expectations?; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#81 - def supports_value_expectations?; end - - # Specifies the new value you expect. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#34 - def to(value); end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#93 - def change_details; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#119 - def negative_failure_reason; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#97 - def perform_change(event_proc); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#114 - def positive_failure_reason; end - - # @api private - # @raise [SyntaxError] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#109 - def raise_block_syntax_error; end -end - -# Encapsulates the details of the before/after values. -# -# Note that this class exposes the `actual_after` value, to allow the -# matchers above to derive failure messages, etc from the value on demand -# as needed, but it intentionally does _not_ expose the `actual_before` -# value. Some usages of the `change` matcher mutate a specific object -# returned by the value proc, which means that failure message snippets, -# etc, which are derived from the `before` value may not be accurate if -# they are lazily computed as needed. We must pre-compute them before -# applying the change in the `expect` block. To ensure that all `change` -# matchers do that properly, we do not expose the `actual_before` value. -# Instead, matchers must pass a block to `perform_change`, which yields -# the `actual_before` value before applying the change. -# -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#352 -class RSpec::Matchers::BuiltIn::ChangeDetails - # @return [ChangeDetails] a new instance of ChangeDetails - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#357 - def initialize(matcher_name, receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end - - # Returns the value of attribute actual_after. - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#353 - def actual_after; end - - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#418 - def actual_delta; end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#402 - def changed?; end - - # @yield [@actual_before] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#389 - def perform_change(event_proc); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#378 - def value_representation; end - - private - - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#424 - def evaluate_value_proc; end - - # :nocov: - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#438 - def extract_value_block_snippet; end - - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#428 - def message_notation(receiver, message); end -end - -# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#355 -module RSpec::Matchers::BuiltIn::ChangeDetails::UNDEFINED; end - -# Used to specify a change from a specific value -# (and, optionally, to a specific value). -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#270 -class RSpec::Matchers::BuiltIn::ChangeFromValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange - # @api private - # @return [ChangeFromValue] a new instance of ChangeFromValue - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#271 - def initialize(change_details, expected_before); end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#285 - def does_not_match?(event_proc); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#295 - def failure_message_when_negated; end - - # Specifies the new value you expect. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#278 - def to(value); end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#303 - def change_description; end -end - -# Used to specify a relative change. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#128 -class RSpec::Matchers::BuiltIn::ChangeRelatively < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [ChangeRelatively] a new instance of ChangeRelatively - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#129 - def initialize(change_details, expected_delta, relativity, &comparer); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#156 - def description; end - - # @api private - # @private - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#150 - def does_not_match?(_event_proc); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#137 - def failure_message; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#144 - def matches?(event_proc); end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#162 - def supports_block_expectations?; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#167 - def supports_value_expectations?; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#173 - def failure_reason; end -end - -# Used to specify a change to a specific value -# (and, optionally, from a specific value). -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#311 -class RSpec::Matchers::BuiltIn::ChangeToValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange - # @api private - # @return [ChangeToValue] a new instance of ChangeToValue - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#312 - def initialize(change_details, expected_after); end - - # @api private - # @private - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#326 - def does_not_match?(_event_proc); end - - # Specifies the original value. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#319 - def from(value); end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#333 - def change_description; end -end - -# Base class for `and` and `or` compound matchers. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#6 -class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [Compound] a new instance of Compound - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#10 - def initialize(matcher_1, matcher_2); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#25 - def description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#49 - def diffable?; end - - # @api private - # @private - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#16 - def does_not_match?(_actual); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#8 - def evaluator; end - - # @api private - # @return [RSpec::Matchers::MultiMatcherDiff] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#55 - def expected; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#42 - def expects_call_stack_jump?; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#8 - def matcher_1; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#8 - def matcher_2; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#30 - def supports_block_expectations?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#36 - def supports_value_expectations?; end - - protected - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#62 - def diffable_matcher_list; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#96 - def compound_failure_message; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#128 - def diffable_matcher_list_for(matcher); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#90 - def indent_multiline_message(message); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#71 - def initialize_copy(other); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#77 - def match(_expected, actual); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#102 - def matcher_1_matches?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#106 - def matcher_2_matches?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#122 - def matcher_is_diffable?(matcher); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#110 - def matcher_supports_block_expectations?(matcher); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#116 - def matcher_supports_value_expectations?(matcher); end -end - -# Matcher used to represent a compound `and` expectation. -# -# @api public -# -# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#245 -class RSpec::Matchers::BuiltIn::Compound::And < ::RSpec::Matchers::BuiltIn::Compound - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#248 - def failure_message; end - - private - - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#265 - def conjunction; end - - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#260 - def match(*_arg0); end -end - -# Normally, we evaluate the matching sequentially. For an expression like -# `expect(x).to foo.and bar`, this becomes: -# -# expect(x).to foo -# expect(x).to bar -# -# For block expectations, we need to nest them instead, so that -# `expect { x }.to foo.and bar` becomes: -# -# expect { -# expect { x }.to foo -# }.to bar -# -# This is necessary so that the `expect` block is only executed once. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#159 -class RSpec::Matchers::BuiltIn::Compound::NestedEvaluator - # @api private - # @return [NestedEvaluator] a new instance of NestedEvaluator - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#160 - def initialize(actual, matcher_1, matcher_2); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#173 - def matcher_matches?(matcher); end - - private - - # Some block matchers (such as `yield_xyz`) pass args to the `expect` block. - # When such a matcher is used as the outer matcher, we need to forward the - # the args on to the `expect` block. - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#187 - def inner_matcher_block(outer_args); end - - # For a matcher like `raise_error` or `throw_symbol`, where the block will jump - # up the call stack, we need to order things so that it is the inner matcher. - # For example, we need it to be this: - # - # expect { - # expect { - # x += 1 - # raise "boom" - # }.to raise_error("boom") - # }.to change { x }.by(1) - # - # ...rather than: - # - # expect { - # expect { - # x += 1 - # raise "boom" - # }.to change { x }.by(1) - # }.to raise_error("boom") - # - # In the latter case, the after-block logic in the `change` matcher would never - # get executed because the `raise "boom"` line would jump to the `rescue` in the - # `raise_error` logic, so only the former case will work properly. - # - # This method figures out which matcher should be the inner matcher and which - # should be the outer matcher. - # - # @api private - # @raise [ArgumentError] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#227 - def order_block_matchers; end - - class << self - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#236 - def matcher_expects_call_stack_jump?(matcher); end - end -end - -# Matcher used to represent a compound `or` expectation. -# -# @api public -# -# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#272 -class RSpec::Matchers::BuiltIn::Compound::Or < ::RSpec::Matchers::BuiltIn::Compound - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#275 - def failure_message; end - - private - - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#286 - def conjunction; end - - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#281 - def match(*_arg0); end -end - -# For value expectations, we can evaluate the matchers sequentially. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#135 -class RSpec::Matchers::BuiltIn::Compound::SequentialEvaluator - # @api private - # @return [SequentialEvaluator] a new instance of SequentialEvaluator - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#136 - def initialize(actual, *_arg1); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#140 - def matcher_matches?(matcher); end -end - -# Provides the implementation for `contain_exactly` and `match_array`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#8 -class RSpec::Matchers::BuiltIn::ContainExactly < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#29 - def description; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#11 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#22 - def failure_message_when_negated; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#34 - def matches?(actual); end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#56 - def actual_collection_line; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#137 - def best_solution; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#94 - def convert_actual_to_an_array; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#68 - def describe_collection(collection, surface_descriptions = T.unsafe(nil)); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#52 - def expected_collection_line; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#64 - def extra_elements_line; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#131 - def extra_items; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#44 - def generate_failure_message; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#81 - def match(_expected, _actual); end - - # This cannot always work (e.g. when dealing with unsortable items, - # or matchers as expected items), but it's practically free compared to - # the slowness of the full matching algorithm, and in common cases this - # works, so it's worth a try. - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#90 - def match_when_sorted?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#76 - def message_line(prefix, collection, surface_descriptions = T.unsafe(nil)); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#60 - def missing_elements_line; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#125 - def missing_items; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#141 - def pairings_maximizer; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#104 - def safe_sort(array); end - - # :nocov: - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#120 - def to_a_disallowed?(object); end -end - -# Once we started supporting composing matchers, the algorithm for this matcher got -# much more complicated. Consider this expression: -# -# expect(["fool", "food"]).to contain_exactly(/foo/, /fool/) -# -# This should pass (because we can pair /fool/ with "fool" and /foo/ with "food"), but -# the original algorithm used by this matcher would pair the first elements it could -# (/foo/ with "fool"), which would leave /fool/ and "food" unmatched. When we have -# an expected element which is a matcher that matches a superset of actual items -# compared to another expected element matcher, we need to consider every possible pairing. -# -# This class is designed to maximize the number of actual/expected pairings -- or, -# conversely, to minimize the number of unpaired items. It's essentially a brute -# force solution, but with a few heuristics applied to reduce the size of the -# problem space: -# -# * Any items which match none of the items in the other list are immediately -# placed into the `unmatched_expected_indexes` or `unmatched_actual_indexes` array. -# The extra items and missing items in the matcher failure message are derived -# from these arrays. -# * Any items which reciprocally match only each other are paired up and not -# considered further. -# -# What's left is only the items which match multiple items from the other list -# (or vice versa). From here, it performs a brute-force depth-first search, -# looking for a solution which pairs all elements in both lists, or, barring that, -# that produces the fewest unmatched items. -# -# @api private -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#188 -class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer - # @api private - # @return [PairingsMaximizer] a new instance of PairingsMaximizer - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#225 - def initialize(expected_to_actual_matched_indexes, actual_to_expected_matched_indexes); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#223 - def actual_to_expected_matched_indexes; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#223 - def expected_to_actual_matched_indexes; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#239 - def find_best_solution; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#223 - def solution; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#301 - def apply_pairing_to(indeterminates, original_matches, other_list_index); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#285 - def best_solution_for_pairing(expected_index, actual_index); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#265 - def categorize_indexes(indexes_to_categorize, other_indexes); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#280 - def reciprocal_single_match?(matches, index, other_list); end -end - -# Starting solution that is worse than any other real solution. -# -# @api private -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#259 -class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::NullSolution - class << self - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#260 - def worse_than?(_other); end - end -end - -# @api private -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 -class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < ::Struct - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#212 - def +(derived_candidate_solution); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#196 - def candidate?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#201 - def ideal?; end - - # Returns the value of attribute indeterminate_actual_indexes - # - # @return [Object] the current value of indeterminate_actual_indexes - def indeterminate_actual_indexes; end - - # Sets the attribute indeterminate_actual_indexes - # - # @param value [Object] the value to set the attribute indeterminate_actual_indexes to. - # @return [Object] the newly set value - def indeterminate_actual_indexes=(_); end - - # Returns the value of attribute indeterminate_expected_indexes - # - # @return [Object] the current value of indeterminate_expected_indexes - def indeterminate_expected_indexes; end - - # Sets the attribute indeterminate_expected_indexes - # - # @param value [Object] the value to set the attribute indeterminate_expected_indexes to. - # @return [Object] the newly set value - def indeterminate_expected_indexes=(_); end - - # Returns the value of attribute unmatched_actual_indexes - # - # @return [Object] the current value of unmatched_actual_indexes - def unmatched_actual_indexes; end - - # Sets the attribute unmatched_actual_indexes - # - # @param value [Object] the value to set the attribute unmatched_actual_indexes to. - # @return [Object] the newly set value - def unmatched_actual_indexes=(_); end - - # Returns the value of attribute unmatched_expected_indexes - # - # @return [Object] the current value of unmatched_expected_indexes - def unmatched_expected_indexes; end - - # Sets the attribute unmatched_expected_indexes - # - # @param value [Object] the value to set the attribute unmatched_expected_indexes to. - # @return [Object] the newly set value - def unmatched_expected_indexes=(_); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#208 - def unmatched_item_count; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#192 - def worse_than?(other); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# Abstract class to implement `once`, `at_least` and other -# count constraints. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#7 -module RSpec::Matchers::BuiltIn::CountExpectation - # Specifies the minimum number of times the method is expected to match - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#42 - def at_least(number); end - - # Specifies the maximum number of times the method is expected to match - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#35 - def at_most(number); end - - # Specifies that the method is expected to match the given number of times. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#28 - def exactly(number); end - - # Specifies that the method is expected to match once. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#10 - def once; end - - # Specifies that the method is expected to match thrice. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#22 - def thrice; end - - # No-op. Provides syntactic sugar. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#49 - def times; end - - # Specifies that the method is expected to match twice. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#16 - def twice; end - - protected - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#55 - def count_expectation_type; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#55 - def expected_count; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#122 - def count_constraint_to_number(n); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#141 - def count_expectation_description; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#145 - def count_failure_reason(action); end - - # :nocov: - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#60 - def cover?(count, number); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#71 - def expected_count_matches?(actual_count); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#79 - def has_expected_count?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#159 - def human_readable_count(count); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#150 - def human_readable_expectation_type; end - - # @api private - # @raise [ArgumentError] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#102 - def raise_impossible_count_expectation(count); end - - # @api private - # @raise [ArgumentError] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#111 - def raise_unsupported_count_expectation; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#83 - def set_expected_count(relativity, n); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#134 - def unsupported_count_expectation?(relativity); end -end - -# Provides the implementation for `cover`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/cover.rb#7 -class RSpec::Matchers::BuiltIn::Cover < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [Cover] a new instance of Cover - # - # source://rspec-expectations//lib/rspec/matchers/built_in/cover.rb#8 - def initialize(*expected); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/cover.rb#17 - def does_not_match?(range); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/cover.rb#12 - def matches?(range); end -end - -# Provides the implementation for dynamic predicate matchers. -# Not intended to be inherited directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#7 -class RSpec::Matchers::BuiltIn::DynamicPredicate < ::RSpec::Matchers::BuiltIn::BaseMatcher - include ::RSpec::Matchers::BuiltIn::BeHelpers - - # @api private - # @return [DynamicPredicate] a new instance of DynamicPredicate - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#10 - def initialize(method_name, *args, **_arg2, &block); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#43 - def description; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#23 - def does_not_match?(actual, &block); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#31 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#37 - def failure_message_when_negated; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#16 - def matches?(actual, &block); end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#126 - def expectation_of(value); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#121 - def failure_message_expecting(value); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#142 - def failure_to_respond_explanation; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#117 - def method_description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#88 - def methods_include?(method); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#68 - def predicate_accessible?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#101 - def predicate_matches?(value = T.unsafe(nil)); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#97 - def predicate_method_name; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#93 - def predicate_result; end - - # :nocov: - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#84 - def private_predicate?; end - - # :nocov: - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#53 - def really_responds_to?(method); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#109 - def root; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#136 - def validity_message; end -end - -# Provides the implementation for `end_with`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#81 -class RSpec::Matchers::BuiltIn::EndWith < ::RSpec::Matchers::BuiltIn::StartOrEndWith - private - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#88 - def element_matches?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#84 - def subset_matches?; end -end - -# Provides the implementation for `eq`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#7 -class RSpec::Matchers::BuiltIn::Eq < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#26 - def description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#32 - def diffable?; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#10 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#20 - def failure_message_when_negated; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#38 - def match(expected, actual); end -end - -# Provides the implementation for `eql`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#7 -class RSpec::Matchers::BuiltIn::Eql < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#26 - def diffable?; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#10 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#20 - def failure_message_when_negated; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#32 - def match(expected, actual); end -end - -# Provides the implementation for `equal`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#7 -class RSpec::Matchers::BuiltIn::Equal < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#33 - def diffable?; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#10 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#20 - def failure_message_when_negated; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#49 - def actual_inspected; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#61 - def detailed_failure_message; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#45 - def expected_is_a_literal_singleton?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#75 - def inspect_object(o); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#39 - def match(expected, actual); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#57 - def simple_failure_message; end -end - -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#43 -RSpec::Matchers::BuiltIn::Equal::LITERAL_SINGLETONS = T.let(T.unsafe(nil), Array) - -# Provides the implementation for `exist`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#7 -class RSpec::Matchers::BuiltIn::Exist < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [Exist] a new instance of Exist - # - # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#8 - def initialize(*expected); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#22 - def does_not_match?(actual); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#30 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#36 - def failure_message_when_negated; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#14 - def matches?(actual); end -end - -# Simple class for memoizing actual/expected for this matcher -# and examining the match -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#43 -class RSpec::Matchers::BuiltIn::Exist::ExistenceTest < ::Struct - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#52 - def actual_exists?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#46 - def valid_test?; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#58 - def validity_message; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#83 - def deprecated(predicate, actual); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#75 - def existence_values; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#79 - def predicates; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#71 - def uniq_truthy_values; end -end - -# Provides the implementation for `has_`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#152 -class RSpec::Matchers::BuiltIn::Has < ::RSpec::Matchers::BuiltIn::DynamicPredicate - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#156 - def predicate; end -end - -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#154 -RSpec::Matchers::BuiltIn::Has::REGEX = T.let(T.unsafe(nil), Regexp) - -# Provides the implementation for `have_attributes`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#7 -class RSpec::Matchers::BuiltIn::HaveAttributes < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [HaveAttributes] a new instance of HaveAttributes - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#11 - def initialize(expected); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#19 - def actual; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#43 - def description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#50 - def diffable?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#34 - def does_not_match?(actual); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#56 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#64 - def failure_message_when_negated; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#25 - def matches?(actual); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#9 - def respond_to_failed; end - - private - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#85 - def actual_has_attribute?(attribute_key, attribute_value); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#70 - def cache_all_values; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#107 - def formatted_values; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#78 - def perform_match(predicate); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#89 - def respond_to_attributes?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#99 - def respond_to_failure_message_or; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#95 - def respond_to_matcher; end -end - -# Provides the implementation for `include`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#9 -class RSpec::Matchers::BuiltIn::Include < ::RSpec::Matchers::BuiltIn::BaseMatcher - include ::RSpec::Matchers::BuiltIn::CountExpectation - - # @api private - # @raise [ArgumentError] - # @return [Include] a new instance of Include - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#15 - def initialize(*expecteds); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#44 - def description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#62 - def diffable?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#33 - def does_not_match?(actual); end - - # @api private - # @return [Array, Hash] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#68 - def expected; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#12 - def expecteds; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#50 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#56 - def failure_message_when_negated; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#22 - def matches?(actual); end - - private - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#168 - def actual_collection_includes?(expected_item); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#154 - def actual_hash_has_key?(expected_key); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#142 - def actual_hash_includes?(expected_key, expected_value); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#78 - def check_actual?(actual); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#84 - def check_expected_count?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#150 - def comparing_hash_keys?(expected_item); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#138 - def comparing_hash_to_a_subset?(expected_item); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#212 - def convert_to_hash?(obj); end - - # :nocov: - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#185 - def count_enumerable(expected_item); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#190 - def count_inclusions; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#202 - def diff_would_wrongly_highlight_matched_item?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#121 - def excluded_from_actual; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#96 - def format_failure_message(preposition); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#116 - def perform_match(&block); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#107 - def readable_list_of(items); end -end - -# Provides the implementation for `match`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#7 -class RSpec::Matchers::BuiltIn::Match < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [Match] a new instance of Match - # - # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#8 - def initialize(expected); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#15 - def description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#25 - def diffable?; end - - # Used to specify the captures we match against - # - # @api private - # @return [self] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#31 - def with_captures(*captures); end - - private - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#45 - def can_safely_call_match?(expected, actual); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#38 - def match(expected, actual); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#52 - def match_captures(expected, actual); end -end - -# Handles operator matcher for `should_not`. -# -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#116 -class RSpec::Matchers::BuiltIn::NegativeOperatorMatcher < ::RSpec::Matchers::BuiltIn::OperatorMatcher - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#117 - def __delegate_operator(actual, operator, expected); end -end - -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#128 -module RSpec::Matchers::BuiltIn::NullCapture - class << self - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#133 - def capture(_block); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#129 - def name; end - end -end - -# Provides the implementation for operator matchers. -# Not intended to be instantiated directly. -# Only available for use with `should`. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#10 -class RSpec::Matchers::BuiltIn::OperatorMatcher - # @api private - # @return [OperatorMatcher] a new instance of OperatorMatcher - # - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#41 - def initialize(actual); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#57 - def !=(_expected); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#57 - def !~(_expected); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 - def <(expected); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 - def <=(expected); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 - def ==(expected); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 - def ===(expected); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 - def =~(expected); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 - def >(expected); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 - def >=(expected); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#76 - def description; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#70 - def fail_with_message(message); end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#88 - def eval_match(actual, operator, expected); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#82 - def has_non_generic_implementation_of?(op); end - - class << self - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#29 - def get(klass, operator); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#18 - def register(klass, operator, matcher); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#13 - def registry; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#24 - def unregister(klass, operator); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#46 - def use_custom_matcher_or_delegate(operator); end - end -end - -# Provides the implementation for `output`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#9 -class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [Output] a new instance of Output - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#10 - def initialize(expected); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#76 - def description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#86 - def diffable?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#24 - def does_not_match?(block); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#64 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#70 - def failure_message_when_negated; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#17 - def matches?(block); end - - # Indicates this matcher matches against a block. - # - # @api private - # @return [True] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#93 - def supports_block_expectations?; end - - # Indicates this matcher matches against a block only. - # - # @api private - # @return [False] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#100 - def supports_value_expectations?; end - - # Tells the matcher to match against stderr. - # Works only when the main Ruby process prints to stderr - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#39 - def to_stderr; end - - # Tells the matcher to match against stderr. - # Works when subprocesses print to stderr as well. - # This is significantly (~30x) slower than `to_stderr` - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#57 - def to_stderr_from_any_process; end - - # Tells the matcher to match against stdout. - # Works only when the main Ruby process prints to stdout - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#31 - def to_stdout; end - - # Tells the matcher to match against stdout. - # Works when subprocesses print to stdout as well. - # This is significantly (~30x) slower than `to_stdout` - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#48 - def to_stdout_from_any_process; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#121 - def actual_output_description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#106 - def captured?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#116 - def negative_failure_reason; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#110 - def positive_failure_reason; end -end - -# Handles operator matcher for `should`. -# -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#97 -class RSpec::Matchers::BuiltIn::PositiveOperatorMatcher < ::RSpec::Matchers::BuiltIn::OperatorMatcher - # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#98 - def __delegate_operator(actual, operator, expected); end -end - -# Provides the implementation for `raise_error`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#9 -class RSpec::Matchers::BuiltIn::RaiseError - include ::RSpec::Matchers::Composable - - # @api private - # @return [RaiseError] a new instance of RaiseError - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#22 - def initialize(expected_error_or_message, expected_message, &block); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#117 - def description; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#83 - def does_not_match?(given_proc); end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#99 - def expects_call_stack_jump?; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#105 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#111 - def failure_message_when_negated; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#52 - def matches?(given_proc, negative_expectation = T.unsafe(nil), &block); end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#89 - def supports_block_expectations?; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#94 - def supports_value_expectations?; end - - # Specifies the expected error message. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#43 - def with_message(expected_message); end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#123 - def actual_error_message; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#137 - def block_matches?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#133 - def error_and_message_match?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#145 - def eval_block; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#129 - def expectation_matched?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#226 - def expected_error; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#257 - def expecting_specific_exception?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#241 - def format_backtrace(backtrace); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#246 - def given_error; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#176 - def handle_warning(message); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#261 - def raise_message_already_set; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#141 - def ready_to_eval_block?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#155 - def verify_message; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#188 - def warn_about_bare_error!; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#180 - def warn_about_bare_error?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#214 - def warn_about_negative_false_positive!(expression); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#201 - def warn_about_nil_error!; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#184 - def warn_about_nil_error?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#160 - def warn_for_negative_false_positives!; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#266 - def warning; end -end - -# Used as a sentinel value to be able to tell when the user did not pass an -# argument. We can't use `nil` for that because we need to warn when `nil` is -# passed in a different way. It's an Object, not a Module, since Module's `===` -# does not evaluate to true when compared to itself. -# -# Note; this _is_ the default value supplied for expected_error_or_message, but -# because there are two method-calls involved, that default is actually supplied -# in the definition of the _matcher_ method, `RSpec::Matchers#raise_error` -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#20 -RSpec::Matchers::BuiltIn::RaiseError::UndefinedValue = T.let(T.unsafe(nil), Object) - -# Used to wrap match data and make it reliable for 1.8.7 -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#72 -class RSpec::Matchers::BuiltIn::ReliableMatchData - # @api private - # @return [ReliableMatchData] a new instance of ReliableMatchData - # - # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#73 - def initialize(match_data); end - - # returns an array of captures from the match data - # - # @api private - # @return Array - # - # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#98 - def captures; end - - # Returns match data names for named captures - # - # @api private - # @return Array - # - # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#90 - def names; end - - protected - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#104 - def match_data; end -end - -# Provides the implementation for `respond_to`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#9 -class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [RespondTo] a new instance of RespondTo - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#10 - def initialize(*names); end - - # Specifies that the method accepts any keyword, i.e. the method has - # a splatted keyword parameter of the form **kw_args. - # - # @api public - # @example - # expect(obj).to respond_to(:message).with_any_keywords - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#48 - def and_any_keywords; end - - # Specifies keyword arguments, if any. - # - # @api public - # @example - # expect(obj).to respond_to(:message).with_keywords(:color, :shape) - # @example with an expected number of arguments - # expect(obj).to respond_to(:message).with(3).arguments.and_keywords(:color, :shape) - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#36 - def and_keywords(*keywords); end - - # Specifies that the number of arguments has no upper limit, i.e. the - # method has a splatted parameter of the form *args. - # - # @api public - # @example - # expect(obj).to respond_to(:message).with_unlimited_arguments - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#60 - def and_unlimited_arguments; end - - # No-op. Intended to be used as syntactic sugar when using `with`. - # - # @api public - # @example - # expect(obj).to respond_to(:message).with(3).arguments - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#71 - def argument; end - - # No-op. Intended to be used as syntactic sugar when using `with`. - # - # @api public - # @example - # expect(obj).to respond_to(:message).with(3).arguments - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#71 - def arguments; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#100 - def description; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#82 - def does_not_match?(actual); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#88 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#94 - def failure_message_when_negated; end - - # Used by other matchers to suppress a check - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#106 - def ignoring_method_signature_failure!; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#77 - def matches?(actual); end - - # Specifies the number of expected arguments. - # - # @api public - # @example - # expect(obj).to respond_to(:message).with(3).arguments - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#24 - def with(n); end - - # Specifies that the method accepts any keyword, i.e. the method has - # a splatted keyword parameter of the form **kw_args. - # - # @api public - # @example - # expect(obj).to respond_to(:message).with_any_keywords - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#48 - def with_any_keywords; end - - # Specifies keyword arguments, if any. - # - # @api public - # @example - # expect(obj).to respond_to(:message).with_keywords(:color, :shape) - # @example with an expected number of arguments - # expect(obj).to respond_to(:message).with(3).arguments.and_keywords(:color, :shape) - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#36 - def with_keywords(*keywords); end - - # Specifies that the number of arguments has no upper limit, i.e. the - # method has a splatted parameter of the form *args. - # - # @api public - # @example - # expect(obj).to respond_to(:message).with_unlimited_arguments - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#60 - def with_unlimited_arguments; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#112 - def find_failing_method_names(actual, filter_method); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#119 - def matches_arity?(actual, name); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#156 - def pp_names; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#130 - def with_arity; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#139 - def with_arity_string; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#143 - def with_keywords_string; end -end - -# @api private -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#161 -class RSpec::Matchers::BuiltIn::RespondTo::ArityCheck - # @api private - # @return [ArityCheck] a new instance of ArityCheck - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#162 - def initialize(expected_arity, expected_keywords, arbitrary_keywords, unlimited_arguments); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#178 - def matches?(actual, name); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#187 - def method_signature_for(actual, name); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#183 - def verifier_for(actual, name); end -end - -# Provides the implementation for `satisfy`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#7 -class RSpec::Matchers::BuiltIn::Satisfy < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [Satisfy] a new instance of Satisfy - # - # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#8 - def initialize(description = T.unsafe(nil), &block); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#21 - def description; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#27 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#33 - def failure_message_when_negated; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#14 - def matches?(actual, &block); end - - private - - # :nocov: - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#40 - def block_representation; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#48 - def extract_block_snippet; end -end - -# Base class for specifying a change from and/or to specific values. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#181 -class RSpec::Matchers::BuiltIn::SpecificValuesChange < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [SpecificValuesChange] a new instance of SpecificValuesChange - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#185 - def initialize(change_details, from, to); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#197 - def description; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#202 - def failure_message; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#192 - def matches?(event_proc); end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#210 - def supports_block_expectations?; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#215 - def supports_value_expectations?; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#244 - def after_value_failure; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#238 - def before_value_failure; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#255 - def did_change_failure; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#250 - def did_not_change_failure; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#234 - def matches_after?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#261 - def not_given_a_block_failure; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#221 - def perform_change(event_proc); end -end - -# @api private -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#183 -RSpec::Matchers::BuiltIn::SpecificValuesChange::MATCH_ANYTHING = BasicObject - -# For RSpec 3.1, the base class was named `StartAndEndWith`. For SemVer reasons, -# we still provide this constant until 4.0. -# -# @deprecated Use StartOrEndWith instead. -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#61 -RSpec::Matchers::BuiltIn::StartAndEndWith = RSpec::Matchers::BuiltIn::StartOrEndWith - -# Base class for the `end_with` and `start_with` matchers. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#7 -class RSpec::Matchers::BuiltIn::StartOrEndWith < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [StartOrEndWith] a new instance of StartOrEndWith - # - # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#8 - def initialize(*expected); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#27 - def description; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#15 - def failure_message; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#36 - def match(_expected, actual); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#48 - def subsets_comparable?; end -end - -# Provides the implementation for `start_with`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#66 -class RSpec::Matchers::BuiltIn::StartWith < ::RSpec::Matchers::BuiltIn::StartOrEndWith - private - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#73 - def element_matches?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#69 - def subset_matches?; end -end - -# Provides the implementation for `throw_symbol`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#7 -class RSpec::Matchers::BuiltIn::ThrowSymbol - include ::RSpec::Matchers::Composable - - # @api private - # @return [ThrowSymbol] a new instance of ThrowSymbol - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#10 - def initialize(expected_symbol = T.unsafe(nil), expected_arg = T.unsafe(nil)); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#86 - def description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#68 - def does_not_match?(given_proc); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#103 - def expects_call_stack_jump?; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#74 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#80 - def failure_message_when_negated; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#18 - def matches?(given_proc); end - - # Indicates this matcher matches against a block. - # - # @api private - # @return [True] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#93 - def supports_block_expectations?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#98 - def supports_value_expectations?; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#109 - def actual_result; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#118 - def caught; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#114 - def expected(symbol_desc = T.unsafe(nil)); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#122 - def throw_description(symbol, arg); end -end - -# Provides the implementation for `yield_control`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#101 -class RSpec::Matchers::BuiltIn::YieldControl < ::RSpec::Matchers::BuiltIn::BaseMatcher - include ::RSpec::Matchers::BuiltIn::CountExpectation - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#111 - def does_not_match?(block); end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#117 - def failure_message; end - - # @api private - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#123 - def failure_message_when_negated; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#104 - def matches?(block); end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#128 - def supports_block_expectations?; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#133 - def supports_value_expectations?; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#139 - def failure_reason; end -end - -# Object that is yielded to `expect` when one of the -# yield matchers is used. Provides information about -# the yield behavior of the object-under-test. -# -# @private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#12 -class RSpec::Matchers::BuiltIn::YieldProbe - # @return [YieldProbe] a new instance of YieldProbe - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#21 - def initialize(block, &callback); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#68 - def assert_used!; end - - # :nocov: - # On 1.8.7, `lambda { }.arity` and `lambda { |*a| }.arity` both return -1, - # so we can't distinguish between accepting no args and an arg splat. - # It's OK to skip, this, though; it just provides a nice error message - # when the user forgets to accept an arg in their block. They'll still get - # the `assert_used!` error message from above, which is sufficient. - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#78 - def assert_valid_expect_block!; end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#29 - def has_block?; end - - # Returns the value of attribute num_yields. - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#19 - def num_yields; end - - # Sets the attribute num_yields - # - # @param value the value to set the attribute num_yields to. - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#19 - def num_yields=(_arg0); end - - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#33 - def probe; end - - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#53 - def single_yield_args; end - - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#40 - def to_proc; end - - # Returns the value of attribute yielded_args. - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#19 - def yielded_args; end - - # Sets the attribute yielded_args - # - # @param value the value to set the attribute yielded_args to. - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#19 - def yielded_args=(_arg0); end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#57 - def yielded_once?(matcher_name); end - - class << self - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#13 - def probe(block, &callback); end - end -end - -# Provides the implementation for `yield_successive_args`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#296 -class RSpec::Matchers::BuiltIn::YieldSuccessiveArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [YieldSuccessiveArgs] a new instance of YieldSuccessiveArgs - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#297 - def initialize(*args); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#337 - def description; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#320 - def does_not_match?(block); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#325 - def failure_message; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#331 - def failure_message_when_negated; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#302 - def matches?(block); end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#342 - def supports_block_expectations?; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#347 - def supports_value_expectations?; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#353 - def expected_arg_description; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#365 - def negative_failure_reason; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#357 - def positive_failure_reason; end -end - -# Provides the implementation for `yield_with_args`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#199 -class RSpec::Matchers::BuiltIn::YieldWithArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @return [YieldWithArgs] a new instance of YieldWithArgs - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#200 - def initialize(*args); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#233 - def description; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#218 - def does_not_match?(block); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#223 - def failure_message; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#228 - def failure_message_when_negated; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#205 - def matches?(block); end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#240 - def supports_block_expectations?; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#245 - def supports_value_expectations?; end - - private - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#288 - def all_args_match?; end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#273 - def args_currently_match?; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#257 - def expected_arg_description; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#261 - def negative_failure_reason; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#251 - def positive_failure_reason; end -end - -# Provides the implementation for `yield_with_no_args`. -# Not intended to be instantiated directly. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#149 -class RSpec::Matchers::BuiltIn::YieldWithNoArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#158 - def does_not_match?(block); end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#163 - def failure_message; end - - # @api private - # @private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#168 - def failure_message_when_negated; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#151 - def matches?(block); end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#173 - def supports_block_expectations?; end - - # @api private - # @private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#178 - def supports_value_expectations?; end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#190 - def negative_failure_reason; end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#184 - def positive_failure_reason; end -end - -# Mixin designed to support the composable matcher features -# of RSpec 3+. Mix it into your custom matcher classes to -# allow them to be used in a composable fashion. -# -# @api public -# -# source://rspec-expectations//lib/rspec/matchers/composable.rb#10 -module RSpec::Matchers::Composable - # Creates a compound `and` expectation. The matcher will - # only pass if both sub-matchers pass. - # This can be chained together to form an arbitrarily long - # chain of matchers. - # - # @api public - # @example - # expect(alphabet).to start_with("a").and end_with("z") - # expect(alphabet).to start_with("a") & end_with("z") - # @note The negative form (`expect(...).not_to matcher.and other`) - # is not supported at this time. - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#22 - def &(matcher); end - - # Delegates to `#matches?`. Allows matchers to be used in composable - # fashion and also supports using matchers in case statements. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#45 - def ===(value); end - - # Creates a compound `and` expectation. The matcher will - # only pass if both sub-matchers pass. - # This can be chained together to form an arbitrarily long - # chain of matchers. - # - # @api public - # @example - # expect(alphabet).to start_with("a").and end_with("z") - # expect(alphabet).to start_with("a") & end_with("z") - # @note The negative form (`expect(...).not_to matcher.and other`) - # is not supported at this time. - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#22 - def and(matcher); end - - # Creates a compound `or` expectation. The matcher will - # pass if either sub-matcher passes. - # This can be chained together to form an arbitrarily long - # chain of matchers. - # - # @api public - # @example - # expect(stoplight.color).to eq("red").or eq("green").or eq("yellow") - # expect(stoplight.color).to eq("red") | eq("green") | eq("yellow") - # @note The negative form (`expect(...).not_to matcher.or other`) - # is not supported at this time. - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#38 - def or(matcher); end - - # Creates a compound `or` expectation. The matcher will - # pass if either sub-matcher passes. - # This can be chained together to form an arbitrarily long - # chain of matchers. - # - # @api public - # @example - # expect(stoplight.color).to eq("red").or eq("green").or eq("yellow") - # expect(stoplight.color).to eq("red") | eq("green") | eq("yellow") - # @note The negative form (`expect(...).not_to matcher.or other`) - # is not supported at this time. - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#38 - def |(matcher); end - - private - - # Returns the description of the given object in a way that is - # aware of composed matchers. If the object is a matcher with - # a `description` method, returns the description; otherwise - # returns `object.inspect`. - # - # You are encouraged to use this in your custom matcher's - # `description`, `failure_message` or - # `failure_message_when_negated` implementation if you are - # supporting matcher arguments. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#82 - def description_of(object); end - - # We should enumerate arrays as long as they are not recursive. - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#142 - def should_enumerate?(item); end - - # Transforms the given data structure (typically a hash or array) - # into a new data structure that, when `#inspect` is called on it, - # will provide descriptions of any contained matchers rather than - # the normal `#inspect` output. - # - # You are encouraged to use this in your custom matcher's - # `description`, `failure_message` or - # `failure_message_when_negated` implementation if you are - # supporting any arguments which may be a data structure - # containing matchers. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#98 - def surface_descriptions_in(item); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#147 - def unreadable_io?(object); end - - # This provides a generic way to fuzzy-match an expected value against - # an actual value. It understands nested data structures (e.g. hashes - # and arrays) and is able to match against a matcher being used as - # the expected value or within the expected value at any level of - # nesting. - # - # Within a custom matcher you are encouraged to use this whenever your - # matcher needs to match two values, unless it needs more precise semantics. - # For example, the `eq` matcher _does not_ use this as it is meant to - # use `==` (and only `==`) for matching. - # - # @api public - # @param expected [Object] what is expected - # @param actual [Object] the actual value - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#66 - def values_match?(expected, actual); end - - # Historically, a single matcher instance was only checked - # against a single value. Given that the matcher was only - # used once, it's been common to memoize some intermediate - # calculation that is derived from the `actual` value in - # order to reuse that intermediate result in the failure - # message. - # - # This can cause a problem when using such a matcher as an - # argument to another matcher in a composed matcher expression, - # since the matcher instance may be checked against multiple - # values and produce invalid results due to the memoization. - # - # To deal with this, we clone any matchers in `expected` via - # this method when using `values_match?`, so that any memoization - # does not "leak" between checks. - # - # @api public - # @private - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#128 - def with_matchers_cloned(object); end - - class << self - # We should enumerate arrays as long as they are not recursive. - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#142 - def should_enumerate?(item); end - - # Transforms the given data structure (typically a hash or array) - # into a new data structure that, when `#inspect` is called on it, - # will provide descriptions of any contained matchers rather than - # the normal `#inspect` output. - # - # You are encouraged to use this in your custom matcher's - # `description`, `failure_message` or - # `failure_message_when_negated` implementation if you are - # supporting any arguments which may be a data structure - # containing matchers. - # - # @api public - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#98 - def surface_descriptions_in(item); end - - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#147 - def unreadable_io?(object); end - end -end - -# Wraps an item in order to surface its `description` via `inspect`. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/composable.rb#158 -class RSpec::Matchers::Composable::DescribableItem < ::Struct - # Inspectable version of the item description - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#160 - def inspect; end - - # Returns the value of attribute item - # - # @return [Object] the current value of item - def item; end - - # Sets the attribute item - # - # @param value [Object] the value to set the attribute item to. - # @return [Object] the newly set value - def item=(_); end - - # A pretty printed version of the item description. - # - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#165 - def pretty_print(pp); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# Defines the custom matcher DSL. -# -# source://rspec-expectations//lib/rspec/matchers/dsl.rb#6 -module RSpec::Matchers::DSL - # Defines a matcher alias. The returned matcher's `description` will be overridden - # to reflect the phrasing of the new name, which will be used in failure messages - # when passed as an argument to another matcher in a composed matcher expression. - # - # @example - # RSpec::Matchers.alias_matcher :a_list_sorted_by, :be_sorted_by do |description| - # description.sub("be sorted by", "a list sorted by") - # end - # - # be_sorted_by(:age).description # => "be sorted by age" - # a_list_sorted_by(:age).description # => "a list sorted by age" - # @example - # RSpec::Matchers.alias_matcher :a_list_that_sums_to, :sum_to - # sum_to(3).description # => "sum to 3" - # a_list_that_sums_to(3).description # => "a list that sums to 3" - # @option options - # @param old_name [Symbol] the original name for the matcher - # @param new_name [Symbol] the new name for the matcher - # @param options [Hash] options for the aliased matcher - # @see RSpec::Matchers - # @yield [String] optional block that, when given, is used to define the overridden - # logic. The yielded arg is the original description or failure message. If no - # block is provided, a default override is used based on the old and new names. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#32 - def alias_matcher(new_name, old_name, options = T.unsafe(nil), &description_override); end - - # Defines a custom matcher. - # - # @param name [Symbol] the name for the matcher - # @see RSpec::Matchers - # @yield [Object] block that is used to define the matcher. - # The block is evaluated in the context of your custom matcher class. - # When args are passed to your matcher, they will be yielded here, - # usually representing the expected value(s). - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#73 - def define(name, &declarations); end - - # Defines a negated matcher. The returned matcher's `description` and `failure_message` - # will be overridden to reflect the phrasing of the new name, and the match logic will - # be based on the original matcher but negated. - # - # @example - # RSpec::Matchers.define_negated_matcher :exclude, :include - # include(1, 2).description # => "include 1 and 2" - # exclude(1, 2).description # => "exclude 1 and 2" - # @param negated_name [Symbol] the name for the negated matcher - # @param base_name [Symbol] the name of the original matcher that will be negated - # @see RSpec::Matchers - # @yield [String] optional block that, when given, is used to define the overridden - # logic. The yielded arg is the original description or failure message. If no - # block is provided, a default override is used based on the old and new names. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#61 - def define_negated_matcher(negated_name, base_name, &description_override); end - - # Defines a custom matcher. - # - # @param name [Symbol] the name for the matcher - # @see RSpec::Matchers - # @yield [Object] block that is used to define the matcher. - # The block is evaluated in the context of your custom matcher class. - # When args are passed to your matcher, they will be yielded here, - # usually representing the expected value(s). - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#73 - def matcher(name, &declarations); end - - private - - # :nocov: - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#84 - def warn_about_block_args(name, declarations); end -end - -# Defines default implementations of the matcher -# protocol methods for custom matchers. You can -# override any of these using the {RSpec::Matchers::DSL::Macros Macros} methods -# from within an `RSpec::Matchers.define` block. -# -# source://rspec-expectations//lib/rspec/matchers/dsl.rb#385 -module RSpec::Matchers::DSL::DefaultImplementations - include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages - - # The default description. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#395 - def description; end - - # Used internally by objects returns by `should` and `should_not`. - # - # @api private - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#390 - def diffable?; end - - # Most matchers do not expect call stack jumps. - # - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#412 - def expects_call_stack_jump?; end - - # Matchers do not support block expectations by default. You - # must opt-in. - # - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#403 - def supports_block_expectations?; end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#407 - def supports_value_expectations?; end - - private - - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#418 - def chained_method_clause_sentences; end -end - -# Contains the methods that are available from within the -# `RSpec::Matchers.define` DSL for creating custom matchers. -# -# source://rspec-expectations//lib/rspec/matchers/dsl.rb#104 -module RSpec::Matchers::DSL::Macros - # Convenience for defining methods on this matcher to create a fluent - # interface. The trick about fluent interfaces is that each method must - # return self in order to chain methods together. `chain` handles that - # for you. If the method is invoked and the - # `include_chain_clauses_in_custom_matcher_descriptions` config option - # hash been enabled, the chained method name and args will be added to the - # default description and failure message. - # - # In the common case where you just want the chained method to store some - # value(s) for later use (e.g. in `match`), you can provide one or more - # attribute names instead of a block; the chained method will store its - # arguments in instance variables with those names, and the values will - # be exposed via getters. - # - # @example - # - # RSpec::Matchers.define :have_errors_on do |key| - # chain :with do |message| - # @message = message - # end - # - # match do |actual| - # actual.errors[key] == @message - # end - # end - # - # expect(minor).to have_errors_on(:age).with("Not old enough to participate") - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#298 - def chain(method_name, *attr_names, &definition); end - - # Customize the description to use for one-liners. Only use this when - # the description generated by default doesn't suit your needs. - # - # @example - # - # RSpec::Matchers.define :qualify_for do |expected| - # match { your_match_logic } - # - # description do - # "qualify for #{expected}" - # end - # end - # @yield [Object] actual the actual object (i.e. the value wrapped by `expect`) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#253 - def description(&definition); end - - # Tells the matcher to diff the actual and expected values in the failure - # message. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#259 - def diffable; end - - # Customizes the failure message to use when this matcher is - # asked to positively match. Only use this when the message - # generated by default doesn't suit your needs. - # - # @example - # - # RSpec::Matchers.define :have_strength do |expected| - # match { your_match_logic } - # - # failure_message do |actual| - # "Expected strength of #{expected}, but had #{actual.strength}" - # end - # end - # @yield [Object] actual the actual object (i.e. the value wrapped by `expect`) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#216 - def failure_message(&definition); end - - # Customize the failure message to use when this matcher is asked - # to negatively match. Only use this when the message generated by - # default doesn't suit your needs. - # - # @example - # - # RSpec::Matchers.define :have_strength do |expected| - # match { your_match_logic } - # - # failure_message_when_negated do |actual| - # "Expected not to have strength of #{expected}, but did" - # end - # end - # @yield [Object] actual the actual object (i.e. the value wrapped by `expect`) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#235 - def failure_message_when_negated(&definition); end - - # Stores the block that is used to determine whether this matcher passes - # or fails. The block should return a boolean value. When the matcher is - # passed to `expect(...).to` and the block returns `true`, then the expectation - # passes. Similarly, when the matcher is passed to `expect(...).not_to` and the - # block returns `false`, then the expectation passes. - # - # By default the match block will swallow expectation errors (e.g. - # caused by using an expectation such as `expect(1).to eq 2`), if you - # wish to allow these to bubble up, pass in the option - # `:notify_expectation_failures => true`. - # - # @example - # - # RSpec::Matchers.define :be_even do - # match do |actual| - # actual.even? - # end - # end - # - # expect(4).to be_even # passes - # expect(3).not_to be_even # passes - # expect(3).to be_even # fails - # expect(4).not_to be_even # fails - # @param options [Hash] for defining the behavior of the match block. - # @yield [Object] actual the actual value (i.e. the value wrapped by `expect`) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#131 - def match(options = T.unsafe(nil), &match_block); end - - # Use this instead of `match` when the block will raise an exception - # rather than returning false to indicate a failure. - # - # @example - # - # RSpec::Matchers.define :accept_as_valid do |candidate_address| - # match_unless_raises ValidationException do |validator| - # validator.validate(candidate_address) - # end - # end - # - # expect(email_validator).to accept_as_valid("person@company.com") - # @yield [Object] actual the actual object (i.e. the value wrapped by `expect`) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#188 - def match_unless_raises(expected_exception = T.unsafe(nil), &match_block); end - - # Use this to define the block for a negative expectation (`expect(...).not_to`) - # when the positive and negative forms require different handling. This - # is rarely necessary, but can be helpful, for example, when specifying - # asynchronous processes that require different timeouts. - # - # By default the match block will swallow expectation errors (e.g. - # caused by using an expectation such as `expect(1).to eq 2`), if you - # wish to allow these to bubble up, pass in the option - # `:notify_expectation_failures => true`. - # - # @param options [Hash] for defining the behavior of the match block. - # @yield [Object] actual the actual value (i.e. the value wrapped by `expect`) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#160 - def match_when_negated(options = T.unsafe(nil), &match_block); end - - # Declares that the matcher can be used in a block expectation. - # Users will not be able to use your matcher in a block - # expectation without declaring this. - # (e.g. `expect { do_something }.to matcher`). - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#267 - def supports_block_expectations; end - - private - - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#312 - def assign_attributes(attr_names); end - - # Does the following: - # - # - Defines the named method using a user-provided block - # in @user_method_defs, which is included as an ancestor - # in the singleton class in which we eval the `define` block. - # - Defines an overridden definition for the same method - # usign the provided `our_def` block. - # - Provides a default `our_def` block for the common case - # of needing to call the user's definition with `@actual` - # as an arg, but only if their block's arity can handle it. - # - # This compiles the user block into an actual method, allowing - # them to use normal method constructs like `return` - # (e.g. for an early guard statement), while allowing us to define - # an override that can provide the wrapped handling - # (e.g. assigning `@actual`, rescueing errors, etc) and - # can `super` to the user's definition. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#346 - def define_user_override(method_name, user_def, &our_def); end -end - -# Defines deprecated macro methods from RSpec 2 for backwards compatibility. -# -# @deprecated Use the methods from {Macros} instead. -# -# source://rspec-expectations//lib/rspec/matchers/dsl.rb#354 -module RSpec::Matchers::DSL::Macros::Deprecated - # @deprecated Use {Macros#failure_message} instead. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#368 - def failure_message_for_should(&definition); end - - # @deprecated Use {Macros#failure_message_when_negated} instead. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#374 - def failure_message_for_should_not(&definition); end - - # @deprecated Use {Macros#match} instead. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#356 - def match_for_should(&definition); end - - # @deprecated Use {Macros#match_when_negated} instead. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#362 - def match_for_should_not(&definition); end -end - -# @private -# -# source://rspec-expectations//lib/rspec/matchers/dsl.rb#146 -RSpec::Matchers::DSL::Macros::RAISE_NOTIFIER = T.let(T.unsafe(nil), Proc) - -# The class used for custom matchers. The block passed to -# `RSpec::Matchers.define` will be evaluated in the context -# of the singleton class of an instance, and will have the -# {RSpec::Matchers::DSL::Macros Macros} methods available. -# -# source://rspec-expectations//lib/rspec/matchers/dsl.rb#433 -class RSpec::Matchers::DSL::Matcher - include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages - include ::RSpec::Matchers::DSL::DefaultImplementations - include ::RSpec::Matchers - include ::RSpec::Matchers::Composable - extend ::RSpec::Matchers::DSL::Macros - extend ::RSpec::Matchers::DSL::Macros::Deprecated - - # @api private - # @return [Matcher] a new instance of Matcher - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#462 - def initialize(name, declarations, matcher_execution_context, *expected, &block_arg); end - - # Exposes the value being matched against -- generally the object - # object wrapped by `expect`. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#449 - def actual; end - - # The block parameter used in the expectation - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#456 - def block_arg; end - - # Provides the expected value. This will return an array if - # multiple arguments were passed to the matcher; otherwise it - # will return a single value. - # - # @see #expected_as_array - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#482 - def expected; end - - # Returns the expected value as an an array. This exists primarily - # to aid in upgrading from RSpec 2.x, since in RSpec 2, `expected` - # always returned an array. - # - # @see #expected - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#494 - def expected_as_array; end - - # Adds the name (rather than a cryptic hex number) - # so we can identify an instance of - # the matcher in error messages (e.g. for `NoMethodError`) - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#499 - def inspect; end - - # The name of the matcher. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#459 - def name; end - - # Exposes the exception raised during the matching by `match_unless_raises`. - # Could be useful to extract details for a failure message. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#453 - def rescued_exception; end - - private - - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#522 - def actual_arg_for(block); end - - # Takes care of forwarding unhandled messages to the - # `@matcher_execution_context` (typically the current - # running `RSpec::Core::Example`). This is needed by - # rspec-rails so that it can define matchers that wrap - # Rails' test helper methods, but it's also a useful - # feature in its own right. - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#532 - def method_missing(method, *args, **_arg2, &block); end - - # Indicates that this matcher responds to messages - # from the `@matcher_execution_context` as well. - # Also, supports getting a method object for such methods. - # - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#507 - def respond_to_missing?(method, include_private = T.unsafe(nil)); end -end - -# source://rspec-expectations//lib/rspec/matchers.rb#959 -RSpec::Matchers::DYNAMIC_MATCHER_REGEX = T.let(T.unsafe(nil), Regexp) - -# Facilitates converting ruby objects to English phrases. -# -# source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#4 -module RSpec::Matchers::EnglishPhrasing - class << self - # when given an empty list. - # - # Converts an object (often a collection of objects) - # into an English list. - # - # list(['banana', 'kiwi', 'mango']) - # #=> " \"banana\", \"kiwi\", and \"mango\"" - # - # Given an empty collection, returns the empty string. - # - # list([]) #=> "" - # - # @note The returned string has a leading space except - # - # source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#26 - def list(obj); end - - # Converts a symbol into an English expression. - # - # split_words(:banana_creme_pie) #=> "banana creme pie" - # - # source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#9 - def split_words(sym); end - end -end - -# source://rspec-expectations//lib/rspec/matchers.rb#958 -RSpec::Matchers::HAS_REGEX = T.let(T.unsafe(nil), Regexp) - -# Provides the necessary plumbing to wrap a matcher with a decorator. -# -# @private -# -# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#31 -class RSpec::Matchers::MatcherDelegator < ::RSpec::Matchers::BaseDelegator - include ::RSpec::Matchers::Composable - - # @return [MatcherDelegator] a new instance of MatcherDelegator - # - # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#35 - def initialize(base_matcher); end - - # Returns the value of attribute base_matcher. - # - # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#33 - def base_matcher; end - - # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#39 - def method_missing(*args, &block); end - - private - - # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#55 - def initialize_copy(other); end - - # @return [Boolean] - # - # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#44 - def respond_to_missing?(name, include_all = T.unsafe(nil)); end -end - -# Handles list of expected and actual value pairs when there is a need -# to render multiple diffs. Also can handle one pair. -# -# @api private -# -# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#6 -class RSpec::Matchers::MultiMatcherDiff - # @api private - # @return [MultiMatcherDiff] a new instance of MultiMatcherDiff - # - # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#16 - def initialize(expected_list); end - - # Returns message with diff(s) appended for provided differ - # factory and actual value if there are any - # - # @api private - # @param message [String] original failure message - # @param differ [Proc] - # @return [String] - # - # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#47 - def message_with_diff(message, differ); end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#68 - def diffs(differ); end - - class << self - # Wraps provided matcher list in instance of - # MultiMatcherDiff. - # - # @api private - # @param matchers [Array] list of matchers to wrap - # @return [RSpec::Matchers::MultiMatcherDiff] - # - # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#37 - def for_many_matchers(matchers); end - - # Wraps provided expected value in instance of - # MultiMatcherDiff. If provided value is already an - # MultiMatcherDiff then it just returns it. - # - # @api private - # @param expected [Any] value to be wrapped - # @param actual [Any] value - # @return [RSpec::Matchers::MultiMatcherDiff] - # - # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#27 - def from(expected, actual); end - - private - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#58 - def diff_label_for(matcher); end - - # @api private - # - # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#62 - def truncated(description); end - end -end - -# Default diff label when there is only one matcher in diff -# output -# -# @api private -# @private -# -# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#10 -RSpec::Matchers::MultiMatcherDiff::DEFAULT_DIFF_LABEL = T.let(T.unsafe(nil), String) - -# Maximum readable matcher description length -# -# @api private -# @private -# -# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#14 -RSpec::Matchers::MultiMatcherDiff::DESCRIPTION_MAX_LENGTH = T.let(T.unsafe(nil), Integer) diff --git a/Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.2.rbi b/Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.2.rbi deleted file mode 100644 index 2c065ea7f4..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.2.rbi +++ /dev/null @@ -1,1668 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `rspec-support` gem. -# Please instead update this file by running `bin/tapioca gem rspec-support`. - - -# source://rspec-support//lib/rspec/support.rb#3 -module RSpec - extend ::RSpec::Support::Warnings - - class << self - # source://rspec-core/3.13.2/lib/rspec/core.rb#70 - def clear_examples; end - - # source://rspec-core/3.13.2/lib/rspec/core.rb#85 - def configuration; end - - # source://rspec-core/3.13.2/lib/rspec/core.rb#49 - def configuration=(_arg0); end - - # source://rspec-core/3.13.2/lib/rspec/core.rb#97 - def configure; end - - # source://rspec-core/3.13.2/lib/rspec/core.rb#194 - def const_missing(name); end - - # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 - def context(*args, &example_group_block); end - - # source://rspec-core/3.13.2/lib/rspec/core.rb#122 - def current_example; end - - # source://rspec-core/3.13.2/lib/rspec/core.rb#128 - def current_example=(example); end - - # source://rspec-core/3.13.2/lib/rspec/core.rb#154 - def current_scope; end - - # source://rspec-core/3.13.2/lib/rspec/core.rb#134 - def current_scope=(scope); end - - # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 - def describe(*args, &example_group_block); end - - # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 - def example_group(*args, &example_group_block); end - - # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 - def fcontext(*args, &example_group_block); end - - # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 - def fdescribe(*args, &example_group_block); end - - # source://rspec-core/3.13.2/lib/rspec/core.rb#58 - def reset; end - - # source://rspec-core/3.13.2/lib/rspec/core/shared_example_group.rb#110 - def shared_context(name, *args, &block); end - - # source://rspec-core/3.13.2/lib/rspec/core/shared_example_group.rb#110 - def shared_examples(name, *args, &block); end - - # source://rspec-core/3.13.2/lib/rspec/core/shared_example_group.rb#110 - def shared_examples_for(name, *args, &block); end - - # source://rspec-core/3.13.2/lib/rspec/core.rb#160 - def world; end - - # source://rspec-core/3.13.2/lib/rspec/core.rb#49 - def world=(_arg0); end - - # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 - def xcontext(*args, &example_group_block); end - - # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 - def xdescribe(*args, &example_group_block); end - end -end - -# Consistent implementation for "cleaning" the caller method to strip out -# non-rspec lines. This enables errors to be reported at the call site in -# the code using the library, which is far more useful than the particular -# internal method that raised an error. -# -# source://rspec-support//lib/rspec/support/caller_filter.rb#10 -class RSpec::CallerFilter - class << self - # Earlier rubies do not support the two argument form of `caller`. This - # fallback is logically the same, but slower. - # - # source://rspec-support//lib/rspec/support/caller_filter.rb#49 - def first_non_rspec_line(skip_frames = T.unsafe(nil), increment = T.unsafe(nil)); end - end -end - -# source://rspec-support//lib/rspec/support/caller_filter.rb#20 -RSpec::CallerFilter::ADDITIONAL_TOP_LEVEL_FILES = T.let(T.unsafe(nil), Array) - -# rubygems/core_ext/kernel_require.rb isn't actually part of rspec (obviously) but we want -# it ignored when we are looking for the first meaningful line of the backtrace outside -# of RSpec. It can show up in the backtrace as the immediate first caller -# when `CallerFilter.first_non_rspec_line` is called from the top level of a required -# file, but it depends on if rubygems is loaded or not. We don't want to have to deal -# with this complexity in our `RSpec.deprecate` calls, so we ignore it here. -# -# source://rspec-support//lib/rspec/support/caller_filter.rb#30 -RSpec::CallerFilter::IGNORE_REGEX = T.let(T.unsafe(nil), Regexp) - -# source://rspec-support//lib/rspec/support/caller_filter.rb#22 -RSpec::CallerFilter::LIB_REGEX = T.let(T.unsafe(nil), Regexp) - -# source://rspec-support//lib/rspec/support/caller_filter.rb#11 -RSpec::CallerFilter::RSPEC_LIBS = T.let(T.unsafe(nil), Array) - -# source://rspec-support//lib/rspec/support.rb#4 -module RSpec::Support - class << self - # Used internally to get a class of a given object, even if it does not respond to #class. - # - # @api private - # - # source://rspec-support//lib/rspec/support.rb#86 - def class_of(object); end - - # Defines a helper method that is optimized to require files from the - # named lib. The passed block MUST be `{ |f| require_relative f }` - # because for `require_relative` to work properly from within the named - # lib the line of code must be IN that lib. - # - # `require_relative` is preferred when available because it is always O(1), - # regardless of the number of dirs in $LOAD_PATH. `require`, on the other - # hand, does a linear O(N) search over the dirs in the $LOAD_PATH until - # it can resolve the file relative to one of the dirs. - # - # @api private - # - # source://rspec-support//lib/rspec/support.rb#16 - def define_optimized_require_for_rspec(lib, &require_relative); end - - # Remove a previously registered matcher. Useful for cleaning up after - # yourself in specs. - # - # @private - # - # source://rspec-support//lib/rspec/support/matcher_definition.rb#24 - def deregister_matcher_definition(&block); end - - # @api private - # - # source://rspec-support//lib/rspec/support.rb#113 - def failure_notifier; end - - # @api private - # - # source://rspec-support//lib/rspec/support.rb#105 - def failure_notifier=(callable); end - - # @private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/matcher_definition.rb#29 - def is_a_matcher?(object); end - - # @private - # - # source://rspec-support//lib/rspec/support/matcher_definition.rb#6 - def matcher_definitions; end - - # source://rspec-support//lib/rspec/support.rb#54 - def method_handle_for(object, method_name); end - - # @api private - # - # source://rspec-support//lib/rspec/support.rb#118 - def notify_failure(failure, options = T.unsafe(nil)); end - - # Used internally to break cyclic dependency between mocks, expectations, - # and support. We don't currently have a consistent implementation of our - # matchers, though we are considering changing that: - # https://github.com/rspec/rspec-mocks/issues/513 - # - # @private - # - # source://rspec-support//lib/rspec/support/matcher_definition.rb#16 - def register_matcher_definition(&block); end - - # source://rspec-support//lib/rspec/support.rb#25 - def require_rspec_core(f); end - - # source://rspec-support//lib/rspec/support.rb#25 - def require_rspec_expectations(f); end - - # source://rspec-support//lib/rspec/support.rb#25 - def require_rspec_matchers(f); end - - # source://rspec-support//lib/rspec/support.rb#25 - def require_rspec_mocks(f); end - - # source://rspec-support//lib/rspec/support.rb#25 - def require_rspec_support(f); end - - # gives a string representation of an object for use in RSpec descriptions - # - # @api private - # - # source://rspec-support//lib/rspec/support/matcher_definition.rb#36 - def rspec_description_for_object(object); end - - # source://rspec-support//lib/rspec/support.rb#95 - def thread_local_data; end - - # @api private - # - # source://rspec-support//lib/rspec/support.rb#140 - def warning_notifier; end - - # @api private - # - # source://rspec-support//lib/rspec/support.rb#133 - def warning_notifier=(_arg0); end - - # @api private - # - # source://rspec-support//lib/rspec/support.rb#123 - def with_failure_notifier(callable); end - end -end - -# @private -# -# source://rspec-support//lib/rspec/support.rb#145 -module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue - class << self - # source://rspec-support//lib/rspec/support.rb#150 - def ===(exception); end - end -end - -# These exceptions are dangerous to rescue as rescuing them -# would interfere with things we should not interfere with. -# -# source://rspec-support//lib/rspec/support.rb#148 -RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue::AVOID_RESCUING = T.let(T.unsafe(nil), Array) - -# Deals with the slightly different semantics of block arguments. -# For methods, arguments are required unless a default value is provided. -# For blocks, arguments are optional, even if no default value is provided. -# -# However, we want to treat block args as required since you virtually -# always want to pass a value for each received argument and our -# `and_yield` has treated block args as required for many years. -# -# @api private -# -# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#268 -class RSpec::Support::BlockSignature < ::RSpec::Support::MethodSignature - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#270 - def classify_parameters; end -end - -# @private -# -# source://rspec-support//lib/rspec/support/comparable_version.rb#6 -class RSpec::Support::ComparableVersion - include ::Comparable - - # @return [ComparableVersion] a new instance of ComparableVersion - # - # source://rspec-support//lib/rspec/support/comparable_version.rb#11 - def initialize(string); end - - # source://rspec-support//lib/rspec/support/comparable_version.rb#15 - def <=>(other); end - - # source://rspec-support//lib/rspec/support/comparable_version.rb#37 - def segments; end - - # Returns the value of attribute string. - # - # source://rspec-support//lib/rspec/support/comparable_version.rb#9 - def string; end -end - -# @private -# -# source://rspec-support//lib/rspec/support.rb#110 -RSpec::Support::DEFAULT_FAILURE_NOTIFIER = T.let(T.unsafe(nil), Proc) - -# @private -# -# source://rspec-support//lib/rspec/support.rb#137 -RSpec::Support::DEFAULT_WARNING_NOTIFIER = T.let(T.unsafe(nil), Proc) - -# source://rspec-support//lib/rspec/support/differ.rb#12 -class RSpec::Support::Differ - # @return [Differ] a new instance of Differ - # - # source://rspec-support//lib/rspec/support/differ.rb#69 - def initialize(opts = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/differ.rb#65 - def color?; end - - # source://rspec-support//lib/rspec/support/differ.rb#13 - def diff(actual, expected); end - - # source://rspec-support//lib/rspec/support/differ.rb#59 - def diff_as_object(actual, expected); end - - # source://rspec-support//lib/rspec/support/differ.rb#30 - def diff_as_string(actual, expected); end - - private - - # source://rspec-support//lib/rspec/support/differ.rb#130 - def add_old_hunk_to_hunk(hunk, oldhunk); end - - # source://rspec-support//lib/rspec/support/differ.rb#126 - def add_to_output(output, string); end - - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/differ.rb#80 - def all_strings?(*args); end - - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/differ.rb#84 - def any_multiline_strings?(*args); end - - # source://rspec-support//lib/rspec/support/differ.rb#155 - def blue(text); end - - # source://rspec-support//lib/rspec/support/differ.rb#117 - def build_hunks(actual, expected); end - - # source://rspec-support//lib/rspec/support/differ.rb#92 - def coerce_to_string(string_or_array); end - - # source://rspec-support//lib/rspec/support/differ.rb#143 - def color(text, color_code); end - - # source://rspec-support//lib/rspec/support/differ.rb#163 - def color_diff(diff); end - - # source://rspec-support//lib/rspec/support/differ.rb#97 - def diffably_stringify(array); end - - # source://rspec-support//lib/rspec/support/differ.rb#121 - def finalize_output(output, final_line); end - - # source://rspec-support//lib/rspec/support/differ.rb#139 - def format_type; end - - # source://rspec-support//lib/rspec/support/differ.rb#151 - def green(text); end - - # source://rspec-support//lib/rspec/support/differ.rb#204 - def handle_encoding_errors(actual, expected); end - - # source://rspec-support//lib/rspec/support/differ.rb#194 - def hash_to_string(hash); end - - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/differ.rb#108 - def multiline?(string); end - - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/differ.rb#88 - def no_numbers?(*args); end - - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/differ.rb#76 - def no_procs?(*args); end - - # source://rspec-support//lib/rspec/support/differ.rb#159 - def normal(text); end - - # source://rspec-support//lib/rspec/support/differ.rb#180 - def object_to_string(object); end - - # source://rspec-support//lib/rspec/support/differ.rb#147 - def red(text); end - - # source://rspec-support//lib/rspec/support/differ.rb#134 - def safely_flatten(array); end -end - -# Replacement for fileutils#mkdir_p because we don't want to require parts -# of stdlib in RSpec. -# -# @api private -# -# source://rspec-support//lib/rspec/support/directory_maker.rb#11 -class RSpec::Support::DirectoryMaker - class << self - # Implements nested directory construction - # - # @api private - # - # source://rspec-support//lib/rspec/support/directory_maker.rb#15 - def mkdir_p(path); end - - private - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/directory_maker.rb#57 - def directory_exists?(dirname); end - - # @api private - # - # source://rspec-support//lib/rspec/support/directory_maker.rb#52 - def generate_path(stack, part); end - - # @api private - # - # source://rspec-support//lib/rspec/support/directory_maker.rb#49 - def generate_stack(path); end - end -end - -# @private -# -# source://rspec-support//lib/rspec/support/encoded_string.rb#6 -class RSpec::Support::EncodedString - # @return [EncodedString] a new instance of EncodedString - # - # source://rspec-support//lib/rspec/support/encoded_string.rb#16 - def initialize(string, encoding = T.unsafe(nil)); end - - # source://rspec-support//lib/rspec/support/encoded_string.rb#28 - def <<(string); end - - # source://rspec-support//lib/rspec/support/encoded_string.rb#25 - def ==(*args, &block); end - - # source://rspec-support//lib/rspec/support/encoded_string.rb#25 - def empty?(*args, &block); end - - # source://rspec-support//lib/rspec/support/encoded_string.rb#25 - def encoding(*args, &block); end - - # source://rspec-support//lib/rspec/support/encoded_string.rb#25 - def eql?(*args, &block); end - - # source://rspec-support//lib/rspec/support/encoded_string.rb#25 - def lines(*args, &block); end - - # Returns the value of attribute source_encoding. - # - # source://rspec-support//lib/rspec/support/encoded_string.rb#21 - def source_encoding; end - - # source://rspec-support//lib/rspec/support/encoded_string.rb#41 - def split(regex_or_string); end - - # source://rspec-support//lib/rspec/support/encoded_string.rb#46 - def to_s; end - - # source://rspec-support//lib/rspec/support/encoded_string.rb#46 - def to_str; end - - private - - # source://rspec-support//lib/rspec/support/encoded_string.rb#139 - def detect_source_encoding(string); end - - # Encoding Exceptions: - # - # Raised by Encoding and String methods: - # Encoding::UndefinedConversionError: - # when a transcoding operation fails - # if the String contains characters invalid for the target encoding - # e.g. "\x80".encode('UTF-8','ASCII-8BIT') - # vs "\x80".encode('UTF-8','ASCII-8BIT', undef: :replace, replace: '') - # # => '' - # Encoding::CompatibilityError - # when Encoding.compatible?(str1, str2) is nil - # e.g. utf_16le_emoji_string.split("\n") - # e.g. valid_unicode_string.encode(utf8_encoding) << ascii_string - # Encoding::InvalidByteSequenceError: - # when the string being transcoded contains a byte invalid for - # either the source or target encoding - # e.g. "\x80".encode('UTF-8','US-ASCII') - # vs "\x80".encode('UTF-8','US-ASCII', invalid: :replace, replace: '') - # # => '' - # ArgumentError - # when operating on a string with invalid bytes - # e.g."\x80".split("\n") - # TypeError - # when a symbol is passed as an encoding - # Encoding.find(:"UTF-8") - # when calling force_encoding on an object - # that doesn't respond to #to_str - # - # Raised by transcoding methods: - # Encoding::ConverterNotFoundError: - # when a named encoding does not correspond with a known converter - # e.g. 'abc'.force_encoding('UTF-8').encode('foo') - # or a converter path cannot be found - # e.g. "\x80".force_encoding('ASCII-8BIT').encode('Emacs-Mule') - # - # Raised by byte <-> char conversions - # RangeError: out of char range - # e.g. the UTF-16LE emoji: 128169.chr - # - # source://rspec-support//lib/rspec/support/encoded_string.rb#93 - def matching_encoding(string); end - - # http://stackoverflow.com/a/8711118/879854 - # Loop over chars in a string replacing chars - # with invalid encoding, which is a pretty good proxy - # for the invalid byte sequence that causes an ArgumentError - # - # source://rspec-support//lib/rspec/support/encoded_string.rb#124 - def remove_invalid_bytes(string); end - - class << self - # source://rspec-support//lib/rspec/support/encoded_string.rb#143 - def pick_encoding(source_a, source_b); end - end -end - -# Ruby's default replacement string is: -# U+FFFD ("\xEF\xBF\xBD"), for Unicode encoding forms, else -# ? ("\x3F") -# -# source://rspec-support//lib/rspec/support/encoded_string.rb#14 -RSpec::Support::EncodedString::REPLACE = T.let(T.unsafe(nil), String) - -# source://rspec-support//lib/rspec/support/encoded_string.rb#9 -RSpec::Support::EncodedString::US_ASCII = T.let(T.unsafe(nil), String) - -# Reduce allocations by storing constants. -# -# source://rspec-support//lib/rspec/support/encoded_string.rb#8 -RSpec::Support::EncodedString::UTF_8 = T.let(T.unsafe(nil), String) - -# Provides a means to fuzzy-match between two arbitrary objects. -# Understands array/hash nesting. Uses `===` or `==` to -# perform the matching. -# -# source://rspec-support//lib/rspec/support/fuzzy_matcher.rb#8 -module RSpec::Support::FuzzyMatcher - class << self - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/fuzzy_matcher.rb#10 - def values_match?(expected, actual); end - - private - - # @private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/fuzzy_matcher.rb#29 - def arrays_match?(expected_list, actual_list); end - - # @private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/fuzzy_matcher.rb#38 - def hashes_match?(expected_hash, actual_hash); end - end -end - -# @private -# -# source://rspec-support//lib/rspec/support/hunk_generator.rb#9 -class RSpec::Support::HunkGenerator - # @return [HunkGenerator] a new instance of HunkGenerator - # - # source://rspec-support//lib/rspec/support/hunk_generator.rb#10 - def initialize(actual, expected); end - - # source://rspec-support//lib/rspec/support/hunk_generator.rb#15 - def hunks; end - - private - - # source://rspec-support//lib/rspec/support/hunk_generator.rb#32 - def actual_lines; end - - # source://rspec-support//lib/rspec/support/hunk_generator.rb#36 - def build_hunk(piece); end - - # source://rspec-support//lib/rspec/support/hunk_generator.rb#44 - def context_lines; end - - # source://rspec-support//lib/rspec/support/hunk_generator.rb#24 - def diffs; end - - # source://rspec-support//lib/rspec/support/hunk_generator.rb#28 - def expected_lines; end -end - -# @api private -# -# source://rspec-support//lib/rspec/support.rb#40 -RSpec::Support::KERNEL_METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# Allows matchers to be used instead of providing keyword arguments. In -# practice, when this happens only the arity of the method is verified. -# -# @private -# -# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#395 -class RSpec::Support::LooseSignatureVerifier < ::RSpec::Support::MethodSignatureVerifier - private - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#398 - def split_args(*args); end -end - -# If a matcher is used in a signature in place of keyword arguments, all -# keyword argument validation needs to be skipped since the matcher is -# opaque. -# -# Instead, keyword arguments will be validated when the method is called -# and they are actually known. -# -# @private -# -# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#415 -class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher - # @return [SignatureWithKeywordArgumentsMatcher] a new instance of SignatureWithKeywordArgumentsMatcher - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#416 - def initialize(signature); end - - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#436 - def has_kw_args_in?(args); end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#424 - def invalid_kw_args_from(_kw_args); end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#420 - def missing_kw_args_from(_kw_args); end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#428 - def non_kw_args_arity_description; end - - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#432 - def valid_non_kw_args?(*args); end -end - -# Extracts info about the number of arguments and allowed/required -# keyword args of a given method. -# -# @private -# -# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#13 -class RSpec::Support::MethodSignature - # @return [MethodSignature] a new instance of MethodSignature - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#16 - def initialize(method); end - - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#98 - def arbitrary_kw_args?; end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#38 - def classify_arity(arity = T.unsafe(nil)); end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#106 - def classify_parameters; end - - # Without considering what the last arg is, could it - # contain keyword arguments? - # - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#92 - def could_contain_kw_args?(args); end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#51 - def description; end - - # If the last argument is Hash, Ruby will treat only symbol keys as keyword arguments - # the rest will be grouped in another Hash and passed as positional argument. - # - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#84 - def has_kw_args_in?(args); end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#77 - def invalid_kw_args_from(given_kw_args); end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14 - def max_non_kw_args; end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14 - def min_non_kw_args; end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#73 - def missing_kw_args_from(given_kw_args); end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#23 - def non_kw_args_arity_description; end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14 - def optional_kw_args; end - - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14 - def required_kw_args; end - - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#102 - def unlimited_args?; end - - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#31 - def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = T.unsafe(nil)); end -end - -# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#162 -RSpec::Support::MethodSignature::INFINITY = T.let(T.unsafe(nil), Float) - -# Encapsulates expectations about the number of arguments and -# allowed/required keyword args of a given method. -# -# @api private -# -# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#219 -class RSpec::Support::MethodSignatureExpectation - # @api private - # @return [MethodSignatureExpectation] a new instance of MethodSignatureExpectation - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#220 - def initialize; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#247 - def empty?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231 - def expect_arbitrary_keywords; end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231 - def expect_arbitrary_keywords=(_arg0); end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231 - def expect_unlimited_arguments; end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231 - def expect_unlimited_arguments=(_arg0); end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229 - def keywords; end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#254 - def keywords=(values); end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229 - def max_count; end - - # @api private - # @raise [ArgumentError] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#233 - def max_count=(number); end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229 - def min_count; end - - # @api private - # @raise [ArgumentError] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#240 - def min_count=(number); end -end - -# Abstract base class for signature verifiers. -# -# @api private -# -# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#280 -class RSpec::Support::MethodSignatureVerifier - # @api private - # @return [MethodSignatureVerifier] a new instance of MethodSignatureVerifier - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#283 - def initialize(signature, args = T.unsafe(nil)); end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#326 - def error_message; end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281 - def kw_args; end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281 - def max_non_kw_args; end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281 - def min_non_kw_args; end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281 - def non_kw_args; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#318 - def valid?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#290 - def with_expectation(expectation); end - - private - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#357 - def arbitrary_kw_args?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#353 - def invalid_kw_args; end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#349 - def missing_kw_args; end - - # @api private - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#365 - def split_args(*args); end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#361 - def unlimited_args?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#345 - def valid_non_kw_args?; end -end - -# On 1.9 and up, this is in core, so we just use the real one -# -# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#65 -class RSpec::Support::Mutex < ::Thread::Mutex - class << self - # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#70 - def new; end - end -end - -# If you mock Mutex.new you break our usage of Mutex, so -# instead we capture the original method to return Mutexes. -# -# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#68 -RSpec::Support::Mutex::NEW_MUTEX_METHOD = T.let(T.unsafe(nil), Method) - -# Provides query methods for different OS or OS features. -# -# @api private -# -# source://rspec-support//lib/rspec/support/ruby_features.rb#11 -module RSpec::Support::OS - private - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#14 - def windows?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#18 - def windows_file_path?; end - - class << self - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#14 - def windows?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#18 - def windows_file_path?; end - end -end - -# Provide additional output details beyond what `inspect` provides when -# printing Time, DateTime, or BigDecimal -# -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#10 -class RSpec::Support::ObjectFormatter - # @api private - # @return [ObjectFormatter] a new instance of ObjectFormatter - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#29 - def initialize(max_formatted_output_length = T.unsafe(nil)); end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#34 - def format(object); end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#13 - def max_formatted_output_length; end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#13 - def max_formatted_output_length=(_arg0); end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#70 - def prepare_array(array); end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#94 - def prepare_element(element); end - - # Prepares the provided object to be formatted by wrapping it as needed - # in something that, when `inspect` is called on it, will produce the - # desired output. - # - # This allows us to apply the desired formatting to hash/array data structures - # at any level of nesting, simply by walking that structure and replacing items - # with custom items that have `inspect` defined to return the desired output - # for that item. Then we can just use `Array#inspect` or `Hash#inspect` to - # format the entire thing. - # - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#58 - def prepare_for_inspection(object); end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#76 - def prepare_hash(input_hash); end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#113 - def recursive_structure?(object); end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#86 - def sort_hash_keys(input_hash); end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#106 - def with_entering_structure(structure); end - - private - - # Returns the substring defined by the start_index and end_index - # If the string ends with a partial ANSI code code then that - # will be removed as printing partial ANSI - # codes to the terminal can lead to corruption - # - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#268 - def truncate_string(str, start_index, end_index); end - - class << self - # Methods are deferred to a default instance of the class to maintain the interface - # For example, calling ObjectFormatter.format is still possible - # - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#17 - def default_instance; end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#21 - def format(object); end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#25 - def prepare_for_inspection(object); end - end -end - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#127 -class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct - # Returns the value of attribute formatter - # - # @return [Object] the current value of formatter - def formatter; end - - # Sets the attribute formatter - # - # @param value [Object] the value to set the attribute formatter to. - # @return [Object] the newly set value - def formatter=(_); end - - # @api private - # @raise [NotImplementedError] - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#132 - def inspect; end - - # Returns the value of attribute object - # - # @return [Object] the current value of object - def object; end - - # Sets the attribute object - # - # @param value [Object] the value to set the attribute object to. - # @return [Object] the newly set value - def object=(_); end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#136 - def pretty_print(pp); end - - class << self - def [](*_arg0); end - - # @api private - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#128 - def can_inspect?(_object); end - - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#177 -class RSpec::Support::ObjectFormatter::BigDecimalInspector < ::RSpec::Support::ObjectFormatter::BaseInspector - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#182 - def inspect; end - - class << self - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#178 - def can_inspect?(object); end - end -end - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#159 -class RSpec::Support::ObjectFormatter::DateTimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector - # ActiveSupport sometimes overrides inspect. If `ActiveSupport` is - # defined use a custom format string that includes more time precision. - # - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#168 - def inspect; end - - class << self - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#162 - def can_inspect?(object); end - end -end - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#160 -RSpec::Support::ObjectFormatter::DateTimeInspector::FORMAT = T.let(T.unsafe(nil), String) - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#224 -class RSpec::Support::ObjectFormatter::DelegatorInspector < ::RSpec::Support::ObjectFormatter::BaseInspector - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#229 - def inspect; end - - class << self - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#225 - def can_inspect?(object); end - end -end - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#187 -class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < ::RSpec::Support::ObjectFormatter::BaseInspector - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#192 - def inspect; end - - class << self - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#188 - def can_inspect?(object); end - end -end - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#11 -RSpec::Support::ObjectFormatter::ELLIPSIS = T.let(T.unsafe(nil), String) - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#247 -RSpec::Support::ObjectFormatter::INSPECTOR_CLASSES = T.let(T.unsafe(nil), Array) - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#117 -class RSpec::Support::ObjectFormatter::InspectableItem < ::Struct - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#118 - def inspect; end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#122 - def pretty_print(pp); end - - # Returns the value of attribute text - # - # @return [Object] the current value of text - def text; end - - # Sets the attribute text - # - # @param value [Object] the value to set the attribute text to. - # @return [Object] the newly set value - def text=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#234 -class RSpec::Support::ObjectFormatter::InspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#242 - def inspect; end - - class << self - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#235 - def can_inspect?(object); end - end -end - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#141 -class RSpec::Support::ObjectFormatter::TimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector - # for 1.8.7 - # - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#149 - def inspect; end - - class << self - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#144 - def can_inspect?(object); end - end -end - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#142 -RSpec::Support::ObjectFormatter::TimeInspector::FORMAT = T.let(T.unsafe(nil), String) - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#197 -class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#207 - def inspect; end - - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#211 - def klass; end - - # http://stackoverflow.com/a/2818916 - # - # @api private - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#216 - def native_object_id; end - - class << self - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/object_formatter.rb#200 - def can_inspect?(object); end - end -end - -# @api private -# -# source://rspec-support//lib/rspec/support/object_formatter.rb#198 -RSpec::Support::ObjectFormatter::UninspectableObjectInspector::OBJECT_ID_FORMAT = T.let(T.unsafe(nil), String) - -# Provides recursive constant lookup methods useful for -# constant stubbing. -# -# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#7 -module RSpec::Support::RecursiveConstMethods - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#45 - def const_defined_on?(mod, const_name); end - - # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#53 - def constants_defined_on(mod); end - - # @raise [NameError] - # - # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#49 - def get_const_defined_on(mod, const_name); end - - # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#73 - def normalize_const_name(const_name); end - - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#64 - def recursive_const_defined?(const_name); end - - # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#58 - def recursive_const_get(const_name); end -end - -# Allows a thread to lock out other threads from a critical section of code, -# while allowing the thread with the lock to reenter that section. -# -# Based on Monitor as of 2.2 - -# https://github.com/ruby/ruby/blob/eb7ddaa3a47bf48045d26c72eb0f263a53524ebc/lib/monitor.rb#L9 -# -# Depends on Mutex, but Mutex is only available as part of core since 1.9.1: -# exists - http://ruby-doc.org/core-1.9.1/Mutex.html -# dne - http://ruby-doc.org/core-1.9.0/Mutex.html -# -# @private -# -# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#16 -class RSpec::Support::ReentrantMutex - # @return [ReentrantMutex] a new instance of ReentrantMutex - # - # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#17 - def initialize; end - - # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#23 - def synchronize; end - - private - - # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#35 - def enter; end - - # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#40 - def exit; end -end - -# Provides query methods for different rubies -# -# @api private -# -# source://rspec-support//lib/rspec/support/ruby_features.rb#26 -module RSpec::Support::Ruby - private - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#29 - def jruby?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#37 - def jruby_9000?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#33 - def jruby_version; end - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#49 - def mri?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#45 - def non_mri?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#41 - def rbx?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#53 - def truffleruby?; end - - class << self - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#29 - def jruby?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#37 - def jruby_9000?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#33 - def jruby_version; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#49 - def mri?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#45 - def non_mri?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#41 - def rbx?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#53 - def truffleruby?; end - end -end - -# Provides query methods for ruby features that differ among -# implementations. -# -# @api private -# -# source://rspec-support//lib/rspec/support/ruby_features.rb#62 -module RSpec::Support::RubyFeatures - private - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#85 - def caller_locations_supported?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#155 - def distincts_kw_args_from_positional_hash?; end - - # On JRuby 1.7 `--1.8` mode, `Process.respond_to?(:fork)` returns true, - # but when you try to fork, it raises an error: - # NotImplementedError: fork is not available on this platform - # - # When we drop support for JRuby 1.7 and/or Ruby 1.8, we can drop - # this special case. - # - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#76 - def fork_supported?; end - - # https://rubyreferences.github.io/rubychanges/3.0.html#keyword-arguments-are-now-fully-separated-from-positional-arguments - # - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#111 - def kw_arg_separation?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#160 - def kw_args_supported?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#216 - def module_prepends_supported?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#212 - def module_refinement_supported?; end - - # @api private - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#81 - def optional_and_splat_args_supported?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#164 - def required_kw_args_supported?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#146 - def ripper_supported?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#90 - def supports_exception_cause?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#168 - def supports_rebinding_module_methods?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#100 - def supports_syntax_suggest?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#121 - def supports_taint?; end - - class << self - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#85 - def caller_locations_supported?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#155 - def distincts_kw_args_from_positional_hash?; end - - # source://rspec-support//lib/rspec/support/ruby_features.rb#76 - def fork_supported?; end - - # source://rspec-support//lib/rspec/support/ruby_features.rb#111 - def kw_arg_separation?; end - - # source://rspec-support//lib/rspec/support/ruby_features.rb#160 - def kw_args_supported?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#216 - def module_prepends_supported?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#212 - def module_refinement_supported?; end - - # @api private - # @return [Boolean] - # - # source://rspec-support//lib/rspec/support/ruby_features.rb#81 - def optional_and_splat_args_supported?; end - - # source://rspec-support//lib/rspec/support/ruby_features.rb#164 - def required_kw_args_supported?; end - - # source://rspec-support//lib/rspec/support/ruby_features.rb#146 - def ripper_supported?; end - - # source://rspec-support//lib/rspec/support/ruby_features.rb#90 - def supports_exception_cause?; end - - # source://rspec-support//lib/rspec/support/ruby_features.rb#168 - def supports_rebinding_module_methods?; end - - # source://rspec-support//lib/rspec/support/ruby_features.rb#100 - def supports_syntax_suggest?; end - - # source://rspec-support//lib/rspec/support/ruby_features.rb#121 - def supports_taint?; end - end -end - -# Figures out whether a given method can accept various arguments. -# Surprisingly non-trivial. -# -# @private -# -# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#389 -RSpec::Support::StrictSignatureVerifier = RSpec::Support::MethodSignatureVerifier - -# source://rspec-support//lib/rspec/support/version.rb#5 -module RSpec::Support::Version; end - -# source://rspec-support//lib/rspec/support/version.rb#6 -RSpec::Support::Version::STRING = T.let(T.unsafe(nil), String) - -# source://rspec-support//lib/rspec/support/warnings.rb#8 -module RSpec::Support::Warnings - # source://rspec-support//lib/rspec/support/warnings.rb#9 - def deprecate(deprecated, options = T.unsafe(nil)); end - - # Used internally to print deprecation warnings - # when rspec-core isn't loaded - # - # @private - # - # source://rspec-support//lib/rspec/support/warnings.rb#17 - def warn_deprecation(message, options = T.unsafe(nil)); end - - # Used internally to print longer warnings - # - # @private - # - # source://rspec-support//lib/rspec/support/warnings.rb#31 - def warn_with(message, options = T.unsafe(nil)); end - - # Used internally to print warnings - # - # @private - # - # source://rspec-support//lib/rspec/support/warnings.rb#24 - def warning(text, options = T.unsafe(nil)); end -end - -# source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#7 -module RSpec::Support::WithKeywordsWhenNeeded - private - - # Remove this in RSpec 4 in favour of explicitly passed in kwargs where - # this is used. Works around a warning in Ruby 2.7 - # - # source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#17 - def class_exec(klass, *args, **_arg2, &block); end - - class << self - # source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#17 - def class_exec(klass, *args, **_arg2, &block); end - end -end diff --git a/Library/Homebrew/sorbet/rbi/gems/tapioca@0.16.5.rbi b/Library/Homebrew/sorbet/rbi/gems/tapioca@0.16.6.rbi similarity index 96% rename from Library/Homebrew/sorbet/rbi/gems/tapioca@0.16.5.rbi rename to Library/Homebrew/sorbet/rbi/gems/tapioca@0.16.6.rbi index e86d107585..b481bd1666 100644 --- a/Library/Homebrew/sorbet/rbi/gems/tapioca@0.16.5.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/tapioca@0.16.6.rbi @@ -55,7 +55,7 @@ module RBI; end # source://tapioca//lib/tapioca/rbi_ext/model.rb#5 class RBI::Tree < ::RBI::NodeWithComments - # source://rbi/0.2.1/lib/rbi/model.rb#121 + # source://rbi/0.2.2/lib/rbi/model.rb#121 sig do params( loc: T.nilable(::RBI::Loc), @@ -65,15 +65,15 @@ class RBI::Tree < ::RBI::NodeWithComments end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi/0.2.1/lib/rbi/model.rb#128 + # source://rbi/0.2.2/lib/rbi/model.rb#128 sig { params(node: ::RBI::Node).void } def <<(node); end - # source://rbi/0.2.1/lib/rbi/rewriters/add_sig_templates.rb#66 + # source://rbi/0.2.2/lib/rbi/rewriters/add_sig_templates.rb#66 sig { params(with_todo_comment: T::Boolean).void } def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end - # source://rbi/0.2.1/lib/rbi/rewriters/annotate.rb#49 + # source://rbi/0.2.2/lib/rbi/rewriters/annotate.rb#49 sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end @@ -138,35 +138,35 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end - # source://rbi/0.2.1/lib/rbi/rewriters/deannotate.rb#41 + # source://rbi/0.2.2/lib/rbi/rewriters/deannotate.rb#41 sig { params(annotation: ::String).void } def deannotate!(annotation); end - # source://rbi/0.2.1/lib/rbi/model.rb#134 + # source://rbi/0.2.2/lib/rbi/model.rb#134 sig { returns(T::Boolean) } def empty?; end - # source://rbi/0.2.1/lib/rbi/rewriters/filter_versions.rb#118 + # source://rbi/0.2.2/lib/rbi/rewriters/filter_versions.rb#118 sig { params(version: ::Gem::Version).void } def filter_versions!(version); end - # source://rbi/0.2.1/lib/rbi/rewriters/flatten_singleton_methods.rb#60 + # source://rbi/0.2.2/lib/rbi/rewriters/flatten_singleton_methods.rb#60 sig { void } def flatten_singleton_methods!; end - # source://rbi/0.2.1/lib/rbi/rewriters/flatten_visibilities.rb#60 + # source://rbi/0.2.2/lib/rbi/rewriters/flatten_visibilities.rb#60 sig { void } def flatten_visibilities!; end - # source://rbi/0.2.1/lib/rbi/rewriters/group_nodes.rb#81 + # source://rbi/0.2.2/lib/rbi/rewriters/group_nodes.rb#81 sig { void } def group_nodes!; end - # source://rbi/0.2.1/lib/rbi/index.rb#68 + # source://rbi/0.2.2/lib/rbi/index.rb#68 sig { returns(::RBI::Index) } def index; end - # source://rbi/0.2.1/lib/rbi/rewriters/merge_trees.rb#324 + # source://rbi/0.2.2/lib/rbi/rewriters/merge_trees.rb#324 sig do params( other: ::RBI::Tree, @@ -177,27 +177,27 @@ class RBI::Tree < ::RBI::NodeWithComments end def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # source://rbi/0.2.1/lib/rbi/rewriters/nest_non_public_members.rb#46 + # source://rbi/0.2.2/lib/rbi/rewriters/nest_non_public_members.rb#46 sig { void } def nest_non_public_members!; end - # source://rbi/0.2.1/lib/rbi/rewriters/nest_singleton_methods.rb#36 + # source://rbi/0.2.2/lib/rbi/rewriters/nest_singleton_methods.rb#36 sig { void } def nest_singleton_methods!; end - # source://rbi/0.2.1/lib/rbi/rewriters/nest_top_level_members.rb#63 + # source://rbi/0.2.2/lib/rbi/rewriters/nest_top_level_members.rb#63 sig { void } def nest_top_level_members!; end - # source://rbi/0.2.1/lib/rbi/model.rb#112 + # source://rbi/0.2.2/lib/rbi/model.rb#112 sig { returns(T::Array[::RBI::Node]) } def nodes; end - # source://rbi/0.2.1/lib/rbi/rewriters/attr_to_methods.rb#53 + # source://rbi/0.2.2/lib/rbi/rewriters/attr_to_methods.rb#53 sig { void } def replace_attributes_with_methods!; end - # source://rbi/0.2.1/lib/rbi/rewriters/sort_nodes.rb#119 + # source://rbi/0.2.2/lib/rbi/rewriters/sort_nodes.rb#119 sig { void } def sort_nodes!; end @@ -218,7 +218,7 @@ class RBI::TypedParam < ::T::Struct const :type, ::String class << self - # source://sorbet-runtime/0.5.11670/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11718/lib/types/struct.rb#13 def inherited(s); end end end @@ -453,13 +453,13 @@ class Tapioca::Cli < ::Thor include ::Tapioca::ConfigHelper include ::Tapioca::EnvHelper - # source://tapioca//lib/tapioca/cli.rb#371 + # source://tapioca//lib/tapioca/cli.rb#377 def __print_version; end - # source://tapioca//lib/tapioca/cli.rb#353 + # source://tapioca//lib/tapioca/cli.rb#359 def annotations; end - # source://tapioca//lib/tapioca/cli.rb#325 + # source://tapioca//lib/tapioca/cli.rb#331 def check_shims; end # source://tapioca//lib/tapioca/cli.rb#46 @@ -470,7 +470,7 @@ class Tapioca::Cli < ::Thor # @raise [MalformattedArgumentError] # - # source://tapioca//lib/tapioca/cli.rb#269 + # source://tapioca//lib/tapioca/cli.rb#274 def gem(*gems); end # source://tapioca//lib/tapioca/cli.rb#27 @@ -484,11 +484,11 @@ class Tapioca::Cli < ::Thor private - # source://tapioca//lib/tapioca/cli.rb#385 + # source://tapioca//lib/tapioca/cli.rb#391 def print_init_next_steps; end class << self - # source://tapioca//lib/tapioca/cli.rb#377 + # source://tapioca//lib/tapioca/cli.rb#383 def exit_on_failure?; end end end @@ -653,7 +653,7 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command abstract! - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#32 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#33 sig do params( gem_names: T::Array[::String], @@ -671,83 +671,71 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command auto_strictness: T::Boolean, dsl_dir: ::String, rbi_formatter: ::Tapioca::RBIFormatter, - halt_upon_load_error: T::Boolean + halt_upon_load_error: T::Boolean, + lsp_addon: T.nilable(T::Boolean) ).void end - def initialize(gem_names:, exclude:, include_dependencies:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, include_doc:, include_loc:, include_exported_rbis:, number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), dsl_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end + def initialize(gem_names:, exclude:, include_dependencies:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, include_doc:, include_loc:, include_exported_rbis:, number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), dsl_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil), lsp_addon: T.unsafe(nil)); end private - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#230 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#200 sig { returns(T::Array[::String]) } def added_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#291 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#261 sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } def build_error_for_files(cause, files); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#110 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#80 sig { params(gem: ::Tapioca::Gemfile::GemSpec).void } def compile_gem_rbi(gem); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#225 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#195 sig { params(gem_name: ::String).returns(::Pathname) } def existing_rbi(gem_name); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#273 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#243 sig { returns(T::Hash[::String, ::String]) } def existing_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#237 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#207 sig { params(gem_name: ::String).returns(::Pathname) } def expected_rbi(gem_name); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#279 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#249 sig { returns(T::Hash[::String, ::String]) } def expected_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#98 - sig do - params( - gem: ::Tapioca::Gemfile::GemSpec, - dependencies: T::Array[::Tapioca::Gemfile::GemSpec] - ).returns(T::Array[::Tapioca::Gemfile::GemSpec]) - end - def gem_dependencies(gem, dependencies = T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#242 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#212 sig { params(gem_name: ::String).returns(T::Boolean) } def gem_rbi_exists?(gem_name); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#286 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#256 sig { params(gem_name: ::String, version: ::String).returns(::Pathname) } def gem_rbi_filename(gem_name, version); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#77 - sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) } - def gems_to_generate(gem_names); end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#296 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#266 sig { params(gem: ::Tapioca::Gemfile::GemSpec, file: ::RBI::File).void } def merge_with_exported_rbi(gem, file); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#267 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#237 sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void } def move(old_filename, new_filename); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#177 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#147 sig { void } def perform_additions; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#150 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#120 sig { void } def perform_removals; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#220 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#190 sig { returns(T::Array[::String]) } def removed_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#247 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#217 sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } def report_diff_and_exit_if_out_of_date(diff, command); end end @@ -1005,6 +993,19 @@ class Tapioca::Commands::GemGenerate < ::Tapioca::Commands::AbstractGem # source://tapioca//lib/tapioca/commands/gem_generate.rb#10 sig { override.void } def execute; end + + # source://tapioca//lib/tapioca/commands/gem_generate.rb#74 + sig do + params( + gem: ::Tapioca::Gemfile::GemSpec, + dependencies: T::Array[::Tapioca::Gemfile::GemSpec] + ).returns(T::Array[::Tapioca::Gemfile::GemSpec]) + end + def gem_dependencies(gem, dependencies = T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/commands/gem_generate.rb#51 + sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) } + def gems_to_generate(gem_names); end end # source://tapioca//lib/tapioca/commands/gem_sync.rb#6 @@ -1142,7 +1143,7 @@ class Tapioca::ConfigHelper::ConfigError < ::T::Struct const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] class << self - # source://sorbet-runtime/0.5.11670/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11718/lib/types/struct.rb#13 def inherited(s); end end end @@ -1153,7 +1154,7 @@ class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct const :colors, T::Array[::Symbol] class << self - # source://sorbet-runtime/0.5.11670/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11718/lib/types/struct.rb#13 def inherited(s); end end end @@ -2227,7 +2228,7 @@ class Tapioca::GemInfo < ::T::Struct sig { params(spec: ::Bundler::LazySpecification).returns(::Tapioca::GemInfo) } def from_spec(spec); end - # source://sorbet-runtime/0.5.11670/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11718/lib/types/struct.rb#13 def inherited(s); end end end @@ -2260,7 +2261,7 @@ class Tapioca::Gemfile private - # source://tapioca//lib/tapioca/gemfile.rb#92 + # source://tapioca//lib/tapioca/gemfile.rb#101 sig { returns(::String) } def dir; end @@ -2268,7 +2269,7 @@ class Tapioca::Gemfile sig { returns(::File) } def gemfile; end - # source://tapioca//lib/tapioca/gemfile.rb#87 + # source://tapioca//lib/tapioca/gemfile.rb#96 sig { returns(T::Array[::Symbol]) } def groups; end @@ -2285,114 +2286,114 @@ class Tapioca::Gemfile sig { returns([T::Enumerable[T.any(::Bundler::StubSpecification, ::Gem::Specification)], T::Array[::String]]) } def materialize_deps; end - # source://tapioca//lib/tapioca/gemfile.rb#82 + # source://tapioca//lib/tapioca/gemfile.rb#91 sig { returns(::Bundler::Runtime) } def runtime; end end -# source://tapioca//lib/tapioca/gemfile.rb#96 +# source://tapioca//lib/tapioca/gemfile.rb#105 class Tapioca::Gemfile::GemSpec include ::Tapioca::GemHelper - # source://tapioca//lib/tapioca/gemfile.rb#136 + # source://tapioca//lib/tapioca/gemfile.rb#145 sig { params(spec: T.any(::Bundler::StubSpecification, ::Gem::Specification)).void } def initialize(spec); end - # source://tapioca//lib/tapioca/gemfile.rb#146 + # source://tapioca//lib/tapioca/gemfile.rb#155 sig { params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://tapioca//lib/tapioca/gemfile.rb#171 + # source://tapioca//lib/tapioca/gemfile.rb#180 sig { params(path: ::String).returns(T::Boolean) } def contains_path?(path); end - # source://tapioca//lib/tapioca/gemfile.rb#161 + # source://tapioca//lib/tapioca/gemfile.rb#170 sig { returns(T::Array[::Gem::Dependency]) } def dependencies; end - # source://tapioca//lib/tapioca/gemfile.rb#201 + # source://tapioca//lib/tapioca/gemfile.rb#210 sig { returns(T::Boolean) } def export_rbi_files?; end - # source://tapioca//lib/tapioca/gemfile.rb#196 + # source://tapioca//lib/tapioca/gemfile.rb#205 sig { returns(T::Array[::String]) } def exported_rbi_files; end - # source://tapioca//lib/tapioca/gemfile.rb#206 + # source://tapioca//lib/tapioca/gemfile.rb#215 sig { returns(::RBI::MergeTree) } def exported_rbi_tree; end - # source://tapioca//lib/tapioca/gemfile.rb#133 + # source://tapioca//lib/tapioca/gemfile.rb#142 sig { returns(T::Array[::Pathname]) } def files; end - # source://tapioca//lib/tapioca/gemfile.rb#130 + # source://tapioca//lib/tapioca/gemfile.rb#139 sig { returns(::String) } def full_gem_path; end - # source://tapioca//lib/tapioca/gemfile.rb#151 + # source://tapioca//lib/tapioca/gemfile.rb#160 sig { params(gemfile_dir: ::String).returns(T::Boolean) } def ignore?(gemfile_dir); end - # source://tapioca//lib/tapioca/gemfile.rb#156 + # source://tapioca//lib/tapioca/gemfile.rb#165 sig { returns(::String) } def name; end - # source://tapioca//lib/tapioca/gemfile.rb#180 + # source://tapioca//lib/tapioca/gemfile.rb#189 sig { void } def parse_yard_docs; end - # source://tapioca//lib/tapioca/gemfile.rb#166 + # source://tapioca//lib/tapioca/gemfile.rb#175 sig { returns(::String) } def rbi_file_name; end - # source://tapioca//lib/tapioca/gemfile.rb#218 + # source://tapioca//lib/tapioca/gemfile.rb#227 sig { params(file: ::Pathname).returns(::Pathname) } def relative_path_for(file); end # @return [String] # - # source://tapioca//lib/tapioca/gemfile.rb#130 + # source://tapioca//lib/tapioca/gemfile.rb#139 def version; end private - # source://tapioca//lib/tapioca/gemfile.rb#229 + # source://tapioca//lib/tapioca/gemfile.rb#238 sig { returns(T::Array[::Pathname]) } def collect_files; end - # source://tapioca//lib/tapioca/gemfile.rb#244 + # source://tapioca//lib/tapioca/gemfile.rb#253 sig { returns(T.nilable(T::Boolean)) } def default_gem?; end - # source://tapioca//lib/tapioca/gemfile.rb#303 + # source://tapioca//lib/tapioca/gemfile.rb#312 sig { returns(T::Boolean) } def gem_ignored?; end - # source://tapioca//lib/tapioca/gemfile.rb#282 + # source://tapioca//lib/tapioca/gemfile.rb#291 sig { params(path: ::String).returns(T::Boolean) } def has_parent_gemspec?(path); end - # source://tapioca//lib/tapioca/gemfile.rb#249 + # source://tapioca//lib/tapioca/gemfile.rb#258 sig { returns(::Regexp) } def require_paths_prefix_matcher; end - # source://tapioca//lib/tapioca/gemfile.rb#261 + # source://tapioca//lib/tapioca/gemfile.rb#270 sig { params(file: ::String).returns(::Pathname) } def resolve_to_ruby_lib_dir(file); end - # source://tapioca//lib/tapioca/gemfile.rb#275 + # source://tapioca//lib/tapioca/gemfile.rb#284 sig { returns(::String) } def version_string; end class << self - # source://tapioca//lib/tapioca/gemfile.rb#104 + # source://tapioca//lib/tapioca/gemfile.rb#113 sig { returns(T::Hash[::String, ::Tapioca::Gemfile::GemSpec]) } def spec_lookup_by_file_path; end end end -# source://tapioca//lib/tapioca/gemfile.rb#116 +# source://tapioca//lib/tapioca/gemfile.rb#125 Tapioca::Gemfile::GemSpec::IGNORED_GEMS = T.let(T.unsafe(nil), Array) # source://tapioca//lib/tapioca/gemfile.rb#10 @@ -2427,7 +2428,7 @@ class Tapioca::Loaders::Dsl < ::Tapioca::Loaders::Loader protected - # source://tapioca//lib/tapioca/loaders/dsl.rb#105 + # source://tapioca//lib/tapioca/loaders/dsl.rb#110 sig { void } def load_application; end From 6167ea759107969b19da0e1bb78340088d14d7d6 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 7 Jan 2025 17:39:04 +0000 Subject: [PATCH 4/4] Gemfile: add recursive dependencies we rely on. --- Library/Homebrew/Gemfile | 2 + Library/Homebrew/Gemfile.lock | 2 + .../sorbet/rbi/gems/rspec-core@3.13.2.rbi | 11034 ++++++++++++++++ .../rbi/gems/rspec-expectations@3.13.3.rbi | 8183 ++++++++++++ .../sorbet/rbi/gems/rspec-support@3.13.2.rbi | 1668 +++ 5 files changed, 20889 insertions(+) create mode 100644 Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.2.rbi create mode 100644 Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi create mode 100644 Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.2.rbi diff --git a/Library/Homebrew/Gemfile b/Library/Homebrew/Gemfile index 52e50afbb1..317ce59571 100644 --- a/Library/Homebrew/Gemfile +++ b/Library/Homebrew/Gemfile @@ -53,6 +53,8 @@ end group :tests, optional: true do gem "parallel_tests", require: false gem "rspec", require: false + gem "rspec-core", require: false + gem "rspec-expectations", require: false gem "rspec-github", require: false gem "rspec_junit_formatter", require: false gem "rspec-retry", require: false diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index d82c361398..eb9f9d6968 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -169,6 +169,8 @@ DEPENDENCIES redcarpet rexml rspec + rspec-core + rspec-expectations rspec-github rspec-retry rspec-sorbet diff --git a/Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.2.rbi b/Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.2.rbi new file mode 100644 index 0000000000..4d96ad26e9 --- /dev/null +++ b/Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.2.rbi @@ -0,0 +1,11034 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rspec-core` gem. +# Please instead update this file by running `bin/tapioca gem rspec-core`. + + +module ERB::Escape + private + + def html_escape(_arg0); end + + class << self + def html_escape(_arg0); end + end +end + +# Namespace for all core RSpec code. +# +# source://rspec-core//lib/rspec/core/version.rb#1 +module RSpec + extend ::RSpec::Core::Warnings + + class << self + # Used to ensure examples get reloaded between multiple runs in the same + # process and ensures user configuration is persisted. + # + # Users must invoke this if they want to clear all examples but preserve + # current configuration when they use the runner multiple times within the + # same process. + # + # source://rspec-core//lib/rspec/core.rb#70 + def clear_examples; end + + # Returns the global [Configuration](RSpec/Core/Configuration) object. While + # you _can_ use this method to access the configuration, the more common + # convention is to use [RSpec.configure](RSpec#configure-class_method). + # + # @example + # RSpec.configuration.drb_port = 1234 + # @see RSpec.configure + # @see Core::Configuration + # + # source://rspec-core//lib/rspec/core.rb#85 + def configuration; end + + # Setters for shared global objects + # + # @api private + # + # source://rspec-core//lib/rspec/core.rb#49 + def configuration=(_arg0); end + + # Yields the global configuration to a block. + # + # @example + # RSpec.configure do |config| + # config.add_formatter 'documentation' + # end + # @see Core::Configuration + # @yield [Configuration] global configuration + # + # source://rspec-core//lib/rspec/core.rb#97 + def configure; end + + # @private + # + # source://rspec-core//lib/rspec/core.rb#194 + def const_missing(name); end + + # source://rspec-core//lib/rspec/core/dsl.rb#42 + def context(*args, &example_group_block); end + + # The example being executed. + # + # The primary audience for this method is library authors who need access + # to the example currently being executed and also want to support all + # versions of RSpec 2 and 3. + # + # @example + # + # RSpec.configure do |c| + # # context.example is deprecated, but RSpec.current_example is not + # # available until RSpec 3.0. + # fetch_current_example = RSpec.respond_to?(:current_example) ? + # proc { RSpec.current_example } : proc { |context| context.example } + # + # c.before(:example) do + # example = fetch_current_example.call(self) + # + # # ... + # end + # end + # + # source://rspec-core//lib/rspec/core.rb#122 + def current_example; end + + # Set the current example being executed. + # + # @api private + # + # source://rspec-core//lib/rspec/core.rb#128 + def current_example=(example); end + + # Get the current RSpec execution scope + # + # Returns (in order of lifecycle): + # * `:suite` as an initial value, this is outside of the test lifecycle. + # * `:before_suite_hook` during `before(:suite)` hooks. + # * `:before_context_hook` during `before(:context)` hooks. + # * `:before_example_hook` during `before(:example)` hooks and `around(:example)` before `example.run`. + # * `:example` within the example run. + # * `:after_example_hook` during `after(:example)` hooks and `around(:example)` after `example.run`. + # * `:after_context_hook` during `after(:context)` hooks. + # * `:after_suite_hook` during `after(:suite)` hooks. + # * `:suite` as a final value, again this is outside of the test lifecycle. + # + # Reminder, `:context` hooks have `:all` alias and `:example` hooks have `:each` alias. + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core.rb#154 + def current_scope; end + + # Set the current scope rspec is executing in + # + # @api private + # + # source://rspec-core//lib/rspec/core.rb#134 + def current_scope=(scope); end + + # source://rspec-core//lib/rspec/core/dsl.rb#42 + def describe(*args, &example_group_block); end + + # source://rspec-core//lib/rspec/core/dsl.rb#42 + def example_group(*args, &example_group_block); end + + # source://rspec-core//lib/rspec/core/dsl.rb#42 + def fcontext(*args, &example_group_block); end + + # source://rspec-core//lib/rspec/core/dsl.rb#42 + def fdescribe(*args, &example_group_block); end + + # Used to ensure examples get reloaded and user configuration gets reset to + # defaults between multiple runs in the same process. + # + # Users must invoke this if they want to have the configuration reset when + # they use the runner multiple times within the same process. Users must deal + # themselves with re-configuration of RSpec before run. + # + # source://rspec-core//lib/rspec/core.rb#58 + def reset; end + + # source://rspec-core//lib/rspec/core/shared_example_group.rb#110 + def shared_context(name, *args, &block); end + + # source://rspec-core//lib/rspec/core/shared_example_group.rb#110 + def shared_examples(name, *args, &block); end + + # source://rspec-core//lib/rspec/core/shared_example_group.rb#110 + def shared_examples_for(name, *args, &block); end + + # Internal container for global non-configuration data. + # + # @private + # + # source://rspec-core//lib/rspec/core.rb#160 + def world; end + + # Setters for shared global objects + # + # @api private + # + # source://rspec-core//lib/rspec/core.rb#49 + def world=(_arg0); end + + # source://rspec-core//lib/rspec/core/dsl.rb#42 + def xcontext(*args, &example_group_block); end + + # source://rspec-core//lib/rspec/core/dsl.rb#42 + def xdescribe(*args, &example_group_block); end + end +end + +# Namespace for the rspec-core code. +# +# source://rspec-core//lib/rspec/core/version.rb#2 +module RSpec::Core + class << self + # @private path to executable file. + # + # source://rspec-core//lib/rspec/core.rb#181 + def path_to_executable; end + end +end + +# Unnamed example group used by `SuiteHookContext`. +# +# @private +# +# source://rspec-core//lib/rspec/core/example_group.rb#775 +class RSpec::Core::AnonymousExampleGroup < ::RSpec::Core::ExampleGroup + class << self + # source://rspec-core//lib/rspec/core/example_group.rb#776 + def metadata; end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/backtrace_formatter.rb#4 +class RSpec::Core::BacktraceFormatter + # @return [BacktraceFormatter] a new instance of BacktraceFormatter + # + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#8 + def initialize; end + + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#49 + def backtrace_line(line); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#53 + def exclude?(line); end + + # @private + # + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#6 + def exclusion_patterns; end + + # @private + # + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#6 + def exclusion_patterns=(_arg0); end + + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#28 + def filter_gem(gem_name); end + + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#33 + def format_backtrace(backtrace, options = T.unsafe(nil)); end + + # Sets the attribute full_backtrace + # + # @param value the value to set the attribute full_backtrace to. + # + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#22 + def full_backtrace=(_arg0); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#24 + def full_backtrace?; end + + # @private + # + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#6 + def inclusion_patterns; end + + # @private + # + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#6 + def inclusion_patterns=(_arg0); end + + private + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#60 + def matches?(patterns, line); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/bisect/utilities.rb#3 +module RSpec::Core::Bisect; end + +# @private +# +# source://rspec-core//lib/rspec/core/bisect/utilities.rb#8 +class RSpec::Core::Bisect::BisectFailedError < ::StandardError + class << self + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#9 + def for_failed_spec_run(spec_output); end + end +end + +# Wraps a pipe to support sending objects between a child and +# parent process. Where supported, encoding is explicitly +# set to ensure binary data is able to pass from child to +# parent. +# +# @private +# +# source://rspec-core//lib/rspec/core/bisect/utilities.rb#36 +class RSpec::Core::Bisect::Channel + # @return [Channel] a new instance of Channel + # + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#41 + def initialize; end + + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#62 + def close; end + + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#56 + def receive; end + + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#50 + def send(message); end +end + +# source://rspec-core//lib/rspec/core/bisect/utilities.rb#38 +RSpec::Core::Bisect::Channel::MARSHAL_DUMP_ENCODING = T.let(T.unsafe(nil), Encoding) + +# @private +# +# source://rspec-core//lib/rspec/core/bisect/utilities.rb#5 +class RSpec::Core::Bisect::ExampleSetDescriptor < ::Struct + # Returns the value of attribute all_example_ids + # + # @return [Object] the current value of all_example_ids + def all_example_ids; end + + # Sets the attribute all_example_ids + # + # @param value [Object] the value to set the attribute all_example_ids to. + # @return [Object] the newly set value + def all_example_ids=(_); end + + # Returns the value of attribute failed_example_ids + # + # @return [Object] the current value of failed_example_ids + def failed_example_ids; end + + # Sets the attribute failed_example_ids + # + # @param value [Object] the value to set the attribute failed_example_ids to. + # @return [Object] the newly set value + def failed_example_ids=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Wraps a `formatter` providing a simple means to notify it in place +# of an `RSpec::Core::Reporter`, without involving configuration in +# any way. +# +# @private +# +# source://rspec-core//lib/rspec/core/bisect/utilities.rb#19 +class RSpec::Core::Bisect::Notifier + # @return [Notifier] a new instance of Notifier + # + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#20 + def initialize(formatter); end + + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#24 + def publish(event, *args); end +end + +# Stores runtime configuration information. +# +# Configuration options are loaded from multiple files and joined together +# with command-line switches and the `SPEC_OPTS` environment variable. +# +# Precedence order (where later entries overwrite earlier entries on +# conflicts): +# +# * Global (`$XDG_CONFIG_HOME/rspec/options`, or `~/.rspec` if it does +# not exist) +# * Project-specific (`./.rspec`) +# * Local (`./.rspec-local`) +# * Command-line options +# * `SPEC_OPTS` +# +# For example, an option set in the local file will override an option set +# in your global file. +# +# The global, project-specific and local files can all be overridden with a +# separate custom file using the --options command-line parameter. +# +# @example Standard settings +# RSpec.configure do |c| +# c.drb = true +# c.drb_port = 1234 +# c.default_path = 'behavior' +# end +# @example Hooks +# RSpec.configure do |c| +# c.before(:suite) { establish_connection } +# c.before(:example) { log_in_as :authorized } +# c.around(:example) { |ex| Database.transaction(&ex) } +# end +# @see RSpec.configure +# @see Hooks +# +# source://rspec-core//lib/rspec/core/configuration.rb#47 +class RSpec::Core::Configuration + include ::RSpec::Core::Hooks + include ::RSpec::Core::Configuration::Readers + + # Build an object to store runtime configuration options and set defaults + # + # @return [Configuration] a new instance of Configuration + # + # source://rspec-core//lib/rspec/core/configuration.rb#528 + def initialize; end + + # Adds a formatter to the set RSpec will use for this run. + # + # @overload add_formatter + # @overload add_formatter + # @param formatter [Class, String, Object] formatter to use. Can be any of the + # string values supported from the CLI (`p`/`progress`, + # `d`/`doc`/`documentation`, `h`/`html`, or `j`/`json`), any + # class that implements the formatter protocol and has registered + # itself with RSpec as a formatter, or a formatter instance. + # @param output [String, IO] where the formatter will write its output. + # Can be an IO object or a string path to a file. If not provided, + # the configured `output_stream` (`$stdout`, by default) will be used. + # @see RSpec::Core::Formatters::Protocol + # + # source://rspec-core//lib/rspec/core/configuration.rb#996 + def add_formatter(formatter, output = T.unsafe(nil)); end + + # Adds a custom setting to the RSpec.configuration object. + # + # RSpec.configuration.add_setting :foo + # + # Used internally and by extension frameworks like rspec-rails, so they + # can add config settings that are domain specific. For example: + # + # RSpec.configure do |c| + # c.add_setting :use_transactional_fixtures, + # :default => true, + # :alias_with => :use_transactional_examples + # end + # + # `add_setting` creates three methods on the configuration object, a + # setter, a getter, and a predicate: + # + # RSpec.configuration.foo=(value) + # RSpec.configuration.foo + # RSpec.configuration.foo? # Returns true if foo returns anything but nil or false. + # + # @option opts + # @option opts + # @overload add_setting + # @overload add_setting + # @param opts [Hash] a customizable set of options + # + # source://rspec-core//lib/rspec/core/configuration.rb#659 + def add_setting(name, opts = T.unsafe(nil)); end + + # Defines a `after` hook. See {Hooks#after} for full docs. + # + # This method differs from {Hooks#after} in only one way: it supports + # the `:suite` scope. Hooks with the `:suite` scope will be run once after + # the last example of the entire suite is executed. Conditions passed along + # with `:suite` are effectively ignored. + # + # @see #append_after + # @see #before + # @see #prepend_before + # + # source://rspec-core//lib/rspec/core/configuration.rb#2031 + def after(scope = T.unsafe(nil), *meta, &block); end + + # Creates a method that defines an example group with the provided + # metadata. Can be used to define example group/metadata shortcuts. + # + # @example + # RSpec.configure do |config| + # config.alias_example_group_to :describe_model, :type => :model + # end + # + # shared_context_for "model tests", :type => :model do + # # define common model test helper methods, `let` declarations, etc + # end + # + # # This lets you do this: + # + # RSpec.describe_model User do + # end + # + # # ... which is the equivalent of + # + # RSpec.describe User, :type => :model do + # end + # @note The defined aliased will also be added to the top level + # (e.g. `main` and from within modules) if + # `expose_dsl_globally` is set to true. + # @see #alias_example_to + # @see #expose_dsl_globally= + # + # source://rspec-core//lib/rspec/core/configuration.rb#1209 + def alias_example_group_to(new_name, *args); end + + # Creates a method that delegates to `example` including the submitted + # `args`. Used internally to add variants of `example` like `pending`: + # + # @example + # RSpec.configure do |config| + # config.alias_example_to :pending, :pending => true + # end + # + # # This lets you do this: + # + # RSpec.describe Thing do + # pending "does something" do + # thing = Thing.new + # end + # end + # + # # ... which is the equivalent of + # + # RSpec.describe Thing do + # it "does something", :pending => true do + # thing = Thing.new + # end + # end + # @note The specific example alias below (`pending`) is already + # defined for you. + # @note Use with caution. This extends the language used in your + # specs, but does not add any additional documentation. We use this + # in RSpec to define methods like `focus` and `xit`, but we also add + # docs for those methods. + # @param name [String] example name alias + # @param args [Array, Hash] metadata for the generated example + # + # source://rspec-core//lib/rspec/core/configuration.rb#1177 + def alias_example_to(name, *args); end + + # Define an alias for it_should_behave_like that allows different + # language (like "it_has_behavior" or "it_behaves_like") to be + # employed when including shared examples. + # + # @example + # RSpec.configure do |config| + # config.alias_it_behaves_like_to(:it_has_behavior, 'has behavior:') + # end + # + # # allows the user to include a shared example group like: + # + # RSpec.describe Entity do + # it_has_behavior 'sortability' do + # let(:sortable) { Entity.new } + # end + # end + # + # # which is reported in the output as: + # # Entity + # # has behavior: sortability + # # ...sortability examples here + # @note Use with caution. This extends the language used in your + # specs, but does not add any additional documentation. We use this + # in RSpec to define `it_should_behave_like` (for backward + # compatibility), but we also add docs for that method. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1240 + def alias_it_behaves_like_to(new_name, report_label = T.unsafe(nil)); end + + # Define an alias for it_should_behave_like that allows different + # language (like "it_has_behavior" or "it_behaves_like") to be + # employed when including shared examples. + # + # @example + # RSpec.configure do |config| + # config.alias_it_behaves_like_to(:it_has_behavior, 'has behavior:') + # end + # + # # allows the user to include a shared example group like: + # + # RSpec.describe Entity do + # it_has_behavior 'sortability' do + # let(:sortable) { Entity.new } + # end + # end + # + # # which is reported in the output as: + # # Entity + # # has behavior: sortability + # # ...sortability examples here + # @note Use with caution. This extends the language used in your + # specs, but does not add any additional documentation. We use this + # in RSpec to define `it_should_behave_like` (for backward + # compatibility), but we also add docs for that method. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1240 + def alias_it_should_behave_like_to(new_name, report_label = T.unsafe(nil)); end + + # Adds `block` to the end of the list of `after` blocks in the same + # scope (`:example`, `:context`, or `:suite`), in contrast to {#after}, + # which adds the hook to the start of the list. + # + # See {Hooks#after} for full `after` hook docs. + # + # This method differs from {Hooks#append_after} in only one way: it supports + # the `:suite` scope. Hooks with the `:suite` scope will be run once after + # the last example of the entire suite is executed. Conditions passed along + # with `:suite` are effectively ignored. + # + # @see #append_after + # @see #before + # @see #prepend_before + # + # source://rspec-core//lib/rspec/core/configuration.rb#2061 + def append_after(scope = T.unsafe(nil), *meta, &block); end + + # Defines a `before` hook. See {Hooks#before} for full docs. + # + # This method differs from {Hooks#before} in only one way: it supports + # the `:suite` scope. Hooks with the `:suite` scope will be run once before + # the first example of the entire suite is executed. Conditions passed along + # with `:suite` are effectively ignored. + # + # @see #prepend_before + # @see #after + # @see #append_after + # + # source://rspec-core//lib/rspec/core/configuration.rb#1976 + def append_before(scope = T.unsafe(nil), *meta, &block); end + + # @private + # @raise [SystemStackError] + # + # source://rspec-core//lib/rspec/core/configuration.rb#1941 + def apply_derived_metadata_to(metadata); end + + # Registers `block` as an `around` hook. + # + # See {Hooks#around} for full `around` hook docs. + # + # source://rspec-core//lib/rspec/core/configuration.rb#2079 + def around(scope = T.unsafe(nil), *meta, &block); end + + # Regexps used to exclude lines from backtraces. + # + # Excludes lines from ruby (and jruby) source, installed gems, anything + # in any "bin" directory, and any of the RSpec libs (outside gem + # installs) by default. + # + # You can modify the list via the getter, or replace it with the setter. + # + # To override this behaviour and display a full backtrace, use + # `--backtrace` on the command line, in a `.rspec` file, or in the + # `rspec_options` attribute of RSpec's rake task. + # + # @return [Array] + # + # source://rspec-core//lib/rspec/core/configuration.rb#697 + def backtrace_exclusion_patterns; end + + # Set regular expressions used to exclude lines in backtrace. + # + # @param patterns [Array] set backtrace_formatter exclusion_patterns + # + # source://rspec-core//lib/rspec/core/configuration.rb#703 + def backtrace_exclusion_patterns=(patterns); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#522 + def backtrace_formatter; end + + # Regexps used to include lines in backtraces. + # + # Defaults to [Regexp.new Dir.getwd]. + # + # Lines that match an exclusion _and_ an inclusion pattern + # will be included. + # + # You can modify the list via the getter, or replace it with the setter. + # + # @return [Array] + # + # source://rspec-core//lib/rspec/core/configuration.rb#716 + def backtrace_inclusion_patterns; end + + # Set regular expressions used to include lines in backtrace. + # + # @attr patterns [Array] set backtrace_formatter inclusion_patterns + # + # source://rspec-core//lib/rspec/core/configuration.rb#722 + def backtrace_inclusion_patterns=(patterns); end + + # Defines a `before` hook. See {Hooks#before} for full docs. + # + # This method differs from {Hooks#before} in only one way: it supports + # the `:suite` scope. Hooks with the `:suite` scope will be run once before + # the first example of the entire suite is executed. Conditions passed along + # with `:suite` are effectively ignored. + # + # @see #prepend_before + # @see #after + # @see #append_after + # + # source://rspec-core//lib/rspec/core/configuration.rb#1976 + def before(scope = T.unsafe(nil), *meta, &block); end + + # Determines which bisect runner implementation gets used to run subsets + # of the suite during a bisection. Your choices are: + # + # - `:shell`: Performs a spec run by shelling out, booting RSpec and your + # application environment each time. This runner is the most widely + # compatible runner, but is not as fast. On platforms that do not + # support forking, this is the default. + # - `:fork`: Pre-boots RSpec and your application environment in a parent + # process, and then forks a child process for each spec run. This runner + # tends to be significantly faster than the `:shell` runner but cannot + # be used in some situations. On platforms that support forking, this + # is the default. If you use this runner, you should ensure that all + # of your one-time setup logic goes in a `before(:suite)` hook instead + # of getting run at the top-level of a file loaded by `--require`. + # + # @note This option will only be used by `--bisect` if you set it in a file + # loaded via `--require`. + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#499 + def bisect_runner; end + + # source://rspec-core//lib/rspec/core/configuration.rb#500 + def bisect_runner=(value); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#2125 + def bisect_runner_class; end + + # Enables color output if the output is a TTY. As of RSpec 3.6, this is + # the default behavior and this option is retained only for backwards + # compatibility. + # + # @deprecated No longer recommended because of complex behavior. Instead, + # rely on the fact that TTYs will display color by default, or set + # {#color_mode} to :on to display color on a non-TTY output. + # @return [Boolean] + # @see color_mode + # @see color_enabled? + # + # source://rspec-core//lib/rspec/core/configuration.rb#922 + def color; end + + # Toggle output color. + # + # @deprecated No longer recommended because of complex behavior. Instead, + # rely on the fact that TTYs will display color by default, or set + # {:color_mode} to :on to display color on a non-TTY output. + # + # source://rspec-core//lib/rspec/core/configuration.rb#960 + def color=(_arg0); end + + # Check if color is enabled for a particular output. + # + # @param output [IO] an output stream to use, defaults to the current + # `output_stream` + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#943 + def color_enabled?(output = T.unsafe(nil)); end + + # The mode for determining whether to display output in color. One of: + # + # - :automatic - the output will be in color if the output is a TTY (the + # default) + # - :on - the output will be in color, whether or not the output is a TTY + # - :off - the output will not be in color + # + # @return [Boolean] + # @see color_enabled? + # + # source://rspec-core//lib/rspec/core/configuration.rb#935 + def color_mode; end + + # Set the color mode. + # + # source://rspec-core//lib/rspec/core/configuration.rb#953 + def color_mode=(_arg0); end + + # Used internally to extend the singleton class of a single example's + # example group instance with modules using `include` and/or `extend`. + # + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1580 + def configure_example(example, example_hooks); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1622 + def configure_expectation_framework; end + + # Used internally to extend a group with modules using `include`, `prepend` and/or + # `extend`. + # + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1568 + def configure_group(group); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1616 + def configure_mock_framework; end + + # The default output color. Defaults to `:white` but can be set to one of + # the following: `[:black, :white, :red, :green, :yellow, :blue, + # :magenta, :cyan]` + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def default_color; end + + # The default output color. Defaults to `:white` but can be set to one of + # the following: `[:black, :white, :red, :green, :yellow, :blue, + # :magenta, :cyan]` + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def default_color=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def default_color?; end + + # The formatter that will be used if no formatter has been set. + # Defaults to 'progress'. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1003 + def default_formatter; end + + # Sets a fallback formatter to use if none other has been set. + # + # @example + # + # RSpec.configure do |rspec| + # rspec.default_formatter = 'doc' + # end + # + # source://rspec-core//lib/rspec/core/configuration.rb#1014 + def default_formatter=(value); end + + # Path to use if no path is provided to the `rspec` command (default: + # `"spec"`). Allows you to just type `rspec` instead of `rspec spec` to + # run all the examples in the `spec` directory. + # + # @note Other scripts invoking `rspec` indirectly will ignore this + # setting. + # @return [String] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def default_path; end + + # Path to use if no path is provided to the `rspec` command (default: + # `"spec"`). Allows you to just type `rspec` instead of `rspec spec` to + # run all the examples in the `spec` directory. + # + # @note Other scripts invoking `rspec` indirectly will ignore this + # setting. + # @return [String] + # + # source://rspec-core//lib/rspec/core/configuration.rb#121 + def default_path=(path); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def default_path?; end + + # Defines a callback that can assign derived metadata values. + # + # @example + # RSpec.configure do |config| + # # Tag all groups and examples in the spec/unit directory with + # # :type => :unit + # config.define_derived_metadata(:file_path => %r{/spec/unit/}) do |metadata| + # metadata[:type] = :unit + # end + # end + # @param filters [Array, Hash] metadata filters that determine + # which example or group metadata hashes the callback will be triggered + # for. If none are given, the callback will be run against the metadata + # hashes of all groups and examples. + # @yieldparam metadata [Hash] original metadata hash from an example or + # group. Mutate this in your block as needed. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1900 + def define_derived_metadata(*filters, &block); end + + # Determines where deprecation warnings are printed. + # Defaults to `$stderr`. + # + # @return [IO, String] IO or filename to write to + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def deprecation_stream; end + + # Determines where deprecation warnings are printed. + # + # @param value [IO, String] IO to write to or filename to write to + # + # source://rspec-core//lib/rspec/core/configuration.rb#168 + def deprecation_stream=(value); end + + # Color used to print details. Defaults to `:cyan` but can be set to one + # of the following: `[:black, :white, :red, :green, :yellow, :blue, + # :magenta, :cyan]` + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def detail_color; end + + # Color used to print details. Defaults to `:cyan` but can be set to one + # of the following: `[:black, :white, :red, :green, :yellow, :blue, + # :magenta, :cyan]` + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def detail_color=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def detail_color?; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1881 + def disable_monkey_patching; end + + # Enables zero monkey patching mode for RSpec. It removes monkey + # patching of the top-level DSL methods (`describe`, + # `shared_examples_for`, etc) onto `main` and `Module`, instead + # requiring you to prefix these methods with `RSpec.`. It enables + # expect-only syntax for rspec-mocks and rspec-expectations. It + # simply disables monkey patching on whatever pieces of RSpec + # the user is using. + # + # @example + # + # # It disables all monkey patching. + # RSpec.configure do |config| + # config.disable_monkey_patching! + # end + # + # # Is an equivalent to + # RSpec.configure do |config| + # config.expose_dsl_globally = false + # + # config.mock_with :rspec do |mocks| + # mocks.syntax = :expect + # mocks.patch_marshal_to_support_partial_doubles = false + # end + # + # config.expect_with :rspec do |expectations| + # expectations.syntax = :expect + # end + # end + # @note It configures rspec-mocks and rspec-expectations only + # if the user is using those (either explicitly or implicitly + # by not setting `mock_with` or `expect_with` to anything else). + # @note If the user uses this options with `mock_with :mocha` + # (or similar) they will still have monkey patching active + # in their test environment from mocha. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1873 + def disable_monkey_patching!; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1881 + def disable_monkey_patching=(_arg0); end + + # Run examples over DRb (default: `false`). RSpec doesn't supply the DRb + # server, but you can use tools like spork. + # + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def drb; end + + # Run examples over DRb (default: `false`). RSpec doesn't supply the DRb + # server, but you can use tools like spork. + # + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def drb=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def drb?; end + + # The drb_port (default: nil). + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def drb_port; end + + # The drb_port (default: nil). + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def drb_port=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def drb_port?; end + + # Prints the formatter output of your suite without running any + # examples or hooks. + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def dry_run; end + + # Prints the formatter output of your suite without running any + # examples or hooks. + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def dry_run=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def dry_run?; end + + # The exit code to return if there are any errors outside examples (default: failure_exit_code) + # + # @return [Integer] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def error_exit_code; end + + # The exit code to return if there are any errors outside examples (default: failure_exit_code) + # + # @return [Integer] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def error_exit_code=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def error_exit_code?; end + + # Default: `$stderr`. + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def error_stream; end + + # Default: `$stderr`. + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def error_stream=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def error_stream?; end + + # The file path to use for persisting example statuses. Necessary for the + # `--only-failures` and `--next-failure` CLI options. + # + # @overload example_status_persistence_file_path + # @overload example_status_persistence_file_path= + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def example_status_persistence_file_path; end + + # Sets the file path to use for persisting example statuses. Necessary for the + # `--only-failures` and `--next-failure` CLI options. + # + # source://rspec-core//lib/rspec/core/configuration.rb#192 + def example_status_persistence_file_path=(value); end + + # Exclude files matching this pattern. + # + # @return [String] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def exclude_pattern; end + + # Set pattern to match files to exclude. + # + # @attr value [String] the filename pattern to exclude spec files by + # + # source://rspec-core//lib/rspec/core/configuration.rb#304 + def exclude_pattern=(value); end + + # Returns the `exclusion_filter`. If none has been set, returns an empty + # hash. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1369 + def exclusion_filter; end + + # Clears and reassigns the `exclusion_filter`. Set to `nil` if you don't + # want any exclusion filter at all. + # + # ### Warning + # + # This overrides any exclusion filters/tags set on the command line or in + # configuration files. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1362 + def exclusion_filter=(filter); end + + # Sets the expectation framework module(s) to be included in each example + # group. + # + # `frameworks` can be `:rspec`, `:test_unit`, `:minitest`, a custom + # module, or any combination thereof: + # + # config.expect_with :rspec + # config.expect_with :test_unit + # config.expect_with :minitest + # config.expect_with :rspec, :minitest + # config.expect_with OtherExpectationFramework + # + # RSpec will translate `:rspec`, `:minitest`, and `:test_unit` into the + # appropriate modules. + # + # ## Configuration + # + # If the module responds to `configuration`, `expect_with` will + # yield the `configuration` object if given a block: + # + # config.expect_with OtherExpectationFramework do |custom_config| + # custom_config.custom_setting = true + # end + # + # source://rspec-core//lib/rspec/core/configuration.rb#858 + def expect_with(*frameworks); end + + # Delegates to expect_with(framework). + # + # source://rspec-core//lib/rspec/core/configuration.rb#831 + def expectation_framework=(framework); end + + # Returns the configured expectation framework adapter module(s) + # + # source://rspec-core//lib/rspec/core/configuration.rb#819 + def expectation_frameworks; end + + # Exposes the current running example via the named + # helper method. RSpec 2.x exposed this via `example`, + # but in RSpec 3.0, the example is instead exposed via + # an arg yielded to `it`, `before`, `let`, etc. However, + # some extension gems (such as Capybara) depend on the + # RSpec 2.x's `example` method, so this config option + # can be used to maintain compatibility. + # + # @example + # + # RSpec.configure do |rspec| + # rspec.expose_current_running_example_as :example + # end + # + # RSpec.describe MyClass do + # before do + # # `example` can be used here because of the above config. + # do_something if example.metadata[:type] == "foo" + # end + # end + # @param method_name [Symbol] the name of the helper method + # + # source://rspec-core//lib/rspec/core/configuration.rb#1811 + def expose_current_running_example_as(method_name); end + + # Use this to expose the core RSpec DSL via `Module` and the `main` + # object. It will be set automatically but you can override it to + # remove the DSL. + # Default: true + # + # source://rspec-core//lib/rspec/core/configuration.rb#151 + def expose_dsl_globally=(value); end + + # Indicates if the DSL has been exposed off of modules and `main`. + # Default: true + # + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#143 + def expose_dsl_globally?; end + + # Tells RSpec to extend example groups with `mod`. Methods defined in + # `mod` are exposed to example groups (not examples). Use `filters` to + # constrain the groups to extend. + # + # Similar to `include`, but behavior is added to example groups, which + # are classes, rather than the examples, which are instances of those + # classes. + # + # @example + # + # module UiHelpers + # def run_in_browser + # # ... + # end + # end + # + # module PermissionHelpers + # def define_permissions + # # ... + # end + # end + # + # RSpec.configure do |config| + # config.extend(UiHelpers, :type => :request) + # config.extend(PermissionHelpers, :with_permissions, :type => :request) + # end + # + # describe "edit profile", :with_permissions, :type => :request do + # run_in_browser + # define_permissions + # + # it "does stuff in the client" do + # # ... + # end + # end + # @see #include + # @see #prepend + # + # source://rspec-core//lib/rspec/core/configuration.rb#1518 + def extend(mod, *filters); end + + # If specified, indicates the number of failures required before cleaning + # up and exit (default: `nil`). Can also be `true` to fail and exit on first + # failure + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def fail_fast; end + + # @see fail_fast + # + # source://rspec-core//lib/rspec/core/configuration.rb#214 + def fail_fast=(value); end + + # Whether or not to fail when there are no RSpec examples (default: false). + # + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def fail_if_no_examples; end + + # Whether or not to fail when there are no RSpec examples (default: false). + # + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def fail_if_no_examples=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def fail_if_no_examples?; end + + # Color to use to indicate failure. Defaults to `:red` but can be set to + # one of the following: `[:black, :white, :red, :green, :yellow, :blue, + # :magenta, :cyan]` + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def failure_color; end + + # Color to use to indicate failure. Defaults to `:red` but can be set to + # one of the following: `[:black, :white, :red, :green, :yellow, :blue, + # :magenta, :cyan]` + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def failure_color=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def failure_color?; end + + # The exit code to return if there are any failures (default: 1). + # + # @return [Integer] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def failure_exit_code; end + + # The exit code to return if there are any failures (default: 1). + # + # @return [Integer] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def failure_exit_code=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def failure_exit_code?; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1083 + def files_or_directories_to_run=(*files); end + + # The spec files RSpec will run. + # + # @return [Array] specified files about to run + # + # source://rspec-core//lib/rspec/core/configuration.rb#1096 + def files_to_run; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#516 + def files_to_run=(_arg0); end + + # Returns the `inclusion_filter`. If none has been set, returns an empty + # hash. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1313 + def filter; end + + # Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't + # want any inclusion filter at all. + # + # ### Warning + # + # This overrides any inclusion filters/tags set on the command line or in + # configuration files. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1304 + def filter=(filter); end + + # Adds {#backtrace_exclusion_patterns} that will filter lines from + # the named gems from backtraces. + # + # @example + # RSpec.configure do |config| + # config.filter_gems_from_backtrace "rack", "rake" + # end + # @note The patterns this adds will match the named gems in their common + # locations (e.g. system gems, vendored with bundler, installed as a + # :git dependency with bundler, etc) but is not guaranteed to work for + # all possible gem locations. For example, if you have the gem source + # in a directory with a completely unrelated name, and use bundler's + # :path option, this will not filter it. + # @param gem_names [Array] Names of the gems to filter + # + # source://rspec-core//lib/rspec/core/configuration.rb#742 + def filter_gems_from_backtrace(*gem_names); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#518 + def filter_manager; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#518 + def filter_manager=(_arg0); end + + # Adds key/value pairs to the `inclusion_filter`. If `args` + # includes any symbols that are not part of the hash, each symbol + # is treated as a key in the hash with the value `true`. + # + # ### Note + # + # Filters set using this method can be overridden from the command line + # or config files (e.g. `.rspec`). + # + # @example + # # Given this declaration. + # describe "something", :foo => 'bar' do + # # ... + # end + # + # # Any of the following will include that group. + # config.filter_run_including :foo => 'bar' + # config.filter_run_including :foo => /^ba/ + # config.filter_run_including :foo => lambda {|v| v == 'bar'} + # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'} + # + # # Given a proc with an arity of 1, the lambda is passed the value + # # related to the key, e.g. + # config.filter_run_including :foo => lambda {|v| v == 'bar'} + # + # # Given a proc with an arity of 2, the lambda is passed the value + # # related to the key, and the metadata itself e.g. + # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'} + # + # filter_run_including :foo # same as filter_run_including :foo => true + # + # source://rspec-core//lib/rspec/core/configuration.rb#1275 + def filter_run(*args); end + + # Adds key/value pairs to the `exclusion_filter`. If `args` + # includes any symbols that are not part of the hash, each symbol + # is treated as a key in the hash with the value `true`. + # + # ### Note + # + # Filters set using this method can be overridden from the command line + # or config files (e.g. `.rspec`). + # + # @example + # # Given this declaration. + # describe "something", :foo => 'bar' do + # # ... + # end + # + # # Any of the following will exclude that group. + # config.filter_run_excluding :foo => 'bar' + # config.filter_run_excluding :foo => /^ba/ + # config.filter_run_excluding :foo => lambda {|v| v == 'bar'} + # config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'} + # + # # Given a proc with an arity of 1, the lambda is passed the value + # # related to the key, e.g. + # config.filter_run_excluding :foo => lambda {|v| v == 'bar'} + # + # # Given a proc with an arity of 2, the lambda is passed the value + # # related to the key, and the metadata itself e.g. + # config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'} + # + # filter_run_excluding :foo # same as filter_run_excluding :foo => true + # + # source://rspec-core//lib/rspec/core/configuration.rb#1349 + def filter_run_excluding(*args); end + + # Adds key/value pairs to the `inclusion_filter`. If `args` + # includes any symbols that are not part of the hash, each symbol + # is treated as a key in the hash with the value `true`. + # + # ### Note + # + # Filters set using this method can be overridden from the command line + # or config files (e.g. `.rspec`). + # + # @example + # # Given this declaration. + # describe "something", :foo => 'bar' do + # # ... + # end + # + # # Any of the following will include that group. + # config.filter_run_including :foo => 'bar' + # config.filter_run_including :foo => /^ba/ + # config.filter_run_including :foo => lambda {|v| v == 'bar'} + # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'} + # + # # Given a proc with an arity of 1, the lambda is passed the value + # # related to the key, e.g. + # config.filter_run_including :foo => lambda {|v| v == 'bar'} + # + # # Given a proc with an arity of 2, the lambda is passed the value + # # related to the key, and the metadata itself e.g. + # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'} + # + # filter_run_including :foo # same as filter_run_including :foo => true + # + # source://rspec-core//lib/rspec/core/configuration.rb#1275 + def filter_run_including(*args); end + + # Applies the provided filter only if any of examples match, in constrast + # to {#filter_run}, which always applies even if no examples match, in + # which case no examples will be run. This allows you to leave configured + # filters in place that are intended only for temporary use. The most common + # example is focus filtering: `config.filter_run_when_matching :focus`. + # With that configured, you can temporarily focus an example or group + # by tagging it with `:focus` metadata, or prefixing it with an `f` + # (as in `fdescribe`, `fcontext` and `fit`) since those are aliases for + # `describe`/`context`/`it` with `:focus` metadata. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1291 + def filter_run_when_matching(*args); end + + # Color used when a pending example is fixed. Defaults to `:blue` but can + # be set to one of the following: `[:black, :white, :red, :green, + # :yellow, :blue, :magenta, :cyan]` + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def fixed_color; end + + # Color used when a pending example is fixed. Defaults to `:blue` but can + # be set to one of the following: `[:black, :white, :red, :green, + # :yellow, :blue, :magenta, :cyan]` + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def fixed_color=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def fixed_color?; end + + # Used to set higher priority option values from the command line. + # + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#592 + def force(hash); end + + # Formats the docstring output using the block provided. + # + # @example + # # This will strip the descriptions of both examples and example + # # groups. + # RSpec.configure do |config| + # config.format_docstrings { |s| s.strip } + # end + # + # source://rspec-core//lib/rspec/core/configuration.rb#1661 + def format_docstrings(&block); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1666 + def format_docstrings_block; end + + # Adds a formatter to the set RSpec will use for this run. + # + # @overload add_formatter + # @overload add_formatter + # @param formatter [Class, String, Object] formatter to use. Can be any of the + # string values supported from the CLI (`p`/`progress`, + # `d`/`doc`/`documentation`, `h`/`html`, or `j`/`json`), any + # class that implements the formatter protocol and has registered + # itself with RSpec as a formatter, or a formatter instance. + # @param output [String, IO] where the formatter will write its output. + # Can be an IO object or a string path to a file. If not provided, + # the configured `output_stream` (`$stdout`, by default) will be used. + # @see RSpec::Core::Formatters::Protocol + # + # source://rspec-core//lib/rspec/core/configuration.rb#996 + def formatter=(formatter, output = T.unsafe(nil)); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1029 + def formatter_loader; end + + # Returns a duplicate of the formatters currently loaded in + # the `FormatterLoader` for introspection. + # + # Note as this is a duplicate, any mutations will be disregarded. + # + # @return [Array] the formatters currently loaded + # + # source://rspec-core//lib/rspec/core/configuration.rb#1024 + def formatters; end + + # Toggle full backtrace. + # + # @attr true_or_false [Boolean] toggle full backtrace display + # + # source://rspec-core//lib/rspec/core/configuration.rb#908 + def full_backtrace=(true_or_false); end + + # Check if full backtrace is enabled. + # + # @return [Boolean] is full backtrace enabled + # + # source://rspec-core//lib/rspec/core/configuration.rb#902 + def full_backtrace?; end + + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def full_cause_backtrace; end + + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def full_cause_backtrace=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def full_cause_backtrace?; end + + # @return [Array] full description filter + # + # source://rspec-core//lib/rspec/core/configuration.rb#977 + def full_description; end + + # Run examples matching on `description` in all files to run. + # + # @param description [String, Regexp] the pattern to filter on + # + # source://rspec-core//lib/rspec/core/configuration.rb#972 + def full_description=(description); end + + # Holds the various registered hooks. Here we use a FilterableItemRepository + # implementation that is specifically optimized for the read/write patterns + # of the config object. + # + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#2109 + def hooks; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1607 + def in_project_source_dir_regex; end + + # Tells RSpec to include `mod` in example groups. Methods defined in + # `mod` are exposed to examples (not example groups). Use `filters` to + # constrain the groups or examples in which to include the module. + # + # @example + # + # module AuthenticationHelpers + # def login_as(user) + # # ... + # end + # end + # + # module PreferencesHelpers + # def preferences(user, preferences = {}) + # # ... + # end + # end + # + # module UserHelpers + # def users(username) + # # ... + # end + # end + # + # RSpec.configure do |config| + # config.include(UserHelpers) # included in all groups + # + # # included in examples with `:preferences` metadata + # config.include(PreferenceHelpers, :preferences) + # + # # included in examples with `:type => :request` metadata + # config.include(AuthenticationHelpers, :type => :request) + # + # # included in examples where the `:type` metadata matches a proc condition + # config.include(AuthenticationHelpers, :type => proc { |type, _metadata| [:request, :controller].include?(type) }) + # end + # + # describe "edit profile", :preferences, :type => :request do + # it "can be viewed by owning user" do + # login_as preferences(users(:jdoe), :lang => 'es') + # get "/profiles/jdoe" + # assert_select ".username", :text => 'jdoe' + # end + # end + # @note Filtered module inclusions can also be applied to + # individual examples that have matching metadata. Just like + # Ruby's object model is that every object has a singleton class + # which has only a single instance, RSpec's model is that every + # example has a singleton example group containing just the one + # example. + # @see #include_context + # @see #extend + # @see #prepend + # + # source://rspec-core//lib/rspec/core/configuration.rb#1428 + def include(mod, *filters); end + + # Tells RSpec to include the named shared example group in example groups. + # Use `filters` to constrain the groups or examples in which to include + # the example group. + # + # @example + # + # RSpec.shared_context "example admin user" do + # let(:admin_user) { create_user(:admin) } + # end + # + # RSpec.shared_context "example guest user" do + # let(:guest_user) { create_user(:guest) } + # end + # + # RSpec.configure do |config| + # config.include_context "example guest user", :type => :request + # config.include_context "example admin user", :admin, :type => :request + # end + # + # RSpec.describe "The admin page", :type => :request do + # it "can be viewed by admins", :admin do + # login_with admin_user + # get "/admin" + # expect(response).to be_ok + # end + # + # it "cannot be viewed by guests" do + # login_with guest_user + # get "/admin" + # expect(response).to be_forbidden + # end + # end + # @note Filtered context inclusions can also be applied to + # individual examples that have matching metadata. Just like + # Ruby's object model is that every object has a singleton class + # which has only a single instance, RSpec's model is that every + # example has a singleton example group containing just the one + # example. + # @see #include + # + # source://rspec-core//lib/rspec/core/configuration.rb#1475 + def include_context(shared_group_name, *filters); end + + # Returns the `inclusion_filter`. If none has been set, returns an empty + # hash. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1313 + def inclusion_filter; end + + # Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't + # want any inclusion filter at all. + # + # ### Warning + # + # This overrides any inclusion filters/tags set on the command line or in + # configuration files. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1304 + def inclusion_filter=(filter); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1101 + def last_run_statuses; end + + # Returns dirs that have been prepended to the load path by the `-I` + # command line option. + # + # @return [Array] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def libs; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#963 + def libs=(libs); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1630 + def load_spec_files; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#522 + def loaded_spec_files; end + + # Maximum count of failed source lines to display in the failure reports + # (defaults to `10`). + # return [Integer] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def max_displayed_failure_line_count; end + + # Maximum count of failed source lines to display in the failure reports + # (defaults to `10`). + # return [Integer] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def max_displayed_failure_line_count=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def max_displayed_failure_line_count?; end + + # Returns the configured mock framework adapter module. + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#669 + def mock_framework; end + + # Delegates to mock_framework=(framework). + # + # source://rspec-core//lib/rspec/core/configuration.rb#681 + def mock_framework=(framework); end + + # Sets the mock framework adapter module. + # + # `framework` can be a Symbol or a Module. + # + # Given any of `:rspec`, `:mocha`, `:flexmock`, or `:rr`, configures the + # named framework. + # + # Given `:nothing`, configures no framework. Use this if you don't use + # any mocking framework to save a little bit of overhead. + # + # Given a Module, includes that module in every example group. The module + # should adhere to RSpec's mock framework adapter API: + # + # setup_mocks_for_rspec + # - called before each example + # + # verify_mocks_for_rspec + # - called after each example if the example hasn't yet failed. + # Framework should raise an exception when expectations fail + # + # teardown_mocks_for_rspec + # - called after verify_mocks_for_rspec (even if there are errors) + # + # If the module responds to `configuration` and `mock_with` receives a + # block, it will yield the configuration object to the block e.g. + # + # config.mock_with OtherMockFrameworkAdapter do |mod_config| + # mod_config.custom_setting = true + # end + # + # source://rspec-core//lib/rspec/core/configuration.rb#786 + def mock_with(framework); end + + # Invokes block before defining an example group + # + # source://rspec-core//lib/rspec/core/configuration.rb#2114 + def on_example_group_definition(&block); end + + # Returns an array of blocks to call before defining an example group + # + # @api private + # + # source://rspec-core//lib/rspec/core/configuration.rb#2120 + def on_example_group_definition_callbacks; end + + # Indicates if the `--only-failures` (or `--next-failure`) flag is being used. + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def only_failures; end + + # Indicates if the `--only-failures` (or `--next-failure`) flag is being used. + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def only_failures?; end + + # @private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#203 + def only_failures_but_not_configured?; end + + # Sets the default global ordering strategy. By default this can be one + # of `:defined`, `:random`, but is customizable through the + # `register_ordering` API. If order is set to `'rand:'`, + # the seed will also be set. + # + # @see #register_ordering + # + # source://rspec-core//lib/rspec/core/configuration.rb#1673 + def order=(*args, &block); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#522 + def ordering_manager; end + + # source://rspec-core//lib/rspec/core/configuration.rb#1673 + def ordering_registry(*args, &block); end + + # Determines where RSpec will send its output. + # Default: `$stdout`. + # + # @return [IO, String] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def output_stream; end + + # Set the output stream for reporter. + # + # @attr value [IO, String] IO to write to or filename to write to, defaults to $stdout + # + # source://rspec-core//lib/rspec/core/configuration.rb#274 + def output_stream=(value); end + + # Load files matching this pattern (default: `'**{,/*/**}/*_spec.rb'`). + # + # @return [String] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def pattern; end + + # Set pattern to match files to load. + # + # @attr value [String] the filename pattern to filter spec files by + # + # source://rspec-core//lib/rspec/core/configuration.rb#293 + def pattern=(value); end + + # Color to use to print pending examples. Defaults to `:yellow` but can + # be set to one of the following: `[:black, :white, :red, :green, + # :yellow, :blue, :magenta, :cyan]` + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def pending_color; end + + # Color to use to print pending examples. Defaults to `:yellow` but can + # be set to one of the following: `[:black, :white, :red, :green, + # :yellow, :blue, :magenta, :cyan]` + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def pending_color=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def pending_color?; end + + # Format the output for pending examples. Can be set to: + # - :full (default) - pending examples appear similarly to failures + # - :no_backtrace - same as above, but with no backtrace + # - :skip - do not show the section at all + # return [Symbol] + # + # @raise [ArgumentError] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def pending_failure_output; end + + # Format the output for pending examples. Can be set to: + # - :full (default) - pending examples appear similarly to failures + # - :no_backtrace - same as above, but with no backtrace + # - :skip - do not show the section at all + # return [Symbol] + # + # @raise [ArgumentError] + # + # source://rspec-core//lib/rspec/core/configuration.rb#473 + def pending_failure_output=(mode); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def pending_failure_output?; end + + # Tells RSpec to prepend example groups with `mod`. Methods defined in + # `mod` are exposed to examples (not example groups). Use `filters` to + # constrain the groups in which to prepend the module. + # + # Similar to `include`, but module is included before the example group's class + # in the ancestor chain. + # + # @example + # + # module OverrideMod + # def override_me + # "overridden" + # end + # end + # + # RSpec.configure do |config| + # config.prepend(OverrideMod, :method => :prepend) + # end + # + # describe "overriding example's class", :method => :prepend do + # it "finds the user" do + # self.class.class_eval do + # def override_me + # end + # end + # override_me # => "overridden" + # # ... + # end + # end + # @see #include + # @see #extend + # + # source://rspec-core//lib/rspec/core/configuration.rb#1557 + def prepend(mod, *filters); end + + # Defines a `after` hook. See {Hooks#after} for full docs. + # + # This method differs from {Hooks#after} in only one way: it supports + # the `:suite` scope. Hooks with the `:suite` scope will be run once after + # the last example of the entire suite is executed. Conditions passed along + # with `:suite` are effectively ignored. + # + # @see #append_after + # @see #before + # @see #prepend_before + # + # source://rspec-core//lib/rspec/core/configuration.rb#2031 + def prepend_after(scope = T.unsafe(nil), *meta, &block); end + + # Adds `block` to the start of the list of `before` blocks in the same + # scope (`:example`, `:context`, or `:suite`), in contrast to {#before}, + # which adds the hook to the end of the list. + # + # See {Hooks#before} for full `before` hook docs. + # + # This method differs from {Hooks#prepend_before} in only one way: it supports + # the `:suite` scope. Hooks with the `:suite` scope will be run once before + # the first example of the entire suite is executed. Conditions passed along + # with `:suite` are effectively ignored. + # + # @see #before + # @see #after + # @see #append_after + # + # source://rspec-core//lib/rspec/core/configuration.rb#2006 + def prepend_before(scope = T.unsafe(nil), *meta, &block); end + + # Defaults `profile_examples` to 10 examples when `@profile_examples` is + # `true`. + # + # @api private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1073 + def profile_examples; end + + # Report the times for the slowest examples (default: `false`). + # Use this to specify the number of examples to include in the profile. + # + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#322 + def profile_examples=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def profile_examples?; end + + # Specifies which directories contain the source code for your project. + # When a failure occurs, RSpec looks through the backtrace to find a + # a line of source to print. It first looks for a line coming from + # one of the project source directories so that, for example, it prints + # the expectation or assertion call rather than the source code from + # the expectation or assertion framework. + # + # @return [Array] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def project_source_dirs; end + + # Specifies which directories contain the source code for your project. + # When a failure occurs, RSpec looks through the backtrace to find a + # a line of source to print. It first looks for a line coming from + # one of the project source directories so that, for example, it prints + # the expectation or assertion call rather than the source code from + # the expectation or assertion framework. + # + # @return [Array] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def project_source_dirs=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def project_source_dirs?; end + + # Turns deprecation warnings into errors, in order to surface + # the full backtrace of the call site. This can be useful when + # you need more context to address a deprecation than the + # single-line call site normally provided. + # + # @example + # + # RSpec.configure do |rspec| + # rspec.raise_errors_for_deprecations! + # end + # + # source://rspec-core//lib/rspec/core/configuration.rb#1833 + def raise_errors_for_deprecations!; end + + # Turns RSpec warnings into errors. This can be useful when + # you want RSpec to run in a 'strict' no warning situation. + # (Note this does not capture or raise on Ruby warnings). + # + # @example + # + # RSpec.configure do |rspec| + # rspec.raise_on_warning = true + # end + # + # source://rspec-core//lib/rspec/core/configuration.rb#1781 + def raise_on_warning=(value); end + + # Registers a named ordering strategy that can later be + # used to order an example group's subgroups by adding + # `:order => ` metadata to the example group. + # + # @example + # RSpec.configure do |rspec| + # rspec.register_ordering :reverse do |list| + # list.reverse + # end + # end + # + # RSpec.describe 'MyClass', :order => :reverse do + # # ... + # end + # @example + # RSpec.configure do |rspec| + # rspec.register_ordering :global do |examples| + # acceptance, other = examples.partition do |example| + # example.metadata[:type] == :acceptance + # end + # other + acceptance + # end + # end + # + # RSpec.describe 'MyClass', :type => :acceptance do + # # will run last + # end + # + # RSpec.describe 'MyClass' do + # # will run first + # end + # @note Pass the symbol `:global` to set the ordering strategy that + # will be used to order the top-level example groups and any example + # groups that do not have declared `:order` metadata. + # @param name [Symbol] The name of the ordering. + # @yield Block that will order the given examples or example groups + # @yieldparam list [Array, Array] The examples or groups to order + # @yieldreturn [Array, Array] The re-ordered examples or groups + # + # source://rspec-core//lib/rspec/core/configuration.rb#1673 + def register_ordering(*args, &block); end + + # @return [RSpec::Core::Reporter] the currently configured reporter + # + # source://rspec-core//lib/rspec/core/configuration.rb#1056 + def reporter; end + + # Indicates files configured to be required. + # + # @return [Array] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def requires; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1597 + def requires=(paths); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#601 + def reset; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#614 + def reset_filters; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#607 + def reset_reporter; end + + # Run all examples if none match the configured filters + # (default: `false`). + # + # @deprecated Use {#filter_run_when_matching} instead for the specific + # filters that you want to be ignored if none match. + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def run_all_when_everything_filtered; end + + # Run all examples if none match the configured filters + # (default: `false`). + # + # @deprecated Use {#filter_run_when_matching} instead for the specific + # filters that you want to be ignored if none match. + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def run_all_when_everything_filtered=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def run_all_when_everything_filtered?; end + + # Seed for random ordering (default: generated randomly each run). + # + # When you run specs with `--order random`, RSpec generates a random seed + # for the randomization and prints it to the `output_stream` (assuming + # you're using RSpec's built-in formatters). If you discover an ordering + # dependency (i.e. examples fail intermittently depending on order), set + # this (on Configuration or on the command line with `--seed`) to run + # using the same seed while you debug the issue. + # + # We recommend, actually, that you use the command line approach so you + # don't accidentally leave the seed encoded. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1673 + def seed(*args, &block); end + + # Sets the seed value and sets the default global ordering to random. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1673 + def seed=(*args, &block); end + + # source://rspec-core//lib/rspec/core/configuration.rb#1673 + def seed_used?(*args, &block); end + + # Configures how RSpec treats metadata passed as part of a shared example + # group definition. For example, given this shared example group definition: + # + # RSpec.shared_context "uses DB", :db => true do + # around(:example) do |ex| + # MyORM.transaction(:rollback => true, &ex) + # end + # end + # + # ...there are two ways RSpec can treat the `:db => true` metadata, each + # of which has a corresponding config option: + # + # 1. `:trigger_inclusion`: this shared context will be implicitly included + # in any groups (or examples) that have `:db => true` metadata. + # 2. `:apply_to_host_groups`: the metadata will be inherited by the metadata + # hash of all host groups and examples. + # + # `:trigger_inclusion` is the legacy behavior from before RSpec 3.5 but should + # be considered deprecated. Instead, you can explicitly include a group with + # `include_context`: + # + # RSpec.describe "My model" do + # include_context "uses DB" + # end + # + # ...or you can configure RSpec to include the context based on matching metadata + # using an API that mirrors configured module inclusion: + # + # RSpec.configure do |rspec| + # rspec.include_context "uses DB", :db => true + # end + # + # `:apply_to_host_groups` is a new feature of RSpec 3.5 and will be the only + # supported behavior in RSpec 4. + # + # @overload shared_context_metadata_behavior + # @overload shared_context_metadata_behavior= + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def shared_context_metadata_behavior; end + + # @see shared_context_metadata_behavior + # + # source://rspec-core//lib/rspec/core/configuration.rb#434 + def shared_context_metadata_behavior=(value); end + + # Don't print filter info i.e. "Run options: include {:focus=>true}" + # (default `false`). + # return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def silence_filter_announcements; end + + # Don't print filter info i.e. "Run options: include {:focus=>true}" + # (default `false`). + # return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def silence_filter_announcements=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def silence_filter_announcements?; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1138 + def spec_files_with_failures; end + + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def start_time; end + + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def start_time=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def start_time?; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#520 + def static_config_filter_manager; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#520 + def static_config_filter_manager=(_arg0); end + + # Color to use to indicate success. Defaults to `:green` but can be set + # to one of the following: `[:black, :white, :red, :green, :yellow, + # :blue, :magenta, :cyan]` + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def success_color; end + + # Color to use to indicate success. Defaults to `:green` but can be set + # to one of the following: `[:black, :white, :red, :green, :yellow, + # :blue, :magenta, :cyan]` + # + # @return [Symbol] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def success_color=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def success_color?; end + + # Use threadsafe options where available. + # Currently this will place a mutex around memoized values such as let blocks. + # return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def threadsafe; end + + # Use threadsafe options where available. + # Currently this will place a mutex around memoized values such as let blocks. + # return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def threadsafe=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def threadsafe?; end + + # @deprecated This config option was added in RSpec 2 to pave the way + # for this being the default behavior in RSpec 3. Now this option is + # a no-op. + # + # source://rspec-core//lib/rspec/core/configuration.rb#383 + def treat_symbols_as_metadata_keys_with_true_values=(_value); end + + # source://rspec-core//lib/rspec/core/configuration.rb#66 + def tty; end + + # source://rspec-core//lib/rspec/core/configuration.rb#89 + def tty=(_arg0); end + + # source://rspec-core//lib/rspec/core/configuration.rb#78 + def tty?; end + + # Set Ruby warnings on or off. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1760 + def warnings=(value); end + + # @return [Boolean] Whether or not ruby warnings are enabled. + # + # source://rspec-core//lib/rspec/core/configuration.rb#1765 + def warnings?; end + + # Defines a callback that runs after the first example with matching + # metadata is defined. If no examples are defined with matching metadata, + # it will not get called at all. + # + # This can be used to ensure some setup is performed (such as bootstrapping + # a DB or loading a specific file that adds significantly to the boot time) + # if needed (as indicated by the presence of an example with matching metadata) + # but avoided otherwise. + # + # @example + # RSpec.configure do |config| + # config.when_first_matching_example_defined(:db) do + # # Load a support file that does some heavyweight setup, + # # including bootstrapping the DB, but only if we have loaded + # # any examples tagged with `:db`. + # require 'support/db' + # end + # end + # + # source://rspec-core//lib/rspec/core/configuration.rb#1923 + def when_first_matching_example_defined(*filters); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#2091 + def with_suite_hooks; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#518 + def world; end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#518 + def world=(_arg0); end + + private + + # :nocov: + # + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#2254 + def absolute_pattern?(pattern); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2355 + def add_hook_to_existing_matching_groups(meta, scope, &block); end + + # @raise [MustBeConfiguredBeforeExampleGroupsError] + # + # source://rspec-core//lib/rspec/core/configuration.rb#2294 + def assert_no_example_groups_defined(config_option); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2344 + def clear_values_derived_from_example_status_persistence_file_path; end + + # source://rspec-core//lib/rspec/core/configuration.rb#2276 + def command; end + + # source://rspec-core//lib/rspec/core/configuration.rb#2320 + def conditionally_disable_expectations_monkey_patching; end + + # source://rspec-core//lib/rspec/core/configuration.rb#2311 + def conditionally_disable_mocks_monkey_patching; end + + # source://rspec-core//lib/rspec/core/configuration.rb#2349 + def configure_group_with(group, module_list, application_method); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2284 + def define_built_in_hooks; end + + # source://rspec-core//lib/rspec/core/configuration.rb#2407 + def define_mixed_in_module(mod, filters, mod_list, config_method, &block); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2259 + def extract_location(path); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2236 + def file_glob_from(path, pattern); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2225 + def gather_directories(path); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2204 + def get_files_to_run(paths); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2231 + def get_matching_files(path, pattern); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2171 + def handle_suite_hook(scope, meta); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2143 + def load_file_handling_errors(method, file); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#2377 + def metadata_applies_to_group?(meta, group); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2369 + def on_existing_matching_groups(meta); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#2307 + def output_to_tty?(output = T.unsafe(nil)); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2303 + def output_wrapper; end + + # source://rspec-core//lib/rspec/core/configuration.rb#2216 + def paths_to_check(paths); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#2221 + def pattern_might_load_specs_from_vendored_dirs?; end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#2330 + def rspec_expectations_loaded?; end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration.rb#2326 + def rspec_mocks_loaded?; end + + # source://rspec-core//lib/rspec/core/configuration.rb#2186 + def run_suite_hooks(hook_description, hooks); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2392 + def safe_extend(mod, host); end + + # :nocov: + # + # source://rspec-core//lib/rspec/core/configuration.rb#2388 + def safe_include(mod, host); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2382 + def safe_prepend(mod, host); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2334 + def update_pattern_attr(name, value); end + + # source://rspec-core//lib/rspec/core/configuration.rb#2280 + def value_for(key); end + + class << self + # As `add_setting` but only add the reader. + # + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#100 + def add_read_only_setting(name, opts = T.unsafe(nil)); end + + # Invoked by the `add_setting` instance method. Use that method on a + # `Configuration` instance rather than this class method. + # + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#87 + def add_setting(name, opts = T.unsafe(nil)); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#70 + def define_alias(name, alias_name); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#77 + def define_predicate(name); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#60 + def define_reader(name); end + + # @private + # + # source://rspec-core//lib/rspec/core/configuration.rb#1671 + def delegate_to_ordering_manager(*methods); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/configuration.rb#1651 +RSpec::Core::Configuration::DEFAULT_FORMATTER = T.let(T.unsafe(nil), Proc) + +# This buffer is used to capture all messages sent to the reporter during +# reporter initialization. It can then replay those messages after the +# formatter is correctly initialized. Otherwise, deprecation warnings +# during formatter initialization can cause an infinite loop. +# +# @private +# +# source://rspec-core//lib/rspec/core/configuration.rb#1039 +class RSpec::Core::Configuration::DeprecationReporterBuffer + # @return [DeprecationReporterBuffer] a new instance of DeprecationReporterBuffer + # + # source://rspec-core//lib/rspec/core/configuration.rb#1040 + def initialize; end + + # source://rspec-core//lib/rspec/core/configuration.rb#1044 + def deprecation(*args); end + + # source://rspec-core//lib/rspec/core/configuration.rb#1048 + def play_onto(reporter); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/configuration.rb#1821 +module RSpec::Core::Configuration::ExposeCurrentExample; end + +# @private +# +# source://rspec-core//lib/rspec/core/configuration.rb#1126 +RSpec::Core::Configuration::FAILED_STATUS = T.let(T.unsafe(nil), String) + +# @private +# +# source://rspec-core//lib/rspec/core/configuration.rb#749 +RSpec::Core::Configuration::MOCKING_ADAPTERS = T.let(T.unsafe(nil), Hash) + +# @private +# +# source://rspec-core//lib/rspec/core/configuration.rb#57 +class RSpec::Core::Configuration::MustBeConfiguredBeforeExampleGroupsError < ::StandardError; end + +# @private +# +# source://rspec-core//lib/rspec/core/configuration.rb#1129 +RSpec::Core::Configuration::PASSED_STATUS = T.let(T.unsafe(nil), String) + +# @private +# +# source://rspec-core//lib/rspec/core/configuration.rb#1132 +RSpec::Core::Configuration::PENDING_STATUS = T.let(T.unsafe(nil), String) + +# @private +# +# source://rspec-core//lib/rspec/core/configuration.rb#1770 +RSpec::Core::Configuration::RAISE_ERROR_WARNING_NOTIFIER = T.let(T.unsafe(nil), Proc) + +# Module that holds `attr_reader` declarations. It's in a separate +# module to allow us to override those methods and use `super`. +# +# @private +# +# source://rspec-core//lib/rspec/core/configuration.rb#53 +module RSpec::Core::Configuration::Readers + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def clear_lets_on_failure; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def default_color; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def default_path; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def default_retry_count; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def default_sleep_interval; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def deprecation_stream; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def detail_color; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def display_try_failure_messages; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def drb; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def drb_port; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def dry_run; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def error_exit_code; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def error_stream; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def example_status_persistence_file_path; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def exceptions_to_hard_fail; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def exceptions_to_retry; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def exclude_pattern; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def exponential_backoff; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def fail_fast; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def fail_if_no_examples; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def failure_color; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def failure_exit_code; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def fixed_color; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def full_cause_backtrace; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def libs; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def max_displayed_failure_line_count; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def only_failures; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def output_stream; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def pattern; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def pending_color; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def pending_failure_output; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def project_source_dirs; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def requires; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def retry_callback; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def retry_count_condition; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def run_all_when_everything_filtered; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def shared_context_metadata_behavior; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def silence_filter_announcements; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def start_time; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def success_color; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def threadsafe; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def tty; end + + # source://rspec-core//lib/rspec/core/configuration.rb#63 + def verbose_retry; end +end + +# @private +# +# source://rspec-core//lib/rspec/core/configuration.rb#1123 +RSpec::Core::Configuration::UNKNOWN_STATUS = T.let(T.unsafe(nil), String) + +# @private +# +# source://rspec-core//lib/rspec/core/configuration.rb#1135 +RSpec::Core::Configuration::VALID_STATUSES = T.let(T.unsafe(nil), Array) + +# Responsible for utilizing externally provided configuration options, +# whether via the command line, `.rspec`, `~/.rspec`, +# `$XDG_CONFIG_HOME/rspec/options`, `.rspec-local` or a custom options +# file. +# +# source://rspec-core//lib/rspec/core/configuration_options.rb#10 +class RSpec::Core::ConfigurationOptions + # @param args [Array] command line arguments + # @return [ConfigurationOptions] a new instance of ConfigurationOptions + # + # source://rspec-core//lib/rspec/core/configuration_options.rb#12 + def initialize(args); end + + # @return [Array] the original command-line arguments + # + # source://rspec-core//lib/rspec/core/configuration_options.rb#40 + def args; end + + # Updates the provided {Configuration} instance based on the provided + # external configuration options. + # + # @param config [Configuration] the configuration instance to update + # + # source://rspec-core//lib/rspec/core/configuration_options.rb#21 + def configure(config); end + + # Updates the provided {FilterManager} based on the filter options. + # + # @api private + # @param filter_manager [FilterManager] instance to update + # + # source://rspec-core//lib/rspec/core/configuration_options.rb#30 + def configure_filter_manager(filter_manager); end + + # @return [Hash] the final merged options, drawn from all external sources + # + # source://rspec-core//lib/rspec/core/configuration_options.rb#37 + def options; end + + private + + # source://rspec-core//lib/rspec/core/configuration_options.rb#173 + def args_from_options_file(path); end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#142 + def command_line_options; end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#146 + def custom_options; end + + # :nocov: + # + # source://rspec-core//lib/rspec/core/configuration_options.rb#190 + def custom_options_file; end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#133 + def env_options; end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#125 + def file_options; end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/configuration_options.rb#66 + def force?(key); end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#158 + def global_options; end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#202 + def global_options_file; end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#213 + def home_options_file_path; end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#121 + def load_formatters_into(config); end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#150 + def local_options; end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#198 + def local_options_file; end + + # :nocov: + # + # source://rspec-core//lib/rspec/core/configuration_options.rb#181 + def options_file_as_erb_string(path); end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#162 + def options_from(path); end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#70 + def order(keys); end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#44 + def organize_options; end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#167 + def parse_args_ignoring_files_or_dirs_to_run(args, source); end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#113 + def process_options_into(config); end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#154 + def project_options; end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#194 + def project_options_file; end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#229 + def resolve_xdg_config_home; end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#206 + def xdg_options_file_if_exists; end + + # source://rspec-core//lib/rspec/core/configuration_options.rb#222 + def xdg_options_file_path; end +end + +# source://rspec-core//lib/rspec/core/configuration_options.rb#77 +RSpec::Core::ConfigurationOptions::OPTIONS_ORDER = T.let(T.unsafe(nil), Array) + +# source://rspec-core//lib/rspec/core/configuration_options.rb#59 +RSpec::Core::ConfigurationOptions::UNFORCED_OPTIONS = T.let(T.unsafe(nil), RSpec::Core::Set) + +# source://rspec-core//lib/rspec/core/configuration_options.rb#64 +RSpec::Core::ConfigurationOptions::UNPROCESSABLE_OPTIONS = T.let(T.unsafe(nil), RSpec::Core::Set) + +# DSL defines methods to group examples, most notably `describe`, +# and exposes them as class methods of {RSpec}. They can also be +# exposed globally (on `main` and instances of `Module`) through +# the {Configuration} option `expose_dsl_globally`. +# +# By default the methods `describe`, `context` and `example_group` +# are exposed. These methods define a named context for one or +# more examples. The given block is evaluated in the context of +# a generated subclass of {RSpec::Core::ExampleGroup}. +# +# ## Examples: +# +# RSpec.describe "something" do +# context "when something is a certain way" do +# it "does something" do +# # example code goes here +# end +# end +# end +# +# @see ExampleGroup +# @see ExampleGroup.example_group +# +# source://rspec-core//lib/rspec/core/dsl.rb#25 +module RSpec::Core::DSL + class << self + # @private + # + # source://rspec-core//lib/rspec/core/dsl.rb#89 + def change_global_dsl(&changes); end + + # @private + # + # source://rspec-core//lib/rspec/core/dsl.rb#27 + def example_group_aliases; end + + # @private + # + # source://rspec-core//lib/rspec/core/dsl.rb#37 + def expose_example_group_alias(name); end + + # @private + # + # source://rspec-core//lib/rspec/core/dsl.rb#81 + def expose_example_group_alias_globally(method_name); end + + # Adds the describe method to Module and the top level binding. + # + # @api private + # + # source://rspec-core//lib/rspec/core/dsl.rb#58 + def expose_globally!; end + + # @private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/dsl.rb#32 + def exposed_globally?; end + + # Removes the describe method from Module and the top level binding. + # + # @api private + # + # source://rspec-core//lib/rspec/core/dsl.rb#70 + def remove_globally!; end + + # @private + # + # source://rspec-core//lib/rspec/core/dsl.rb#53 + def top_level; end + + # @private + # + # source://rspec-core//lib/rspec/core/dsl.rb#53 + def top_level=(_arg0); end + end +end + +# Deprecation Error. +# +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#221 +class RSpec::Core::DeprecationError < ::StandardError; end + +# Wrapper around Ruby's `DidYouMean::SpellChecker` when available to provide file name suggestions. +# +# @private +# +# source://rspec-core//lib/rspec/core/did_you_mean.rb#5 +class RSpec::Core::DidYouMean + # @return [DidYouMean] a new instance of DidYouMean + # + # source://rspec-core//lib/rspec/core/did_you_mean.rb#8 + def initialize(relative_file_name); end + + # return a hint if API for ::DidYouMean::SpellChecker not supported + # :nocov: + # + # source://rspec-core//lib/rspec/core/did_you_mean.rb#15 + def call; end + + # Returns the value of attribute relative_file_name. + # + # source://rspec-core//lib/rspec/core/did_you_mean.rb#6 + def relative_file_name; end + + private + + # :nocov: + # + # source://rspec-core//lib/rspec/core/did_you_mean.rb#35 + def formats(probables); end + + # source://rspec-core//lib/rspec/core/did_you_mean.rb#45 + def red_font(mytext); end + + # source://rspec-core//lib/rspec/core/did_you_mean.rb#40 + def top_and_tail(rspec_format); end +end + +# Wrapper for an instance of a subclass of {ExampleGroup}. An instance of +# `RSpec::Core::Example` is returned by example definition methods +# such as {ExampleGroup.it it} and is yielded to the {ExampleGroup.it it}, +# {Hooks#before before}, {Hooks#after after}, {Hooks#around around}, +# {MemoizedHelpers::ClassMethods#let let} and +# {MemoizedHelpers::ClassMethods#subject subject} blocks. +# +# This allows us to provide rich metadata about each individual +# example without adding tons of methods directly to the ExampleGroup +# that users may inadvertently redefine. +# +# Useful for configuring logging and/or taking some action based +# on the state of an example's metadata. +# +# @example +# +# RSpec.configure do |config| +# config.before do |example| +# log example.description +# end +# +# config.after do |example| +# log example.description +# end +# +# config.around do |example| +# log example.description +# example.run +# end +# end +# +# shared_examples "auditable" do +# it "does something" do +# log "#{example.full_description}: #{auditable.inspect}" +# auditable.should do_something +# end +# end +# @note Example blocks are evaluated in the context of an instance +# of an `ExampleGroup`, not in the context of an instance of `Example`. +# @see ExampleGroup +# +# source://rspec-core//lib/rspec/core/example.rb#44 +class RSpec::Core::Example + # Creates a new instance of Example. + # + # @api private + # @param example_group_class [Class] the subclass of ExampleGroup in which + # this Example is declared + # @param description [String] the String passed to the `it` method (or + # alias) + # @param user_metadata [Hash] additional args passed to `it` to be used as + # metadata + # @param example_block [Proc] the block of code that represents the + # example + # @return [Example] a new instance of Example + # + # source://rspec-core//lib/rspec/core/example.rb#186 + def initialize(example_group_class, description, user_metadata, example_block = T.unsafe(nil)); end + + # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#4 + def attempts; end + + # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#4 + def attempts=(_arg0); end + + # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#6 + def clear_exception; end + + # @attr + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#174 + def clock; end + + # @attr + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#174 + def clock=(_arg0); end + + # Returns the string submitted to `example` or its aliases (e.g. + # `specify`, `it`, etc). If no string is submitted (e.g. + # `it { is_expected.to do_something }`) it returns the message generated + # by the matcher if there is one, otherwise returns a message including + # the location of the example. + # + # source://rspec-core//lib/rspec/core/example.rb#76 + def description; end + + # The exception that will be displayed to the user -- either the failure of + # the example or the `pending_exception` if the example is pending. + # + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#388 + def display_exception; end + + # Assigns the exception that will be displayed to the user -- either the failure of + # the example or the `pending_exception` if the example is pending. + # + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#396 + def display_exception=(ex); end + + # Duplicates the example and overrides metadata with the provided + # hash. + # + # @param metadata_overrides [Hash] the hash to override the example metadata + # @return [Example] a duplicate of the example with modified metadata + # + # source://rspec-core//lib/rspec/core/example.rb#132 + def duplicate_with(metadata_overrides = T.unsafe(nil)); end + + # Returns the example group class that provides the context for running + # this example. + # + # source://rspec-core//lib/rspec/core/example.rb#230 + def example_group; end + + # Returns the example_group_instance that provides the context for + # running this example. + # + # @attr_reader + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#170 + def example_group_instance; end + + # Returns the first exception raised in the context of running this + # example (nil if no exception is raised). + # + # @attr_reader + # + # source://rspec-core//lib/rspec/core/example.rb#158 + def exception; end + + # @return [ExecutionResult] represents the result of running this example. + # + # source://rspec-core//lib/rspec/core/example.rb#49 + def execution_result; end + + # Used internally to set an exception and fail without actually executing + # the example when an exception is raised in before(:context). + # + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#439 + def fail_with_exception(reporter, exception); end + + # @return [String] the relative path to the file where this example was + # defined. + # + # source://rspec-core//lib/rspec/core/example.rb#49 + def file_path; end + + # @return [String] the full description (including the docstrings of + # all parent example groups). + # + # source://rspec-core//lib/rspec/core/example.rb#49 + def full_description; end + + # @return [String] the unique id of this example. Pass + # this at the command line to re-run this exact example. + # + # source://rspec-core//lib/rspec/core/example.rb#117 + def id; end + + # Provide a human-readable representation of this class + # + # source://rspec-core//lib/rspec/core/example.rb#220 + def inspect; end + + # Returns a description of the example that always includes the location. + # + # source://rspec-core//lib/rspec/core/example.rb#87 + def inspect_output; end + + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#456 + def instance_exec(*args, &block); end + + # @return [String] the exact source location of this example in a form + # like `./path/to/spec.rb:17` + # + # source://rspec-core//lib/rspec/core/example.rb#49 + def location; end + + # Returns the location-based argument that can be passed to the `rspec` command to rerun this example. + # + # source://rspec-core//lib/rspec/core/example.rb#96 + def location_rerun_argument; end + + # Returns the metadata object associated with this example. + # + # @attr_reader + # + # source://rspec-core//lib/rspec/core/example.rb#163 + def metadata; end + + # @return [Boolean] flag that indicates that the example is not expected + # to pass. It will be run and will either have a pending result (if a + # failure occurs) or a failed result (if no failure occurs). + # + # source://rspec-core//lib/rspec/core/example.rb#49 + def pending; end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/example.rb#234 + def pending?; end + + # @return [RSpec::Core::Reporter] the current reporter for the example + # + # source://rspec-core//lib/rspec/core/example.rb#226 + def reporter; end + + # Returns the location-based argument that can be passed to the `rspec` command to rerun this example. + # + # @deprecated Use {#location_rerun_argument} instead. + # @note If there are multiple examples identified by this location, they will use {#id} + # to rerun instead, but this method will still return the location (that's why it is deprecated!). + # + # source://rspec-core//lib/rspec/core/example.rb#111 + def rerun_argument; end + + # instance_execs the block passed to the constructor in the context of + # the instance of {ExampleGroup}. + # + # @api private + # @param example_group_instance the instance of an ExampleGroup subclass + # + # source://rspec-core//lib/rspec/core/example.rb#246 + def run(example_group_instance, reporter); end + + # Used to set the exception when `aggregate_failures` fails. + # + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#425 + def set_aggregate_failures_exception(exception); end + + # Used internally to set an exception in an after hook, which + # captures the exception but doesn't raise it. + # + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#412 + def set_exception(exception); end + + # @return [Boolean] flag that will cause the example to not run. + # The {ExecutionResult} status will be `:pending`. + # + # source://rspec-core//lib/rspec/core/example.rb#49 + def skip; end + + # Used internally to skip without actually executing the example when + # skip is used in before(:context). + # + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#449 + def skip_with_exception(reporter, exception); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/example.rb#238 + def skipped?; end + + # Provide a human-readable representation of this class + # + # source://rspec-core//lib/rspec/core/example.rb#220 + def to_s; end + + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#148 + def update_inherited_metadata(updates); end + + private + + # source://rspec-core//lib/rspec/core/example.rb#534 + def assign_generated_description; end + + # source://rspec-core//lib/rspec/core/example.rb#478 + def finish(reporter); end + + # source://rspec-core//lib/rspec/core/example.rb#543 + def generate_description; end + + # source://rspec-core//lib/rspec/core/example.rb#462 + def hooks; end + + # source://rspec-core//lib/rspec/core/example.rb#550 + def location_description; end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/example.rb#530 + def mocks_need_verification?; end + + # source://rspec-core//lib/rspec/core/example.rb#498 + def record_finished(status, reporter); end + + # source://rspec-core//lib/rspec/core/example.rb#516 + def run_after_example; end + + # source://rspec-core//lib/rspec/core/example.rb#503 + def run_before_example; end + + # source://rspec-core//lib/rspec/core/example.rb#473 + def start(reporter); end + + # source://rspec-core//lib/rspec/core/example.rb#524 + def verify_mocks; end + + # source://rspec-core//lib/rspec/core/example.rb#508 + def with_around_and_singleton_context_hooks; end + + # source://rspec-core//lib/rspec/core/example.rb#466 + def with_around_example_hooks; end + + class << self + # Used to define methods that delegate to this example's metadata. + # + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#48 + def delegate_to_metadata(key); end + + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#122 + def parse_id(id); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/example.rb#310 +RSpec::Core::Example::AllExceptionsExcludingDangerousOnesOnRubiesThatAllowIt = RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue + +# Represents the result of executing an example. +# Behaves like a hash for backwards compatibility. +# +# source://rspec-core//lib/rspec/core/example.rb#556 +class RSpec::Core::Example::ExecutionResult + include ::RSpec::Core::HashImitatable + extend ::RSpec::Core::HashImitatable::ClassMethods + + # Populates finished_at and run_time if it has not yet been set + # + # @api private + # + # source://rspec-core//lib/rspec/core/example.rb#610 + def ensure_timing_set(clock); end + + # @return [Boolean] Indicates if the example was completely skipped + # (typically done via `:skip` metadata or the `skip` method). Skipped examples + # will have a `:pending` result. A `:pending` result can also come from examples + # that were marked as `:pending`, which causes them to be run, and produces a + # `:failed` result if the example passes. + # + # source://rspec-core//lib/rspec/core/example.rb#597 + def example_skipped?; end + + # @return [Exception, nil] The failure, if there was one. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def exception; end + + # @return [Exception, nil] The failure, if there was one. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def exception=(_arg0); end + + # @return [Time] When the example finished. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def finished_at; end + + # @return [Time] When the example finished. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def finished_at=(_arg0); end + + # @return [Exception, nil] The exception triggered while + # executing the pending example. If no exception was triggered + # it would no longer get a status of `:pending` unless it was + # tagged with `:skip`. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def pending_exception; end + + # @return [Exception, nil] The exception triggered while + # executing the pending example. If no exception was triggered + # it would no longer get a status of `:pending` unless it was + # tagged with `:skip`. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def pending_exception=(_arg0); end + + # @return [Boolean] For examples tagged with `:pending`, + # this indicates whether or not it now passes. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def pending_fixed; end + + # @return [Boolean] For examples tagged with `:pending`, + # this indicates whether or not it now passes. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def pending_fixed=(_arg0); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/example.rb#588 + def pending_fixed?; end + + # @return [String, nil] The reason the example was pending, + # or nil if the example was not pending. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def pending_message; end + + # @return [String, nil] The reason the example was pending, + # or nil if the example was not pending. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def pending_message=(_arg0); end + + # Records the finished status of the example. + # + # @api private + # + # source://rspec-core//lib/rspec/core/example.rb#603 + def record_finished(status, finished_at); end + + # @return [Float] How long the example took in seconds. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def run_time; end + + # @return [Float] How long the example took in seconds. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def run_time=(_arg0); end + + # @return [Time] When the example started. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def started_at; end + + # @return [Time] When the example started. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def started_at=(_arg0); end + + # @return [Symbol] `:passed`, `:failed` or `:pending`. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def status; end + + # @return [Symbol] `:passed`, `:failed` or `:pending`. + # + # source://rspec-core//lib/rspec/core/metadata.rb#442 + def status=(_arg0); end + + private + + # source://rspec-core//lib/rspec/core/example.rb#616 + def calculate_run_time(finished_at); end + + # source://rspec-core//lib/rspec/core/example.rb#634 + def get_value(name); end + + # For backwards compatibility we present `status` as a string + # when presenting the legacy hash interface. + # + # source://rspec-core//lib/rspec/core/example.rb#623 + def hash_for_delegation; end + + # source://rspec-core//lib/rspec/core/example.rb#642 + def issue_deprecation(_method_name, *_args); end + + # source://rspec-core//lib/rspec/core/example.rb#629 + def set_value(name, value); end +end + +# Wraps both a `Proc` and an {Example} for use in {Hooks#around +# around} hooks. In around hooks we need to yield this special +# kind of object (rather than the raw {Example}) because when +# there are multiple `around` hooks we have to wrap them recursively. +# +# @example +# +# RSpec.configure do |c| +# c.around do |ex| # Procsy which wraps the example +# if ex.metadata[:key] == :some_value && some_global_condition +# raise "some message" +# end +# ex.run # run delegates to ex.call. +# end +# end +# @note This class also exposes the instance methods of {Example}, +# proxying them through to the wrapped {Example} instance. +# +# source://rspec-core//lib/rspec/core/example.rb#331 +class RSpec::Core::Example::Procsy + # @return [Procsy] a new instance of Procsy + # + # source://rspec-core//lib/rspec/core/example.rb#362 + def initialize(example, &block); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def <<(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def ==(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def ===(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def >>(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def [](*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def arity(*a, &b); end + + # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#15 + def attempts; end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def binding(*a, &b); end + + # Calls the proc and notes that the example has been executed. + # + # source://rspec-core//lib/rspec/core/example.rb#350 + def call(*args, &block); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def clock(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def clock=(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def clone(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def curry(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def description(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def dup(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def duplicate_with(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def eql?(*a, &b); end + + # The {Example} instance. + # + # source://rspec-core//lib/rspec/core/example.rb#333 + def example; end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def example_group(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def example_group_instance(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def exception(*a, &b); end + + # Indicates whether or not the around hook has executed the example. + # + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/example.rb#374 + def executed?; end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def execution_result(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def file_path(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def full_description(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def hash(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def id(*a, &b); end + + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#379 + def inspect; end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def inspect_output(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def lambda?(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def location(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def location_rerun_argument(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def metadata(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def parameters(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def pending(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def pending?(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def reporter(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def rerun_argument(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def ruby2_keywords(*a, &b); end + + # Calls the proc and notes that the example has been executed. + # + # source://rspec-core//lib/rspec/core/example.rb#350 + def run(*args, &block); end + + # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#11 + def run_with_retry(opts = T.unsafe(nil)); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def skip(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def skipped?(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def source_location(*a, &b); end + + # Provides a wrapped proc that will update our `executed?` state when + # executed. + # + # source://rspec-core//lib/rspec/core/example.rb#358 + def to_proc; end + + # source://rspec-core//lib/rspec/core/example.rb#339 + def update_inherited_metadata(*a, &b); end + + # @private + # + # source://rspec-core//lib/rspec/core/example.rb#369 + def wrap(&block); end + + # source://rspec-core//lib/rspec/core/example.rb#346 + def yield(*a, &b); end +end + +# ExampleGroup and {Example} are the main structural elements of +# rspec-core. Consider this example: +# +# RSpec.describe Thing do +# it "does something" do +# end +# end +# +# The object returned by `describe Thing` is a subclass of ExampleGroup. +# The object returned by `it "does something"` is an instance of Example, +# which serves as a wrapper for an instance of the ExampleGroup in which it +# is declared. +# +# Example group bodies (e.g. `describe` or `context` blocks) are evaluated +# in the context of a new subclass of ExampleGroup. Individual examples are +# evaluated in the context of an instance of the specific ExampleGroup +# subclass to which they belong. +# +# Besides the class methods defined here, there are other interesting macros +# defined in {Hooks}, {MemoizedHelpers::ClassMethods} and +# {SharedExampleGroup}. There are additional instance methods available to +# your examples defined in {MemoizedHelpers} and {Pending}. +# +# source://rspec-core//lib/rspec/core/example_group.rb#29 +class RSpec::Core::ExampleGroup + include ::RSpec::Core::MemoizedHelpers + include ::RSpec::Core::Pending + extend ::RSpec::Core::Hooks + extend ::RSpec::Core::MemoizedHelpers::ClassMethods + extend ::RSpec::Core::SharedExampleGroup + + # source://rspec-core//lib/rspec/core/example_group.rb#707 + def initialize(inspect_output = T.unsafe(nil)); end + + # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#34 + def clear_lets; end + + # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#26 + def clear_memoized; end + + # Returns the class or module passed to the `describe` method (or alias). + # Returns nil if the subject is not a class or module. + # + # @example + # RSpec.describe Thing do + # it "does something" do + # described_class == Thing + # end + # end + # + # source://rspec-core//lib/rspec/core/example_group.rb#99 + def described_class; end + + # source://rspec-core//lib/rspec/core/example_group.rb#713 + def inspect; end + + private + + # source://rspec-core//lib/rspec/core/example_group.rb#758 + def method_missing(name, *args, **_arg2); end + + class << self + # Adds an example to the example group + # + # source://rspec-core//lib/rspec/core/example_group.rb#367 + def add_example(example); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#529 + def before_context_ivars; end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#466 + def children; end + + # source://rspec-core//lib/rspec/core/example_group.rb#247 + def context(*args, &example_group_block); end + + # Returns true if a `before(:context)` or `after(:context)` + # hook is currently executing. + # + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/example_group.rb#542 + def currently_executing_a_context_hook?; end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#667 + def declaration_locations; end + + # @private + # @see DSL#describe + # + # source://rspec-core//lib/rspec/core/example_group.rb#246 + def define_example_group_method(name, metadata = T.unsafe(nil)); end + + # @example + # $1 "does something", :slow, :load_factor => 100 do + # end + # + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#145 + def define_example_method(name, extra_options = T.unsafe(nil)); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#317 + def define_nested_shared_group_method(new_name, report_label = T.unsafe(nil)); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#76 + def delegate_to_metadata(*names); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#460 + def descendant_filtered_examples; end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#503 + def descendants; end + + # source://rspec-core//lib/rspec/core/example_group.rb#247 + def describe(*args, &example_group_block); end + + # source://rspec-core//lib/rspec/core/example_group.rb#78 + def described_class; end + + # @return [String] the current example group description + # + # source://rspec-core//lib/rspec/core/example_group.rb#85 + def description; end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#700 + def each_instance_variable_for_example(group); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#518 + def ensure_example_groups_are_configured; end + + # Defines an example within a group. + # + # @example + # example do + # end + # + # example "does something" do + # end + # + # example "does something", :slow, :uses_js do + # end + # + # example "does something", :with => 'additional metadata' do + # end + # + # example "does something" do |ex| + # # ex is the Example object that contains metadata about the example + # end + # @overload example + # @overload example + # @overload example + # @overload example + # @yield [Example] the example object + # + # source://rspec-core//lib/rspec/core/example_group.rb#146 + def example(*all_args, &block); end + + # source://rspec-core//lib/rspec/core/example_group.rb#247 + def example_group(*args, &example_group_block); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#450 + def examples; end + + # source://rspec-core//lib/rspec/core/example_group.rb#247 + def fcontext(*args, &example_group_block); end + + # source://rspec-core//lib/rspec/core/example_group.rb#247 + def fdescribe(*args, &example_group_block); end + + # Shortcut to define an example with `:focus => true`. + # + # @example + # fexample do + # end + # + # fexample "does something" do + # end + # + # fexample "does something", :slow, :uses_js do + # end + # + # fexample "does something", :with => 'additional metadata' do + # end + # + # fexample "does something" do |ex| + # # ex is the Example object that contains metadata about the example + # end + # @overload fexample + # @overload fexample + # @overload fexample + # @overload fexample + # @see example + # @yield [Example] the example object + # + # source://rspec-core//lib/rspec/core/example_group.rb#146 + def fexample(*all_args, &block); end + + # source://rspec-core//lib/rspec/core/example_group.rb#78 + def file_path; end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#455 + def filtered_examples; end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#379 + def find_and_eval_shared(label, name, inclusion_location, *args, &customization_block); end + + # Shortcut to define an example with `:focus => true`. + # + # @example + # fit do + # end + # + # fit "does something" do + # end + # + # fit "does something", :slow, :uses_js do + # end + # + # fit "does something", :with => 'additional metadata' do + # end + # + # fit "does something" do |ex| + # # ex is the Example object that contains metadata about the example + # end + # @overload fit + # @overload fit + # @overload fit + # @overload fit + # @see example + # @yield [Example] the example object + # + # source://rspec-core//lib/rspec/core/example_group.rb#146 + def fit(*all_args, &block); end + + # Shortcut to define an example with `:focus => true`. + # + # @example + # focus do + # end + # + # focus "does something" do + # end + # + # focus "does something", :slow, :uses_js do + # end + # + # focus "does something", :with => 'additional metadata' do + # end + # + # focus "does something" do |ex| + # # ex is the Example object that contains metadata about the example + # end + # @overload focus + # @overload focus + # @overload focus + # @overload focus + # @see example + # @yield [Example] the example object + # + # source://rspec-core//lib/rspec/core/example_group.rb#146 + def focus(*all_args, &block); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#655 + def for_filtered_examples(reporter, &block); end + + # Shortcut to define an example with `:focus => true`. + # + # @example + # fspecify do + # end + # + # fspecify "does something" do + # end + # + # fspecify "does something", :slow, :uses_js do + # end + # + # fspecify "does something", :with => 'additional metadata' do + # end + # + # fspecify "does something" do |ex| + # # ex is the Example object that contains metadata about the example + # end + # @overload fspecify + # @overload fspecify + # @overload fspecify + # @overload fspecify + # @see example + # @yield [Example] the example object + # + # source://rspec-core//lib/rspec/core/example_group.rb#146 + def fspecify(*all_args, &block); end + + # @return [String] the unique id of this example group. Pass + # this at the command line to re-run this exact example group. + # + # source://rspec-core//lib/rspec/core/example_group.rb#675 + def id; end + + # Define a singleton method for the singleton class (remove the method if + # it's already been defined). + # + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#40 + def idempotently_define_singleton_method(name, &definition); end + + # Includes shared content mapped to `name` directly in the group in which + # it is declared, as opposed to `it_behaves_like`, which creates a nested + # group. If given a block, that block is also eval'd in the current + # context. + # + # @see SharedExampleGroup + # + # source://rspec-core//lib/rspec/core/example_group.rb#343 + def include_context(name, *args, &block); end + + # Includes shared content mapped to `name` directly in the group in which + # it is declared, as opposed to `it_behaves_like`, which creates a nested + # group. If given a block, that block is also eval'd in the current + # context. + # + # @see SharedExampleGroup + # + # source://rspec-core//lib/rspec/core/example_group.rb#353 + def include_examples(name, *args, &block); end + + # Defines an example within a group. + # This is the primary API to define a code example. + # + # @example + # it do + # end + # + # it "does something" do + # end + # + # it "does something", :slow, :uses_js do + # end + # + # it "does something", :with => 'additional metadata' do + # end + # + # it "does something" do |ex| + # # ex is the Example object that contains metadata about the example + # end + # @overload it + # @overload it + # @overload it + # @overload it + # @yield [Example] the example object + # + # source://rspec-core//lib/rspec/core/example_group.rb#146 + def it(*all_args, &block); end + + # source://rspec-core//lib/rspec/core/example_group.rb#318 + def it_behaves_like(name, *args, &customization_block); end + + # source://rspec-core//lib/rspec/core/example_group.rb#318 + def it_should_behave_like(name, *args, &customization_block); end + + # source://rspec-core//lib/rspec/core/example_group.rb#78 + def location; end + + # The [Metadata](Metadata) object associated with this group. + # + # @see Metadata + # + # source://rspec-core//lib/rspec/core/example_group.rb#51 + def metadata; end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#485 + def next_runnable_index_for(file); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#625 + def ordering_strategy; end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#508 + def parent_groups; end + + # Shortcut to define an example with `:pending => true` + # + # @example + # pending do + # end + # + # pending "does something" do + # end + # + # pending "does something", :slow, :uses_js do + # end + # + # pending "does something", :with => 'additional metadata' do + # end + # + # pending "does something" do |ex| + # # ex is the Example object that contains metadata about the example + # end + # @overload pending + # @overload pending + # @overload pending + # @overload pending + # @see example + # @yield [Example] the example object + # + # source://rspec-core//lib/rspec/core/example_group.rb#146 + def pending(*all_args, &block); end + + # Removes an example from the example group + # + # source://rspec-core//lib/rspec/core/example_group.rb#373 + def remove_example(example); end + + # Clear memoized values when adding/removing examples + # + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#359 + def reset_memoized; end + + # Runs all the examples in this group. + # + # source://rspec-core//lib/rspec/core/example_group.rb#599 + def run(reporter = T.unsafe(nil)); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#585 + def run_after_context_hooks(example_group_instance); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#547 + def run_before_context_hooks(example_group_instance); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#641 + def run_examples(reporter); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#410 + def set_it_up(description, args, registration_collection, &example_group_block); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#685 + def set_ivars(instance, ivars); end + + # Shortcut to define an example with `:skip => true` + # + # @example + # skip do + # end + # + # skip "does something" do + # end + # + # skip "does something", :slow, :uses_js do + # end + # + # skip "does something", :with => 'additional metadata' do + # end + # + # skip "does something" do |ex| + # # ex is the Example object that contains metadata about the example + # end + # @overload skip + # @overload skip + # @overload skip + # @overload skip + # @see example + # @yield [Example] the example object + # + # source://rspec-core//lib/rspec/core/example_group.rb#146 + def skip(*all_args, &block); end + + # Defines an example within a group. + # Useful for when your docstring does not read well off of `it`. + # + # @example + # RSpec.describe MyClass do + # specify "#do_something is deprecated" do + # # ... + # end + # end + # @example + # specify do + # end + # + # specify "does something" do + # end + # + # specify "does something", :slow, :uses_js do + # end + # + # specify "does something", :with => 'additional metadata' do + # end + # + # specify "does something" do |ex| + # # ex is the Example object that contains metadata about the example + # end + # @overload specify + # @overload specify + # @overload specify + # @overload specify + # @yield [Example] the example object + # + # source://rspec-core//lib/rspec/core/example_group.rb#146 + def specify(*all_args, &block); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#534 + def store_before_context_ivars(example_group_instance); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#395 + def subclass(parent, description, args, registration_collection, &example_group_block); end + + # :nocov: + # + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#562 + def superclass_before_context_ivars; end + + # @private + # @return [Metadata] belonging to the parent of a nested {ExampleGroup} + # + # source://rspec-core//lib/rspec/core/example_group.rb#71 + def superclass_metadata; end + + # @private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/example_group.rb#513 + def top_level?; end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#680 + def top_level_description; end + + # Traverses the tree of groups, starting with `self`, then the children, recursively. + # Halts the traversal of a branch of the tree as soon as the passed block returns true. + # Note that siblings groups and their sub-trees will continue to be explored. + # This is intended to make it easy to find the top-most group that satisfies some + # condition. + # + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#476 + def traverse_tree_until(&block); end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#727 + def update_inherited_metadata(updates); end + + # Temporarily replace the provided metadata. + # Intended primarily to allow an example group's singleton class + # to return the metadata of the example that it exists for. This + # is necessary for shared example group inclusion to work properly + # with singleton example groups. + # + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#61 + def with_replaced_metadata(meta); end + + # source://rspec-core//lib/rspec/core/example_group.rb#247 + def xcontext(*args, &example_group_block); end + + # source://rspec-core//lib/rspec/core/example_group.rb#247 + def xdescribe(*args, &example_group_block); end + + # Shortcut to define an example with `:skip => 'Temporarily skipped with xexample'`. + # + # @example + # xexample do + # end + # + # xexample "does something" do + # end + # + # xexample "does something", :slow, :uses_js do + # end + # + # xexample "does something", :with => 'additional metadata' do + # end + # + # xexample "does something" do |ex| + # # ex is the Example object that contains metadata about the example + # end + # @overload xexample + # @overload xexample + # @overload xexample + # @overload xexample + # @see example + # @yield [Example] the example object + # + # source://rspec-core//lib/rspec/core/example_group.rb#146 + def xexample(*all_args, &block); end + + # Shortcut to define an example with `:skip => 'Temporarily skipped with xit'`. + # + # @example + # xit do + # end + # + # xit "does something" do + # end + # + # xit "does something", :slow, :uses_js do + # end + # + # xit "does something", :with => 'additional metadata' do + # end + # + # xit "does something" do |ex| + # # ex is the Example object that contains metadata about the example + # end + # @overload xit + # @overload xit + # @overload xit + # @overload xit + # @see example + # @yield [Example] the example object + # + # source://rspec-core//lib/rspec/core/example_group.rb#146 + def xit(*all_args, &block); end + + # Shortcut to define an example with `:skip => 'Temporarily skipped with xspecify'`. + # + # @example + # xspecify do + # end + # + # xspecify "does something" do + # end + # + # xspecify "does something", :slow, :uses_js do + # end + # + # xspecify "does something", :with => 'additional metadata' do + # end + # + # xspecify "does something" do |ex| + # # ex is the Example object that contains metadata about the example + # end + # @overload xspecify + # @overload xspecify + # @overload xspecify + # @overload xspecify + # @see example + # @yield [Example] the example object + # + # source://rspec-core//lib/rspec/core/example_group.rb#146 + def xspecify(*all_args, &block); end + + private + + # source://rspec-core//lib/rspec/core/example_group.rb#742 + def method_missing(name, *args); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/example_group.rb#696 +RSpec::Core::ExampleGroup::INSTANCE_VARIABLE_TO_IGNORE = T.let(T.unsafe(nil), Symbol) + +# Raised when an RSpec API is called in the wrong scope, such as `before` +# being called from within an example rather than from within an example +# group block. +# +# source://rspec-core//lib/rspec/core/example_group.rb#740 +class RSpec::Core::ExampleGroup::WrongScopeError < ::NoMethodError; end + +# Dumps a list of hashes in a pretty, human readable format +# for later parsing. The hashes are expected to have symbol +# keys and string values, and each hash should have the same +# set of keys. +# +# @private +# +# source://rspec-core//lib/rspec/core/example_status_persister.rb#143 +class RSpec::Core::ExampleStatusDumper + # @return [ExampleStatusDumper] a new instance of ExampleStatusDumper + # + # source://rspec-core//lib/rspec/core/example_status_persister.rb#148 + def initialize(examples); end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#152 + def dump; end + + private + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#188 + def column_widths; end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#159 + def formatted_header_rows; end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#176 + def formatted_row_from(row_values); end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#166 + def formatted_value_rows; end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#184 + def headers; end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#172 + def rows; end + + class << self + # source://rspec-core//lib/rspec/core/example_status_persister.rb#144 + def dump(examples); end + end +end + +# Merges together a list of example statuses from this run +# and a list from previous runs (presumably loaded from disk). +# Each example status object is expected to be a hash with +# at least an `:example_id` and a `:status` key. Examples that +# were loaded but not executed (due to filtering, `--fail-fast` +# or whatever) should have a `:status` of `UNKNOWN_STATUS`. +# +# This will produce a new list that: +# - Will be missing examples from previous runs that we know for sure +# no longer exist. +# - Will have the latest known status for any examples that either +# definitively do exist or may still exist. +# - Is sorted by file name and example definition order, so that +# the saved file is easily scannable if users want to inspect it. +# +# @private +# +# source://rspec-core//lib/rspec/core/example_status_persister.rb#74 +class RSpec::Core::ExampleStatusMerger + # @return [ExampleStatusMerger] a new instance of ExampleStatusMerger + # + # source://rspec-core//lib/rspec/core/example_status_persister.rb#79 + def initialize(this_run, from_previous_runs); end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#85 + def merge; end + + private + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#102 + def delete_previous_examples_that_no_longer_exist; end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/example_status_persister.rb#108 + def example_must_no_longer_exist?(ex_id); end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#95 + def hash_from(example_list); end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#124 + def loaded_spec_files; end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#132 + def sort_value_from(example); end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#128 + def spec_file_from(ex_id); end + + class << self + # source://rspec-core//lib/rspec/core/example_status_persister.rb#75 + def merge(this_run, from_previous_runs); end + end +end + +# Parses a string that has been previously dumped by ExampleStatusDumper. +# Note that this parser is a bit naive in that it does a simple split on +# "\n" and " | ", with no concern for handling escaping. For now, that's +# OK because the values we plan to persist (example id, status, and perhaps +# example duration) are highly unlikely to contain "\n" or " | " -- after +# all, who puts those in file names? +# +# @private +# +# source://rspec-core//lib/rspec/core/example_status_persister.rb#207 +class RSpec::Core::ExampleStatusParser + # @return [ExampleStatusParser] a new instance of ExampleStatusParser + # + # source://rspec-core//lib/rspec/core/example_status_persister.rb#212 + def initialize(string); end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#216 + def parse; end + + private + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#226 + def headers; end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#222 + def parse_row(line); end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#230 + def split_line(line); end + + class << self + # source://rspec-core//lib/rspec/core/example_status_persister.rb#208 + def parse(string); end + end +end + +# Persists example ids and their statuses so that we can filter +# to just the ones that failed the last time they ran. +# +# @private +# +# source://rspec-core//lib/rspec/core/example_status_persister.rb#8 +class RSpec::Core::ExampleStatusPersister + # @return [ExampleStatusPersister] a new instance of ExampleStatusPersister + # + # source://rspec-core//lib/rspec/core/example_status_persister.rb#18 + def initialize(examples, file_name); end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#23 + def persist; end + + private + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#40 + def dump_statuses(unparsed_previous_runs); end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#46 + def statuses_from_this_run; end + + class << self + # source://rspec-core//lib/rspec/core/example_status_persister.rb#9 + def load_from(file_name); end + + # source://rspec-core//lib/rspec/core/example_status_persister.rb#14 + def persist(examples, file_name); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/filter_manager.rb#183 +RSpec::Core::ExclusionRules = RSpec::Core::FilterRules + +# @private +# +# source://rspec-core//lib/rspec/core/filter_manager.rb#4 +class RSpec::Core::FilterManager + # @return [FilterManager] a new instance of FilterManager + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#7 + def initialize; end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#22 + def add_ids(rerun_path, scoped_ids); end + + # @api private + # @param file_path [String] + # @param line_numbers [Array] + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#15 + def add_location(file_path, line_numbers); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#30 + def empty?; end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#57 + def exclude(*args); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#61 + def exclude_only(*args); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#65 + def exclude_with_low_priority(*args); end + + # Returns the value of attribute exclusions. + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#5 + def exclusions; end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#69 + def include(*args); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#73 + def include_only(*args); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#77 + def include_with_low_priority(*args); end + + # Returns the value of attribute inclusions. + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#5 + def inclusions; end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#34 + def prune(examples); end + + private + + # source://rspec-core//lib/rspec/core/filter_manager.rb#83 + def add_path_to_arrays_filter(filter_key, path, values); end + + # When a user specifies a particular spec location, that takes priority + # over any exclusion filters (such as if the spec is tagged with `:slow` + # and there is a `:slow => true` exclusion filter), but only for specs + # defined in the same file as the location filters. Excluded specs in + # other files should still be excluded. + # + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#101 + def file_scoped_include?(ex_metadata, ids, locations); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#89 + def prune_conditionally_filtered_examples(examples); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/filter_manager.rb#115 +class RSpec::Core::FilterRules + # @return [FilterRules] a new instance of FilterRules + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#130 + def initialize(rules = T.unsafe(nil)); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#161 + def [](key); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#134 + def add(updated); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#138 + def add_with_low_priority(updated); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#149 + def clear; end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#153 + def delete(key); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#173 + def description; end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#169 + def each_pair(&block); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#165 + def empty?; end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#157 + def fetch(*args, &block); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#177 + def include_example?(example); end + + # Returns the value of attribute opposite. + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#119 + def opposite; end + + # Sets the attribute opposite + # + # @param value the value to set the attribute opposite to. + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#119 + def opposite=(_arg0); end + + # Returns the value of attribute rules. + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#120 + def rules; end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#144 + def use_only(updated); end + + class << self + # source://rspec-core//lib/rspec/core/filter_manager.rb#122 + def build; end + end +end + +# source://rspec-core//lib/rspec/core/filter_manager.rb#116 +RSpec::Core::FilterRules::PROC_HEX_NUMBER = T.let(T.unsafe(nil), Regexp) + +# source://rspec-core//lib/rspec/core/filter_manager.rb#117 +RSpec::Core::FilterRules::PROJECT_DIR = T.let(T.unsafe(nil), String) + +# Tracks a collection of filterable items (e.g. modules, hooks, etc) +# and provides an optimized API to get the applicable items for the +# metadata of an example or example group. +# +# There are two implementations, optimized for different uses. +# +# @private +# +# source://rspec-core//lib/rspec/core/metadata_filter.rb#87 +module RSpec::Core::FilterableItemRepository; end + +# This implementation is much more complex, and is optimized for +# rare (or hopefully no) updates once the queries start. Updates +# incur a cost as it has to clear the memoization and keep track +# of applicable keys. Queries will be O(N) the first time an item +# is provided with a given set of applicable metadata; subsequent +# queries with items with the same set of applicable metadata will +# be O(1) due to internal memoization. +# +# This is ideal for use by config, where filterable items (e.g. hooks) +# are typically added at the start of the process (e.g. in `spec_helper`) +# and then repeatedly queried as example groups and examples are defined. +# +# @private +# +# source://rspec-core//lib/rspec/core/metadata_filter.rb#151 +class RSpec::Core::FilterableItemRepository::QueryOptimized < ::RSpec::Core::FilterableItemRepository::UpdateOptimized + # @return [QueryOptimized] a new instance of QueryOptimized + # + # source://rspec-core//lib/rspec/core/metadata_filter.rb#155 + def initialize(applies_predicate); end + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#164 + def append(item, metadata); end + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#174 + def delete(item, metadata); end + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#179 + def items_for(metadata); end + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#169 + def prepend(item, metadata); end + + private + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#217 + def applicable_metadata_from(metadata); end + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#118 + def find_items_for(request_meta); end + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#211 + def handle_mutation(metadata); end + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#235 + def proc_keys_from(metadata); end + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#203 + def reconstruct_caches; end +end + +# This implementation is simple, and is optimized for frequent +# updates but rare queries. `append` and `prepend` do no extra +# processing, and no internal memoization is done, since this +# is not optimized for queries. +# +# This is ideal for use by a example or example group, which may +# be updated multiple times with globally configured hooks, etc, +# but will not be queried frequently by other examples or example +# groups. +# +# @private +# +# source://rspec-core//lib/rspec/core/metadata_filter.rb#98 +class RSpec::Core::FilterableItemRepository::UpdateOptimized + # @return [UpdateOptimized] a new instance of UpdateOptimized + # + # source://rspec-core//lib/rspec/core/metadata_filter.rb#101 + def initialize(applies_predicate); end + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#106 + def append(item, metadata); end + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#114 + def delete(item, metadata); end + + # Returns the value of attribute items_and_filters. + # + # source://rspec-core//lib/rspec/core/metadata_filter.rb#99 + def items_and_filters; end + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#118 + def items_for(request_meta); end + + # source://rspec-core//lib/rspec/core/metadata_filter.rb#110 + def prepend(item, metadata); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/flat_map.rb#4 +module RSpec::Core::FlatMap + private + + # :nocov: + # + # source://rspec-core//lib/rspec/core/flat_map.rb#6 + def flat_map(array, &block); end + + class << self + # :nocov: + # + # source://rspec-core//lib/rspec/core/flat_map.rb#6 + def flat_map(array, &block); end + end +end + +# ## Built-in Formatters +# +# * progress (default) - Prints dots for passing examples, `F` for failures, `*` +# for pending. +# * documentation - Prints the docstrings passed to `describe` and `it` methods +# (and their aliases). +# * html +# * json - Useful for archiving data for subsequent analysis. +# +# The progress formatter is the default, but you can choose any one or more of +# the other formatters by passing with the `--format` (or `-f` for short) +# command-line option, e.g. +# +# rspec --format documentation +# +# You can also send the output of multiple formatters to different streams, e.g. +# +# rspec --format documentation --format html --out results.html +# +# This example sends the output of the documentation formatter to `$stdout`, and +# the output of the html formatter to results.html. +# +# ## Custom Formatters +# +# You can tell RSpec to use a custom formatter by passing its path and name to +# the `rspec` command. For example, if you define MyCustomFormatter in +# path/to/my_custom_formatter.rb, you would type this command: +# +# rspec --require path/to/my_custom_formatter.rb --format MyCustomFormatter +# +# The reporter calls every formatter with this protocol: +# +# * To start +# * `start(StartNotification)` +# * Once per example group +# * `example_group_started(GroupNotification)` +# * Once per example +# * `example_started(ExampleNotification)` +# * One of these per example, depending on outcome +# * `example_passed(ExampleNotification)` +# * `example_failed(FailedExampleNotification)` +# * `example_pending(ExampleNotification)` +# * Optionally at any time +# * `message(MessageNotification)` +# * At the end of the suite +# * `stop(ExamplesNotification)` +# * `start_dump(NullNotification)` +# * `dump_pending(ExamplesNotification)` +# * `dump_failures(ExamplesNotification)` +# * `dump_summary(SummaryNotification)` +# * `seed(SeedNotification)` +# * `close(NullNotification)` +# +# Only the notifications to which you subscribe your formatter will be called +# on your formatter. To subscribe your formatter use: +# `RSpec::Core::Formatters#register` e.g. +# +# `RSpec::Core::Formatters.register FormatterClassName, :example_passed, :example_failed` +# +# We recommend you implement the methods yourself; for simplicity we provide the +# default formatter output via our notification objects but if you prefer you +# can subclass `RSpec::Core::Formatters::BaseTextFormatter` and override the +# methods you wish to enhance. +# +# @see RSpec::Core::Formatters::BaseTextFormatter +# @see RSpec::Core::Reporter +# +# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#3 +module RSpec::Core::Formatters + class << self + # Register the formatter class + # + # @param formatter_class [Class] formatter class to register + # @param notifications [Array] one or more notifications to be + # registered to the specified formatter + # @see RSpec::Core::Formatters::BaseFormatter + # + # source://rspec-core//lib/rspec/core/formatters.rb#86 + def register(formatter_class, *notifications); end + end +end + +# Contains common logic for formatters used by `--bisect` to communicate results +# back to the bisect runner. +# +# Subclasses must define a `notify_results(all_example_ids, failed_example_ids)` +# method. +# +# @private +# +# source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#12 +class RSpec::Core::Formatters::BaseBisectFormatter + # @return [BaseBisectFormatter] a new instance of BaseBisectFormatter + # + # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#17 + def initialize(expected_failures); end + + # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#23 + def example_failed(notification); end + + # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#27 + def example_finished(notification); end + + # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#37 + def start_dump(_notification); end + + class << self + # @private + # + # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#13 + def inherited(formatter); end + end +end + +# RSpec's built-in formatters are all subclasses of +# RSpec::Core::Formatters::BaseFormatter. +# +# @see RSpec::Core::Formatters::BaseTextFormatter +# @see RSpec::Core::Reporter +# @see RSpec::Core::Formatters::Protocol +# +# source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#13 +class RSpec::Core::Formatters::BaseFormatter + # @api public + # @param output [IO] the formatter output + # @return [BaseFormatter] a new instance of BaseFormatter + # @see RSpec::Core::Formatters::Protocol#initialize + # + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#23 + def initialize(output); end + + # @api public + # @param _notification [NullNotification] (Ignored) + # @see RSpec::Core::Formatters::Protocol#close + # + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#50 + def close(_notification); end + + # Returns the value of attribute example_group. + # + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#17 + def example_group; end + + # Sets the attribute example_group + # + # @param value the value to set the attribute example_group to. + # + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#17 + def example_group=(_arg0); end + + # @api public + # @param notification [GroupNotification] containing example_group + # subclass of `RSpec::Core::ExampleGroup` + # @see RSpec::Core::Formatters::Protocol#example_group_started + # + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#42 + def example_group_started(notification); end + + # Returns the value of attribute output. + # + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#18 + def output; end + + # @api public + # @param notification [StartNotification] + # @see RSpec::Core::Formatters::Protocol#start + # + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#32 + def start(notification); end + + private + + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#64 + def output_supports_sync; end + + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#60 + def restore_sync_output; end + + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#56 + def start_sync_output; end +end + +# Base for all of RSpec's built-in formatters. See +# RSpec::Core::Formatters::BaseFormatter to learn more about all of the +# methods called by the reporter. +# +# @see RSpec::Core::Formatters::BaseFormatter +# @see RSpec::Core::Reporter +# +# source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#12 +class RSpec::Core::Formatters::BaseTextFormatter < ::RSpec::Core::Formatters::BaseFormatter + # Invoked at the end of a suite run. Allows the formatter to do any + # tidying up, but be aware that formatter output streams may be used + # elsewhere so don't actually close them. + # + # @api public + # @param _notification [NullNotification] (Ignored) + # + # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#65 + def close(_notification); end + + # Dumps detailed information about each example failure. + # + # @api public + # @param notification [NullNotification] + # + # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#30 + def dump_failures(notification); end + + # @private + # + # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#47 + def dump_pending(notification); end + + # This method is invoked after the dumping of examples and failures. + # Each parameter is assigned to a corresponding attribute. + # + # @api public + # @param summary [SummaryNotification] containing duration, + # example_count, failure_count and pending_count + # + # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#42 + def dump_summary(summary); end + + # Used by the reporter to send messages to the output stream. + # + # @api public + # @param notification [MessageNotification] containing message + # + # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#21 + def message(notification); end + + # @private + # + # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#53 + def seed(notification); end +end + +# Used by `--bisect`. When it shells out and runs a portion of the suite, it uses +# this formatter as a means to have the status reported back to it, via DRb. +# +# Note that since DRb calls carry considerable overhead compared to normal +# method calls, we try to minimize the number of DRb calls for perf reasons, +# opting to communicate only at the start and the end of the run, rather than +# after each example. +# +# @private +# +# source://rspec-core//lib/rspec/core/formatters/bisect_drb_formatter.rb#15 +class RSpec::Core::Formatters::BisectDRbFormatter < ::RSpec::Core::Formatters::BaseBisectFormatter + # @return [BisectDRbFormatter] a new instance of BisectDRbFormatter + # + # source://rspec-core//lib/rspec/core/formatters/bisect_drb_formatter.rb#16 + def initialize(_output); end + + # source://rspec-core//lib/rspec/core/formatters/bisect_drb_formatter.rb#23 + def notify_results(results); end +end + +# ConsoleCodes provides helpers for formatting console output +# with ANSI codes, e.g. color's and bold. +# +# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#6 +module RSpec::Core::Formatters::ConsoleCodes + private + + # @private + # + # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#34 + def config_colors_to_methods; end + + # Fetches the correct code for the supplied symbol, or checks + # that a code is valid. Defaults to white (37). + # + # @param code_or_symbol [Symbol, Fixnum] Symbol or code to check + # @return [Fixnum] a console code + # + # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#47 + def console_code_for(code_or_symbol); end + + # Wraps a piece of text in ANSI codes with the supplied code. Will + # only apply the control code if `RSpec.configuration.color_enabled?` + # returns true. + # + # @param text [String] the text to wrap + # @param code_or_symbol [Symbol, Fixnum] the desired control code + # @return [String] the wrapped text + # + # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#66 + def wrap(text, code_or_symbol); end + + class << self + # @private + # + # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#34 + def config_colors_to_methods; end + + # Fetches the correct code for the supplied symbol, or checks + # that a code is valid. Defaults to white (37). + # + # @param code_or_symbol [Symbol, Fixnum] Symbol or code to check + # @return [Fixnum] a console code + # + # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#47 + def console_code_for(code_or_symbol); end + + # Wraps a piece of text in ANSI codes with the supplied code. Will + # only apply the control code if `RSpec.configuration.color_enabled?` + # returns true. + # + # @param text [String] the text to wrap + # @param code_or_symbol [Symbol, Fixnum] the desired control code + # @return [String] the wrapped text + # + # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#66 + def wrap(text, code_or_symbol); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#8 +RSpec::Core::Formatters::ConsoleCodes::VT100_CODES = T.let(T.unsafe(nil), Hash) + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#29 +RSpec::Core::Formatters::ConsoleCodes::VT100_CODE_VALUES = T.let(T.unsafe(nil), Hash) + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#7 +class RSpec::Core::Formatters::DeprecationFormatter + # @return [DeprecationFormatter] a new instance of DeprecationFormatter + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#12 + def initialize(deprecation_stream, summary_stream); end + + # Returns the value of attribute count. + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 + def count; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#32 + def deprecation(notification); end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#44 + def deprecation_message_for(data); end + + # Returns the value of attribute deprecation_stream. + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 + def deprecation_stream; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#40 + def deprecation_summary(_notification); end + + # Returns the value of attribute deprecation_stream. + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 + def output; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#20 + def printer; end + + # Returns the value of attribute summary_stream. + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 + def summary_stream; end +end + +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#60 +RSpec::Core::Formatters::DeprecationFormatter::DEPRECATION_STREAM_NOTICE = T.let(T.unsafe(nil), String) + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#135 +class RSpec::Core::Formatters::DeprecationFormatter::DelayedPrinter + # @return [DelayedPrinter] a new instance of DelayedPrinter + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#140 + def initialize(deprecation_stream, summary_stream, deprecation_formatter); end + + # Returns the value of attribute deprecation_formatter. + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#138 + def deprecation_formatter; end + + # Returns the value of attribute deprecation_stream. + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#138 + def deprecation_stream; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#163 + def deprecation_summary; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#172 + def print_deferred_deprecation_warnings; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#148 + def print_deprecation_message(data); end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#155 + def stash_deprecation_message(deprecation_message); end + + # Returns the value of attribute summary_stream. + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#138 + def summary_stream; end +end + +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#136 +RSpec::Core::Formatters::DeprecationFormatter::DelayedPrinter::TOO_MANY_USES_LIMIT = T.let(T.unsafe(nil), Integer) + +# Wraps a File object and provides file-specific operations. +# +# @private +# +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#196 +class RSpec::Core::Formatters::DeprecationFormatter::FileStream + # @return [FileStream] a new instance of FileStream + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#197 + def initialize(file); end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#207 + def puts(*args); end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#211 + def summarize(summary_stream, deprecation_count); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#94 +class RSpec::Core::Formatters::DeprecationFormatter::GeneratedDeprecationMessage < ::Struct + # @return [GeneratedDeprecationMessage] a new instance of GeneratedDeprecationMessage + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#95 + def initialize(data); end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#100 + def to_s; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#107 + def too_many_warnings_message; end + + # Returns the value of attribute type + # + # @return [Object] the current value of type + def type; end + + # Sets the attribute type + # + # @param value [Object] the value to set the attribute type to. + # @return [Object] the newly set value + def type=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#113 +class RSpec::Core::Formatters::DeprecationFormatter::ImmediatePrinter + # @return [ImmediatePrinter] a new instance of ImmediatePrinter + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#116 + def initialize(deprecation_stream, summary_stream, deprecation_formatter); end + + # Returns the value of attribute deprecation_formatter. + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#114 + def deprecation_formatter; end + + # Returns the value of attribute deprecation_stream. + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#114 + def deprecation_stream; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#128 + def deprecation_summary; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#123 + def print_deprecation_message(data); end + + # Returns the value of attribute summary_stream. + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#114 + def summary_stream; end +end + +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#52 +RSpec::Core::Formatters::DeprecationFormatter::RAISE_ERROR_CONFIG_NOTICE = T.let(T.unsafe(nil), String) + +# Not really a stream, but is usable in place of one. +# +# @private +# +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#184 +class RSpec::Core::Formatters::DeprecationFormatter::RaiseErrorStream + # @raise [DeprecationError] + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#185 + def puts(message); end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#189 + def summarize(summary_stream, deprecation_count); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#66 +class RSpec::Core::Formatters::DeprecationFormatter::SpecifiedDeprecationMessage < ::Struct + # @return [SpecifiedDeprecationMessage] a new instance of SpecifiedDeprecationMessage + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#67 + def initialize(data); end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#72 + def to_s; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#76 + def too_many_warnings_message; end + + # Returns the value of attribute type + # + # @return [Object] the current value of type + def type; end + + # Sets the attribute type + # + # @param value [Object] the value to set the attribute type to. + # @return [Object] the newly set value + def type=(_); end + + private + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#88 + def deprecation_type_for(data); end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#82 + def output_formatted(str); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#62 +RSpec::Core::Formatters::DeprecationFormatter::TOO_MANY_WARNINGS_NOTICE = T.let(T.unsafe(nil), String) + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#8 +class RSpec::Core::Formatters::DocumentationFormatter < ::RSpec::Core::Formatters::BaseTextFormatter + # @return [DocumentationFormatter] a new instance of DocumentationFormatter + # + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#12 + def initialize(output); end + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#50 + def example_failed(failure); end + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#31 + def example_group_finished(_notification); end + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#24 + def example_group_started(notification); end + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#35 + def example_passed(passed); end + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#42 + def example_pending(pending); end + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#20 + def example_started(_notification); end + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#57 + def message(notification); end + + private + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#96 + def current_indentation(offset = T.unsafe(nil)); end + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#85 + def failure_output(example); end + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#67 + def flush_messages; end + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#91 + def next_failure_index; end + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#75 + def passed_output(example); end + + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#79 + def pending_output(example, message); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#11 +class RSpec::Core::Formatters::ExceptionPresenter + # @return [ExceptionPresenter] a new instance of ExceptionPresenter + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#16 + def initialize(exception, example, options = T.unsafe(nil)); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#78 + def colorized_formatted_backtrace(colorizer = T.unsafe(nil)); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#33 + def colorized_message_lines(colorizer = T.unsafe(nil)); end + + # Returns the value of attribute description. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 + def description; end + + # Returns the value of attribute example. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 + def example; end + + # Returns the value of attribute exception. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 + def exception; end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#39 + def formatted_backtrace(exception = T.unsafe(nil)); end + + # :nocov: + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#45 + def formatted_cause(exception); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#84 + def fully_formatted(failure_number, colorizer = T.unsafe(nil)); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#89 + def fully_formatted_lines(failure_number, colorizer); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#29 + def message_lines; end + + private + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#226 + def add_shared_group_lines(lines, colorizer); end + + # Returns the value of attribute backtrace_formatter. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 + def backtrace_formatter; end + + # Returns the value of attribute detail_formatter. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 + def detail_formatter; end + + # :nocov: + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#286 + def encoded_description(description); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#120 + def encoded_string(string); end + + # :nocov: + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#116 + def encoding_of(string); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#298 + def exception_backtrace; end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#150 + def exception_class_name(exception = T.unsafe(nil)); end + + # :nocov: + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#204 + def exception_lines; end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#185 + def exception_message_string(exception); end + + # Returns the value of attribute extra_detail_formatter. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 + def extra_detail_formatter; end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#215 + def extra_failure_lines; end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#156 + def failure_lines; end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#170 + def failure_slash_error_lines; end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#104 + def final_exception(exception, previous = T.unsafe(nil)); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#262 + def find_failed_line; end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#277 + def formatted_message_and_backtrace(colorizer); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#134 + def indent_lines(lines, failure_number); end + + # Returns the value of attribute message_color. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 + def message_color; end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#236 + def read_failed_lines; end +end + +# Configuring the `ExceptionPresenter` with the right set of options to handle +# pending vs failed vs skipped and aggregated (or not) failures is not simple. +# This class takes care of building an appropriate `ExceptionPresenter` for the +# provided example. +# +# @private +# +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#307 +class RSpec::Core::Formatters::ExceptionPresenter::Factory + # @return [Factory] a new instance of Factory + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#314 + def initialize(example); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#308 + def build; end + + private + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#369 + def multiple_exception_summarizer(exception, prior_detail_formatter, color); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#365 + def multiple_exceptions_error?(exception); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#324 + def options; end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#328 + def pending_options; end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#390 + def sub_failure_list_formatter(exception, message_color); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#349 + def with_multiple_error_options_as_needed(exception, options); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#423 +class RSpec::Core::Formatters::ExceptionPresenter::Factory::CommonBacktraceTruncater + # @return [CommonBacktraceTruncater] a new instance of CommonBacktraceTruncater + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#424 + def initialize(parent); end + + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#428 + def with_truncated_backtrace(child); end +end + +# Used to prevent a confusing backtrace from showing up from the `aggregate_failures` +# block declared for `:aggregate_failures` metadata. +# +# @private +# +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#416 +module RSpec::Core::Formatters::ExceptionPresenter::Factory::EmptyBacktraceFormatter + class << self + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#417 + def format_backtrace(*_arg0); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#448 +RSpec::Core::Formatters::ExceptionPresenter::PENDING_DETAIL_FORMATTER = T.let(T.unsafe(nil), Proc) + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/failure_list_formatter.rb#7 +class RSpec::Core::Formatters::FailureListFormatter < ::RSpec::Core::Formatters::BaseFormatter + # Discard profile and messages + # + # These outputs are not really relevant in the context of this failure + # list formatter. + # + # source://rspec-core//lib/rspec/core/formatters/failure_list_formatter.rb#18 + def dump_profile(_profile); end + + # source://rspec-core//lib/rspec/core/formatters/failure_list_formatter.rb#10 + def example_failed(failure); end + + # source://rspec-core//lib/rspec/core/formatters/failure_list_formatter.rb#19 + def message(_message); end +end + +# Formatter for providing message output as a fallback when no other +# profiler implements #message +# +# @api private +# +# source://rspec-core//lib/rspec/core/formatters/fallback_message_formatter.rb#7 +class RSpec::Core::Formatters::FallbackMessageFormatter + # @api private + # @return [FallbackMessageFormatter] a new instance of FallbackMessageFormatter + # + # source://rspec-core//lib/rspec/core/formatters/fallback_message_formatter.rb#10 + def initialize(output); end + + # Used by the reporter to send messages to the output stream. + # + # @api public + # @param notification [MessageNotification] containing message + # + # source://rspec-core//lib/rspec/core/formatters/fallback_message_formatter.rb#22 + def message(notification); end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/formatters/fallback_message_formatter.rb#15 + def output; end +end + +# Formatters helpers. +# +# source://rspec-core//lib/rspec/core/formatters/helpers.rb#7 +module RSpec::Core::Formatters::Helpers + class << self + # Formats seconds into a human-readable string. + # + # @api private + # @example + # format_duration(1) #=> "1 minute 1 second" + # format_duration(135.14) #=> "2 minutes 15.14 seconds" + # @param duration [Float, Fixnum] in seconds + # @return [String] human-readable time + # + # source://rspec-core//lib/rspec/core/formatters/helpers.rb#24 + def format_duration(duration); end + + # Formats seconds to have 5 digits of precision with trailing zeros + # removed if the number is less than 1 or with 2 digits of precision if + # the number is greater than zero. + # + # The precision used is set in {Helpers::SUB_SECOND_PRECISION} and + # {Helpers::DEFAULT_PRECISION}. + # + # @api private + # @example + # format_seconds(0.000006) #=> "0.00001" + # format_seconds(0.020000) #=> "0.02" + # format_seconds(1.00000000001) #=> "1" + # @param float [Float] + # @return [String] formatted float + # @see #strip_trailing_zeroes + # + # source://rspec-core//lib/rspec/core/formatters/helpers.rb#60 + def format_seconds(float, precision = T.unsafe(nil)); end + + # Given a list of example ids, organizes them into a compact, ordered list. + # + # @api private + # + # source://rspec-core//lib/rspec/core/formatters/helpers.rb#102 + def organize_ids(ids); end + + # Pluralize a word based on a count. + # + # @api private + # @param count [Fixnum] number of objects + # @param string [String] word to be pluralized + # @return [String] pluralized word + # + # source://rspec-core//lib/rspec/core/formatters/helpers.rb#88 + def pluralize(count, string); end + + private + + # Remove trailing zeros from a string. + # + # Only remove trailing zeros after a decimal place. + # see: http://rubular.com/r/ojtTydOgpn + # + # @api private + # @param string [String] string with trailing zeros + # @return [String] string with trailing zeros removed + # + # source://rspec-core//lib/rspec/core/formatters/helpers.rb#76 + def strip_trailing_zeroes(string); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/helpers.rb#12 +RSpec::Core::Formatters::Helpers::DEFAULT_PRECISION = T.let(T.unsafe(nil), Integer) + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/helpers.rb#9 +RSpec::Core::Formatters::Helpers::SUB_SECOND_PRECISION = T.let(T.unsafe(nil), Integer) + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#8 +class RSpec::Core::Formatters::HtmlFormatter < ::RSpec::Core::Formatters::BaseFormatter + # @return [HtmlFormatter] a new instance of HtmlFormatter + # + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#13 + def initialize(output); end + + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#103 + def dump_summary(summary); end + + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#55 + def example_failed(failure); end + + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#28 + def example_group_started(notification); end + + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#49 + def example_passed(passed); end + + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#93 + def example_pending(pending); end + + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#45 + def example_started(_notification); end + + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#22 + def start(notification); end + + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#40 + def start_dump(_notification); end + + private + + # The number of the currently running example_group. + # + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#120 + def example_group_number; end + + # The number of the currently running example (a global counter). + # + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#125 + def example_number; end + + # Override this method if you wish to output extra HTML for a failed + # spec. For example, you could output links to images or other files + # produced during the specs. + # + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#141 + def extra_failure_content(failure); end + + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#130 + def percent_done; end +end + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#7 +class RSpec::Core::Formatters::HtmlPrinter + include ::ERB::Escape + include ::ERB::Util + + # @return [HtmlPrinter] a new instance of HtmlPrinter + # + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#9 + def initialize(output); end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#79 + def flush; end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#96 + def make_example_group_header_red(group_id); end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#103 + def make_example_group_header_yellow(group_id); end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#88 + def make_header_red; end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#92 + def make_header_yellow; end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#83 + def move_progress(percent_done); end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#36 + def print_example_failed(pending_fixed, description, run_time, failure_id, exception, extra_content); end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#18 + def print_example_group_end; end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#23 + def print_example_group_start(group_id, description, number_of_parents); end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#29 + def print_example_passed(description, run_time); end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#53 + def print_example_pending(description, pending_message); end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#13 + def print_html_start; end + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#59 + def print_summary(duration, example_count, failure_count, pending_count); end + + private + + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#112 + def indentation_style(number_of_parents); end +end + +# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#140 +RSpec::Core::Formatters::HtmlPrinter::GLOBAL_SCRIPTS = T.let(T.unsafe(nil), String) + +# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#218 +RSpec::Core::Formatters::HtmlPrinter::GLOBAL_STYLES = T.let(T.unsafe(nil), String) + +# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#382 +RSpec::Core::Formatters::HtmlPrinter::HTML_HEADER = T.let(T.unsafe(nil), String) + +# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#116 +RSpec::Core::Formatters::HtmlPrinter::REPORT_HEADER = T.let(T.unsafe(nil), String) + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#8 +class RSpec::Core::Formatters::JsonFormatter < ::RSpec::Core::Formatters::BaseFormatter + # @return [JsonFormatter] a new instance of JsonFormatter + # + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#13 + def initialize(output); end + + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#56 + def close(_notification); end + + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#60 + def dump_profile(profile); end + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#79 + def dump_profile_slowest_example_groups(profile); end + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#67 + def dump_profile_slowest_examples(profile); end + + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#24 + def dump_summary(summary); end + + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#20 + def message(notification); end + + # Returns the value of attribute output_hash. + # + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#11 + def output_hash; end + + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#51 + def seed(notification); end + + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#35 + def stop(group_notification); end + + private + + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#88 + def format_example(example); end +end + +# `RSpec::Core::Formatters::Loader` is an internal class for +# managing formatters used by a particular configuration. It is +# not expected to be used directly, but only through the configuration +# interface. +# +# @api private +# +# source://rspec-core//lib/rspec/core/formatters.rb#96 +class RSpec::Core::Formatters::Loader + # @api private + # @return [Loader] a new instance of Loader + # + # source://rspec-core//lib/rspec/core/formatters.rb#105 + def initialize(reporter); end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/formatters.rb#144 + def add(formatter_to_use, *paths); end + + # @api private + # @return [String] the default formatter to setup, defaults to `progress` + # + # source://rspec-core//lib/rspec/core/formatters.rb#118 + def default_formatter; end + + # @api private + # @return [String] the default formatter to setup, defaults to `progress` + # + # source://rspec-core//lib/rspec/core/formatters.rb#118 + def default_formatter=(_arg0); end + + # @api private + # @return [Array] the loaded formatters + # + # source://rspec-core//lib/rspec/core/formatters.rb#112 + def formatters; end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/formatters.rb#121 + def prepare_default(output_stream, deprecation_stream); end + + # @api private + # @return [Reporter] the reporter + # + # source://rspec-core//lib/rspec/core/formatters.rb#115 + def reporter; end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/formatters.rb#126 + def setup_default(output_stream, deprecation_stream); end + + private + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters.rb#211 + def built_in_formatter(key); end + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters.rb#234 + def custom_formatter(formatter_ref); end + + # @api private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/formatters.rb#195 + def duplicate_formatter_exists?(new_formatter); end + + # @api private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/formatters.rb#207 + def existing_formatter_implements?(notification); end + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters.rb#181 + def find_formatter(formatter_to_use); end + + # @api private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/formatters.rb#202 + def has_matching_output?(formatter, new_formatter); end + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters.rb#228 + def notifications_for(formatter_class); end + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters.rb#269 + def open_stream(path_or_wrapper); end + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters.rb#250 + def path_for(const_ref); end + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters.rb#188 + def register(formatter, notifications); end + + # @api private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/formatters.rb#246 + def string_const?(str); end + + # activesupport/lib/active_support/inflector/methods.rb, line 48 + # + # @api private + # + # source://rspec-core//lib/rspec/core/formatters.rb#259 + def underscore(camel_cased_word); end + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters.rb#254 + def underscore_with_fix_for_non_standard_rspec_naming(string); end + + class << self + # Internal formatters are stored here when loaded. + # + # @api private + # + # source://rspec-core//lib/rspec/core/formatters.rb#100 + def formatters; end + end +end + +# Formatter for providing profile output. +# +# @api private +# +# source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#8 +class RSpec::Core::Formatters::ProfileFormatter + # @api private + # @return [ProfileFormatter] a new instance of ProfileFormatter + # + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#11 + def initialize(output); end + + # This method is invoked after the dumping the summary if profiling is + # enabled. + # + # @api public + # @param profile [ProfileNotification] containing duration, + # slowest_examples and slowest_example_groups + # + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#25 + def dump_profile(profile); end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#16 + def output; end + + private + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#62 + def bold(text); end + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#44 + def dump_profile_slowest_example_groups(profile); end + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#32 + def dump_profile_slowest_examples(profile); end + + # @api private + # + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#57 + def format_caller(caller_info); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#8 +class RSpec::Core::Formatters::ProgressFormatter < ::RSpec::Core::Formatters::BaseTextFormatter + # source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#19 + def example_failed(_notification); end + + # source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#11 + def example_passed(_notification); end + + # source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#15 + def example_pending(_notification); end + + # source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#23 + def start_dump(_notification); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#5 +class RSpec::Core::Formatters::SnippetExtractor + # @return [SnippetExtractor] a new instance of SnippetExtractor + # + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#35 + def initialize(source, beginning_line_number, max_line_count = T.unsafe(nil)); end + + # Returns the value of attribute beginning_line_number. + # + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#24 + def beginning_line_number; end + + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#41 + def expression_lines; end + + # Returns the value of attribute max_line_count. + # + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#24 + def max_line_count; end + + # Returns the value of attribute source. + # + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#24 + def source; end + + private + + # @raise [NoExpressionAtLineError] + # + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#95 + def expression_node; end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#107 + def expression_outmost_node?(node); end + + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#55 + def line_range_of_expression; end + + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#87 + def line_range_of_location_nodes_in_expression; end + + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#117 + def location_nodes_at_beginning_line; end + + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#70 + def unclosed_tokens_in_line_range(line_range); end + + class << self + # :nocov: + # + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#26 + def extract_expression_lines_at(file_path, beginning_line_number, max_line_count = T.unsafe(nil)); end + + # @raise [NoSuchLineError] + # + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#9 + def extract_line_at(file_path, line_number); end + + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#128 + def least_indentation_from(lines); end + + # @raise [NoSuchFileError] + # + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#16 + def source_from_file(path); end + end +end + +# source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#22 +class RSpec::Core::Formatters::SnippetExtractor::NoExpressionAtLineError < ::StandardError; end + +# source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#6 +class RSpec::Core::Formatters::SnippetExtractor::NoSuchFileError < ::StandardError; end + +# source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#7 +class RSpec::Core::Formatters::SnippetExtractor::NoSuchLineError < ::StandardError; end + +# Provides terminal syntax highlighting of code snippets +# when coderay is available. +# +# @private +# +# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#7 +class RSpec::Core::Formatters::SyntaxHighlighter + # @return [SyntaxHighlighter] a new instance of SyntaxHighlighter + # + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#8 + def initialize(configuration); end + + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#12 + def highlight(lines); end + + private + + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#50 + def color_enabled_implementation; end + + # :nocov: + # + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#44 + def implementation; end + + class << self + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#18 + def attempt_to_add_rspec_terms_to_coderay_keywords; end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#61 +module RSpec::Core::Formatters::SyntaxHighlighter::CodeRayImplementation + class << self + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#64 + def highlight_syntax(lines); end + end +end + +# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#62 +RSpec::Core::Formatters::SyntaxHighlighter::CodeRayImplementation::RESET_CODE = T.let(T.unsafe(nil), String) + +# @private +# +# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#78 +module RSpec::Core::Formatters::SyntaxHighlighter::NoSyntaxHighlightingImplementation + class << self + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#79 + def highlight_syntax(lines); end + end +end + +# Not sure why, but our code above (and/or coderay itself) does not work +# on Windows, so we disable the feature on Windows. +# +# @private +# +# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#87 +RSpec::Core::Formatters::SyntaxHighlighter::WindowsImplementation = RSpec::Core::Formatters::SyntaxHighlighter::NoSyntaxHighlightingImplementation + +# Mixin that makes the including class imitate a hash for backwards +# compatibility. The including class should use `attr_accessor` to +# declare attributes. +# +# @private +# +# source://rspec-core//lib/rspec/core/metadata.rb#349 +module RSpec::Core::HashImitatable + mixes_in_class_methods ::RSpec::Core::HashImitatable::ClassMethods + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def <(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def <=(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def >(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def >=(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#388 + def [](key); end + + # source://rspec-core//lib/rspec/core/metadata.rb#398 + def []=(key, value); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def all?(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def any?(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def assoc(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def chain(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def chunk(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def chunk_while(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def clear(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def collect(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def collect_concat(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def compact(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def compact!(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def compare_by_identity(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def compare_by_identity?(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def count(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def cycle(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def deconstruct_keys(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def default(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def default=(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def default_proc(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def default_proc=(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def delete(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def delete_if(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def detect(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def dig(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def drop(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def drop_while(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def each(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def each_cons(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def each_entry(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def each_key(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def each_pair(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def each_slice(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def each_value(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def each_with_index(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def each_with_object(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def empty?(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def entries(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def except(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def fetch(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def fetch_values(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def filter(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def filter!(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def filter_map(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def find(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def find_all(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def find_index(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def first(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def flat_map(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def flatten(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def grep(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def grep_v(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def group_by(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def has_key?(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def has_value?(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def include?(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def inject(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def invert(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def keep_if(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def key(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def key?(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def keys(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def lazy(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def length(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def map(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def max(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def max_by(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def member?(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def merge(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def merge!(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def min(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def min_by(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def minmax(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def minmax_by(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def none?(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def one?(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def partition(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def rassoc(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def reduce(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def rehash(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def reject(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def reject!(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def replace(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def reverse_each(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def select(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def select!(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def shift(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def size(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def slice(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def slice_after(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def slice_before(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def slice_when(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def sort(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def sort_by(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def store(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def sum(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def take(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def take_while(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def tally(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def to_a(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#354 + def to_h; end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def to_hash(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def to_proc(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def to_set(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def transform_keys(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def transform_keys!(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def transform_values(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def transform_values!(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def uniq(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def update(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def value?(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def values(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def values_at(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def zip(*args, &block); end + + private + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/metadata.rb#414 + def directly_supports_attribute?(name); end + + # source://rspec-core//lib/rspec/core/metadata.rb#410 + def extra_hash_attributes; end + + # source://rspec-core//lib/rspec/core/metadata.rb#418 + def get_value(name); end + + # source://rspec-core//lib/rspec/core/metadata.rb#426 + def hash_for_delegation; end + + # source://rspec-core//lib/rspec/core/metadata.rb#430 + def issue_deprecation(_method_name, *_args); end + + # source://rspec-core//lib/rspec/core/metadata.rb#422 + def set_value(name, value); end + + class << self + # @private + # + # source://rspec-core//lib/rspec/core/metadata.rb#350 + def included(klass); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/metadata.rb#435 +module RSpec::Core::HashImitatable::ClassMethods + # source://rspec-core//lib/rspec/core/metadata.rb#440 + def attr_accessor(*names); end + + # source://rspec-core//lib/rspec/core/metadata.rb#436 + def hash_attribute_names; end +end + +# Provides `before`, `after` and `around` hooks as a means of +# supporting common setup and teardown. This module is extended +# onto {ExampleGroup}, making the methods available from any `describe` +# or `context` block and included in {Configuration}, making them +# available off of the configuration object to define global setup +# or teardown logic. +# +# source://rspec-core//lib/rspec/core/hooks.rb#9 +module RSpec::Core::Hooks + # Declare a block of code to be run after each example (using `:example`) + # or once after all examples n the context (using `:context`). See + # {#before} for more information about ordering. + # + # ### Exceptions + # + # `after` hooks are guaranteed to run even when there are exceptions in + # `before` hooks or examples. When an exception is raised in an after + # block, the exception is captured for later reporting, and subsequent + # `after` blocks are run. + # + # ### Order + # + # `after` hooks are stored in three scopes, which are run in order: + # `:example`, `:context`, and `:suite`. They can also be declared in + # several different places: `RSpec.configure`, a parent group, the current + # group. They are run in the following order: + # + # after(:example) # Declared in the current group. + # after(:example) # Declared in a parent group. + # after(:example) # Declared in RSpec.configure. + # after(:context) # Declared in the current group. + # after(:context) # Declared in a parent group. + # after(:context) # Declared in RSpec.configure. + # after(:suite) # Declared in RSpec.configure. + # + # This is the reverse of the order in which `before` hooks are run. + # Similarly, if more than one `after` is declared within any example + # group, they are run in reverse order of that in which they are declared. + # Also `around` hooks will run after any `after` example hooks are + # invoked but before any `after` context hooks. + # + # @api public + # @note The `:suite` scope is only supported for hooks registered on + # `RSpec.configuration` since they exist independently of any + # example or example group. + # @note The `:example` and `:context` scopes are also available as + # `:each` and `:all`, respectively. Use whichever you prefer. + # @overload after + # @overload after + # @overload after + # @overload after + # @see #before + # @see #around + # @see ExampleGroup + # @see SharedContext + # @see SharedExampleGroup + # @see Configuration + # + # source://rspec-core//lib/rspec/core/hooks.rb#277 + def after(*args, &block); end + + # Adds `block` to the back of the list of `after` blocks in the same + # scope (`:example`, `:context`, or `:suite`). + # + # See {#after} for scoping semantics. + # + # source://rspec-core//lib/rspec/core/hooks.rb#287 + def append_after(*args, &block); end + + # Declare a block of code to be run before each example (using `:example`) + # or once before any example (using `:context`). These are usually + # declared directly in the {ExampleGroup} to which they apply, but they + # can also be shared across multiple groups. + # + # You can also use `before(:suite)` to run a block of code before any + # example groups are run. This should be declared in {RSpec.configure}. + # + # Instance variables declared in `before(:example)` or `before(:context)` + # are accessible within each example. + # + # ### Order + # + # `before` hooks are stored in three scopes, which are run in order: + # `:suite`, `:context`, and `:example`. They can also be declared in + # several different places: `RSpec.configure`, a parent group, the current + # group. They are run in the following order: + # + # before(:suite) # Declared in RSpec.configure. + # before(:context) # Declared in RSpec.configure. + # before(:context) # Declared in a parent group. + # before(:context) # Declared in the current group. + # before(:example) # Declared in RSpec.configure. + # before(:example) # Declared in a parent group. + # before(:example) # Declared in the current group. + # + # If more than one `before` is declared within any one example group, they + # are run in the order in which they are declared. Any `around` hooks will + # execute after `before` context hooks but before any `before` example + # hook regardless of where they are declared. + # + # ### Conditions + # + # When you add a conditions hash to `before(:example)` or + # `before(:context)`, RSpec will only apply that hook to groups or + # examples that match the conditions. e.g. + # + # RSpec.configure do |config| + # config.before(:example, :authorized => true) do + # log_in_as :authorized_user + # end + # end + # + # RSpec.describe Something, :authorized => true do + # # The before hook will run in before each example in this group. + # end + # + # RSpec.describe SomethingElse do + # it "does something", :authorized => true do + # # The before hook will run before this example. + # end + # + # it "does something else" do + # # The hook will not run before this example. + # end + # end + # + # Note that filtered config `:context` hooks can still be applied + # to individual examples that have matching metadata. Just like + # Ruby's object model is that every object has a singleton class + # which has only a single instance, RSpec's model is that every + # example has a singleton example group containing just the one + # example. + # + # ### Warning: `before(:suite, :with => :conditions)` + # + # The conditions hash is used to match against specific examples. Since + # `before(:suite)` is not run in relation to any specific example or + # group, conditions passed along with `:suite` are effectively ignored. + # + # ### Exceptions + # + # When an exception is raised in a `before` block, RSpec skips any + # subsequent `before` blocks and the example, but runs all of the + # `after(:example)` and `after(:context)` hooks. + # + # ### Warning: implicit before blocks + # + # `before` hooks can also be declared in shared contexts which get + # included implicitly either by you or by extension libraries. Since + # RSpec runs these in the order in which they are declared within each + # scope, load order matters, and can lead to confusing results when one + # before block depends on state that is prepared in another before block + # that gets run later. + # + # ### Warning: `before(:context)` + # + # It is very tempting to use `before(:context)` to speed things up, but we + # recommend that you avoid this as there are a number of gotchas, as well + # as things that simply don't work. + # + # #### Context + # + # `before(:context)` is run in an example that is generated to provide + # group context for the block. + # + # #### Instance variables + # + # Instance variables declared in `before(:context)` are shared across all + # the examples in the group. This means that each example can change the + # state of a shared object, resulting in an ordering dependency that can + # make it difficult to reason about failures. + # + # #### Unsupported RSpec constructs + # + # RSpec has several constructs that reset state between each example + # automatically. These are not intended for use from within + # `before(:context)`: + # + # * `let` declarations + # * `subject` declarations + # * Any mocking, stubbing or test double declaration + # + # ### other frameworks + # + # Mock object frameworks and database transaction managers (like + # ActiveRecord) are typically designed around the idea of setting up + # before an example, running that one example, and then tearing down. This + # means that mocks and stubs can (sometimes) be declared in + # `before(:context)`, but get torn down before the first real example is + # ever run. + # + # You _can_ create database-backed model objects in a `before(:context)` + # in rspec-rails, but it will not be wrapped in a transaction for you, so + # you are on your own to clean up in an `after(:context)` block. + # + # @api public + # @example before(:example) declared in an {ExampleGroup} + # RSpec.describe Thing do + # before(:example) do + # @thing = Thing.new + # end + # + # it "does something" do + # # Here you can access @thing. + # end + # end + # @example before(:context) declared in an {ExampleGroup} + # RSpec.describe Parser do + # before(:context) do + # File.open(file_to_parse, 'w') do |f| + # f.write <<-CONTENT + # stuff in the file + # CONTENT + # end + # end + # + # it "parses the file" do + # Parser.parse(file_to_parse) + # end + # + # after(:context) do + # File.delete(file_to_parse) + # end + # end + # @note The `:example` and `:context` scopes are also available as + # `:each` and `:all`, respectively. Use whichever you prefer. + # @note The `:suite` scope is only supported for hooks registered on + # `RSpec.configuration` since they exist independently of any + # example or example group. + # @overload before + # @overload before + # @overload before + # @overload before + # @see #after + # @see #around + # @see ExampleGroup + # @see SharedContext + # @see SharedExampleGroup + # @see Configuration + # + # source://rspec-core//lib/rspec/core/hooks.rb#200 + def append_before(*args, &block); end + + # Declare a block of code, parts of which will be run before and parts + # after the example. It is your responsibility to run the example: + # + # around(:example) do |ex| + # # Do some stuff before. + # ex.run + # # Do some stuff after. + # end + # + # The yielded example aliases `run` with `call`, which lets you treat it + # like a `Proc`. This is especially handy when working with libraries + # that manage their own setup and teardown using a block or proc syntax, + # e.g. + # + # around(:example) {|ex| Database.transaction(&ex)} + # around(:example) {|ex| FakeFS(&ex)} + # + # ### Order + # + # The `around` hooks execute surrounding an example and its hooks. + # + # This means after any `before` context hooks, but before any `before` + # example hooks, and similarly after any `after` example hooks but before + # any `after` context hooks. + # + # They are not a synonym for `before`/`after`. + # + # @api public + # @note `:example`/`:each` is the only supported scope. + # @note the syntax of `around` is similar to that of `before` and `after` + # but the semantics are quite different. `before` and `after` hooks are + # run in the context of the examples with which they are associated, + # whereas `around` hooks are actually responsible for running the + # examples. Consequently, `around` hooks do not have direct access to + # resources that are made available within the examples and their + # associated `before` and `after` hooks. + # @overload around + # @overload around + # @overload around + # @overload around + # @yield [Example] the example to run + # + # source://rspec-core//lib/rspec/core/hooks.rb#349 + def around(*args, &block); end + + # Declare a block of code to be run before each example (using `:example`) + # or once before any example (using `:context`). These are usually + # declared directly in the {ExampleGroup} to which they apply, but they + # can also be shared across multiple groups. + # + # You can also use `before(:suite)` to run a block of code before any + # example groups are run. This should be declared in {RSpec.configure}. + # + # Instance variables declared in `before(:example)` or `before(:context)` + # are accessible within each example. + # + # ### Order + # + # `before` hooks are stored in three scopes, which are run in order: + # `:suite`, `:context`, and `:example`. They can also be declared in + # several different places: `RSpec.configure`, a parent group, the current + # group. They are run in the following order: + # + # before(:suite) # Declared in RSpec.configure. + # before(:context) # Declared in RSpec.configure. + # before(:context) # Declared in a parent group. + # before(:context) # Declared in the current group. + # before(:example) # Declared in RSpec.configure. + # before(:example) # Declared in a parent group. + # before(:example) # Declared in the current group. + # + # If more than one `before` is declared within any one example group, they + # are run in the order in which they are declared. Any `around` hooks will + # execute after `before` context hooks but before any `before` example + # hook regardless of where they are declared. + # + # ### Conditions + # + # When you add a conditions hash to `before(:example)` or + # `before(:context)`, RSpec will only apply that hook to groups or + # examples that match the conditions. e.g. + # + # RSpec.configure do |config| + # config.before(:example, :authorized => true) do + # log_in_as :authorized_user + # end + # end + # + # RSpec.describe Something, :authorized => true do + # # The before hook will run in before each example in this group. + # end + # + # RSpec.describe SomethingElse do + # it "does something", :authorized => true do + # # The before hook will run before this example. + # end + # + # it "does something else" do + # # The hook will not run before this example. + # end + # end + # + # Note that filtered config `:context` hooks can still be applied + # to individual examples that have matching metadata. Just like + # Ruby's object model is that every object has a singleton class + # which has only a single instance, RSpec's model is that every + # example has a singleton example group containing just the one + # example. + # + # ### Warning: `before(:suite, :with => :conditions)` + # + # The conditions hash is used to match against specific examples. Since + # `before(:suite)` is not run in relation to any specific example or + # group, conditions passed along with `:suite` are effectively ignored. + # + # ### Exceptions + # + # When an exception is raised in a `before` block, RSpec skips any + # subsequent `before` blocks and the example, but runs all of the + # `after(:example)` and `after(:context)` hooks. + # + # ### Warning: implicit before blocks + # + # `before` hooks can also be declared in shared contexts which get + # included implicitly either by you or by extension libraries. Since + # RSpec runs these in the order in which they are declared within each + # scope, load order matters, and can lead to confusing results when one + # before block depends on state that is prepared in another before block + # that gets run later. + # + # ### Warning: `before(:context)` + # + # It is very tempting to use `before(:context)` to speed things up, but we + # recommend that you avoid this as there are a number of gotchas, as well + # as things that simply don't work. + # + # #### Context + # + # `before(:context)` is run in an example that is generated to provide + # group context for the block. + # + # #### Instance variables + # + # Instance variables declared in `before(:context)` are shared across all + # the examples in the group. This means that each example can change the + # state of a shared object, resulting in an ordering dependency that can + # make it difficult to reason about failures. + # + # #### Unsupported RSpec constructs + # + # RSpec has several constructs that reset state between each example + # automatically. These are not intended for use from within + # `before(:context)`: + # + # * `let` declarations + # * `subject` declarations + # * Any mocking, stubbing or test double declaration + # + # ### other frameworks + # + # Mock object frameworks and database transaction managers (like + # ActiveRecord) are typically designed around the idea of setting up + # before an example, running that one example, and then tearing down. This + # means that mocks and stubs can (sometimes) be declared in + # `before(:context)`, but get torn down before the first real example is + # ever run. + # + # You _can_ create database-backed model objects in a `before(:context)` + # in rspec-rails, but it will not be wrapped in a transaction for you, so + # you are on your own to clean up in an `after(:context)` block. + # + # @api public + # @example before(:example) declared in an {ExampleGroup} + # + # RSpec.describe Thing do + # before(:example) do + # @thing = Thing.new + # end + # + # it "does something" do + # # Here you can access @thing. + # end + # end + # @example before(:context) declared in an {ExampleGroup} + # + # RSpec.describe Parser do + # before(:context) do + # File.open(file_to_parse, 'w') do |f| + # f.write <<-CONTENT + # stuff in the file + # CONTENT + # end + # end + # + # it "parses the file" do + # Parser.parse(file_to_parse) + # end + # + # after(:context) do + # File.delete(file_to_parse) + # end + # end + # @note The `:example` and `:context` scopes are also available as + # `:each` and `:all`, respectively. Use whichever you prefer. + # @note The `:suite` scope is only supported for hooks registered on + # `RSpec.configuration` since they exist independently of any + # example or example group. + # @overload before + # @overload before + # @overload before + # @overload before + # @see #after + # @see #around + # @see ExampleGroup + # @see SharedContext + # @see SharedExampleGroup + # @see Configuration + # + # source://rspec-core//lib/rspec/core/hooks.rb#200 + def before(*args, &block); end + + # Holds the various registered hooks. + # + # @private + # + # source://rspec-core//lib/rspec/core/hooks.rb#355 + def hooks; end + + # Declare a block of code to be run after each example (using `:example`) + # or once after all examples n the context (using `:context`). See + # {#before} for more information about ordering. + # + # ### Exceptions + # + # `after` hooks are guaranteed to run even when there are exceptions in + # `before` hooks or examples. When an exception is raised in an after + # block, the exception is captured for later reporting, and subsequent + # `after` blocks are run. + # + # ### Order + # + # `after` hooks are stored in three scopes, which are run in order: + # `:example`, `:context`, and `:suite`. They can also be declared in + # several different places: `RSpec.configure`, a parent group, the current + # group. They are run in the following order: + # + # after(:example) # Declared in the current group. + # after(:example) # Declared in a parent group. + # after(:example) # Declared in RSpec.configure. + # after(:context) # Declared in the current group. + # after(:context) # Declared in a parent group. + # after(:context) # Declared in RSpec.configure. + # after(:suite) # Declared in RSpec.configure. + # + # This is the reverse of the order in which `before` hooks are run. + # Similarly, if more than one `after` is declared within any example + # group, they are run in reverse order of that in which they are declared. + # Also `around` hooks will run after any `after` example hooks are + # invoked but before any `after` context hooks. + # + # @api public + # @note The `:suite` scope is only supported for hooks registered on + # `RSpec.configuration` since they exist independently of any + # example or example group. + # @note The `:example` and `:context` scopes are also available as + # `:each` and `:all`, respectively. Use whichever you prefer. + # @overload after + # @overload after + # @overload after + # @overload after + # @see #before + # @see #around + # @see ExampleGroup + # @see SharedContext + # @see SharedExampleGroup + # @see Configuration + # + # source://rspec-core//lib/rspec/core/hooks.rb#277 + def prepend_after(*args, &block); end + + # Adds `block` to the front of the list of `before` blocks in the same + # scope (`:example`, `:context`, or `:suite`). + # + # See {#before} for scoping semantics. + # + # source://rspec-core//lib/rspec/core/hooks.rb#210 + def prepend_before(*args, &block); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/hooks.rb#379 +class RSpec::Core::Hooks::AfterContextHook < ::RSpec::Core::Hooks::Hook + # source://rspec-core//lib/rspec/core/hooks.rb#380 + def run(example); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/hooks.rb#370 +class RSpec::Core::Hooks::AfterHook < ::RSpec::Core::Hooks::Hook + # source://rspec-core//lib/rspec/core/hooks.rb#371 + def run(example); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/hooks.rb#388 +class RSpec::Core::Hooks::AroundHook < ::RSpec::Core::Hooks::Hook + # source://rspec-core//lib/rspec/core/hooks.rb#389 + def execute_with(example, procsy); end + + # :nocov: + # + # source://rspec-core//lib/rspec/core/hooks.rb#397 + def hook_description; end +end + +# @private +# +# source://rspec-core//lib/rspec/core/hooks.rb#363 +class RSpec::Core::Hooks::BeforeHook < ::RSpec::Core::Hooks::Hook + # source://rspec-core//lib/rspec/core/hooks.rb#364 + def run(example); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/hooks.rb#360 +class RSpec::Core::Hooks::Hook < ::Struct + # Returns the value of attribute block + # + # @return [Object] the current value of block + def block; end + + # Sets the attribute block + # + # @param value [Object] the value to set the attribute block to. + # @return [Object] the newly set value + def block=(_); end + + # Returns the value of attribute options + # + # @return [Object] the current value of options + def options; end + + # Sets the attribute options + # + # @param value [Object] the value to set the attribute options to. + # @return [Object] the newly set value + def options=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# This provides the primary API used by other parts of rspec-core. By hiding all +# implementation details behind this facade, it's allowed us to heavily optimize +# this, so that, for example, hook collection objects are only instantiated when +# a hook is added. This allows us to avoid many object allocations for the common +# case of a group having no hooks. +# +# This is only possible because this interface provides a "tell, don't ask"-style +# API, so that callers _tell_ this class what to do with the hooks, rather than +# asking this class for a list of hooks, and then doing something with them. +# +# @private +# +# source://rspec-core//lib/rspec/core/hooks.rb#420 +class RSpec::Core::Hooks::HookCollections + # @return [HookCollections] a new instance of HookCollections + # + # source://rspec-core//lib/rspec/core/hooks.rb#421 + def initialize(owner, filterable_item_repo_class); end + + # source://rspec-core//lib/rspec/core/hooks.rb#449 + def register(prepend_or_append, position, *args, &block); end + + # source://rspec-core//lib/rspec/core/hooks.rb#442 + def register_global_singleton_context_hooks(example, globals); end + + # source://rspec-core//lib/rspec/core/hooks.rb#431 + def register_globals(host, globals); end + + # Runs all of the blocks stored with the hook in the context of the + # example. If no example is provided, just calls the hook directly. + # + # @private + # + # source://rspec-core//lib/rspec/core/hooks.rb#475 + def run(position, scope, example_or_group); end + + protected + + # source://rspec-core//lib/rspec/core/hooks.rb#523 + def all_hooks_for(position, scope); end + + # source://rspec-core//lib/rspec/core/hooks.rb#507 + def matching_hooks_for(position, scope, example_or_group); end + + # source://rspec-core//lib/rspec/core/hooks.rb#533 + def processable_hooks_for(position, scope, host); end + + # source://rspec-core//lib/rspec/core/hooks.rb#527 + def run_owned_hooks_for(position, scope, example_or_group); end + + private + + # source://rspec-core//lib/rspec/core/hooks.rb#553 + def ensure_hooks_initialized_for(position, scope); end + + # source://rspec-core//lib/rspec/core/hooks.rb#591 + def extract_scope_from(args); end + + # source://rspec-core//lib/rspec/core/hooks.rb#543 + def hooks_for(position, scope); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/hooks.rb#605 + def known_scope?(scope); end + + # source://rspec-core//lib/rspec/core/hooks.rb#609 + def normalized_scope_for(scope); end + + # :nocov: + # + # source://rspec-core//lib/rspec/core/hooks.rb#633 + def owner_parent_groups; end + + # source://rspec-core//lib/rspec/core/hooks.rb#571 + def process(host, parent_groups, globals, position, scope); end + + # source://rspec-core//lib/rspec/core/hooks.rb#619 + def run_around_example_hooks_for(example); end + + # source://rspec-core//lib/rspec/core/hooks.rb#613 + def run_example_hooks_for(example, position, each_method); end + + # source://rspec-core//lib/rspec/core/hooks.rb#584 + def scope_and_options_from(*args); end +end + +# source://rspec-core//lib/rspec/core/hooks.rb#505 +RSpec::Core::Hooks::HookCollections::EMPTY_HOOK_ARRAY = T.let(T.unsafe(nil), Array) + +# source://rspec-core//lib/rspec/core/hooks.rb#495 +RSpec::Core::Hooks::HookCollections::HOOK_TYPES = T.let(T.unsafe(nil), Hash) + +# source://rspec-core//lib/rspec/core/hooks.rb#491 +RSpec::Core::Hooks::HookCollections::SCOPES = T.let(T.unsafe(nil), Array) + +# source://rspec-core//lib/rspec/core/hooks.rb#493 +RSpec::Core::Hooks::HookCollections::SCOPE_ALIASES = T.let(T.unsafe(nil), Hash) + +# @private +# +# source://rspec-core//lib/rspec/core/filter_manager.rb#186 +class RSpec::Core::InclusionRules < ::RSpec::Core::FilterRules + # source://rspec-core//lib/rspec/core/filter_manager.rb#187 + def add(*args); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#191 + def add_with_low_priority(*args); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#195 + def include_example?(example); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#203 + def split_file_scoped_rules; end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#199 + def standalone?; end + + private + + # source://rspec-core//lib/rspec/core/filter_manager.rb#213 + def apply_standalone_filter(updated); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/filter_manager.rb#226 + def is_standalone_filter?(rules); end + + # source://rspec-core//lib/rspec/core/filter_manager.rb#221 + def replace_filters(new_rules); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/invocations.rb#4 +module RSpec::Core::Invocations; end + +# @private +# +# source://rspec-core//lib/rspec/core/invocations.rb#28 +class RSpec::Core::Invocations::Bisect + # source://rspec-core//lib/rspec/core/invocations.rb#29 + def call(options, err, out); end + + private + + # source://rspec-core//lib/rspec/core/invocations.rb#45 + def bisect_formatter_klass_for(argument); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/invocations.rb#15 +class RSpec::Core::Invocations::DRbWithFallback + # source://rspec-core//lib/rspec/core/invocations.rb#16 + def call(options, err, out); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/invocations.rb#6 +class RSpec::Core::Invocations::InitializeProject + # source://rspec-core//lib/rspec/core/invocations.rb#7 + def call(*_args); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/invocations.rb#78 +class RSpec::Core::Invocations::PrintHelp < ::Struct + # source://rspec-core//lib/rspec/core/invocations.rb#79 + def call(_options, _err, out); end + + # Returns the value of attribute hidden_options + # + # @return [Object] the current value of hidden_options + def hidden_options; end + + # Sets the attribute hidden_options + # + # @param value [Object] the value to set the attribute hidden_options to. + # @return [Object] the newly set value + def hidden_options=(_); end + + # Returns the value of attribute parser + # + # @return [Object] the current value of parser + def parser; end + + # Sets the attribute parser + # + # @param value [Object] the value to set the attribute parser to. + # @return [Object] the newly set value + def parser=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/invocations.rb#52 +class RSpec::Core::Invocations::PrintVersion + # source://rspec-core//lib/rspec/core/invocations.rb#53 + def call(_options, _err, out); end +end + +# Together with the example group metadata hash default block, +# provides backwards compatibility for the old `:example_group` +# key. In RSpec 2.x, the computed keys of a group's metadata +# were exposed from a nested subhash keyed by `[:example_group]`, and +# then the parent group's metadata was exposed by sub-subhash +# keyed by `[:example_group][:example_group]`. +# +# In RSpec 3, we reorganized this to that the computed keys are +# exposed directly of the group metadata hash (no nesting), and +# `:parent_example_group` returns the parent group's metadata. +# +# Maintaining backwards compatibility was difficult: we wanted +# `:example_group` to return an object that: +# +# * Exposes the top-level metadata keys that used to be nested +# under `:example_group`. +# * Supports mutation (rspec-rails, for example, assigns +# `metadata[:example_group][:described_class]` when you use +# anonymous controller specs) such that changes are written +# back to the top-level metadata hash. +# * Exposes the parent group metadata as +# `[:example_group][:example_group]`. +# +# @private +# +# source://rspec-core//lib/rspec/core/metadata.rb#470 +class RSpec::Core::LegacyExampleGroupHash + include ::RSpec::Core::HashImitatable + extend ::RSpec::Core::HashImitatable::ClassMethods + + # @return [LegacyExampleGroupHash] a new instance of LegacyExampleGroupHash + # + # source://rspec-core//lib/rspec/core/metadata.rb#473 + def initialize(metadata); end + + # source://rspec-core//lib/rspec/core/metadata.rb#479 + def to_h; end + + private + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/metadata.rb#485 + def directly_supports_attribute?(name); end + + # source://rspec-core//lib/rspec/core/metadata.rb#489 + def get_value(name); end + + # source://rspec-core//lib/rspec/core/metadata.rb#493 + def set_value(name, value); end +end + +# This module is included in {ExampleGroup}, making the methods +# available to be called from within example blocks. +# +# @see ClassMethods +# +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#9 +module RSpec::Core::MemoizedHelpers + # @private + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#135 + def initialize(*_arg0); end + + # Wraps the `subject` in `expect` to make it the target of an expectation. + # Designed to read nicely for one-liners. + # + # @example + # + # describe [1, 2, 3] do + # it { is_expected.to be_an Array } + # it { is_expected.not_to include 4 } + # end + # @note This only works if you are using rspec-expectations. + # @see #subject + # @see #should + # @see #should_not + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#120 + def is_expected; end + + # When `should` is called with no explicit receiver, the call is + # delegated to the object returned by `subject`. Combined with an + # implicit subject this supports very concise expressions. + # + # @example + # + # RSpec.describe Person do + # it { should be_eligible_to_vote } + # end + # @note This only works if you are using rspec-expectations. + # @note If you are using RSpec's newer expect-based syntax you may + # want to use `is_expected.to` instead of `should`. + # @see #subject + # @see #is_expected + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#80 + def should(matcher = T.unsafe(nil), message = T.unsafe(nil)); end + + # Just like `should`, `should_not` delegates to the subject (implicit or + # explicit) of the example group. + # + # @example + # + # RSpec.describe Person do + # it { should_not be_eligible_to_vote } + # end + # @note This only works if you are using rspec-expectations. + # @note If you are using RSpec's newer expect-based syntax you may + # want to use `is_expected.to_not` instead of `should_not`. + # @see #subject + # @see #is_expected + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#100 + def should_not(matcher = T.unsafe(nil), message = T.unsafe(nil)); end + + # @example + # + # # Explicit declaration of subject. + # RSpec.describe Person do + # subject { Person.new(:birthdate => 19.years.ago) } + # it "should be eligible to vote" do + # subject.should be_eligible_to_vote + # # ^ ^ explicit reference to subject not recommended + # end + # end + # + # # Implicit subject => { Person.new }. + # RSpec.describe Person do + # it "should be eligible to vote" do + # subject.should be_eligible_to_vote + # # ^ ^ explicit reference to subject not recommended + # end + # end + # + # # One-liner syntax - expectation is set on the subject. + # RSpec.describe Person do + # it { is_expected.to be_eligible_to_vote } + # # or + # it { should be_eligible_to_vote } + # end + # @note `subject` was contributed by Joe Ferris to support the one-liner + # syntax embraced by shoulda matchers: + # + # RSpec.describe Widget do + # it { is_expected.to validate_presence_of(:name) } + # # or + # it { should validate_presence_of(:name) } + # end + # + # While the examples below demonstrate how to use `subject` + # explicitly in examples, we recommend that you define a method with + # an intention revealing name instead. + # @note Because `subject` is designed to create state that is reset + # between each example, and `before(:context)` is designed to setup + # state that is shared across _all_ examples in an example group, + # `subject` is _not_ intended to be used in a `before(:context)` hook. + # @see #should + # @see #should_not + # @see #is_expected + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#57 + def subject; end + + private + + # @private + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#141 + def __init_memoized; end + + # should just be placed in private section, + # but Ruby issues warnings on private attributes. + # and expanding it to the equivalent method upsets Rubocop, + # b/c it should obviously be a reader + # + # @private + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#129 + def __memoized; end + + # @private + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#150 + def enforce_value_expectation(matcher, method_name); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#163 + def matcher_supports_value_expectations?(matcher); end + + class << self + # @private + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#542 + def define_helpers_on(example_group); end + + # Gets the named constant or yields. + # On 1.9, const_defined? / const_get take into account the + # the inheritance by default, and accept an argument to + # disable this behavior. It's important that we don't + # consider inheritance here; each example group level that + # uses a `let` should get its own `LetDefinitions` module. + # + # @private + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#570 + def get_constant_or_yield(example_group, name); end + + # Gets the LetDefinitions module. The module is mixed into + # the example group and is used to hold all let definitions. + # This is done so that the block passed to `let` can be + # forwarded directly on to `define_method`, so that all method + # constructs (including `super` and `return`) can be used in + # a `let` block. + # + # The memoization is provided by a method definition on the + # example group that supers to the LetDefinitions definition + # in order to get the value to memoize. + # + # @private + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#528 + def module_for(example_group); end + end +end + +# This module is extended onto {ExampleGroup}, making the methods +# available to be called from within example group blocks. +# You can think of them as being analagous to class macros. +# +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#274 +module RSpec::Core::MemoizedHelpers::ClassMethods + # Generates a method whose return value is memoized after the first + # call. Useful for reducing duplication between examples that assign + # values to the same local variable. + # + # @example + # + # RSpec.describe Thing do + # let(:thing) { Thing.new } + # + # it "does something" do + # # First invocation, executes block, memoizes and returns result. + # thing.do_something + # + # # Second invocation, returns the memoized value. + # thing.should be_something + # end + # end + # @note `let` _can_ enhance readability when used sparingly (1,2, or + # maybe 3 declarations) in any given example group, but that can + # quickly degrade with overuse. YMMV. + # @note `let` can be configured to be threadsafe or not. + # If it is threadsafe, it will take longer to access the value. + # If it is not threadsafe, it may behave in surprising ways in examples + # that spawn separate threads. Specify this on `RSpec.configure` + # @note Because `let` is designed to create state that is reset between + # each example, and `before(:context)` is designed to setup state that + # is shared across _all_ examples in an example group, `let` is _not_ + # intended to be used in a `before(:context)` hook. + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#306 + def let(name, &block); end + + # Just like `let`, except the block is invoked by an implicit `before` + # hook. This serves a dual purpose of setting up state and providing a + # memoized reference to that state. + # + # @example + # + # class Thing + # def self.count + # @count ||= 0 + # end + # + # def self.count=(val) + # @count += val + # end + # + # def self.reset_count + # @count = 0 + # end + # + # def initialize + # self.class.count += 1 + # end + # end + # + # RSpec.describe Thing do + # after(:example) { Thing.reset_count } + # + # context "using let" do + # let(:thing) { Thing.new } + # + # it "is not invoked implicitly" do + # Thing.count.should eq(0) + # end + # + # it "can be invoked explicitly" do + # thing + # Thing.count.should eq(1) + # end + # end + # + # context "using let!" do + # let!(:thing) { Thing.new } + # + # it "is invoked implicitly" do + # Thing.count.should eq(1) + # end + # + # it "returns memoized version on first invocation" do + # thing + # Thing.count.should eq(1) + # end + # end + # end + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#400 + def let!(name, &block); end + + # Declares a `subject` for an example group which can then be wrapped + # with `expect` using `is_expected` to make it the target of an + # expectation in a concise, one-line example. + # + # Given a `name`, defines a method with that name which returns the + # `subject`. This lets you declare the subject once and access it + # implicitly in one-liners and explicitly using an intention revealing + # name. + # + # When given a `name`, calling `super` in the block is not supported. + # + # @example + # + # RSpec.describe CheckingAccount, "with $50" do + # subject { CheckingAccount.new(Money.new(50, :USD)) } + # it { is_expected.to have_a_balance_of(Money.new(50, :USD)) } + # it { is_expected.not_to be_overdrawn } + # end + # + # RSpec.describe CheckingAccount, "with a non-zero starting balance" do + # subject(:account) { CheckingAccount.new(Money.new(50, :USD)) } + # it { is_expected.not_to be_overdrawn } + # it "has a balance equal to the starting balance" do + # account.balance.should eq(Money.new(50, :USD)) + # end + # end + # @note `subject` can be configured to be threadsafe or not. + # If it is threadsafe, it will take longer to access the value. + # If it is not threadsafe, it may behave in surprising ways in examples + # that spawn separate threads. Specify this on `RSpec.configure` + # @param name [String, Symbol] used to define an accessor with an + # intention revealing name + # @param block defines the value to be returned by `subject` in examples + # @see MemoizedHelpers#should + # @see MemoizedHelpers#should_not + # @see MemoizedHelpers#is_expected + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#444 + def subject(name = T.unsafe(nil), &block); end + + # Just like `subject`, except the block is invoked by an implicit + # `before` hook. This serves a dual purpose of setting up state and + # providing a memoized reference to that state. + # + # @example + # + # class Thing + # def self.count + # @count ||= 0 + # end + # + # def self.count=(val) + # @count += val + # end + # + # def self.reset_count + # @count = 0 + # end + # + # def initialize + # self.class.count += 1 + # end + # end + # + # RSpec.describe Thing do + # after(:example) { Thing.reset_count } + # + # context "using subject" do + # subject { Thing.new } + # + # it "is not invoked implicitly" do + # Thing.count.should eq(0) + # end + # + # it "can be invoked explicitly" do + # subject + # Thing.count.should eq(1) + # end + # end + # + # context "using subject!" do + # subject!(:thing) { Thing.new } + # + # it "is invoked implicitly" do + # Thing.count.should eq(1) + # end + # + # it "returns memoized version on first invocation" do + # subject + # Thing.count.should eq(1) + # end + # end + # end + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#510 + def subject!(name = T.unsafe(nil), &block); end +end + +# Used internally to customize the behavior of the +# memoized hash when used in a `before(:context)` hook. +# +# @private +# +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#200 +class RSpec::Core::MemoizedHelpers::ContextHookMemoized + class << self + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#222 + def fetch_or_store(key, &_block); end + + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#201 + def isolate_for_context_hook(example_group_instance); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#256 +class RSpec::Core::MemoizedHelpers::ContextHookMemoized::After < ::RSpec::Core::MemoizedHelpers::ContextHookMemoized + class << self + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#261 + def article; end + + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#257 + def hook_expression; end + + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#265 + def hook_intention; end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#241 +class RSpec::Core::MemoizedHelpers::ContextHookMemoized::Before < ::RSpec::Core::MemoizedHelpers::ContextHookMemoized + class << self + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#246 + def article; end + + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#242 + def hook_expression; end + + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#250 + def hook_intention; end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#186 +class RSpec::Core::MemoizedHelpers::NonThreadSafeMemoized + # @return [NonThreadSafeMemoized] a new instance of NonThreadSafeMemoized + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#187 + def initialize; end + + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#191 + def fetch_or_store(key); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#170 +class RSpec::Core::MemoizedHelpers::ThreadsafeMemoized + # @return [ThreadsafeMemoized] a new instance of ThreadsafeMemoized + # + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#171 + def initialize; end + + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#176 + def fetch_or_store(key); end +end + +# Each ExampleGroup class and Example instance owns an instance of +# Metadata, which is Hash extended to support lazy evaluation of values +# associated with keys that may or may not be used by any example or group. +# +# In addition to metadata that is used internally, this also stores +# user-supplied metadata, e.g. +# +# RSpec.describe Something, :type => :ui do +# it "does something", :slow => true do +# # ... +# end +# end +# +# `:type => :ui` is stored in the Metadata owned by the example group, and +# `:slow => true` is stored in the Metadata owned by the example. These can +# then be used to select which examples are run using the `--tag` option on +# the command line, or several methods on `Configuration` used to filter a +# run (e.g. `filter_run_including`, `filter_run_excluding`, etc). +# +# @see Example#metadata +# @see ExampleGroup.metadata +# @see FilterManager +# @see Configuration#filter_run_including +# @see Configuration#filter_run_excluding +# +# source://rspec-core//lib/rspec/core/metadata.rb#27 +module RSpec::Core::Metadata + class << self + # Returns an enumerator that iteratively walks up the given metadata through all + # example group ancestors, yielding each metadata hash along the way. + # + # @private + # + # source://rspec-core//lib/rspec/core/metadata.rb#71 + def ascend(metadata); end + + # Iteratively walks up from the given metadata through all + # example group ancestors, yielding each metadata hash along the way. + # + # @private + # @yield [metadata] + # + # source://rspec-core//lib/rspec/core/metadata.rb#58 + def ascending(metadata); end + + # Used internally to build a hash from an args array. + # Symbols are converted into hash keys with a value of `true`. + # This is done to support simple tagging using a symbol, rather + # than needing to do `:symbol => true`. + # + # @private + # + # source://rspec-core//lib/rspec/core/metadata.rb#80 + def build_hash_from(args, warn_about_example_group_filtering = T.unsafe(nil)); end + + # @private + # + # source://rspec-core//lib/rspec/core/metadata.rb#94 + def deep_hash_dup(object); end + + # @private + # + # source://rspec-core//lib/rspec/core/metadata.rb#105 + def id_from(metadata); end + + # @private + # + # source://rspec-core//lib/rspec/core/metadata.rb#110 + def location_tuple_from(metadata); end + + # @api private + # @param line [String] current code line + # @return [String] relative path to line + # + # source://rspec-core//lib/rspec/core/metadata.rb#44 + def relative_path(line); end + + # Matches strings either at the beginning of the input or prefixed with a + # whitespace, containing the current path, either postfixed with the + # separator, or at the end of the string. Match groups are the character + # before and the character after the string if any. + # + # http://rubular.com/r/fT0gmX6VJX + # http://rubular.com/r/duOrD4i3wb + # http://rubular.com/r/sbAMHFrOx1 + # + # source://rspec-core//lib/rspec/core/metadata.rb#36 + def relative_path_regex; end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/metadata.rb#247 +class RSpec::Core::Metadata::ExampleGroupHash < ::RSpec::Core::Metadata::HashPopulator + private + + # source://rspec-core//lib/rspec/core/metadata.rb#304 + def described_class; end + + # source://rspec-core//lib/rspec/core/metadata.rb#311 + def full_description; end + + class << self + # source://rspec-core//lib/rspec/core/metadata.rb#265 + def backwards_compatibility_default_proc(&example_group_selector); end + + # source://rspec-core//lib/rspec/core/metadata.rb#248 + def create(parent_group_metadata, user_metadata, example_group_index, *args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#261 + def hash_with_backwards_compatibility_default_proc; end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/metadata.rb#213 +class RSpec::Core::Metadata::ExampleHash < ::RSpec::Core::Metadata::HashPopulator + private + + # source://rspec-core//lib/rspec/core/metadata.rb#234 + def described_class; end + + # source://rspec-core//lib/rspec/core/metadata.rb#238 + def full_description; end + + class << self + # source://rspec-core//lib/rspec/core/metadata.rb#214 + def create(group_metadata, user_metadata, index_provider, description, block); end + end +end + +# Used internally to populate metadata hashes with computed keys +# managed by RSpec. +# +# @private +# +# source://rspec-core//lib/rspec/core/metadata.rb#117 +class RSpec::Core::Metadata::HashPopulator + # @return [HashPopulator] a new instance of HashPopulator + # + # source://rspec-core//lib/rspec/core/metadata.rb#120 + def initialize(metadata, user_metadata, index_provider, description_args, block); end + + # Returns the value of attribute block. + # + # source://rspec-core//lib/rspec/core/metadata.rb#118 + def block; end + + # Returns the value of attribute description_args. + # + # source://rspec-core//lib/rspec/core/metadata.rb#118 + def description_args; end + + # Returns the value of attribute metadata. + # + # source://rspec-core//lib/rspec/core/metadata.rb#118 + def metadata; end + + # source://rspec-core//lib/rspec/core/metadata.rb#128 + def populate; end + + # Returns the value of attribute user_metadata. + # + # source://rspec-core//lib/rspec/core/metadata.rb#118 + def user_metadata; end + + private + + # source://rspec-core//lib/rspec/core/metadata.rb#178 + def build_description_from(parent_description = T.unsafe(nil), my_description = T.unsafe(nil)); end + + # source://rspec-core//lib/rspec/core/metadata.rb#185 + def build_scoped_id_for(file_path); end + + # source://rspec-core//lib/rspec/core/metadata.rb#170 + def description_separator(parent_part, child_part); end + + # source://rspec-core//lib/rspec/core/metadata.rb#191 + def ensure_valid_user_keys; end + + # source://rspec-core//lib/rspec/core/metadata.rb#164 + def file_path_and_line_number_from(backtrace); end + + # source://rspec-core//lib/rspec/core/metadata.rb#143 + def populate_location_attributes; end +end + +# @private +# +# source://rspec-core//lib/rspec/core/metadata.rb#325 +RSpec::Core::Metadata::RESERVED_KEYS = T.let(T.unsafe(nil), Array) + +# Contains metadata filtering logic. This has been extracted from +# the metadata classes because it operates ON a metadata hash but +# does not manage any of the state in the hash. We're moving towards +# having metadata be a raw hash (not a custom subclass), so externalizing +# this filtering logic helps us move in that direction. +# +# source://rspec-core//lib/rspec/core/metadata_filter.rb#8 +module RSpec::Core::MetadataFilter + class << self + # @private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/metadata_filter.rb#11 + def apply?(predicate, filters, metadata); end + + # @private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/metadata_filter.rb#16 + def filter_applies?(key, filter_value, metadata); end + + # @private + # + # source://rspec-core//lib/rspec/core/metadata_filter.rb#33 + def silence_metadata_example_group_deprecations; end + + private + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/metadata_filter.rb#42 + def filter_applies_to_any_value?(key, value, metadata); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/metadata_filter.rb#73 + def filters_apply?(key, value, metadata); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/metadata_filter.rb#46 + def id_filter_applies?(rerun_paths_to_scoped_ids, metadata); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/metadata_filter.rb#54 + def location_filter_applies?(locations, metadata); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/metadata_filter.rb#65 + def proc_filter_applies?(key, proc, metadata); end + end +end + +# Provides a single exception instance that provides access to +# multiple sub-exceptions. This is used in situations where a single +# individual spec has multiple exceptions, such as one in the `it` block +# and one in an `after` block. +# +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#458 +class RSpec::Core::MultipleExceptionError < ::StandardError + include ::RSpec::Core::MultipleExceptionError::InterfaceTag + + # @param exceptions [Array] The initial list of exceptions. + # @return [MultipleExceptionError] a new instance of MultipleExceptionError + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#519 + def initialize(*exceptions); end + + # @return [nil] Provided only for interface compatibility with + # `RSpec::Expectations::MultipleExpectationsNotMetError`. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#516 + def aggregation_block_label; end + + # @return [Hash] Metadata used by RSpec for formatting purposes. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#512 + def aggregation_metadata; end + + # @return [Array] The list of failures and other exceptions, combined. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#509 + def all_exceptions; end + + # return [String] A description of the failure/error counts. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#544 + def exception_count_description; end + + # @return [Array] The list of failures. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#503 + def failures; end + + # @note RSpec does not actually use this -- instead it formats each exception + # individually. + # @return [String] Combines all the exception messages into a single string. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#534 + def message; end + + # @return [Array] The list of other errors. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#506 + def other_errors; end + + # @return [String] A summary of the failure, including the block label and a count of failures. + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#539 + def summary; end +end + +# Used so there is a common module in the ancestor chain of this class +# and `RSpec::Expectations::MultipleExpectationsNotMetError`, which allows +# code to detect exceptions that are instances of either, without first +# checking to see if rspec-expectations is loaded. +# +# @private +# +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#464 +module RSpec::Core::MultipleExceptionError::InterfaceTag + # Appends the provided exception to the list. + # + # @param exception [Exception] Exception to append to the list. + # @private + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#468 + def add(exception); end + + class << self + # Provides a way to force `ex` to be something that satisfies the multiple + # exception error interface. If it already satisfies it, it will be returned; + # otherwise it will wrap it in a `MultipleExceptionError`. + # + # @private + # + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#494 + def for(ex); end + end +end + +# Notifications are value objects passed to formatters to provide them +# with information about a particular event of interest. +# +# source://rspec-core//lib/rspec/core/notifications.rb#9 +module RSpec::Core::Notifications; end + +# `CustomNotification` is used when sending custom events to formatters / +# other registered listeners, it creates attributes based on supplied hash +# of options. +# +# source://rspec-core//lib/rspec/core/notifications.rb#512 +class RSpec::Core::Notifications::CustomNotification < ::Struct + class << self + # Build a custom notification based on the supplied option key / values. + # + # @param options [Hash] A hash of method / value pairs to create on this notification + # @return [CustomNotification] + # + # source://rspec-core//lib/rspec/core/notifications.rb#517 + def for(options = T.unsafe(nil)); end + end +end + +# The `DeprecationNotification` is issued by the reporter when a deprecated +# part of RSpec is encountered. It represents information about the +# deprecated call site. +# +# @attr message [String] A custom message about the deprecation +# @attr deprecated [String] A custom message about the deprecation (alias of +# message) +# @attr replacement [String] An optional replacement for the deprecation +# @attr call_site [String] An optional call site from which the deprecation +# was issued +# +# source://rspec-core//lib/rspec/core/notifications.rb#493 +class RSpec::Core::Notifications::DeprecationNotification < ::Struct + # An optional call site from which the deprecation + # was issued + # + # @return [String] the current value of call_site + def call_site; end + + # An optional call site from which the deprecation + # was issued + # + # @param value [String] the value to set the attribute call_site to. + # @return [String] the newly set value + def call_site=(_); end + + # A custom message about the deprecation (alias of + # message) + # + # @return [String] the current value of deprecated + def deprecated; end + + # A custom message about the deprecation (alias of + # message) + # + # @param value [String] the value to set the attribute deprecated to. + # @return [String] the newly set value + def deprecated=(_); end + + # A custom message about the deprecation + # + # @return [String] the current value of message + def message; end + + # A custom message about the deprecation + # + # @param value [String] the value to set the attribute message to. + # @return [String] the newly set value + def message=(_); end + + # An optional replacement for the deprecation + # + # @return [String] the current value of replacement + def replacement; end + + # An optional replacement for the deprecation + # + # @param value [String] the value to set the attribute replacement to. + # @return [String] the newly set value + def replacement=(_); end + + class << self + def [](*_arg0); end + + # Convenience way to initialize the notification + # + # @api + # + # source://rspec-core//lib/rspec/core/notifications.rb#499 + def from_hash(data); end + + def inspect; end + def keyword_init?; end + def members; end + + private + + def new(*_arg0); end + end +end + +# The `ExampleNotification` represents notifications sent by the reporter +# which contain information about the current (or soon to be) example. +# It is used by formatters to access information about that example. +# +# @attr example [RSpec::Core::Example] the current example +# @example +# def example_started(notification) +# puts "Hey I started #{notification.example.description}" +# end +# +# source://rspec-core//lib/rspec/core/notifications.rb#38 +class RSpec::Core::Notifications::ExampleNotification < ::Struct + # the current example + # + # @return [RSpec::Core::Example] the current value of example + def example; end + + # the current example + # + # @param value [RSpec::Core::Example] the value to set the attribute example to. + # @return [RSpec::Core::Example] the newly set value + def example=(_); end + + class << self + def [](*_arg0); end + + # @private + # + # source://rspec-core//lib/rspec/core/notifications.rb#41 + def for(example); end + + def inspect; end + def keyword_init?; end + def members; end + + private + + def new(*_arg0); end + end +end + +# The `ExamplesNotification` represents notifications sent by the reporter +# which contain information about the suites examples. +# +# @example +# def stop(notification) +# puts "Hey I ran #{notification.examples.size}" +# end +# +# source://rspec-core//lib/rspec/core/notifications.rb#69 +class RSpec::Core::Notifications::ExamplesNotification + # @return [ExamplesNotification] a new instance of ExamplesNotification + # + # source://rspec-core//lib/rspec/core/notifications.rb#70 + def initialize(reporter); end + + # @return [Array] list of examples + # + # source://rspec-core//lib/rspec/core/notifications.rb#75 + def examples; end + + # @return [Array] list of failed examples + # + # source://rspec-core//lib/rspec/core/notifications.rb#80 + def failed_examples; end + + # @return [Array] returns failed examples as notifications + # + # source://rspec-core//lib/rspec/core/notifications.rb#97 + def failure_notifications; end + + # @return [String] The list of failed examples, fully formatted in the way + # that RSpec's built-in formatters emit. + # + # source://rspec-core//lib/rspec/core/notifications.rb#110 + def fully_formatted_failed_examples(colorizer = T.unsafe(nil)); end + + # @return [String] The list of pending examples, fully formatted in the + # way that RSpec's built-in formatters emit. + # + # source://rspec-core//lib/rspec/core/notifications.rb#122 + def fully_formatted_pending_examples(colorizer = T.unsafe(nil)); end + + # @return [Array] returns examples as notifications + # + # source://rspec-core//lib/rspec/core/notifications.rb#91 + def notifications; end + + # @return [Array] list of pending examples + # + # source://rspec-core//lib/rspec/core/notifications.rb#85 + def pending_examples; end + + # returns pending examples as notifications + # + # @return [Array] + # + # source://rspec-core//lib/rspec/core/notifications.rb#104 + def pending_notifications; end + + private + + # source://rspec-core//lib/rspec/core/notifications.rb#136 + def format_examples(examples); end +end + +# The `FailedExampleNotification` extends `ExampleNotification` with +# things useful for examples that have failure info -- typically a +# failed or pending spec. +# +# @attr example [RSpec::Core::Example] the current example +# @example +# def example_failed(notification) +# puts "Hey I failed :(" +# puts "Here's my stack trace" +# puts notification.exception.backtrace.join("\n") +# end +# @see ExampleNotification +# +# source://rspec-core//lib/rspec/core/notifications.rb#156 +class RSpec::Core::Notifications::FailedExampleNotification < ::RSpec::Core::Notifications::ExampleNotification + # @return [FailedExampleNotification] a new instance of FailedExampleNotification + # + # source://rspec-core//lib/rspec/core/notifications.rb#213 + def initialize(example, exception_presenter = T.unsafe(nil)); end + + # Returns the failures colorized formatted backtrace. + # + # @param colorizer [#wrap] An object to colorize the message_lines by + # @return [Array] the examples colorized backtrace lines + # + # source://rspec-core//lib/rspec/core/notifications.rb#195 + def colorized_formatted_backtrace(colorizer = T.unsafe(nil)); end + + # Returns the message generated for this failure colorized line by line. + # + # @param colorizer [#wrap] An object to colorize the message_lines by + # @return [Array] The example failure message colorized + # + # source://rspec-core//lib/rspec/core/notifications.rb#180 + def colorized_message_lines(colorizer = T.unsafe(nil)); end + + # @return [String] The example description + # + # source://rspec-core//lib/rspec/core/notifications.rb#165 + def description; end + + # @return [Exception] The example failure + # + # source://rspec-core//lib/rspec/core/notifications.rb#160 + def exception; end + + # Returns the failures formatted backtrace. + # + # @return [Array] the examples backtrace lines + # + # source://rspec-core//lib/rspec/core/notifications.rb#187 + def formatted_backtrace; end + + # @return [String] The failure information fully formatted in the way that + # RSpec's built-in formatters emit. + # + # source://rspec-core//lib/rspec/core/notifications.rb#201 + def fully_formatted(failure_number, colorizer = T.unsafe(nil)); end + + # @return [Array] The failure information fully formatted in the way that + # RSpec's built-in formatters emit, split by line. + # + # source://rspec-core//lib/rspec/core/notifications.rb#207 + def fully_formatted_lines(failure_number, colorizer = T.unsafe(nil)); end + + # Returns the message generated for this failure line by line. + # + # @return [Array] The example failure message + # + # source://rspec-core//lib/rspec/core/notifications.rb#172 + def message_lines; end + + class << self + def new(*_arg0); end + end +end + +# The `GroupNotification` represents notifications sent by the reporter +# which contain information about the currently running (or soon to be) +# example group. It is used by formatters to access information about that +# group. +# +# @attr group [RSpec::Core::ExampleGroup] the current group +# @example +# def example_group_started(notification) +# puts "Hey I started #{notification.group.description}" +# end +# +# source://rspec-core//lib/rspec/core/notifications.rb#258 +class RSpec::Core::Notifications::GroupNotification < ::Struct + # the current group + # + # @return [RSpec::Core::ExampleGroup] the current value of group + def group; end + + # the current group + # + # @param value [RSpec::Core::ExampleGroup] the value to set the attribute group to. + # @return [RSpec::Core::ExampleGroup] the newly set value + def group=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# The `MessageNotification` encapsulates generic messages that the reporter +# sends to formatters. +# +# @attr message [String] the message +# +# source://rspec-core//lib/rspec/core/notifications.rb#264 +class RSpec::Core::Notifications::MessageNotification < ::Struct + # the message + # + # @return [String] the current value of message + def message; end + + # the message + # + # @param value [String] the value to set the attribute message to. + # @return [String] the newly set value + def message=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/notifications.rb#11 +module RSpec::Core::Notifications::NullColorizer + private + + # source://rspec-core//lib/rspec/core/notifications.rb#14 + def wrap(line, _code_or_symbol); end + + class << self + # source://rspec-core//lib/rspec/core/notifications.rb#14 + def wrap(line, _code_or_symbol); end + end +end + +# `NullNotification` represents a placeholder value for notifications that +# currently require no information, but we may wish to extend in future. +# +# source://rspec-core//lib/rspec/core/notifications.rb#506 +class RSpec::Core::Notifications::NullNotification; end + +# @deprecated Use {FailedExampleNotification} instead. +# +# source://rspec-core//lib/rspec/core/notifications.rb#223 +class RSpec::Core::Notifications::PendingExampleFailedAsExpectedNotification < ::RSpec::Core::Notifications::FailedExampleNotification; end + +# @deprecated Use {FailedExampleNotification} instead. +# +# source://rspec-core//lib/rspec/core/notifications.rb#220 +class RSpec::Core::Notifications::PendingExampleFixedNotification < ::RSpec::Core::Notifications::FailedExampleNotification; end + +# The `ProfileNotification` holds information about the results of running a +# test suite when profiling is enabled. It is used by formatters to provide +# information at the end of the test run for profiling information. +# +# @attr duration [Float] the time taken (in seconds) to run the suite +# @attr examples [Array] the examples run +# @attr number_of_examples [Fixnum] the number of examples to profile +# @attr example_groups [Array] example groups run +# +# source://rspec-core//lib/rspec/core/notifications.rb#429 +class RSpec::Core::Notifications::ProfileNotification + # @return [ProfileNotification] a new instance of ProfileNotification + # + # source://rspec-core//lib/rspec/core/notifications.rb#430 + def initialize(duration, examples, number_of_examples, example_groups); end + + # the time taken (in seconds) to run the suite + # + # @return [Float] the current value of duration + # + # source://rspec-core//lib/rspec/core/notifications.rb#436 + def duration; end + + # the examples run + # + # @return [Array] the current value of examples + # + # source://rspec-core//lib/rspec/core/notifications.rb#436 + def examples; end + + # the number of examples to profile + # + # @return [Fixnum] the current value of number_of_examples + # + # source://rspec-core//lib/rspec/core/notifications.rb#436 + def number_of_examples; end + + # @return [String] the percentage of total time taken + # + # source://rspec-core//lib/rspec/core/notifications.rb#455 + def percentage; end + + # @return [Float] the time taken (in seconds) to run the slowest examples + # + # source://rspec-core//lib/rspec/core/notifications.rb#447 + def slow_duration; end + + # @return [Array] the slowest examples + # + # source://rspec-core//lib/rspec/core/notifications.rb#439 + def slowest_examples; end + + # @return [Array] the slowest example groups + # + # source://rspec-core//lib/rspec/core/notifications.rb#464 + def slowest_groups; end + + private + + # source://rspec-core//lib/rspec/core/notifications.rb#470 + def calculate_slowest_groups; end +end + +# The `SeedNotification` holds the seed used to randomize examples and +# whether that seed has been used or not. +# +# @attr seed [Fixnum] the seed used to randomize ordering +# @attr used [Boolean] whether the seed has been used or not +# +# source://rspec-core//lib/rspec/core/notifications.rb#271 +class RSpec::Core::Notifications::SeedNotification < ::Struct + # @return [String] The seed information fully formatted in the way that + # RSpec's built-in formatters emit. + # + # source://rspec-core//lib/rspec/core/notifications.rb#282 + def fully_formatted; end + + # the seed used to randomize ordering + # + # @return [Fixnum] the current value of seed + def seed; end + + # the seed used to randomize ordering + # + # @param value [Fixnum] the value to set the attribute seed to. + # @return [Fixnum] the newly set value + def seed=(_); end + + # @api + # @return [Boolean] has the seed been used? + # + # source://rspec-core//lib/rspec/core/notifications.rb#275 + def seed_used?; end + + # whether the seed has been used or not + # + # @param value [Boolean] the value to set the attribute used to. + # @return [Boolean] the newly set value + def used=(_); end + + private + + # whether the seed has been used or not + # + # @return [Boolean] the current value of used + def used; end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# The `SkippedExampleNotification` extends `ExampleNotification` with +# things useful for specs that are skipped. +# +# @attr example [RSpec::Core::Example] the current example +# @see ExampleNotification +# +# source://rspec-core//lib/rspec/core/notifications.rb#230 +class RSpec::Core::Notifications::SkippedExampleNotification < ::RSpec::Core::Notifications::ExampleNotification + # @return [String] The pending detail fully formatted in the way that + # RSpec's built-in formatters emit. + # + # source://rspec-core//lib/rspec/core/notifications.rb#235 + def fully_formatted(pending_number, colorizer = T.unsafe(nil)); end + + class << self + def new(*_arg0); end + end +end + +# The `StartNotification` represents a notification sent by the reporter +# when the suite is started. It contains the expected amount of examples +# to be executed, and the load time of RSpec. +# +# @attr count [Fixnum] the number counted +# @attr load_time [Float] the number of seconds taken to boot RSpec +# and load the spec files +# +# source://rspec-core//lib/rspec/core/notifications.rb#26 +class RSpec::Core::Notifications::StartNotification < ::Struct + # the number counted + # + # @return [Fixnum] the current value of count + def count; end + + # the number counted + # + # @param value [Fixnum] the value to set the attribute count to. + # @return [Fixnum] the newly set value + def count=(_); end + + # the number of seconds taken to boot RSpec + # and load the spec files + # + # @return [Float] the current value of load_time + def load_time; end + + # the number of seconds taken to boot RSpec + # and load the spec files + # + # @param value [Float] the value to set the attribute load_time to. + # @return [Float] the newly set value + def load_time=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# The `SummaryNotification` holds information about the results of running +# a test suite. It is used by formatters to provide information at the end +# of the test run. +# +# @attr duration [Float] the time taken (in seconds) to run the suite +# @attr examples [Array] the examples run +# @attr failed_examples [Array] the failed examples +# @attr pending_examples [Array] the pending examples +# @attr load_time [Float] the number of seconds taken to boot RSpec +# and load the spec files +# @attr errors_outside_of_examples_count [Integer] the number of errors that +# have occurred processing +# the spec suite +# +# source://rspec-core//lib/rspec/core/notifications.rb#300 +class RSpec::Core::Notifications::SummaryNotification < ::Struct + include ::RSpec::Core::ShellEscape + + # Formats failures into a rerunable command format. + # + # @api public + # @param colorizer [#wrap] An object which supports wrapping text with + # specific colors. + # @return [String] A colorized summary line. + # + # source://rspec-core//lib/rspec/core/notifications.rb#364 + def colorized_rerun_commands(colorizer = T.unsafe(nil)); end + + # Wraps the results line with colors based on the configured + # colors for failure, pending, and success. Defaults to red, + # yellow, green accordingly. + # + # @api public + # @param colorizer [#wrap] An object which supports wrapping text with + # specific colors. + # @return [String] A colorized results line. + # + # source://rspec-core//lib/rspec/core/notifications.rb#347 + def colorized_totals_line(colorizer = T.unsafe(nil)); end + + # the time taken (in seconds) to run the suite + # + # @return [Float] the current value of duration + def duration; end + + # the time taken (in seconds) to run the suite + # + # @param value [Float] the value to set the attribute duration to. + # @return [Float] the newly set value + def duration=(_); end + + # the number of errors that + # have occurred processing + # the spec suite + # + # @return [Integer] the current value of errors_outside_of_examples_count + def errors_outside_of_examples_count; end + + # the number of errors that + # have occurred processing + # the spec suite + # + # @param value [Integer] the value to set the attribute errors_outside_of_examples_count to. + # @return [Integer] the newly set value + def errors_outside_of_examples_count=(_); end + + # @api + # @return [Fixnum] the number of examples run + # + # source://rspec-core//lib/rspec/core/notifications.rb#306 + def example_count; end + + # the examples run + # + # @return [Array] the current value of examples + def examples; end + + # the examples run + # + # @param value [Array] the value to set the attribute examples to. + # @return [Array] the newly set value + def examples=(_); end + + # the failed examples + # + # @return [Array] the current value of failed_examples + def failed_examples; end + + # the failed examples + # + # @param value [Array] the value to set the attribute failed_examples to. + # @return [Array] the newly set value + def failed_examples=(_); end + + # @api + # @return [Fixnum] the number of failed examples + # + # source://rspec-core//lib/rspec/core/notifications.rb#312 + def failure_count; end + + # @return [String] a formatted version of the time it took to run the + # suite + # + # source://rspec-core//lib/rspec/core/notifications.rb#374 + def formatted_duration; end + + # @return [String] a formatted version of the time it took to boot RSpec + # and load the spec files + # + # source://rspec-core//lib/rspec/core/notifications.rb#380 + def formatted_load_time; end + + # @return [String] The summary information fully formatted in the way that + # RSpec's built-in formatters emit. + # + # source://rspec-core//lib/rspec/core/notifications.rb#386 + def fully_formatted(colorizer = T.unsafe(nil)); end + + # the number of seconds taken to boot RSpec + # and load the spec files + # + # @return [Float] the current value of load_time + def load_time; end + + # the number of seconds taken to boot RSpec + # and load the spec files + # + # @param value [Float] the value to set the attribute load_time to. + # @return [Float] the newly set value + def load_time=(_); end + + # @api + # @return [Fixnum] the number of pending examples + # + # source://rspec-core//lib/rspec/core/notifications.rb#318 + def pending_count; end + + # the pending examples + # + # @return [Array] the current value of pending_examples + def pending_examples; end + + # the pending examples + # + # @param value [Array] the value to set the attribute pending_examples to. + # @return [Array] the newly set value + def pending_examples=(_); end + + # @api + # @return [String] A line summarising the result totals of the spec run. + # + # source://rspec-core//lib/rspec/core/notifications.rb#324 + def totals_line; end + + private + + # source://rspec-core//lib/rspec/core/notifications.rb#408 + def duplicate_rerun_locations; end + + # source://rspec-core//lib/rspec/core/notifications.rb#402 + def rerun_argument_for(example); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# # Used in place of a {Reporter} for situations where we don't want reporting output. +# +# @private +# +# source://rspec-core//lib/rspec/core/reporter.rb#259 +class RSpec::Core::NullReporter + class << self + private + + # source://rspec-core//lib/rspec/core/reporter.rb#260 + def method_missing(*_arg0); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/ordering.rb#4 +module RSpec::Core::Ordering; end + +# Manages ordering configuration. +# +# @note This is not intended to be used externally. Use +# the APIs provided by `RSpec::Core::Configuration` instead. +# @private +# +# source://rspec-core//lib/rspec/core/ordering.rb#144 +class RSpec::Core::Ordering::ConfigurationManager + # @return [ConfigurationManager] a new instance of ConfigurationManager + # + # source://rspec-core//lib/rspec/core/ordering.rb#147 + def initialize; end + + # source://rspec-core//lib/rspec/core/ordering.rb#190 + def force(hash); end + + # source://rspec-core//lib/rspec/core/ordering.rb#164 + def order=(type); end + + # Returns the value of attribute ordering_registry. + # + # source://rspec-core//lib/rspec/core/ordering.rb#145 + def ordering_registry; end + + # source://rspec-core//lib/rspec/core/ordering.rb#201 + def register_ordering(name, strategy = T.unsafe(nil)); end + + # Returns the value of attribute seed. + # + # source://rspec-core//lib/rspec/core/ordering.rb#145 + def seed; end + + # source://rspec-core//lib/rspec/core/ordering.rb#158 + def seed=(seed); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/ordering.rb#154 + def seed_used?; end +end + +# Orders items based on a custom block. +# +# @private +# +# source://rspec-core//lib/rspec/core/ordering.rb#71 +class RSpec::Core::Ordering::Custom + # @return [Custom] a new instance of Custom + # + # source://rspec-core//lib/rspec/core/ordering.rb#72 + def initialize(callable); end + + # source://rspec-core//lib/rspec/core/ordering.rb#76 + def order(list); end +end + +# A strategy which delays looking up the ordering until needed +# +# @private +# +# source://rspec-core//lib/rspec/core/ordering.rb#83 +class RSpec::Core::Ordering::Delayed + # @return [Delayed] a new instance of Delayed + # + # source://rspec-core//lib/rspec/core/ordering.rb#84 + def initialize(registry, name); end + + # source://rspec-core//lib/rspec/core/ordering.rb#89 + def order(list); end + + private + + # source://rspec-core//lib/rspec/core/ordering.rb#99 + def lookup_strategy; end + + # source://rspec-core//lib/rspec/core/ordering.rb#95 + def strategy; end +end + +# The default global ordering (defined order). +# +# @private +# +# source://rspec-core//lib/rspec/core/ordering.rb#7 +class RSpec::Core::Ordering::Identity + # source://rspec-core//lib/rspec/core/ordering.rb#8 + def order(items); end +end + +# Orders items randomly. +# +# @private +# +# source://rspec-core//lib/rspec/core/ordering.rb#15 +class RSpec::Core::Ordering::Random + # @return [Random] a new instance of Random + # + # source://rspec-core//lib/rspec/core/ordering.rb#16 + def initialize(configuration); end + + # source://rspec-core//lib/rspec/core/ordering.rb#25 + def order(items); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/ordering.rb#21 + def used?; end + + private + + # http://en.wikipedia.org/wiki/Jenkins_hash_function + # Jenkins provides a good distribution and is simpler than MD5. + # It's a bit slower than MD5 (primarily because `Digest::MD5` is + # implemented in C) but has the advantage of not requiring us + # to load another part of stdlib, which we try to minimize. + # + # source://rspec-core//lib/rspec/core/ordering.rb#39 + def jenkins_hash_digest(string); end +end + +# source://rspec-core//lib/rspec/core/ordering.rb#58 +RSpec::Core::Ordering::Random::MAX_32_BIT = T.let(T.unsafe(nil), Integer) + +# Orders items by modification time (most recent modified first). +# +# @private +# +# source://rspec-core//lib/rspec/core/ordering.rb#63 +class RSpec::Core::Ordering::RecentlyModified + # source://rspec-core//lib/rspec/core/ordering.rb#64 + def order(list); end +end + +# Stores the different ordering strategies. +# +# @private +# +# source://rspec-core//lib/rspec/core/ordering.rb#107 +class RSpec::Core::Ordering::Registry + # @return [Registry] a new instance of Registry + # + # source://rspec-core//lib/rspec/core/ordering.rb#108 + def initialize(configuration); end + + # source://rspec-core//lib/rspec/core/ordering.rb#122 + def fetch(name, &fallback); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/ordering.rb#126 + def has_strategy?(name); end + + # source://rspec-core//lib/rspec/core/ordering.rb#130 + def register(sym, strategy); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/ordering.rb#134 + def used_random_seed?; end +end + +# @private +# +# source://rspec-core//lib/rspec/core/output_wrapper.rb#4 +class RSpec::Core::OutputWrapper + # @private + # @return [OutputWrapper] a new instance of OutputWrapper + # + # source://rspec-core//lib/rspec/core/output_wrapper.rb#9 + def initialize(output); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def <<(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def advise(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def autoclose=(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def autoclose?(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def beep(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def binmode(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def binmode?(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def check_winsize_changed(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def clear_screen(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def close(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def close_on_exec=(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def close_on_exec?(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def close_read(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def close_write(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def closed?(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def console_mode(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def console_mode=(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def cooked(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def cooked!(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def cursor(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def cursor=(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def cursor_down(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def cursor_left(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def cursor_right(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def cursor_up(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def each(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def each_byte(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def each_char(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def each_codepoint(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def each_line(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def echo=(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def echo?(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def eof(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def eof?(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def erase_line(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def erase_screen(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def external_encoding(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def fcntl(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def fdatasync(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def fileno(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def flush(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def fsync(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def getbyte(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def getc(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def getch(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def getpass(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def gets(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def goto(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def goto_column(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def iflush(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def inspect(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def internal_encoding(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def ioctl(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def ioflush(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def isatty(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def lineno(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def lineno=(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#17 + def method_missing(name, *args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def noecho(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def nread(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def oflush(*args, &block); end + + # @private + # + # source://rspec-core//lib/rspec/core/output_wrapper.rb#6 + def output; end + + # @private + # + # source://rspec-core//lib/rspec/core/output_wrapper.rb#6 + def output=(_arg0); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def path(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def pathconf(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def pid(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def pos(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def pos=(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def pread(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def pressed?(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def print(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def printf(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def putc(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def puts(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def pwrite(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def raw(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def raw!(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def read(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def read_nonblock(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def readbyte(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def readchar(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def readline(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def readlines(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def readpartial(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def ready?(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def reopen(*args, &block); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/output_wrapper.rb#13 + def respond_to?(name, priv = T.unsafe(nil)); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def rewind(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def scroll_backward(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def scroll_forward(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def seek(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def set_encoding(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def set_encoding_by_bom(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def stat(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def sync(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def sync=(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def sysread(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def sysseek(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def syswrite(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def tell(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def timeout(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def timeout=(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def to_i(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def to_io(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def to_path(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def tty?(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def ungetbyte(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def ungetc(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def wait(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def wait_priority(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def wait_readable(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def wait_writable(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def winsize(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def winsize=(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def write(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def write_nonblock(*args, &block); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/option_parser.rb#6 +class RSpec::Core::Parser + # @return [Parser] a new instance of Parser + # + # source://rspec-core//lib/rspec/core/option_parser.rb#13 + def initialize(original_args); end + + # Returns the value of attribute original_args. + # + # source://rspec-core//lib/rspec/core/option_parser.rb#11 + def original_args; end + + # source://rspec-core//lib/rspec/core/option_parser.rb#17 + def parse(source = T.unsafe(nil)); end + + private + + # source://rspec-core//lib/rspec/core/option_parser.rb#312 + def add_tag_filter(options, filter_type, tag_name, value = T.unsafe(nil)); end + + # source://rspec-core//lib/rspec/core/option_parser.rb#320 + def configure_only_failures(options); end + + # source://rspec-core//lib/rspec/core/option_parser.rb#39 + def parser(options); end + + # source://rspec-core//lib/rspec/core/option_parser.rb#316 + def set_fail_fast(options, value); end + + class << self + # source://rspec-core//lib/rspec/core/option_parser.rb#7 + def parse(args, source = T.unsafe(nil)); end + end +end + +# Provides methods to mark examples as pending. These methods are available +# to be called from within any example or hook. +# +# source://rspec-core//lib/rspec/core/pending.rb#5 +module RSpec::Core::Pending + # Marks an example as pending. The rest of the example will still be + # executed, and if it passes the example will fail to indicate that the + # pending can be removed. + # + # @example + # describe "some behaviour" do + # # reported as "Pending: no reason given" + # it "is pending with no message" do + # pending + # raise "broken" + # end + # + # # reported as "Pending: something else getting finished" + # it "is pending with a custom message" do + # pending("something else getting finished") + # raise "broken" + # end + # end + # @note When using `pending` inside an example body using this method + # hooks, such as `before(:example)`, have already be run. This means that + # a failure from the code in the `before` hook will prevent the example + # from being considered pending, as the example body would not be + # executed. If you need to consider hooks as pending as well you can use + # the pending metadata as an alternative, e.g. + # `it "does something", pending: "message"`. + # @overload pending + # @overload pending + # @param message [String] optional message to add to the summary report. + # + # source://rspec-core//lib/rspec/core/pending.rb#62 + def pending(message = T.unsafe(nil), &_block); end + + # Marks an example as pending and skips execution. + # + # @example + # describe "an example" do + # # reported as "Pending: no reason given" + # it "is skipped with no message" do + # skip + # end + # + # # reported as "Pending: something else getting finished" + # it "is skipped with a custom message" do + # skip "something else getting finished" + # end + # end + # @overload skip + # @overload skip + # @param message [String] optional message to add to the summary report. + # @raise [SkipDeclaredInExample] + # + # source://rspec-core//lib/rspec/core/pending.rb#110 + def skip(message = T.unsafe(nil)); end + + class << self + # Mark example as fixed. + # + # @param example [RSpec::Core::Example] the example to mark as fixed + # @private + # + # source://rspec-core//lib/rspec/core/pending.rb#152 + def mark_fixed!(example); end + + # Mark example as pending. + # + # @param example [RSpec::Core::Example] the example to mark as pending + # @param message_or_bool [Boolean, String] the message to use, or true + # @private + # + # source://rspec-core//lib/rspec/core/pending.rb#135 + def mark_pending!(example, message_or_bool); end + + # Mark example as skipped. + # + # @param example [RSpec::Core::Example] the example to mark as skipped + # @param message_or_bool [Boolean, String] the message to use, or true + # @private + # + # source://rspec-core//lib/rspec/core/pending.rb#124 + def mark_skipped!(example, message_or_bool); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/pending.rb#29 +RSpec::Core::Pending::NOT_YET_IMPLEMENTED = T.let(T.unsafe(nil), String) + +# @private +# +# source://rspec-core//lib/rspec/core/pending.rb#26 +RSpec::Core::Pending::NO_REASON_GIVEN = T.let(T.unsafe(nil), String) + +# source://rspec-core//lib/rspec/core/pending.rb#22 +class RSpec::Core::Pending::PendingExampleFixedError < ::StandardError; end + +# Raised in the middle of an example to indicate that it should be marked +# as skipped. +# +# source://rspec-core//lib/rspec/core/pending.rb#8 +class RSpec::Core::Pending::SkipDeclaredInExample < ::StandardError + # @return [SkipDeclaredInExample] a new instance of SkipDeclaredInExample + # + # source://rspec-core//lib/rspec/core/pending.rb#11 + def initialize(argument); end + + # Returns the value of attribute argument. + # + # source://rspec-core//lib/rspec/core/pending.rb#9 + def argument; end +end + +# @private +# +# source://rspec-core//lib/rspec/core/profiler.rb#4 +class RSpec::Core::Profiler + # @return [Profiler] a new instance of Profiler + # + # source://rspec-core//lib/rspec/core/profiler.rb#7 + def initialize; end + + # source://rspec-core//lib/rspec/core/profiler.rb#20 + def example_group_finished(notification); end + + # source://rspec-core//lib/rspec/core/profiler.rb#13 + def example_group_started(notification); end + + # Returns the value of attribute example_groups. + # + # source://rspec-core//lib/rspec/core/profiler.rb#11 + def example_groups; end + + # source://rspec-core//lib/rspec/core/profiler.rb#28 + def example_started(notification); end +end + +# source://rspec-core//lib/rspec/core/profiler.rb#5 +RSpec::Core::Profiler::NOTIFICATIONS = T.let(T.unsafe(nil), Array) + +# A reporter will send notifications to listeners, usually formatters for the +# spec suite run. +# +# source://rspec-core//lib/rspec/core/reporter.rb#4 +class RSpec::Core::Reporter + # @return [Reporter] a new instance of Reporter + # + # source://rspec-core//lib/rspec/core/reporter.rb#14 + def initialize(configuration); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#214 + def abort_with(msg, exit_status); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#193 + def close_after; end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#155 + def deprecation(hash); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#143 + def example_failed(example); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#133 + def example_finished(example); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#122 + def example_group_finished(group); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#117 + def example_group_started(group); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#138 + def example_passed(example); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#149 + def example_pending(example); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#127 + def example_started(example); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#28 + def examples; end + + # Reports a run that exited early without having run any examples. + # + # @param exit_code [Integer] the exit_code to be return by the reporter + # + # source://rspec-core//lib/rspec/core/reporter.rb#84 + def exit_early(exit_code); end + + # @private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/reporter.rb#221 + def fail_fast_limit_met?; end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#28 + def failed_examples; end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#173 + def finish; end + + # Send a custom message to supporting formatters. + # + # @param message [#to_s] A message object to send to formatters + # + # source://rspec-core//lib/rspec/core/reporter.rb#99 + def message(message); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#206 + def notify(event, notification); end + + # Provides a way to notify of an exception that is not tied to any + # particular example (such as an exception encountered in a :suite hook). + # Exceptions will be formatted the same way they normally are. + # + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#163 + def notify_non_example_exception(exception, context_description); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#28 + def pending_examples; end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#45 + def prepare_default(loader, output_stream, deprecation_stream); end + + # Publish a custom event to supporting registered formatters. + # + # @param event [Symbol] Name of the custom event to trigger on formatters + # @param options [Hash] Hash of arguments to provide via `CustomNotification` + # @see RSpec::Core::Notifications::CustomNotification + # + # source://rspec-core//lib/rspec/core/reporter.rb#108 + def publish(event, options = T.unsafe(nil)); end + + # Registers a listener to a list of notifications. The reporter will send + # notification of events to all registered listeners. + # + # @param listener [Object] An object that wishes to be notified of reporter + # events + # @param notifications [Array] Array of symbols represents the events a + # listener wishes to subscribe too + # + # source://rspec-core//lib/rspec/core/reporter.rb#37 + def register_listener(listener, *notifications); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#52 + def registered_listeners(notification); end + + # Initializes the report run and yields itself for further reporting. The + # block is required, so that the reporter can manage cleaning up after the + # run. + # + # @example + # + # reporter.report(group.examples.size) do |r| + # example_groups.map {|g| g.run(r) } + # end + # @overload report + # @overload report + # @param expected_example_count [Integer] the number of examples being run + # @yield [Block] block yields itself for further reporting. + # + # source://rspec-core//lib/rspec/core/reporter.rb#71 + def report(expected_example_count); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#89 + def start(expected_example_count, time = T.unsafe(nil)); end + + # @private + # + # source://rspec-core//lib/rspec/core/reporter.rb#200 + def stop; end + + private + + # source://rspec-core//lib/rspec/core/reporter.rb#242 + def close; end + + # source://rspec-core//lib/rspec/core/reporter.rb#233 + def ensure_listeners_ready; end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/reporter.rb#246 + def mute_profile_output?; end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/reporter.rb#252 + def seed_used?; end +end + +# @private +# +# source://rspec-core//lib/rspec/core/reporter.rb#6 +RSpec::Core::Reporter::RSPEC_NOTIFICATIONS = T.let(T.unsafe(nil), RSpec::Core::Set) + +# @private +# +# source://rspec-core//lib/rspec/core/ruby_project.rb#7 +module RSpec::Core::RubyProject + private + + # source://rspec-core//lib/rspec/core/ruby_project.rb#12 + def add_dir_to_load_path(dir); end + + # source://rspec-core//lib/rspec/core/ruby_project.rb#8 + def add_to_load_path(*dirs); end + + # source://rspec-core//lib/rspec/core/ruby_project.rb#28 + def ascend_until; end + + # source://rspec-core//lib/rspec/core/ruby_project.rb#20 + def determine_root; end + + # source://rspec-core//lib/rspec/core/ruby_project.rb#24 + def find_first_parent_containing(dir); end + + # source://rspec-core//lib/rspec/core/ruby_project.rb#16 + def root; end + + class << self + # source://rspec-core//lib/rspec/core/ruby_project.rb#12 + def add_dir_to_load_path(dir); end + + # source://rspec-core//lib/rspec/core/ruby_project.rb#8 + def add_to_load_path(*dirs); end + + # source://rspec-core//lib/rspec/core/ruby_project.rb#28 + def ascend_until; end + + # source://rspec-core//lib/rspec/core/ruby_project.rb#20 + def determine_root; end + + # source://rspec-core//lib/rspec/core/ruby_project.rb#24 + def find_first_parent_containing(dir); end + + # source://rspec-core//lib/rspec/core/ruby_project.rb#16 + def root; end + end +end + +# Provides the main entry point to run a suite of RSpec examples. +# +# source://rspec-core//lib/rspec/core/runner.rb#4 +class RSpec::Core::Runner + # @return [Runner] a new instance of Runner + # + # source://rspec-core//lib/rspec/core/runner.rb#75 + def initialize(options, configuration = T.unsafe(nil), world = T.unsafe(nil)); end + + # @attr_reader + # @private + # + # source://rspec-core//lib/rspec/core/runner.rb#7 + def configuration; end + + # @private + # + # source://rspec-core//lib/rspec/core/runner.rb#129 + def configure(err, out); end + + # @private + # + # source://rspec-core//lib/rspec/core/runner.rb#194 + def exit_code(examples_passed = T.unsafe(nil)); end + + # @attr_reader + # @private + # + # source://rspec-core//lib/rspec/core/runner.rb#7 + def options; end + + # Configures and runs a spec suite. + # + # @param err [IO] error stream + # @param out [IO] output stream + # + # source://rspec-core//lib/rspec/core/runner.rb#85 + def run(err, out); end + + # Runs the provided example groups. + # + # @param example_groups [Array] groups to run + # @return [Fixnum] exit status code. 0 if all specs passed, + # or the configured failure exit code (1 by default) if specs + # failed. + # + # source://rspec-core//lib/rspec/core/runner.rb#113 + def run_specs(example_groups); end + + # Wires together the various configuration objects and state holders. + # + # @param err [IO] error stream + # @param out [IO] output stream + # + # source://rspec-core//lib/rspec/core/runner.rb#98 + def setup(err, out); end + + # @attr_reader + # @private + # + # source://rspec-core//lib/rspec/core/runner.rb#7 + def world; end + + private + + # source://rspec-core//lib/rspec/core/runner.rb#203 + def persist_example_statuses; end + + class << self + # Register an `at_exit` hook that runs the suite when the process exits. + # + # @note This is not generally needed. The `rspec` command takes care + # of running examples for you without involving an `at_exit` + # hook. This is only needed if you are running specs using + # the `ruby` command, and even then, the normal way to invoke + # this is by requiring `rspec/autorun`. + # + # source://rspec-core//lib/rspec/core/runner.rb#16 + def autorun; end + + # @private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/runner.rb#141 + def autorun_disabled?; end + + # @private + # + # source://rspec-core//lib/rspec/core/runner.rb#136 + def disable_autorun!; end + + # @private + # + # source://rspec-core//lib/rspec/core/runner.rb#180 + def handle_interrupt; end + + # @private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/runner.rb#146 + def installed_at_exit?; end + + # Runs the suite of specs and exits the process with an appropriate exit + # code. + # + # source://rspec-core//lib/rspec/core/runner.rb#43 + def invoke; end + + # @private + # + # source://rspec-core//lib/rspec/core/runner.rb#29 + def perform_at_exit; end + + # Run a suite of RSpec examples. Does not exit. + # + # This is used internally by RSpec to run a suite, but is available + # for use by any other automation tool. + # + # If you want to run this multiple times in the same process, and you + # want files like `spec_helper.rb` to be reloaded, be sure to load `load` + # instead of `require`. + # + # @param args [Array] command-line-supported arguments + # @param err [IO] error stream + # @param out [IO] output stream + # @return [Fixnum] exit status code. 0 if all specs passed, + # or the configured failure exit code (1 by default) if specs + # failed. + # + # source://rspec-core//lib/rspec/core/runner.rb#64 + def run(args, err = T.unsafe(nil), out = T.unsafe(nil)); end + + # @private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/runner.rb#151 + def running_in_drb?; end + + # @private + # + # source://rspec-core//lib/rspec/core/runner.rb#175 + def trap_interrupt; end + end +end + +# We use this to replace `::Set` so we can have the advantage of +# constant time key lookups for unique arrays but without the +# potential to pollute a developers environment with an extra +# piece of the stdlib. This helps to prevent false positive +# builds. +# +# @private +# +# source://rspec-core//lib/rspec/core/set.rb#11 +class RSpec::Core::Set + include ::Enumerable + + # @return [Set] a new instance of Set + # + # source://rspec-core//lib/rspec/core/set.rb#14 + def initialize(array = T.unsafe(nil)); end + + # source://rspec-core//lib/rspec/core/set.rb#23 + def <<(key); end + + # source://rspec-core//lib/rspec/core/set.rb#48 + def clear; end + + # source://rspec-core//lib/rspec/core/set.rb#28 + def delete(key); end + + # source://rspec-core//lib/rspec/core/set.rb#32 + def each(&block); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/set.rb#19 + def empty?; end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/set.rb#37 + def include?(key); end + + # source://rspec-core//lib/rspec/core/set.rb#41 + def merge(values); end +end + +# Exposes {ExampleGroup}-level methods to a module, so you can include that +# module in an {ExampleGroup}. +# +# @example +# +# module LoggedInAsAdmin +# extend RSpec::Core::SharedContext +# before(:example) do +# log_in_as :admin +# end +# end +# +# describe "admin section" do +# include LoggedInAsAdmin +# # ... +# end +# +# source://rspec-core//lib/rspec/core/shared_context.rb#19 +module RSpec::Core::SharedContext + # @private + # + # source://rspec-core//lib/rspec/core/shared_context.rb#28 + def __shared_context_recordings; end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def after(*args, &block); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def append_after(*args, &block); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def append_before(*args, &block); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def around(*args, &block); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def before(*args, &block); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def context(*args, &block); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def describe(*args, &block); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def hooks(*args, &block); end + + # @private + # + # source://rspec-core//lib/rspec/core/shared_context.rb#21 + def included(group); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def let(*args, &block); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def let!(*args, &block); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def prepend_after(*args, &block); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def prepend_before(*args, &block); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def subject(*args, &block); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#42 + def subject!(*args, &block); end + + class << self + # @private + # + # source://rspec-core//lib/rspec/core/shared_context.rb#40 + def record(methods); end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core/shared_context.rb#33 +class RSpec::Core::SharedContext::Recording < ::Struct + # Returns the value of attribute args + # + # @return [Object] the current value of args + def args; end + + # Sets the attribute args + # + # @param value [Object] the value to set the attribute args to. + # @return [Object] the newly set value + def args=(_); end + + # Returns the value of attribute block + # + # @return [Object] the current value of block + def block; end + + # Sets the attribute block + # + # @param value [Object] the value to set the attribute block to. + # @return [Object] the newly set value + def block=(_); end + + # Returns the value of attribute method_name + # + # @return [Object] the current value of method_name + def method_name; end + + # Sets the attribute method_name + # + # @param value [Object] the value to set the attribute method_name to. + # @return [Object] the newly set value + def method_name=(_); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#34 + def playback_onto(group); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Shared example groups let you define common context and/or common +# examples that you wish to use in multiple example groups. +# +# When defined, the shared group block is stored for later evaluation. +# It can later be included in an example group either explicitly +# (using `include_examples`, `include_context` or `it_behaves_like`) +# or implicitly (via matching metadata). +# +# Named shared example groups are scoped based on where they are +# defined. Shared groups defined in an example group are available +# for inclusion in that example group or any child example groups, +# but not in any parent or sibling example groups. Shared example +# groups defined at the top level can be included from any example group. +# +# source://rspec-core//lib/rspec/core/shared_example_group.rb#57 +module RSpec::Core::SharedExampleGroup + # Stores the block for later use. The block will be evaluated + # in the context of an example group via `include_examples`, + # `include_context`, or `it_behaves_like`. + # + # @example + # shared_examples "auditable" do + # it "stores an audit record on save!" do + # expect { auditable.save! }.to change(Audit, :count).by(1) + # end + # end + # + # RSpec.describe Account do + # it_behaves_like "auditable" do + # let(:auditable) { Account.new } + # end + # end + # @overload shared_examples + # @overload shared_examples + # @see ExampleGroup.it_behaves_like + # @see ExampleGroup.include_examples + # @see ExampleGroup.include_context + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#90 + def shared_context(name, *args, &block); end + + # Stores the block for later use. The block will be evaluated + # in the context of an example group via `include_examples`, + # `include_context`, or `it_behaves_like`. + # + # @example + # shared_examples "auditable" do + # it "stores an audit record on save!" do + # expect { auditable.save! }.to change(Audit, :count).by(1) + # end + # end + # + # RSpec.describe Account do + # it_behaves_like "auditable" do + # let(:auditable) { Account.new } + # end + # end + # @overload shared_examples + # @overload shared_examples + # @see ExampleGroup.it_behaves_like + # @see ExampleGroup.include_examples + # @see ExampleGroup.include_context + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#90 + def shared_examples(name, *args, &block); end + + # Stores the block for later use. The block will be evaluated + # in the context of an example group via `include_examples`, + # `include_context`, or `it_behaves_like`. + # + # @example + # shared_examples "auditable" do + # it "stores an audit record on save!" do + # expect { auditable.save! }.to change(Audit, :count).by(1) + # end + # end + # + # RSpec.describe Account do + # it_behaves_like "auditable" do + # let(:auditable) { Account.new } + # end + # end + # @overload shared_examples + # @overload shared_examples + # @see ExampleGroup.it_behaves_like + # @see ExampleGroup.include_examples + # @see ExampleGroup.include_context + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#90 + def shared_examples_for(name, *args, &block); end +end + +# @private +# +# source://rspec-core//lib/rspec/core/shared_example_group.rb#149 +class RSpec::Core::SharedExampleGroup::Registry + # source://rspec-core//lib/rspec/core/shared_example_group.rb#150 + def add(context, name, *metadata_args, &block); end + + # source://rspec-core//lib/rspec/core/shared_example_group.rb#174 + def find(lookup_contexts, name); end + + private + + # :nocov: + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#257 + def ensure_block_has_source_location(_block); end + + # :nocov: + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#245 + def formatted_location(block); end + + # TODO: remove this in RSpec 4. This exists only to support + # `config.shared_context_metadata_behavior == :trigger_inclusion`, + # the legacy behavior of shared context metadata, which we do + # not want to support in RSpec 4. + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#189 + def legacy_add(context, name, *metadata_args, &block); end + + # source://rspec-core//lib/rspec/core/shared_example_group.rb#204 + def shared_example_groups; end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#208 + def valid_name?(candidate); end + + # source://rspec-core//lib/rspec/core/shared_example_group.rb#215 + def warn_if_key_taken(context, key, new_block); end +end + +# Shared examples top level DSL. +# +# @api private +# +# source://rspec-core//lib/rspec/core/shared_example_group.rb#106 +module RSpec::Core::SharedExampleGroup::TopLevelDSL + class << self + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#108 + def definitions; end + + # Adds the top level DSL methods to Module and the top level binding. + # + # @api private + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#126 + def expose_globally!; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#119 + def exposed_globally?; end + + # Removes the top level DSL methods to Module and the top level binding. + # + # @api private + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#135 + def remove_globally!; end + end +end + +# Contains information about the inclusion site of a shared example group. +# +# source://rspec-core//lib/rspec/core/example_group.rb#782 +class RSpec::Core::SharedExampleGroupInclusionStackFrame + # @private + # @return [SharedExampleGroupInclusionStackFrame] a new instance of SharedExampleGroupInclusionStackFrame + # + # source://rspec-core//lib/rspec/core/example_group.rb#789 + def initialize(shared_group_name, inclusion_location); end + + # @return [String] Description of this stack frame, in the form used by + # RSpec's built-in formatters. + # + # source://rspec-core//lib/rspec/core/example_group.rb#805 + def description; end + + # @return [String] The {#inclusion_location}, formatted for display by a formatter. + # + # source://rspec-core//lib/rspec/core/example_group.rb#795 + def formatted_inclusion_location; end + + # @return [String] the location where the shared example was included + # + # source://rspec-core//lib/rspec/core/example_group.rb#786 + def inclusion_location; end + + # @return [String] the name of the shared example group + # + # source://rspec-core//lib/rspec/core/example_group.rb#784 + def shared_group_name; end + + class << self + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#811 + def current_backtrace; end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#829 + def shared_example_group_inclusions; end + + # @private + # + # source://rspec-core//lib/rspec/core/example_group.rb#816 + def with_frame(name, location); end + end +end + +# Represents some functionality that is shared with multiple example groups. +# The functionality is defined by the provided block, which is lazily +# eval'd when the `SharedExampleGroupModule` instance is included in an example +# group. +# +# source://rspec-core//lib/rspec/core/shared_example_group.rb#9 +class RSpec::Core::SharedExampleGroupModule < ::Module + # @return [SharedExampleGroupModule] a new instance of SharedExampleGroupModule + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#13 + def initialize(description, definition, metadata); end + + # @private + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#11 + def definition; end + + # @private + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#34 + def include_in(klass, inclusion_line, args, customization_block); end + + # Ruby callback for when a module is included in another module is class. + # Our definition evaluates the shared group block in the context of the + # including example group. + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#28 + def included(klass); end + + # Provides a human-readable representation of this module. + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#20 + def inspect; end + + # Provides a human-readable representation of this module. + # + # source://rspec-core//lib/rspec/core/shared_example_group.rb#20 + def to_s; end +end + +# Deals with the fact that `shellwords` only works on POSIX systems. +# +# @private +# +# source://rspec-core//lib/rspec/core/shell_escape.rb#5 +module RSpec::Core::ShellEscape + private + + # source://rspec-core//lib/rspec/core/shell_escape.rb#32 + def conditionally_quote(id); end + + # :nocov: + # + # source://rspec-core//lib/rspec/core/shell_escape.rb#19 + def escape(shell_command); end + + # source://rspec-core//lib/rspec/core/shell_escape.rb#8 + def quote(argument); end + + # source://rspec-core//lib/rspec/core/shell_escape.rb#37 + def shell_allows_unquoted_ids?; end + + class << self + # source://rspec-core//lib/rspec/core/shell_escape.rb#32 + def conditionally_quote(id); end + + # source://rspec-core//lib/rspec/core/shell_escape.rb#19 + def escape(shell_command); end + + # source://rspec-core//lib/rspec/core/shell_escape.rb#8 + def quote(argument); end + + # @return [Boolean] + # + # source://rspec-core//lib/rspec/core/shell_escape.rb#37 + def shell_allows_unquoted_ids?; end + end +end + +# Known shells that require quoting: zsh, csh, tcsh. +# +# Feel free to add other shells to this list that are known to +# allow `rspec ./some_spec.rb[1:1]` syntax without quoting the id. +# +# @private +# +# source://rspec-core//lib/rspec/core/shell_escape.rb#30 +RSpec::Core::ShellEscape::SHELLS_ALLOWING_UNQUOTED_IDS = T.let(T.unsafe(nil), Array) + +# Provides an execution context for before/after :suite hooks. +# +# @private +# +# source://rspec-core//lib/rspec/core/example.rb#651 +class RSpec::Core::SuiteHookContext < ::RSpec::Core::Example + # @return [SuiteHookContext] a new instance of SuiteHookContext + # + # source://rspec-core//lib/rspec/core/example.rb#652 + def initialize(hook_description, reporter); end + + # source://rspec-core//lib/rspec/core/example.rb#659 + def set_exception(exception); end +end + +# This avoids issues with reporting time caused by examples that +# change the value/meaning of Time.now without properly restoring +# it. +# +# @private +# +# source://rspec-core//lib/rspec/core.rb#174 +class RSpec::Core::Time + class << self + def now(in: T.unsafe(nil)); end + end +end + +# Version information for RSpec Core. +# +# source://rspec-core//lib/rspec/core/version.rb#4 +module RSpec::Core::Version; end + +# Current version of RSpec Core, in semantic versioning format. +# +# source://rspec-core//lib/rspec/core/version.rb#6 +RSpec::Core::Version::STRING = T.let(T.unsafe(nil), String) + +# @private +# +# source://rspec-core//lib/rspec/core/warnings.rb#6 +module RSpec::Core::Warnings + # Used internally to print deprecation warnings. + # + # @private + # + # source://rspec-core//lib/rspec/core/warnings.rb#10 + def deprecate(deprecated, data = T.unsafe(nil)); end + + # Used internally to print deprecation warnings. + # + # @private + # + # source://rspec-core//lib/rspec/core/warnings.rb#22 + def warn_deprecation(message, opts = T.unsafe(nil)); end + + # @private + # + # source://rspec-core//lib/rspec/core/warnings.rb#27 + def warn_with(message, options = T.unsafe(nil)); end +end + +# Internal container for global non-configuration data. +# +# @api private +# +# source://rspec-core//lib/rspec/core/world.rb#6 +class RSpec::Core::World + # @api private + # @return [World] a new instance of World + # + # source://rspec-core//lib/rspec/core/world.rb#26 + def initialize(configuration = T.unsafe(nil)); end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#115 + def all_example_groups; end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#120 + def all_examples; end + + # Add exclusion filters to announcement message. + # + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#226 + def announce_exclusion_filter(announcements); end + + # Notify reporter of filters. + # + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#171 + def announce_filters; end + + # Add inclusion filters to announcement message. + # + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#217 + def announce_inclusion_filter(announcements); end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#210 + def everything_filtered_message; end + + # Get count of examples to be run. + # + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#109 + def example_count(groups = T.unsafe(nil)); end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#8 + def example_group_counts_by_spec_file; end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#8 + def example_groups; end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#102 + def exclusion_filter; end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#69 + def filter_manager; end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#8 + def filtered_examples; end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#97 + def inclusion_filter; end + + # Used internally to signal that a failure outside of an example + # has occurred, and that therefore the exit status should indicate + # the run failed. + # + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#24 + def non_example_failure; end + + # Used internally to signal that a failure outside of an example + # has occurred, and that therefore the exit status should indicate + # the run failed. + # + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#24 + def non_example_failure=(_arg0); end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#87 + def num_example_groups_defined_in(file); end + + # Apply ordering strategy from configuration to example groups. + # + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#52 + def ordered_example_groups; end + + # Find line number of previous declaration. + # + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#140 + def preceding_declaration_line(absolute_file_name, filter_line); end + + # Prepares filters so that they apply to example groups when they run. + # + # This is a separate method so that filters can be modified/replaced and + # examples refiltered during a process's lifetime, which can be useful for + # a custom runner. + # + # @api public + # + # source://rspec-core//lib/rspec/core/world.rb#43 + def prepare_example_filtering; end + + # Records an example group. + # + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#81 + def record(example_group); end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#74 + def registered_example_group_files; end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#205 + def report_filter_message(message); end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#149 + def reporter; end + + # Reset world to 'scratch' before running suite. + # + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#60 + def reset; end + + # Used internally to signify that a SystemExit occurred in + # `Configuration#load_file_handling_errors`, and thus examples cannot + # be counted accurately. Specifically, we cannot accurately report + # "No examples found". + # + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#18 + def rspec_is_quitting; end + + # Used internally to signify that a SystemExit occurred in + # `Configuration#load_file_handling_errors`, and thus examples cannot + # be counted accurately. Specifically, we cannot accurately report + # "No examples found". + # + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#18 + def rspec_is_quitting=(_arg0); end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#92 + def shared_example_group_registry; end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#154 + def source_from_file(path); end + + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#164 + def syntax_highlighter; end + + # Traverses the tree of each top level group. + # For each it yields the group, then the children, recursively. + # Halts the traversal of a branch of the tree as soon as the passed block returns true. + # Note that siblings groups and their sub-trees will continue to be explored. + # This is intended to make it easy to find the top-most group that satisfies some + # condition. + # + # @api private + # @private + # + # source://rspec-core//lib/rspec/core/world.rb#131 + def traverse_example_group_trees_until(&block); end + + # Used internally to determine what to do when a SIGINT is received. + # + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#11 + def wants_to_quit; end + + # Used internally to determine what to do when a SIGINT is received. + # + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#11 + def wants_to_quit=(_arg0); end + + private + + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#234 + def descending_declaration_line_numbers_by_file; end + + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#252 + def fail_if_config_and_cli_options_invalid; end +end + +# Provides a null implementation for initial use by configuration. +# +# @api private +# @private +# +# source://rspec-core//lib/rspec/core/world.rb#264 +module RSpec::Core::World::Null + class << self + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#280 + def all_example_groups; end + + # :nocov: + # + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#276 + def example_groups; end + + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#265 + def non_example_failure; end + + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#266 + def non_example_failure=(_); end + + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#268 + def registered_example_group_files; end + + # @api private + # + # source://rspec-core//lib/rspec/core/world.rb#272 + def traverse_example_group_trees_until; end + end +end + +# Namespace for the example group subclasses generated by top-level +# `describe`. +# +# @private +# +# source://rspec-core//lib/rspec/core/example_group.rb#839 +module RSpec::ExampleGroups + extend ::RSpec::Support::RecursiveConstMethods + + class << self + # source://rspec-core//lib/rspec/core/example_group.rb#842 + def assign_const(group); end + + # source://rspec-core//lib/rspec/core/example_group.rb#862 + def base_name_for(group); end + + # source://rspec-core//lib/rspec/core/example_group.rb#850 + def constant_scope_for(group); end + + # source://rspec-core//lib/rspec/core/example_group.rb#895 + def disambiguate(name, const_scope); end + + # source://rspec-core//lib/rspec/core/example_group.rb#856 + def remove_all_constants; end + end +end + +# @private +# +# source://rspec-core//lib/rspec/core.rb#187 +RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash) + +# @private +# +# source://rspec-core//lib/rspec/core/shared_context.rb#54 +RSpec::SharedContext = RSpec::Core::SharedContext diff --git a/Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi b/Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi new file mode 100644 index 0000000000..145b48af65 --- /dev/null +++ b/Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi @@ -0,0 +1,8183 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rspec-expectations` gem. +# Please instead update this file by running `bin/tapioca gem rspec-expectations`. + + +# RSpec's top level namespace. All of rspec-expectations is contained +# in the `RSpec::Expectations` and `RSpec::Matchers` namespaces. +# +# source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#1 +module RSpec + class << self + # source://rspec-core/3.13.2/lib/rspec/core.rb#70 + def clear_examples; end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#85 + def configuration; end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#49 + def configuration=(_arg0); end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#97 + def configure; end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#194 + def const_missing(name); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def context(*args, &example_group_block); end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#122 + def current_example; end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#128 + def current_example=(example); end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#154 + def current_scope; end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#134 + def current_scope=(scope); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def describe(*args, &example_group_block); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def example_group(*args, &example_group_block); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def fcontext(*args, &example_group_block); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def fdescribe(*args, &example_group_block); end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#58 + def reset; end + + # source://rspec-core/3.13.2/lib/rspec/core/shared_example_group.rb#110 + def shared_context(name, *args, &block); end + + # source://rspec-core/3.13.2/lib/rspec/core/shared_example_group.rb#110 + def shared_examples(name, *args, &block); end + + # source://rspec-core/3.13.2/lib/rspec/core/shared_example_group.rb#110 + def shared_examples_for(name, *args, &block); end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#160 + def world; end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#49 + def world=(_arg0); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def xcontext(*args, &example_group_block); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def xdescribe(*args, &example_group_block); end + end +end + +# RSpec::Expectations provides a simple, readable API to express +# the expected outcomes in a code example. To express an expected +# outcome, wrap an object or block in `expect`, call `to` or `to_not` +# (aliased as `not_to`) and pass it a matcher object: +# +# expect(order.total).to eq(Money.new(5.55, :USD)) +# expect(list).to include(user) +# expect(message).not_to match(/foo/) +# expect { do_something }.to raise_error +# +# The last form (the block form) is needed to match against ruby constructs +# that are not objects, but can only be observed when executing a block +# of code. This includes raising errors, throwing symbols, yielding, +# and changing values. +# +# When `expect(...).to` is invoked with a matcher, it turns around +# and calls `matcher.matches?()`. For example, +# in the expression: +# +# expect(order.total).to eq(Money.new(5.55, :USD)) +# +# ...`eq(Money.new(5.55, :USD))` returns a matcher object, and it results +# in the equivalent of `eq.matches?(order.total)`. If `matches?` returns +# `true`, the expectation is met and execution continues. If `false`, then +# the spec fails with the message returned by `eq.failure_message`. +# +# Given the expression: +# +# expect(order.entries).not_to include(entry) +# +# ...the `not_to` method (also available as `to_not`) invokes the equivalent of +# `include.matches?(order.entries)`, but it interprets `false` as success, and +# `true` as a failure, using the message generated by +# `include.failure_message_when_negated`. +# +# rspec-expectations ships with a standard set of useful matchers, and writing +# your own matchers is quite simple. +# +# See [RSpec::Matchers](../RSpec/Matchers) for more information about the +# built-in matchers that ship with rspec-expectations, and how to write your +# own custom matchers. +# +# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#2 +module RSpec::Expectations + class << self + # The configuration object. + # + # @return [RSpec::Expectations::Configuration] the configuration object + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#228 + def configuration; end + + # @private + # + # source://rspec-expectations//lib/rspec/expectations/fail_with.rb#13 + def differ; end + + # Raises an RSpec::Expectations::ExpectationNotMetError with message. + # Adds a diff to the failure message when `expected` and `actual` are + # both present. + # + # @param message [String] + # @param expected [Object] + # @param actual [Object] + # + # source://rspec-expectations//lib/rspec/expectations/fail_with.rb#27 + def fail_with(message, expected = T.unsafe(nil), actual = T.unsafe(nil)); end + end +end + +# Validates the provided matcher to ensure it supports block +# expectations, in order to avoid user confusion when they +# use a block thinking the expectation will be on the return +# value of the block rather than the block itself. +# +# @private +# +# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#136 +class RSpec::Expectations::BlockExpectationTarget < ::RSpec::Expectations::ExpectationTarget + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#142 + def not_to(matcher, message = T.unsafe(nil), &block); end + + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#137 + def to(matcher, message = T.unsafe(nil), &block); end + + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#142 + def to_not(matcher, message = T.unsafe(nil), &block); end + + private + + # @raise [ExpectationNotMetError] + # + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#150 + def enforce_block_expectation(matcher); end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#158 + def supports_block_expectations?(matcher); end +end + +# @private +# +# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#4 +class RSpec::Expectations::BlockSnippetExtractor + # @return [BlockSnippetExtractor] a new instance of BlockSnippetExtractor + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#17 + def initialize(proc, method_name); end + + # Ideally we should properly handle indentations of multiline snippet, + # but it's not implemented yet since because we use result of this method only when it's a + # single line and implementing the logic introduces additional complexity. + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#25 + def body_content_lines; end + + # rubocop should properly handle `Struct.new {}` as an inner class definition. + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#7 + def method_name; end + + # rubocop should properly handle `Struct.new {}` as an inner class definition. + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#7 + def proc; end + + private + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#62 + def beginning_line_number; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#39 + def block_token_extractor; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#58 + def file_path; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#31 + def raw_body_lines; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#35 + def raw_body_snippet; end + + # @raise [TargetNotFoundError] + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#44 + def source; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#66 + def source_location; end + + class << self + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#9 + def try_extracting_single_line_body_of(proc, method_name); end + end +end + +# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#72 +class RSpec::Expectations::BlockSnippetExtractor::AmbiguousTargetError < ::RSpec::Expectations::BlockSnippetExtractor::Error; end + +# Locates target block with node information (semantics), which tokens don't have. +# +# @private +# +# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 +class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct + # Returns the value of attribute beginning_line_number + # + # @return [Object] the current value of beginning_line_number + def beginning_line_number; end + + # Sets the attribute beginning_line_number + # + # @param value [Object] the value to set the attribute beginning_line_number to. + # @return [Object] the newly set value + def beginning_line_number=(_); end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#205 + def body_content_locations; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#201 + def method_call_location; end + + # Returns the value of attribute method_name + # + # @return [Object] the current value of method_name + def method_name; end + + # Sets the attribute method_name + # + # @param value [Object] the value to set the attribute method_name to. + # @return [Object] the newly set value + def method_name=(_); end + + # Returns the value of attribute source + # + # @return [Object] the current value of source + def source; end + + # Sets the attribute source + # + # @param value [Object] the value to set the attribute source to. + # @return [Object] the newly set value + def source=(_); end + + private + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#218 + def block_body_node; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#223 + def block_wrapper_node; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#234 + def candidate_block_wrapper_nodes; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#243 + def candidate_method_ident_nodes; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#211 + def method_ident_node; end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#249 + def method_ident_node?(node); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Performs extraction of block body snippet using tokens, +# which cannot be done with node information. +# +# @private +# +# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 +class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct + # @return [BlockTokenExtractor] a new instance of BlockTokenExtractor + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#80 + def initialize(*_arg0); end + + # Returns the value of attribute beginning_line_number + # + # @return [Object] the current value of beginning_line_number + def beginning_line_number; end + + # Sets the attribute beginning_line_number + # + # @param value [Object] the value to set the attribute beginning_line_number to. + # @return [Object] the newly set value + def beginning_line_number=(_); end + + # Returns the value of attribute body_tokens. + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#78 + def body_tokens; end + + # Returns the value of attribute method_name + # + # @return [Object] the current value of method_name + def method_name; end + + # Sets the attribute method_name + # + # @param value [Object] the value to set the attribute method_name to. + # @return [Object] the newly set value + def method_name=(_); end + + # Returns the value of attribute source + # + # @return [Object] the current value of source + def source; end + + # Sets the attribute source + # + # @param value [Object] the value to set the attribute source to. + # @return [Object] the newly set value + def source=(_); end + + # Returns the value of attribute state. + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#78 + def state; end + + private + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#126 + def after_beginning_of_args_state(token); end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#130 + def after_beginning_of_body_state(token); end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#109 + def after_method_call_state(token); end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#113 + def after_opener_state(token); end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#193 + def block_locator; end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#187 + def correct_block?(body_tokens); end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#143 + def finalize_pending_tokens!; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#97 + def finish!; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#149 + def finish_or_find_next_block_if_incorrect!; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#170 + def handle_closer_token(token); end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#160 + def handle_opener_token(token); end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#105 + def initial_state(token); end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#101 + def invoke_state_handler(token); end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#166 + def opener_token?(token); end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#179 + def opener_token_stack; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#87 + def parse!; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#139 + def pending_tokens; end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#183 + def pipe_token?(token); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#70 +class RSpec::Expectations::BlockSnippetExtractor::Error < ::StandardError; end + +# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#71 +class RSpec::Expectations::BlockSnippetExtractor::TargetNotFoundError < ::RSpec::Expectations::BlockSnippetExtractor::Error; end + +# Provides configuration options for rspec-expectations. +# If you are using rspec-core, you can access this via a +# block passed to `RSpec::Core::Configuration#expect_with`. +# Otherwise, you can access it via RSpec::Expectations.configuration. +# +# @example +# RSpec.configure do |rspec| +# rspec.expect_with :rspec do |c| +# # c is the config object +# end +# end +# +# # or +# +# RSpec::Expectations.configuration +# +# source://rspec-expectations//lib/rspec/expectations/configuration.rb#20 +class RSpec::Expectations::Configuration + # @return [Configuration] a new instance of Configuration + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#29 + def initialize; end + + # :nocov: Because this is only really _useful_ on 1.8, and hard to test elsewhere. + # + # Adds `should` and `should_not` to the given classes + # or modules. This can be used to ensure `should` works + # properly on things like proxy objects (particular + # `Delegator`-subclassed objects on 1.8). + # + # @param modules [Array] the list of classes or modules + # to add `should` and `should_not` to. + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#116 + def add_should_and_should_not_to(*modules); end + + # Sets or gets the backtrace formatter. The backtrace formatter should + # implement `#format_backtrace(Array)`. This is used + # to format backtraces of errors handled by the `raise_error` + # matcher. + # + # If you are using rspec-core, rspec-core's backtrace formatting + # will be used (including respecting the presence or absence of + # the `--backtrace` option). + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#134 + def backtrace_formatter; end + + # Sets or gets the backtrace formatter. The backtrace formatter should + # implement `#format_backtrace(Array)`. This is used + # to format backtraces of errors handled by the `raise_error` + # matcher. + # + # If you are using rspec-core, rspec-core's backtrace formatting + # will be used (including respecting the presence or absence of + # the `--backtrace` option). + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#133 + def backtrace_formatter=(_arg0); end + + # Indicates whether or not diffs should be colored. + # Delegates to rspec-core's color option if rspec-core + # is loaded; otherwise you can set it here. + # + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#88 + def color?; end + + # @private + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#221 + def false_positives_handler; end + + # Sets if custom matcher descriptions and failure messages + # should include clauses from methods defined using `chain`. + # + # @param value [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#145 + def include_chain_clauses_in_custom_matcher_descriptions=(_arg0); end + + # Indicates whether or not custom matcher descriptions and failure messages + # should include clauses from methods defined using `chain`. It is + # false by default for backwards compatibility. + # + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#150 + def include_chain_clauses_in_custom_matcher_descriptions?; end + + # Configures the maximum character length that RSpec will print while + # formatting an object. You can set length to nil to prevent RSpec from + # doing truncation. + # + # @example + # RSpec.configure do |rspec| + # rspec.expect_with :rspec do |c| + # c.max_formatted_output_length = 200 + # end + # end + # @param length [Fixnum] the number of characters to limit the formatted output to. + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#70 + def max_formatted_output_length=(length); end + + # Indicates what RSpec will do about matcher use which will + # potentially cause false positives in tests, generally you want to + # avoid such scenarios so this defaults to `true`. + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#211 + def on_potential_false_positives; end + + # Configures what RSpec will do about matcher use which will + # potentially cause false positives in tests. + # + # @param behavior [Symbol] can be set to :warn, :raise or :nothing + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#187 + def on_potential_false_positives=(behavior); end + + # @private + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#155 + def reset_syntaxes_to_default; end + + # Returns the value of attribute strict_predicate_matchers. + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#202 + def strict_predicate_matchers; end + + # Configures RSpec to check predicate matchers to `be(true)` / `be(false)` (strict), + # or `be_truthy` / `be_falsey` (not strict). + # Historically, the default was `false`, but `true` is recommended. + # + # @raise [ArgumentError] + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#197 + def strict_predicate_matchers=(flag); end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#204 + def strict_predicate_matchers?; end + + # The list of configured syntaxes. + # + # @example + # unless RSpec::Matchers.configuration.syntax.include?(:expect) + # raise "this RSpec extension gem requires the rspec-expectations `:expect` syntax" + # end + # @return [Array] the list of configured syntaxes. + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#80 + def syntax; end + + # Configures the supported syntax. + # + # @example + # RSpec.configure do |rspec| + # rspec.expect_with :rspec do |c| + # c.syntax = :should + # # or + # c.syntax = :expect + # # or + # c.syntax = [:should, :expect] + # end + # end + # @param values [Array, Symbol] the syntaxes to enable + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#46 + def syntax=(values); end + + # Configures whether RSpec will warn about matcher use which will + # potentially cause false positives in tests. + # + # @param boolean [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#173 + def warn_about_potential_false_positives=(boolean); end + + # Indicates whether RSpec will warn about matcher use which will + # potentially cause false positives in tests, generally you want to + # avoid such scenarios so this defaults to `true`. + # + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#216 + def warn_about_potential_false_positives?; end +end + +# @private +# +# source://rspec-expectations//lib/rspec/expectations/configuration.rb#22 +RSpec::Expectations::Configuration::FALSE_POSITIVE_BEHAVIOURS = T.let(T.unsafe(nil), Hash) + +# Null implementation of a backtrace formatter used by default +# when rspec-core is not loaded. Does no filtering. +# +# @api private +# +# source://rspec-expectations//lib/rspec/expectations/configuration.rb#163 +module RSpec::Expectations::Configuration::NullBacktraceFormatter + class << self + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#164 + def format_backtrace(backtrace); end + end +end + +# @private +# +# source://rspec-expectations//lib/rspec/expectations/handler.rb#4 +module RSpec::Expectations::ExpectationHelper + class << self + # source://rspec-expectations//lib/rspec/expectations/handler.rb#5 + def check_message(msg); end + + # source://rspec-expectations//lib/rspec/expectations/handler.rb#32 + def handle_failure(matcher, message, failure_message_method); end + + # Returns an RSpec-3+ compatible matcher, wrapping a legacy one + # in an adapter if necessary. + # + # @private + # + # source://rspec-expectations//lib/rspec/expectations/handler.rb#18 + def modern_matcher_from(matcher); end + + # source://rspec-expectations//lib/rspec/expectations/handler.rb#23 + def with_matcher(handler, matcher, message); end + end +end + +# Exception raised when an expectation fails. +# +# the user sets an expectation, it can't be caught in their +# code by a bare `rescue`. +# +# @api public +# @note We subclass Exception so that in a stub implementation if +# +# source://rspec-expectations//lib/rspec/expectations.rb#67 +class RSpec::Expectations::ExpectationNotMetError < ::Exception; end + +# Wraps the target of an expectation. +# +# @example +# expect(something) # => ExpectationTarget wrapping something +# expect { do_something } # => ExpectationTarget wrapping the block +# +# # used with `to` +# expect(actual).to eq(3) +# +# # with `not_to` +# expect(actual).not_to eq(3) +# @note `ExpectationTarget` is not intended to be instantiated +# directly by users. Use `expect` instead. +# +# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#17 +class RSpec::Expectations::ExpectationTarget + include ::RSpec::Expectations::ExpectationTarget::InstanceMethods + + # @api private + # @return [ExpectationTarget] a new instance of ExpectationTarget + # + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#31 + def initialize(value); end + + # @note this name aligns with `Minitest::Expectation` so that our + # {InstanceMethods} module can be included in that class when + # used in a Minitest context. + # @return [Object] the target of the expectation + # + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#28 + def target; end + + class << self + # @private + # + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#36 + def for(value, block); end + end +end + +# Defines instance {ExpectationTarget} instance methods. These are defined +# in a module so we can include it in `Minitest::Expectation` when +# `rspec/expectations/minitest_integration` is loaded in order to +# support usage with Minitest. +# +# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#53 +module RSpec::Expectations::ExpectationTarget::InstanceMethods + # Runs the given expectation, passing if `matcher` returns false. + # + # @example + # expect(value).not_to eq(5) + # @param matcher [Matcher] + # @param message [String, Proc] optional message to display when the expectation fails + # @return [Boolean] false if the negative expectation succeeds (else raises) + # @see RSpec::Matchers + # + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#76 + def not_to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end + + # Runs the given expectation, passing if `matcher` returns true. + # + # @example + # expect(value).to eq(5) + # expect { perform }.to raise_error + # @param matcher [Matcher] + # @param message [String, Proc] optional message to display when the expectation fails + # @return [Boolean] true if the expectation succeeds (else raises) + # @see RSpec::Matchers + # + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#63 + def to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end + + # Runs the given expectation, passing if `matcher` returns false. + # + # @example + # expect(value).not_to eq(5) + # @param matcher [Matcher] + # @param message [String, Proc] optional message to display when the expectation fails + # @return [Boolean] false if the negative expectation succeeds (else raises) + # @see RSpec::Matchers + # + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#76 + def to_not(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end + + private + + # @raise [ArgumentError] + # + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#84 + def prevent_operator_matchers(verb); end +end + +# Used as a sentinel value to be able to tell when the user +# did not pass an argument. We can't use `nil` for that because +# `nil` is a valid value to pass. +# +# @private +# +# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#22 +module RSpec::Expectations::ExpectationTarget::UndefinedValue; end + +# @private +# +# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#4 +class RSpec::Expectations::FailureAggregator + # @return [FailureAggregator] a new instance of FailureAggregator + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#97 + def initialize(block_label, metadata); end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#27 + def aggregate; end + + # Returns the value of attribute block_label. + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#5 + def block_label; end + + # This method is defined to satisfy the callable interface + # expected by `RSpec::Support.with_failure_notifier`. + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#64 + def call(failure, options); end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#54 + def failures; end + + # Returns the value of attribute metadata. + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#5 + def metadata; end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#58 + def other_errors; end + + private + + # Using `caller` performs better (and is simpler) than `raise` on most Rubies. + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#92 + def assign_backtrace(failure); end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#103 + def notify_aggregated_failures; end +end + +# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#25 +RSpec::Expectations::FailureAggregator::AGGREGATED_FAILURE = T.let(T.unsafe(nil), RSpec::Expectations::FailureAggregator::AggregatedFailure) + +# @private +# +# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#8 +class RSpec::Expectations::FailureAggregator::AggregatedFailure + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#19 + def inspect; end +end + +# :nocov: +# `inspect` was apparently used by some versions early in ruby 3 while constructing +# NoMethodError, but seems to be no longer. +# +# @private +# +# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#14 +RSpec::Expectations::FailureAggregator::AggregatedFailure::MESSAGE = T.let(T.unsafe(nil), String) + +# RSpec 3.0 was released with the class name misspelled. For SemVer compatibility, +# we will provide this misspelled alias until 4.0. +# +# @deprecated Use LegacyMatcherAdapter instead. +# @private +# +# source://rspec-expectations//lib/rspec/expectations/handler.rb#179 +RSpec::Expectations::LegacyMacherAdapter = RSpec::Expectations::LegacyMatcherAdapter + +# Wraps a matcher written against one of the legacy protocols in +# order to present the current protocol. +# +# @private +# +# source://rspec-expectations//lib/rspec/expectations/handler.rb#112 +class RSpec::Expectations::LegacyMatcherAdapter < ::RSpec::Matchers::MatcherDelegator + # @return [LegacyMatcherAdapter] a new instance of LegacyMatcherAdapter + # + # source://rspec-expectations//lib/rspec/expectations/handler.rb#113 + def initialize(matcher); end + + class << self + # source://rspec-expectations//lib/rspec/expectations/handler.rb#123 + def wrap(matcher); end + end +end + +# Before RSpec 1.2, the failure message protocol was: +# * `failure_message` +# * `negative_failure_message` +# +# @private +# +# source://rspec-expectations//lib/rspec/expectations/handler.rb#156 +class RSpec::Expectations::LegacyMatcherAdapter::RSpec1 < ::RSpec::Expectations::LegacyMatcherAdapter + # source://rspec-expectations//lib/rspec/expectations/handler.rb#157 + def failure_message; end + + # source://rspec-expectations//lib/rspec/expectations/handler.rb#161 + def failure_message_when_negated; end + + class << self + # Note: `failure_message` is part of the RSpec 3 protocol + # (paired with `failure_message_when_negated`), so we don't check + # for `failure_message` here. + # + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/handler.rb#168 + def interface_matches?(matcher); end + end +end + +# Starting in RSpec 1.2 (and continuing through all 2.x releases), +# the failure message protocol was: +# * `failure_message_for_should` +# * `failure_message_for_should_not` +# +# @private +# +# source://rspec-expectations//lib/rspec/expectations/handler.rb#132 +class RSpec::Expectations::LegacyMatcherAdapter::RSpec2 < ::RSpec::Expectations::LegacyMatcherAdapter + # source://rspec-expectations//lib/rspec/expectations/handler.rb#133 + def failure_message; end + + # source://rspec-expectations//lib/rspec/expectations/handler.rb#137 + def failure_message_when_negated; end + + class << self + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/handler.rb#141 + def interface_matches?(matcher); end + end +end + +# Exception raised from `aggregate_failures` when multiple expectations fail. +# +# @note The constant is defined here but the extensive logic of this class +# is lazily defined when `FailureAggregator` is autoloaded, since we do +# not need to waste time defining that functionality unless +# `aggregate_failures` is used. +# +# source://rspec-expectations//lib/rspec/expectations.rb#76 +class RSpec::Expectations::MultipleExpectationsNotMetError < ::RSpec::Expectations::ExpectationNotMetError + # @return [MultipleExpectationsNotMetError] a new instance of MultipleExpectationsNotMetError + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#160 + def initialize(failure_aggregator); end + + # @return [String] The user-assigned label for the aggregation block. + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#135 + def aggregation_block_label; end + + # @return [Hash] The metadata hash passed to `aggregate_failures`. + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#140 + def aggregation_metadata; end + + # @return [Array] The list of expectation failures and other exceptions, combined. + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#132 + def all_exceptions; end + + # return [String] A description of the failure/error counts. + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#151 + def exception_count_description; end + + # @return [Array] The list of expectation failures. + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#122 + def failures; end + + # @return [String] The fully formatted exception message. + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#117 + def message; end + + # @return [Array] The list of other exceptions. + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#127 + def other_errors; end + + # @return [String] A summary of the failure, including the block label and a count of failures. + # + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#145 + def summary; end + + private + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#192 + def backtrace_line(line); end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#165 + def block_description; end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#174 + def enumerated(exceptions, index_offset); end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#204 + def enumerated_errors; end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#200 + def enumerated_failures; end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#182 + def exclusion_patterns; end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#188 + def format_backtrace(backtrace); end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#219 + def indentation; end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#210 + def indented(failure_message, index); end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#231 + def index_label(index); end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#223 + def longest_index_label_width; end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#170 + def pluralize(noun, count); end + + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#227 + def width_of_label(index); end +end + +# @private +# +# source://rspec-expectations//lib/rspec/expectations/handler.rb#73 +class RSpec::Expectations::NegativeExpectationHandler + class << self + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/handler.rb#87 + def does_not_match?(matcher, actual, &block); end + + # source://rspec-expectations//lib/rspec/expectations/handler.rb#74 + def handle_matcher(actual, initial_matcher, custom_message = T.unsafe(nil), &block); end + + # source://rspec-expectations//lib/rspec/expectations/handler.rb#103 + def opposite_should_method; end + + # source://rspec-expectations//lib/rspec/expectations/handler.rb#99 + def should_method; end + + # source://rspec-expectations//lib/rspec/expectations/handler.rb#95 + def verb; end + end +end + +# @private +# +# source://rspec-expectations//lib/rspec/expectations/handler.rb#45 +class RSpec::Expectations::PositiveExpectationHandler + class << self + # source://rspec-expectations//lib/rspec/expectations/handler.rb#46 + def handle_matcher(actual, initial_matcher, custom_message = T.unsafe(nil), &block); end + + # source://rspec-expectations//lib/rspec/expectations/handler.rb#67 + def opposite_should_method; end + + # source://rspec-expectations//lib/rspec/expectations/handler.rb#63 + def should_method; end + + # source://rspec-expectations//lib/rspec/expectations/handler.rb#59 + def verb; end + end +end + +# Provides methods for enabling and disabling the available +# syntaxes provided by rspec-expectations. +# +# @api private +# +# source://rspec-expectations//lib/rspec/expectations/syntax.rb#6 +module RSpec::Expectations::Syntax + private + + # Determines where we add `should` and `should_not`. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#11 + def default_should_host; end + + # Disables the `expect` syntax. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#80 + def disable_expect(syntax_host = T.unsafe(nil)); end + + # Disables the `should` syntax. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#57 + def disable_should(syntax_host = T.unsafe(nil)); end + + # Enables the `expect` syntax. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#68 + def enable_expect(syntax_host = T.unsafe(nil)); end + + # Enables the `should` syntax. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#38 + def enable_should(syntax_host = T.unsafe(nil)); end + + # Indicates whether or not the `expect` syntax is enabled. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#96 + def expect_enabled?(syntax_host = T.unsafe(nil)); end + + # Indicates whether or not the `should` syntax is enabled. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#90 + def should_enabled?(syntax_host = T.unsafe(nil)); end + + # Instructs rspec-expectations to warn on first usage of `should` or `should_not`. + # Enabled by default. This is largely here to facilitate testing. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#18 + def warn_about_should!; end + + # Generates a deprecation warning for the given method if no warning + # has already been issued. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#25 + def warn_about_should_unless_configured(method_name); end + + class << self + # Determines where we add `should` and `should_not`. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#11 + def default_should_host; end + + # Disables the `expect` syntax. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#80 + def disable_expect(syntax_host = T.unsafe(nil)); end + + # Disables the `should` syntax. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#57 + def disable_should(syntax_host = T.unsafe(nil)); end + + # Enables the `expect` syntax. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#68 + def enable_expect(syntax_host = T.unsafe(nil)); end + + # Enables the `should` syntax. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#38 + def enable_should(syntax_host = T.unsafe(nil)); end + + # Indicates whether or not the `expect` syntax is enabled. + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#96 + def expect_enabled?(syntax_host = T.unsafe(nil)); end + + # Indicates whether or not the `should` syntax is enabled. + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#90 + def should_enabled?(syntax_host = T.unsafe(nil)); end + + # Instructs rspec-expectations to warn on first usage of `should` or `should_not`. + # Enabled by default. This is largely here to facilitate testing. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#18 + def warn_about_should!; end + + # Generates a deprecation warning for the given method if no warning + # has already been issued. + # + # @api private + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#25 + def warn_about_should_unless_configured(method_name); end + end +end + +# Validates the provided matcher to ensure it supports block +# expectations, in order to avoid user confusion when they +# use a block thinking the expectation will be on the return +# value of the block rather than the block itself. +# +# @private +# +# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#98 +class RSpec::Expectations::ValueExpectationTarget < ::RSpec::Expectations::ExpectationTarget + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#104 + def not_to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end + + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#99 + def to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end + + private + + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#111 + def enforce_value_expectation(matcher); end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#126 + def supports_value_expectations?(matcher); end +end + +# @private +# +# source://rspec-expectations//lib/rspec/expectations/version.rb#4 +module RSpec::Expectations::Version; end + +# source://rspec-expectations//lib/rspec/expectations/version.rb#5 +RSpec::Expectations::Version::STRING = T.let(T.unsafe(nil), String) + +# RSpec::Matchers provides a number of useful matchers we use to define +# expectations. Any object that implements the [matcher protocol](Matchers/MatcherProtocol) +# can be used as a matcher. +# +# ## Predicates +# +# In addition to matchers that are defined explicitly, RSpec will create +# custom matchers on the fly for any arbitrary predicate, giving your specs a +# much more natural language feel. +# +# A Ruby predicate is a method that ends with a "?" and returns true or false. +# Common examples are `empty?`, `nil?`, and `instance_of?`. +# +# All you need to do is write `expect(..).to be_` followed by the predicate +# without the question mark, and RSpec will figure it out from there. +# For example: +# +# expect([]).to be_empty # => [].empty?() | passes +# expect([]).not_to be_empty # => [].empty?() | fails +# +# In addition to prefixing the predicate matchers with "be_", you can also use "be_a_" +# and "be_an_", making your specs read much more naturally: +# +# expect("a string").to be_an_instance_of(String) # =>"a string".instance_of?(String) # passes +# +# expect(3).to be_a_kind_of(Integer) # => 3.kind_of?(Numeric) | passes +# expect(3).to be_a_kind_of(Numeric) # => 3.kind_of?(Numeric) | passes +# expect(3).to be_an_instance_of(Integer) # => 3.instance_of?(Integer) | passes +# expect(3).not_to be_an_instance_of(Numeric) # => 3.instance_of?(Numeric) | fails +# +# RSpec will also create custom matchers for predicates like `has_key?`. To +# use this feature, just state that the object should have_key(:key) and RSpec will +# call has_key?(:key) on the target. For example: +# +# expect(:a => "A").to have_key(:a) +# expect(:a => "A").to have_key(:b) # fails +# +# You can use this feature to invoke any predicate that begins with "has_", whether it is +# part of the Ruby libraries (like `Hash#has_key?`) or a method you wrote on your own class. +# +# Note that RSpec does not provide composable aliases for these dynamic predicate +# matchers. You can easily define your own aliases, though: +# +# RSpec::Matchers.alias_matcher :a_user_who_is_an_admin, :be_an_admin +# expect(user_list).to include(a_user_who_is_an_admin) +# +# ## Alias Matchers +# +# With {RSpec::Matchers.alias_matcher}, you can easily create an +# alternate name for a given matcher. +# +# The description will also change according to the new name: +# +# RSpec::Matchers.alias_matcher :a_list_that_sums_to, :sum_to +# sum_to(3).description # => "sum to 3" +# a_list_that_sums_to(3).description # => "a list that sums to 3" +# +# or you can specify a custom description like this: +# +# RSpec::Matchers.alias_matcher :a_list_sorted_by, :be_sorted_by do |description| +# description.sub("be sorted by", "a list sorted by") +# end +# +# be_sorted_by(:age).description # => "be sorted by age" +# a_list_sorted_by(:age).description # => "a list sorted by age" +# +# ## Custom Matchers +# +# When you find that none of the stock matchers provide a natural feeling +# expectation, you can very easily write your own using RSpec's matcher DSL +# or writing one from scratch. +# +# ### Matcher DSL +# +# Imagine that you are writing a game in which players can be in various +# zones on a virtual board. To specify that bob should be in zone 4, you +# could say: +# +# expect(bob.current_zone).to eql(Zone.new("4")) +# +# But you might find it more expressive to say: +# +# expect(bob).to be_in_zone("4") +# +# and/or +# +# expect(bob).not_to be_in_zone("3") +# +# You can create such a matcher like so: +# +# RSpec::Matchers.define :be_in_zone do |zone| +# match do |player| +# player.in_zone?(zone) +# end +# end +# +# This will generate a be_in_zone method that returns a matcher +# with logical default messages for failures. You can override the failure +# messages and the generated description as follows: +# +# RSpec::Matchers.define :be_in_zone do |zone| +# match do |player| +# player.in_zone?(zone) +# end +# +# failure_message do |player| +# # generate and return the appropriate string. +# end +# +# failure_message_when_negated do |player| +# # generate and return the appropriate string. +# end +# +# description do +# # generate and return the appropriate string. +# end +# end +# +# Each of the message-generation methods has access to the block arguments +# passed to the create method (in this case, zone). The +# failure message methods (failure_message and +# failure_message_when_negated) are passed the actual value (the +# receiver of expect(..) or expect(..).not_to). +# +# ### Custom Matcher from scratch +# +# You could also write a custom matcher from scratch, as follows: +# +# class BeInZone +# def initialize(expected) +# @expected = expected +# end +# +# def matches?(target) +# @target = target +# @target.current_zone.eql?(Zone.new(@expected)) +# end +# +# def failure_message +# "expected #{@target.inspect} to be in Zone #{@expected}" +# end +# +# def failure_message_when_negated +# "expected #{@target.inspect} not to be in Zone #{@expected}" +# end +# end +# +# ... and a method like this: +# +# def be_in_zone(expected) +# BeInZone.new(expected) +# end +# +# And then expose the method to your specs. This is normally done +# by including the method and the class in a module, which is then +# included in your spec: +# +# module CustomGameMatchers +# class BeInZone +# # ... +# end +# +# def be_in_zone(expected) +# # ... +# end +# end +# +# describe "Player behaviour" do +# include CustomGameMatchers +# # ... +# end +# +# or you can include in globally in a spec_helper.rb file required +# from your spec file(s): +# +# RSpec::configure do |config| +# config.include(CustomGameMatchers) +# end +# +# ### Making custom matchers composable +# +# RSpec's built-in matchers are designed to be composed, in expressions like: +# +# expect(["barn", 2.45]).to contain_exactly( +# a_value_within(0.1).of(2.5), +# a_string_starting_with("bar") +# ) +# +# Custom matchers can easily participate in composed matcher expressions like these. +# Include {RSpec::Matchers::Composable} in your custom matcher to make it support +# being composed (matchers defined using the DSL have this included automatically). +# Within your matcher's `matches?` method (or the `match` block, if using the DSL), +# use `values_match?(expected, actual)` rather than `expected == actual`. +# Under the covers, `values_match?` is able to match arbitrary +# nested data structures containing a mix of both matchers and non-matcher objects. +# It uses `===` and `==` to perform the matching, considering the values to +# match if either returns `true`. The `Composable` mixin also provides some helper +# methods for surfacing the matcher descriptions within your matcher's description +# or failure messages. +# +# RSpec's built-in matchers each have a number of aliases that rephrase the matcher +# from a verb phrase (such as `be_within`) to a noun phrase (such as `a_value_within`), +# which reads better when the matcher is passed as an argument in a composed matcher +# expressions, and also uses the noun-phrase wording in the matcher's `description`, +# for readable failure messages. You can alias your custom matchers in similar fashion +# using {RSpec::Matchers.alias_matcher}. +# +# ## Negated Matchers +# +# Sometimes if you want to test for the opposite using a more descriptive name +# instead of using `not_to`, you can use {RSpec::Matchers.define_negated_matcher}: +# +# RSpec::Matchers.define_negated_matcher :exclude, :include +# include(1, 2).description # => "include 1 and 2" +# exclude(1, 2).description # => "exclude 1 and 2" +# +# While the most obvious negated form may be to add a `not_` prefix, +# the failure messages you get with that form can be confusing (e.g. +# "expected [actual] to not [verb], but did not"). We've found it works +# best to find a more positive name for the negated form, such as +# `avoid_changing` rather than `not_change`. +# +# source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#2 +module RSpec::Matchers + extend ::RSpec::Matchers::DSL + + # Applied to a proc, specifies that its execution will cause some value to + # change. + # + # You can either pass receiver and message, or a block, + # but not both. + # + # When passing a block, it must use the `{ ... }` format, not + # do/end, as `{ ... }` binds to the `change` method, whereas do/end + # would errantly bind to the `expect(..).to` or `expect(...).not_to` method. + # + # You can chain any of the following off of the end to specify details + # about the change: + # + # * `from` + # * `to` + # + # or any one of: + # + # * `by` + # * `by_at_least` + # * `by_at_most` + # + # == Notes + # + # Evaluates `receiver.message` or `block` before and after it + # evaluates the block passed to `expect`. If the value is the same + # object, its before/after `hash` value is used to see if it has changed. + # Therefore, your object needs to properly implement `hash` to work correctly + # with this matcher. + # + # `expect( ... ).not_to change` supports the form that specifies `from` + # (which specifies what you expect the starting, unchanged value to be) + # but does not support forms with subsequent calls to `by`, `by_at_least`, + # `by_at_most` or `to`. + # + # @example + # expect { + # team.add_player(player) + # }.to change(roster, :count) + # + # expect { + # team.add_player(player) + # }.to change(roster, :count).by(1) + # + # expect { + # team.add_player(player) + # }.to change(roster, :count).by_at_least(1) + # + # expect { + # team.add_player(player) + # }.to change(roster, :count).by_at_most(1) + # + # string = "string" + # expect { + # string.reverse! + # }.to change { string }.from("string").to("gnirts") + # + # string = "string" + # expect { + # string + # }.not_to change { string }.from("string") + # + # expect { + # person.happy_birthday + # }.to change(person, :birthday).from(32).to(33) + # + # expect { + # employee.develop_great_new_social_networking_app + # }.to change(employee, :title).from("Mail Clerk").to("CEO") + # + # expect { + # doctor.leave_office + # }.to change(doctor, :sign).from(/is in/).to(/is out/) + # + # user = User.new(:type => "admin") + # expect { + # user.symbolize_type + # }.to change(user, :type).from(String).to(Symbol) + # @param receiver [Object] + # @param message [Symbol] the message to send the receiver + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_block_changing(*args, **_arg1, &block); end + + # With no arg, passes if the block outputs `to_stdout` or `to_stderr`. + # With a string, passes if the block outputs that specific string `to_stdout` or `to_stderr`. + # With a regexp or matcher, passes if the block outputs a string `to_stdout` or `to_stderr` that matches. + # + # To capture output from any spawned subprocess as well, use `to_stdout_from_any_process` or + # `to_stderr_from_any_process`. Output from any process that inherits the main process's corresponding + # standard stream will be captured. + # + # @example + # expect { print 'foo' }.to output.to_stdout + # expect { print 'foo' }.to output('foo').to_stdout + # expect { print 'foo' }.to output(/foo/).to_stdout + # + # expect { do_something }.to_not output.to_stdout + # + # expect { warn('foo') }.to output.to_stderr + # expect { warn('foo') }.to output('foo').to_stderr + # expect { warn('foo') }.to output(/foo/).to_stderr + # + # expect { do_something }.to_not output.to_stderr + # + # expect { system('echo foo') }.to output("foo\n").to_stdout_from_any_process + # expect { system('echo foo', out: :err) }.to output("foo\n").to_stderr_from_any_process + # @note `to_stdout` and `to_stderr` work by temporarily replacing `$stdout` or `$stderr`, + # so they're not able to intercept stream output that explicitly uses `STDOUT`/`STDERR` + # or that uses a reference to `$stdout`/`$stderr` that was stored before the + # matcher was used. + # @note `to_stdout_from_any_process` and `to_stderr_from_any_process` use Tempfiles, and + # are thus significantly (~30x) slower than `to_stdout` and `to_stderr`. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_block_outputting(*args, **_arg1, &block); end + + # With no args, matches if any error is raised. + # With a named error, matches only if that specific error is raised. + # With a named error and message specified as a String, matches only if both match. + # With a named error and message specified as a Regexp, matches only if both match. + # Pass an optional block to perform extra verifications on the exception matched + # + # @example + # expect { do_something_risky }.to raise_error + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) { |error| expect(error.data).to eq 42 } + # expect { do_something_risky }.to raise_error { |error| expect(error.data).to eq 42 } + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, "that was too risky") + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, /oo ri/) + # expect { do_something_risky }.to raise_error("that was too risky") + # + # expect { do_something_risky }.not_to raise_error + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_block_raising(*args, **_arg1, &block); end + + # Given no argument, matches if a proc throws any Symbol. + # + # Given a Symbol, matches if the given proc throws the specified Symbol. + # + # Given a Symbol and an arg, matches if the given proc throws the + # specified Symbol with the specified arg. + # + # @example + # expect { do_something_risky }.to throw_symbol + # expect { do_something_risky }.to throw_symbol(:that_was_risky) + # expect { do_something_risky }.to throw_symbol(:that_was_risky, 'culprit') + # + # expect { do_something_risky }.not_to throw_symbol + # expect { do_something_risky }.not_to throw_symbol(:that_was_risky) + # expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit') + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_block_throwing(*args, **_arg1, &block); end + + # Passes if the method called in the expect block yields, regardless + # of whether or not arguments are yielded. + # + # @example + # expect { |b| 5.tap(&b) }.to yield_control + # expect { |b| "a".to_sym(&b) }.not_to yield_control + # @note Your expect block must accept a parameter and pass it on to + # the method-under-test as a block. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_block_yielding_control(*args, **_arg1, &block); end + + # Designed for use with methods that repeatedly yield (such as + # iterators). Passes if the method called in the expect block yields + # multiple times with arguments matching those given. + # + # Argument matching is done using `===` (the case match operator) + # and `==`. If the expected and actual arguments match with either + # operator, the matcher will pass. + # + # @example + # expect { |b| [1, 2, 3].each(&b) }.to yield_successive_args(1, 2, 3) + # expect { |b| { :a => 1, :b => 2 }.each(&b) }.to yield_successive_args([:a, 1], [:b, 2]) + # expect { |b| [1, 2, 3].each(&b) }.not_to yield_successive_args(1, 2) + # @note Your expect block must accept a parameter and pass it on to + # the method-under-test as a block. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_block_yielding_successive_args(*args, **_arg1, &block); end + + # Given no arguments, matches if the method called in the expect + # block yields with arguments (regardless of what they are or how + # many there are). + # + # Given arguments, matches if the method called in the expect block + # yields with arguments that match the given arguments. + # + # Argument matching is done using `===` (the case match operator) + # and `==`. If the expected and actual arguments match with either + # operator, the matcher will pass. + # + # @example + # expect { |b| 5.tap(&b) }.to yield_with_args # because #tap yields an arg + # expect { |b| 5.tap(&b) }.to yield_with_args(5) # because 5 == 5 + # expect { |b| 5.tap(&b) }.to yield_with_args(Integer) # because Integer === 5 + # expect { |b| File.open("f.txt", &b) }.to yield_with_args(/txt/) # because /txt/ === "f.txt" + # + # expect { |b| User.transaction(&b) }.not_to yield_with_args # because it yields no args + # expect { |b| 5.tap(&b) }.not_to yield_with_args(1, 2, 3) + # @note Your expect block must accept a parameter and pass it on to + # the method-under-test as a block. + # @note This matcher is not designed for use with methods that yield + # multiple times. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_block_yielding_with_args(*args, **_arg1, &block); end + + # Passes if the method called in the expect block yields with + # no arguments. Fails if it does not yield, or yields with arguments. + # + # @example + # expect { |b| User.transaction(&b) }.to yield_with_no_args + # expect { |b| 5.tap(&b) }.not_to yield_with_no_args # because it yields with `5` + # expect { |b| "a".to_sym(&b) }.not_to yield_with_no_args # because it does not yield + # @note Your expect block must accept a parameter and pass it on to + # the method-under-test as a block. + # @note This matcher is not designed for use with methods that yield + # multiple times. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_block_yielding_with_no_args(*args, **_arg1, &block); end + + # Passes if actual contains all of the expected regardless of order. + # This works for collections. Pass in multiple args and it will only + # pass if all args are found in collection. + # + # @example + # expect([1, 2, 3]).to contain_exactly(1, 2, 3) + # expect([1, 2, 3]).to contain_exactly(1, 3, 2) + # @note This is also available using the `=~` operator with `should`, + # but `=~` is not supported with `expect`. + # @see #match_array + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_collection_containing_exactly(*args, **_arg1, &block); end + + # Matches if the actual value ends with the expected value(s). In the case + # of a string, matches against the last `expected.length` characters of the + # actual string. In the case of an array, matches against the last + # `expected.length` elements of the actual array. + # + # @example + # expect("this string").to end_with "string" + # expect([0, 1, 2, 3, 4]).to end_with 4 + # expect([0, 2, 3, 4, 4]).to end_with 3, 4 + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_collection_ending_with(*args, **_arg1, &block); end + + # Passes if actual includes expected. This works for + # collections and Strings. You can also pass in multiple args + # and it will only pass if all args are found in collection. + # + # @example + # expect([1,2,3]).to include(3) + # expect([1,2,3]).to include(2,3) + # expect([1,2,3]).to include(2,3,4) # fails + # expect([1,2,3]).not_to include(4) + # expect("spread").to include("read") + # expect("spread").not_to include("red") + # expect(:a => 1, :b => 2).to include(:a) + # expect(:a => 1, :b => 2).to include(:a, :b) + # expect(:a => 1, :b => 2).to include(:a => 1) + # expect(:a => 1, :b => 2).to include(:b => 2, :a => 1) + # expect(:a => 1, :b => 2).to include(:c) # fails + # expect(:a => 1, :b => 2).not_to include(:a => 2) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_collection_including(*args, **_arg1, &block); end + + # Matches if the actual value starts with the expected value(s). In the + # case of a string, matches against the first `expected.length` characters + # of the actual string. In the case of an array, matches against the first + # `expected.length` elements of the actual array. + # + # @example + # expect("this string").to start_with "this s" + # expect([0, 1, 2, 3, 4]).to start_with 0 + # expect([0, 2, 3, 4, 4]).to start_with 0, 1 + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_collection_starting_with(*args, **_arg1, &block); end + + # Passes if actual is falsey (false or nil) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_falsey_value(*args, **_arg1, &block); end + + # Passes if actual is falsey (false or nil) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_falsy_value(*args, **_arg1, &block); end + + # Passes if actual includes expected. This works for + # collections and Strings. You can also pass in multiple args + # and it will only pass if all args are found in collection. + # + # @example + # expect([1,2,3]).to include(3) + # expect([1,2,3]).to include(2,3) + # expect([1,2,3]).to include(2,3,4) # fails + # expect([1,2,3]).not_to include(4) + # expect("spread").to include("read") + # expect("spread").not_to include("red") + # expect(:a => 1, :b => 2).to include(:a) + # expect(:a => 1, :b => 2).to include(:a, :b) + # expect(:a => 1, :b => 2).to include(:a => 1) + # expect(:a => 1, :b => 2).to include(:b => 2, :a => 1) + # expect(:a => 1, :b => 2).to include(:c) # fails + # expect(:a => 1, :b => 2).not_to include(:a => 2) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_hash_including(*args, **_arg1, &block); end + + # Passes if actual.kind_of?(expected) + # + # @example + # expect(5).to be_a_kind_of(Integer) + # expect(5).to be_a_kind_of(Numeric) + # expect(5).not_to be_a_kind_of(Float) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_kind_of(*args, **_arg1, &block); end + + # Passes if actual is nil + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_nil_value(*args, **_arg1, &block); end + + # Passes if actual covers expected. This works for + # Ranges. You can also pass in multiple args + # and it will only pass if all args are found in Range. + # + # ### Warning:: Ruby >= 1.9 only + # + # @example + # expect(1..10).to cover(5) + # expect(1..10).to cover(4, 6) + # expect(1..10).to cover(4, 6, 11) # fails + # expect(1..10).not_to cover(11) + # expect(1..10).not_to cover(5) # fails + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_range_covering(*args, **_arg1, &block); end + + # Matches if the actual value ends with the expected value(s). In the case + # of a string, matches against the last `expected.length` characters of the + # actual string. In the case of an array, matches against the last + # `expected.length` elements of the actual array. + # + # @example + # expect("this string").to end_with "string" + # expect([0, 1, 2, 3, 4]).to end_with 4 + # expect([0, 2, 3, 4, 4]).to end_with 3, 4 + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_string_ending_with(*args, **_arg1, &block); end + + # Passes if actual includes expected. This works for + # collections and Strings. You can also pass in multiple args + # and it will only pass if all args are found in collection. + # + # @example + # expect([1,2,3]).to include(3) + # expect([1,2,3]).to include(2,3) + # expect([1,2,3]).to include(2,3,4) # fails + # expect([1,2,3]).not_to include(4) + # expect("spread").to include("read") + # expect("spread").not_to include("red") + # expect(:a => 1, :b => 2).to include(:a) + # expect(:a => 1, :b => 2).to include(:a, :b) + # expect(:a => 1, :b => 2).to include(:a => 1) + # expect(:a => 1, :b => 2).to include(:b => 2, :a => 1) + # expect(:a => 1, :b => 2).to include(:c) # fails + # expect(:a => 1, :b => 2).not_to include(:a => 2) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_string_including(*args, **_arg1, &block); end + + # Given a `Regexp` or `String`, passes if `actual.match(pattern)` + # Given an arbitrary nested data structure (e.g. arrays and hashes), + # matches if `expected === actual` || `actual == expected` for each + # pair of elements. + # + # @example + # expect(email).to match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i) + # expect(email).to match("@example.com") + # @example + # hash = { + # :a => { + # :b => ["foo", 5], + # :c => { :d => 2.05 } + # } + # } + # + # expect(hash).to match( + # :a => { + # :b => a_collection_containing_exactly( + # a_string_starting_with("f"), + # an_instance_of(Integer) + # ), + # :c => { :d => (a_value < 3) } + # } + # ) + # @note The `match_regex` alias is deprecated and is not recommended for use. + # It was added in 2.12.1 to facilitate its use from within custom + # matchers (due to how the custom matcher DSL was evaluated in 2.x, + # `match` could not be used there), but is no longer needed in 3.x. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_string_matching(*args, **_arg1, &block); end + + # Matches if the actual value starts with the expected value(s). In the + # case of a string, matches against the first `expected.length` characters + # of the actual string. In the case of an array, matches against the first + # `expected.length` elements of the actual array. + # + # @example + # expect("this string").to start_with "this s" + # expect([0, 1, 2, 3, 4]).to start_with 0 + # expect([0, 2, 3, 4, 4]).to start_with 0, 1 + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_string_starting_with(*args, **_arg1, &block); end + + # Passes if actual is truthy (anything but false or nil) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_truthy_value(*args, **_arg1, &block); end + + # Given true, false, or nil, will pass if actual value is true, false or + # nil (respectively). Given no args means the caller should satisfy an if + # condition (to be or not to be). + # + # Predicates are any Ruby method that ends in a "?" and returns true or + # false. Given be_ followed by arbitrary_predicate (without the "?"), + # RSpec will match convert that into a query against the target object. + # + # The arbitrary_predicate feature will handle any predicate prefixed with + # "be_an_" (e.g. be_an_instance_of), "be_a_" (e.g. be_a_kind_of) or "be_" + # (e.g. be_empty), letting you choose the prefix that best suits the + # predicate. + # + # @example + # expect(actual).to be_truthy + # expect(actual).to be_falsey + # expect(actual).to be_nil + # expect(actual).to be_[arbitrary_predicate](*args) + # expect(actual).not_to be_nil + # expect(actual).not_to be_[arbitrary_predicate](*args) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_value(*args, **_arg1, &block); end + + # Passes if actual.between?(min, max). Works with any Comparable object, + # including String, Symbol, Time, or Numeric (Fixnum, Bignum, Integer, + # Float, Complex, and Rational). + # + # By default, `be_between` is inclusive (i.e. passes when given either the max or min value), + # but you can make it `exclusive` by chaining that off the matcher. + # + # @example + # expect(5).to be_between(1, 10) + # expect(11).not_to be_between(1, 10) + # expect(10).not_to be_between(1, 10).exclusive + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_value_between(*args, **_arg1, &block); end + + # Passes if actual == expected +/- delta + # + # @example + # expect(result).to be_within(0.5).of(3.0) + # expect(result).not_to be_within(0.5).of(3.0) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def a_value_within(*args, **_arg1, &block); end + + # Allows multiple expectations in the provided block to fail, and then + # aggregates them into a single exception, rather than aborting on the + # first expectation failure like normal. This allows you to see all + # failures from an entire set of expectations without splitting each + # off into its own example (which may slow things down if the example + # setup is expensive). + # + # @example + # aggregate_failures("verifying response") do + # expect(response.status).to eq(200) + # expect(response.headers).to include("Content-Type" => "text/plain") + # expect(response.body).to include("Success") + # end + # @note The implementation of this feature uses a thread-local variable, + # which means that if you have an expectation failure in another thread, + # it'll abort like normal. + # @param label [String] label for this aggregation block, which will be + # included in the aggregated exception message. + # @param metadata [Hash] additional metadata about this failure aggregation + # block. If multiple expectations fail, it will be exposed from the + # {Expectations::MultipleExpectationsNotMetError} exception. Mostly + # intended for internal RSpec use but you can use it as well. + # @raise [Expectations::MultipleExpectationsNotMetError] raised when + # multiple expectations fail. + # @raise [Expectations::ExpectationNotMetError] raised when a single + # expectation fails. + # @raise [Exception] other sorts of exceptions will be raised as normal. + # @yield Block containing as many expectation as you want. The block is + # simply yielded to, so you can trust that anything that works outside + # the block should work within it. + # + # source://rspec-expectations//lib/rspec/matchers.rb#305 + def aggregate_failures(label = T.unsafe(nil), metadata = T.unsafe(nil), &block); end + + # Passes if the provided matcher passes when checked against all + # elements of the collection. + # + # @example + # expect([1, 3, 5]).to all be_odd + # expect([1, 3, 6]).to all be_odd # fails + # @example + # expect([1, 3, 5]).to all( be_odd.and be_an(Integer) ) + # @note The negative form `not_to all` is not supported. Instead + # use `not_to include` or pass a negative form of a matcher + # as the argument (e.g. `all exclude(:foo)`). + # @note You can also use this with compound matchers as well. + # + # source://rspec-expectations//lib/rspec/matchers.rb#662 + def all(expected); end + + # An alternate form of `contain_exactly` that accepts + # the expected contents as a single array arg rather + # than splatted out as individual items. + # + # @example + # expect(results).to contain_exactly(1, 2) + # # is identical to: + # expect(results).to match_array([1, 2]) + # @see #contain_exactly + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def an_array_matching(*args, **_arg1, &block); end + + # Passes if actual.instance_of?(expected) + # + # @example + # expect(5).to be_an_instance_of(Integer) + # expect(5).not_to be_an_instance_of(Numeric) + # expect(5).not_to be_an_instance_of(Float) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def an_instance_of(*args, **_arg1, &block); end + + # Passes if actual == expected. + # + # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more + # information about equality in Ruby. + # + # @example + # expect(5).to eq(5) + # expect(5).not_to eq(3) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def an_object_eq_to(*args, **_arg1, &block); end + + # Passes if `actual.eql?(expected)` + # + # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more + # information about equality in Ruby. + # + # @example + # expect(5).to eql(5) + # expect(5).not_to eql(3) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def an_object_eql_to(*args, **_arg1, &block); end + + # Passes if actual.equal?(expected) (object identity). + # + # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more + # information about equality in Ruby. + # + # @example + # expect(5).to equal(5) # Integers are equal + # expect("5").not_to equal("5") # Strings that look the same are not the same object + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def an_object_equal_to(*args, **_arg1, &block); end + + # Passes if `actual.exist?` or `actual.exists?` + # + # @example + # expect(File).to exist("path/to/file") + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def an_object_existing(*args, **_arg1, &block); end + + # Passes if actual's attribute values match the expected attributes hash. + # This works no matter how you define your attribute readers. + # + # @example + # Person = Struct.new(:name, :age) + # person = Person.new("Bob", 32) + # + # expect(person).to have_attributes(:name => "Bob", :age => 32) + # expect(person).to have_attributes(:name => a_string_starting_with("B"), :age => (a_value > 30) ) + # @example + # expect(person).to have_attributes(:color => "red") + # @note It will fail if actual doesn't respond to any of the expected attributes. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def an_object_having_attributes(*args, **_arg1, &block); end + + # Given a `Regexp` or `String`, passes if `actual.match(pattern)` + # Given an arbitrary nested data structure (e.g. arrays and hashes), + # matches if `expected === actual` || `actual == expected` for each + # pair of elements. + # + # @example + # expect(email).to match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i) + # expect(email).to match("@example.com") + # @example + # hash = { + # :a => { + # :b => ["foo", 5], + # :c => { :d => 2.05 } + # } + # } + # + # expect(hash).to match( + # :a => { + # :b => a_collection_containing_exactly( + # a_string_starting_with("f"), + # an_instance_of(Integer) + # ), + # :c => { :d => (a_value < 3) } + # } + # ) + # @note The `match_regex` alias is deprecated and is not recommended for use. + # It was added in 2.12.1 to facilitate its use from within custom + # matchers (due to how the custom matcher DSL was evaluated in 2.x, + # `match` could not be used there), but is no longer needed in 3.x. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def an_object_matching(*args, **_arg1, &block); end + + # Matches if the target object responds to all of the names + # provided. Names can be Strings or Symbols. + # + # @example + # expect("string").to respond_to(:length) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def an_object_responding_to(*args, **_arg1, &block); end + + # Passes if the submitted block returns true. Yields target to the + # block. + # + # Generally speaking, this should be thought of as a last resort when + # you can't find any other way to specify the behaviour you wish to + # specify. + # + # If you do find yourself in such a situation, you could always write + # a custom matcher, which would likely make your specs more expressive. + # + # @example + # expect(5).to satisfy { |n| n > 3 } + # expect(5).to satisfy("be greater than 3") { |n| n > 3 } + # @param description [String] optional description to be used for this matcher. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def an_object_satisfying(*args, **_arg1, &block); end + + # Given true, false, or nil, will pass if actual value is true, false or + # nil (respectively). Given no args means the caller should satisfy an if + # condition (to be or not to be). + # + # Predicates are any Ruby method that ends in a "?" and returns true or + # false. Given be_ followed by arbitrary_predicate (without the "?"), + # RSpec will match convert that into a query against the target object. + # + # The arbitrary_predicate feature will handle any predicate prefixed with + # "be_an_" (e.g. be_an_instance_of), "be_a_" (e.g. be_a_kind_of) or "be_" + # (e.g. be_empty), letting you choose the prefix that best suits the + # predicate. + # + # @example + # expect(actual).to be_truthy + # expect(actual).to be_falsey + # expect(actual).to be_nil + # expect(actual).to be_[arbitrary_predicate](*args) + # expect(actual).not_to be_nil + # expect(actual).not_to be_[arbitrary_predicate](*args) + # + # source://rspec-expectations//lib/rspec/matchers.rb#349 + def be(*args); end + + # passes if target.kind_of?(klass) + # + # source://rspec-expectations//lib/rspec/matchers.rb#355 + def be_a(klass); end + + # Passes if actual.kind_of?(expected) + # + # @example + # expect(5).to be_a_kind_of(Integer) + # expect(5).to be_a_kind_of(Numeric) + # expect(5).not_to be_a_kind_of(Float) + # + # source://rspec-expectations//lib/rspec/matchers.rb#378 + def be_a_kind_of(expected); end + + # passes if target.kind_of?(klass) + # + # source://rspec-expectations//lib/rspec/matchers.rb#355 + def be_an(klass); end + + # Passes if actual.instance_of?(expected) + # + # @example + # expect(5).to be_an_instance_of(Integer) + # expect(5).not_to be_an_instance_of(Numeric) + # expect(5).not_to be_an_instance_of(Float) + # + # source://rspec-expectations//lib/rspec/matchers.rb#366 + def be_an_instance_of(expected); end + + # Passes if actual.between?(min, max). Works with any Comparable object, + # including String, Symbol, Time, or Numeric (Fixnum, Bignum, Integer, + # Float, Complex, and Rational). + # + # By default, `be_between` is inclusive (i.e. passes when given either the max or min value), + # but you can make it `exclusive` by chaining that off the matcher. + # + # @example + # expect(5).to be_between(1, 10) + # expect(11).not_to be_between(1, 10) + # expect(10).not_to be_between(1, 10).exclusive + # + # source://rspec-expectations//lib/rspec/matchers.rb#395 + def be_between(min, max); end + + # Passes if actual is falsey (false or nil) + # + # source://rspec-expectations//lib/rspec/matchers.rb#316 + def be_falsey; end + + # Passes if actual is falsey (false or nil) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def be_falsy(*args, **_arg1, &block); end + + # Passes if actual.instance_of?(expected) + # + # @example + # expect(5).to be_an_instance_of(Integer) + # expect(5).not_to be_an_instance_of(Numeric) + # expect(5).not_to be_an_instance_of(Float) + # + # source://rspec-expectations//lib/rspec/matchers.rb#366 + def be_instance_of(expected); end + + # Passes if actual.kind_of?(expected) + # + # @example + # expect(5).to be_a_kind_of(Integer) + # expect(5).to be_a_kind_of(Numeric) + # expect(5).not_to be_a_kind_of(Float) + # + # source://rspec-expectations//lib/rspec/matchers.rb#378 + def be_kind_of(expected); end + + # Passes if actual is nil + # + # source://rspec-expectations//lib/rspec/matchers.rb#324 + def be_nil; end + + # Passes if actual is truthy (anything but false or nil) + # + # source://rspec-expectations//lib/rspec/matchers.rb#310 + def be_truthy; end + + # Passes if actual == expected +/- delta + # + # @example + # expect(result).to be_within(0.5).of(3.0) + # expect(result).not_to be_within(0.5).of(3.0) + # + # source://rspec-expectations//lib/rspec/matchers.rb#405 + def be_within(delta); end + + # Applied to a proc, specifies that its execution will cause some value to + # change. + # + # You can either pass receiver and message, or a block, + # but not both. + # + # When passing a block, it must use the `{ ... }` format, not + # do/end, as `{ ... }` binds to the `change` method, whereas do/end + # would errantly bind to the `expect(..).to` or `expect(...).not_to` method. + # + # You can chain any of the following off of the end to specify details + # about the change: + # + # * `from` + # * `to` + # + # or any one of: + # + # * `by` + # * `by_at_least` + # * `by_at_most` + # + # == Notes + # + # Evaluates `receiver.message` or `block` before and after it + # evaluates the block passed to `expect`. If the value is the same + # object, its before/after `hash` value is used to see if it has changed. + # Therefore, your object needs to properly implement `hash` to work correctly + # with this matcher. + # + # `expect( ... ).not_to change` supports the form that specifies `from` + # (which specifies what you expect the starting, unchanged value to be) + # but does not support forms with subsequent calls to `by`, `by_at_least`, + # `by_at_most` or `to`. + # + # @example + # expect { + # team.add_player(player) + # }.to change(roster, :count) + # + # expect { + # team.add_player(player) + # }.to change(roster, :count).by(1) + # + # expect { + # team.add_player(player) + # }.to change(roster, :count).by_at_least(1) + # + # expect { + # team.add_player(player) + # }.to change(roster, :count).by_at_most(1) + # + # string = "string" + # expect { + # string.reverse! + # }.to change { string }.from("string").to("gnirts") + # + # string = "string" + # expect { + # string + # }.not_to change { string }.from("string") + # + # expect { + # person.happy_birthday + # }.to change(person, :birthday).from(32).to(33) + # + # expect { + # employee.develop_great_new_social_networking_app + # }.to change(employee, :title).from("Mail Clerk").to("CEO") + # + # expect { + # doctor.leave_office + # }.to change(doctor, :sign).from(/is in/).to(/is out/) + # + # user = User.new(:type => "admin") + # expect { + # user.symbolize_type + # }.to change(user, :type).from(String).to(Symbol) + # @param receiver [Object] + # @param message [Symbol] the message to send the receiver + # + # source://rspec-expectations//lib/rspec/matchers.rb#492 + def change(receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end + + # Applied to a proc, specifies that its execution will cause some value to + # change. + # + # You can either pass receiver and message, or a block, + # but not both. + # + # When passing a block, it must use the `{ ... }` format, not + # do/end, as `{ ... }` binds to the `change` method, whereas do/end + # would errantly bind to the `expect(..).to` or `expect(...).not_to` method. + # + # You can chain any of the following off of the end to specify details + # about the change: + # + # * `from` + # * `to` + # + # or any one of: + # + # * `by` + # * `by_at_least` + # * `by_at_most` + # + # == Notes + # + # Evaluates `receiver.message` or `block` before and after it + # evaluates the block passed to `expect`. If the value is the same + # object, its before/after `hash` value is used to see if it has changed. + # Therefore, your object needs to properly implement `hash` to work correctly + # with this matcher. + # + # `expect( ... ).not_to change` supports the form that specifies `from` + # (which specifies what you expect the starting, unchanged value to be) + # but does not support forms with subsequent calls to `by`, `by_at_least`, + # `by_at_most` or `to`. + # + # @example + # expect { + # team.add_player(player) + # }.to change(roster, :count) + # + # expect { + # team.add_player(player) + # }.to change(roster, :count).by(1) + # + # expect { + # team.add_player(player) + # }.to change(roster, :count).by_at_least(1) + # + # expect { + # team.add_player(player) + # }.to change(roster, :count).by_at_most(1) + # + # string = "string" + # expect { + # string.reverse! + # }.to change { string }.from("string").to("gnirts") + # + # string = "string" + # expect { + # string + # }.not_to change { string }.from("string") + # + # expect { + # person.happy_birthday + # }.to change(person, :birthday).from(32).to(33) + # + # expect { + # employee.develop_great_new_social_networking_app + # }.to change(employee, :title).from("Mail Clerk").to("CEO") + # + # expect { + # doctor.leave_office + # }.to change(doctor, :sign).from(/is in/).to(/is out/) + # + # user = User.new(:type => "admin") + # expect { + # user.symbolize_type + # }.to change(user, :type).from(String).to(Symbol) + # @param receiver [Object] + # @param message [Symbol] the message to send the receiver + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def changing(*args, **_arg1, &block); end + + # Passes if actual contains all of the expected regardless of order. + # This works for collections. Pass in multiple args and it will only + # pass if all args are found in collection. + # + # @example + # expect([1, 2, 3]).to contain_exactly(1, 2, 3) + # expect([1, 2, 3]).to contain_exactly(1, 3, 2) + # @note This is also available using the `=~` operator with `should`, + # but `=~` is not supported with `expect`. + # @see #match_array + # + # source://rspec-expectations//lib/rspec/matchers.rb#510 + def contain_exactly(*items); end + + # Passes if actual contains all of the expected regardless of order. + # This works for collections. Pass in multiple args and it will only + # pass if all args are found in collection. + # + # @example + # expect([1, 2, 3]).to contain_exactly(1, 2, 3) + # expect([1, 2, 3]).to contain_exactly(1, 3, 2) + # @note This is also available using the `=~` operator with `should`, + # but `=~` is not supported with `expect`. + # @see #match_array + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def containing_exactly(*args, **_arg1, &block); end + + # Passes if actual covers expected. This works for + # Ranges. You can also pass in multiple args + # and it will only pass if all args are found in Range. + # + # ### Warning:: Ruby >= 1.9 only + # + # @example + # expect(1..10).to cover(5) + # expect(1..10).to cover(4, 6) + # expect(1..10).to cover(4, 6, 11) # fails + # expect(1..10).not_to cover(11) + # expect(1..10).not_to cover(5) # fails + # + # source://rspec-expectations//lib/rspec/matchers.rb#528 + def cover(*values); end + + # Passes if actual covers expected. This works for + # Ranges. You can also pass in multiple args + # and it will only pass if all args are found in Range. + # + # ### Warning:: Ruby >= 1.9 only + # + # @example + # expect(1..10).to cover(5) + # expect(1..10).to cover(4, 6) + # expect(1..10).to cover(4, 6, 11) # fails + # expect(1..10).not_to cover(11) + # expect(1..10).not_to cover(5) # fails + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def covering(*args, **_arg1, &block); end + + # Matches if the actual value ends with the expected value(s). In the case + # of a string, matches against the last `expected.length` characters of the + # actual string. In the case of an array, matches against the last + # `expected.length` elements of the actual array. + # + # @example + # expect("this string").to end_with "string" + # expect([0, 1, 2, 3, 4]).to end_with 4 + # expect([0, 2, 3, 4, 4]).to end_with 3, 4 + # + # source://rspec-expectations//lib/rspec/matchers.rb#543 + def end_with(*expected); end + + # Matches if the actual value ends with the expected value(s). In the case + # of a string, matches against the last `expected.length` characters of the + # actual string. In the case of an array, matches against the last + # `expected.length` elements of the actual array. + # + # @example + # expect("this string").to end_with "string" + # expect([0, 1, 2, 3, 4]).to end_with 4 + # expect([0, 2, 3, 4, 4]).to end_with 3, 4 + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def ending_with(*args, **_arg1, &block); end + + # Passes if actual == expected. + # + # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more + # information about equality in Ruby. + # + # @example + # expect(5).to eq(5) + # expect(5).not_to eq(3) + # + # source://rspec-expectations//lib/rspec/matchers.rb#558 + def eq(expected); end + + # Passes if actual == expected. + # + # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more + # information about equality in Ruby. + # + # @example + # expect(5).to eq(5) + # expect(5).not_to eq(3) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def eq_to(*args, **_arg1, &block); end + + # Passes if `actual.eql?(expected)` + # + # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more + # information about equality in Ruby. + # + # @example + # expect(5).to eql(5) + # expect(5).not_to eql(3) + # + # source://rspec-expectations//lib/rspec/matchers.rb#572 + def eql(expected); end + + # Passes if `actual.eql?(expected)` + # + # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more + # information about equality in Ruby. + # + # @example + # expect(5).to eql(5) + # expect(5).not_to eql(3) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def eql_to(*args, **_arg1, &block); end + + # Passes if actual.equal?(expected) (object identity). + # + # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more + # information about equality in Ruby. + # + # @example + # expect(5).to equal(5) # Integers are equal + # expect("5").not_to equal("5") # Strings that look the same are not the same object + # + # source://rspec-expectations//lib/rspec/matchers.rb#586 + def equal(expected); end + + # Passes if actual.equal?(expected) (object identity). + # + # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more + # information about equality in Ruby. + # + # @example + # expect(5).to equal(5) # Integers are equal + # expect("5").not_to equal("5") # Strings that look the same are not the same object + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def equal_to(*args, **_arg1, &block); end + + # Passes if `actual.exist?` or `actual.exists?` + # + # @example + # expect(File).to exist("path/to/file") + # + # source://rspec-expectations//lib/rspec/matchers.rb#596 + def exist(*args); end + + # Passes if `actual.exist?` or `actual.exists?` + # + # @example + # expect(File).to exist("path/to/file") + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def existing(*args, **_arg1, &block); end + + # Supports `expect(actual).to matcher` syntax by wrapping `actual` in an + # `ExpectationTarget`. + # + # @example + # expect(actual).to eq(expected) + # expect(actual).not_to eq(expected) + # @return [Expectations::ExpectationTarget] + # @see Expectations::ExpectationTarget#to + # @see Expectations::ExpectationTarget#not_to + # + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#72 + def expect(value = T.unsafe(nil), &block); end + + # Passes if actual's attribute values match the expected attributes hash. + # This works no matter how you define your attribute readers. + # + # @example + # Person = Struct.new(:name, :age) + # person = Person.new("Bob", 32) + # + # expect(person).to have_attributes(:name => "Bob", :age => 32) + # expect(person).to have_attributes(:name => a_string_starting_with("B"), :age => (a_value > 30) ) + # @example + # expect(person).to have_attributes(:color => "red") + # @note It will fail if actual doesn't respond to any of the expected attributes. + # + # source://rspec-expectations//lib/rspec/matchers.rb#616 + def have_attributes(expected); end + + # Passes if actual's attribute values match the expected attributes hash. + # This works no matter how you define your attribute readers. + # + # @example + # Person = Struct.new(:name, :age) + # person = Person.new("Bob", 32) + # + # expect(person).to have_attributes(:name => "Bob", :age => 32) + # expect(person).to have_attributes(:name => a_string_starting_with("B"), :age => (a_value > 30) ) + # @example + # expect(person).to have_attributes(:color => "red") + # @note It will fail if actual doesn't respond to any of the expected attributes. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def having_attributes(*args, **_arg1, &block); end + + # Passes if actual includes expected. This works for + # collections and Strings. You can also pass in multiple args + # and it will only pass if all args are found in collection. + # + # @example + # expect([1,2,3]).to include(3) + # expect([1,2,3]).to include(2,3) + # expect([1,2,3]).to include(2,3,4) # fails + # expect([1,2,3]).not_to include(4) + # expect("spread").to include("read") + # expect("spread").not_to include("red") + # expect(:a => 1, :b => 2).to include(:a) + # expect(:a => 1, :b => 2).to include(:a, :b) + # expect(:a => 1, :b => 2).to include(:a => 1) + # expect(:a => 1, :b => 2).to include(:b => 2, :a => 1) + # expect(:a => 1, :b => 2).to include(:c) # fails + # expect(:a => 1, :b => 2).not_to include(:a => 2) + # + # source://rspec-expectations//lib/rspec/matchers.rb#639 + def include(*expected); end + + # Passes if actual includes expected. This works for + # collections and Strings. You can also pass in multiple args + # and it will only pass if all args are found in collection. + # + # @example + # expect([1,2,3]).to include(3) + # expect([1,2,3]).to include(2,3) + # expect([1,2,3]).to include(2,3,4) # fails + # expect([1,2,3]).not_to include(4) + # expect("spread").to include("read") + # expect("spread").not_to include("red") + # expect(:a => 1, :b => 2).to include(:a) + # expect(:a => 1, :b => 2).to include(:a, :b) + # expect(:a => 1, :b => 2).to include(:a => 1) + # expect(:a => 1, :b => 2).to include(:b => 2, :a => 1) + # expect(:a => 1, :b => 2).to include(:c) # fails + # expect(:a => 1, :b => 2).not_to include(:a => 2) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def including(*args, **_arg1, &block); end + + # Given a `Regexp` or `String`, passes if `actual.match(pattern)` + # Given an arbitrary nested data structure (e.g. arrays and hashes), + # matches if `expected === actual` || `actual == expected` for each + # pair of elements. + # + # @example + # expect(email).to match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i) + # expect(email).to match("@example.com") + # @example + # hash = { + # :a => { + # :b => ["foo", 5], + # :c => { :d => 2.05 } + # } + # } + # + # expect(hash).to match( + # :a => { + # :b => a_collection_containing_exactly( + # a_string_starting_with("f"), + # an_instance_of(Integer) + # ), + # :c => { :d => (a_value < 3) } + # } + # ) + # @note The `match_regex` alias is deprecated and is not recommended for use. + # It was added in 2.12.1 to facilitate its use from within custom + # matchers (due to how the custom matcher DSL was evaluated in 2.x, + # `match` could not be used there), but is no longer needed in 3.x. + # + # source://rspec-expectations//lib/rspec/matchers.rb#697 + def match(expected); end + + # An alternate form of `contain_exactly` that accepts + # the expected contents as a single array arg rather + # than splatted out as individual items. + # + # @example + # expect(results).to contain_exactly(1, 2) + # # is identical to: + # expect(results).to match_array([1, 2]) + # @see #contain_exactly + # + # source://rspec-expectations//lib/rspec/matchers.rb#715 + def match_array(items); end + + # Given a `Regexp` or `String`, passes if `actual.match(pattern)` + # Given an arbitrary nested data structure (e.g. arrays and hashes), + # matches if `expected === actual` || `actual == expected` for each + # pair of elements. + # + # @example + # expect(email).to match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i) + # expect(email).to match("@example.com") + # @example + # hash = { + # :a => { + # :b => ["foo", 5], + # :c => { :d => 2.05 } + # } + # } + # + # expect(hash).to match( + # :a => { + # :b => a_collection_containing_exactly( + # a_string_starting_with("f"), + # an_instance_of(Integer) + # ), + # :c => { :d => (a_value < 3) } + # } + # ) + # @note The `match_regex` alias is deprecated and is not recommended for use. + # It was added in 2.12.1 to facilitate its use from within custom + # matchers (due to how the custom matcher DSL was evaluated in 2.x, + # `match` could not be used there), but is no longer needed in 3.x. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def match_regex(*args, **_arg1, &block); end + + # Given a `Regexp` or `String`, passes if `actual.match(pattern)` + # Given an arbitrary nested data structure (e.g. arrays and hashes), + # matches if `expected === actual` || `actual == expected` for each + # pair of elements. + # + # @example + # expect(email).to match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i) + # expect(email).to match("@example.com") + # @example + # hash = { + # :a => { + # :b => ["foo", 5], + # :c => { :d => 2.05 } + # } + # } + # + # expect(hash).to match( + # :a => { + # :b => a_collection_containing_exactly( + # a_string_starting_with("f"), + # an_instance_of(Integer) + # ), + # :c => { :d => (a_value < 3) } + # } + # ) + # @note The `match_regex` alias is deprecated and is not recommended for use. + # It was added in 2.12.1 to facilitate its use from within custom + # matchers (due to how the custom matcher DSL was evaluated in 2.x, + # `match` could not be used there), but is no longer needed in 3.x. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def matching(*args, **_arg1, &block); end + + # With no arg, passes if the block outputs `to_stdout` or `to_stderr`. + # With a string, passes if the block outputs that specific string `to_stdout` or `to_stderr`. + # With a regexp or matcher, passes if the block outputs a string `to_stdout` or `to_stderr` that matches. + # + # To capture output from any spawned subprocess as well, use `to_stdout_from_any_process` or + # `to_stderr_from_any_process`. Output from any process that inherits the main process's corresponding + # standard stream will be captured. + # + # @example + # expect { print 'foo' }.to output.to_stdout + # expect { print 'foo' }.to output('foo').to_stdout + # expect { print 'foo' }.to output(/foo/).to_stdout + # + # expect { do_something }.to_not output.to_stdout + # + # expect { warn('foo') }.to output.to_stderr + # expect { warn('foo') }.to output('foo').to_stderr + # expect { warn('foo') }.to output(/foo/).to_stderr + # + # expect { do_something }.to_not output.to_stderr + # + # expect { system('echo foo') }.to output("foo\n").to_stdout_from_any_process + # expect { system('echo foo', out: :err) }.to output("foo\n").to_stderr_from_any_process + # @note `to_stdout` and `to_stderr` work by temporarily replacing `$stdout` or `$stderr`, + # so they're not able to intercept stream output that explicitly uses `STDOUT`/`STDERR` + # or that uses a reference to `$stdout`/`$stderr` that was stored before the + # matcher was used. + # @note `to_stdout_from_any_process` and `to_stderr_from_any_process` use Tempfiles, and + # are thus significantly (~30x) slower than `to_stdout` and `to_stderr`. + # + # source://rspec-expectations//lib/rspec/matchers.rb#752 + def output(expected = T.unsafe(nil)); end + + # With no args, matches if any error is raised. + # With a named error, matches only if that specific error is raised. + # With a named error and message specified as a String, matches only if both match. + # With a named error and message specified as a Regexp, matches only if both match. + # Pass an optional block to perform extra verifications on the exception matched + # + # @example + # expect { do_something_risky }.to raise_error + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) { |error| expect(error.data).to eq 42 } + # expect { do_something_risky }.to raise_error { |error| expect(error.data).to eq 42 } + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, "that was too risky") + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, /oo ri/) + # expect { do_something_risky }.to raise_error("that was too risky") + # + # expect { do_something_risky }.not_to raise_error + # + # source://rspec-expectations//lib/rspec/matchers.rb#773 + def raise_error(error = T.unsafe(nil), message = T.unsafe(nil), &block); end + + # With no args, matches if any error is raised. + # With a named error, matches only if that specific error is raised. + # With a named error and message specified as a String, matches only if both match. + # With a named error and message specified as a Regexp, matches only if both match. + # Pass an optional block to perform extra verifications on the exception matched + # + # @example + # expect { do_something_risky }.to raise_error + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) { |error| expect(error.data).to eq 42 } + # expect { do_something_risky }.to raise_error { |error| expect(error.data).to eq 42 } + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, "that was too risky") + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, /oo ri/) + # expect { do_something_risky }.to raise_error("that was too risky") + # + # expect { do_something_risky }.not_to raise_error + # + # source://rspec-expectations//lib/rspec/matchers.rb#773 + def raise_exception(error = T.unsafe(nil), message = T.unsafe(nil), &block); end + + # With no args, matches if any error is raised. + # With a named error, matches only if that specific error is raised. + # With a named error and message specified as a String, matches only if both match. + # With a named error and message specified as a Regexp, matches only if both match. + # Pass an optional block to perform extra verifications on the exception matched + # + # @example + # expect { do_something_risky }.to raise_error + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError) { |error| expect(error.data).to eq 42 } + # expect { do_something_risky }.to raise_error { |error| expect(error.data).to eq 42 } + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, "that was too risky") + # expect { do_something_risky }.to raise_error(PoorRiskDecisionError, /oo ri/) + # expect { do_something_risky }.to raise_error("that was too risky") + # + # expect { do_something_risky }.not_to raise_error + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def raising(*args, **_arg1, &block); end + + # Matches if the target object responds to all of the names + # provided. Names can be Strings or Symbols. + # + # @example + # expect("string").to respond_to(:length) + # + # source://rspec-expectations//lib/rspec/matchers.rb#792 + def respond_to(*names); end + + # Matches if the target object responds to all of the names + # provided. Names can be Strings or Symbols. + # + # @example + # expect("string").to respond_to(:length) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def responding_to(*args, **_arg1, &block); end + + # Passes if the submitted block returns true. Yields target to the + # block. + # + # Generally speaking, this should be thought of as a last resort when + # you can't find any other way to specify the behaviour you wish to + # specify. + # + # If you do find yourself in such a situation, you could always write + # a custom matcher, which would likely make your specs more expressive. + # + # @example + # expect(5).to satisfy { |n| n > 3 } + # expect(5).to satisfy("be greater than 3") { |n| n > 3 } + # @param description [String] optional description to be used for this matcher. + # + # source://rspec-expectations//lib/rspec/matchers.rb#813 + def satisfy(description = T.unsafe(nil), &block); end + + # Passes if the submitted block returns true. Yields target to the + # block. + # + # Generally speaking, this should be thought of as a last resort when + # you can't find any other way to specify the behaviour you wish to + # specify. + # + # If you do find yourself in such a situation, you could always write + # a custom matcher, which would likely make your specs more expressive. + # + # @example + # expect(5).to satisfy { |n| n > 3 } + # expect(5).to satisfy("be greater than 3") { |n| n > 3 } + # @param description [String] optional description to be used for this matcher. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def satisfying(*args, **_arg1, &block); end + + # Matches if the actual value starts with the expected value(s). In the + # case of a string, matches against the first `expected.length` characters + # of the actual string. In the case of an array, matches against the first + # `expected.length` elements of the actual array. + # + # @example + # expect("this string").to start_with "this s" + # expect([0, 1, 2, 3, 4]).to start_with 0 + # expect([0, 2, 3, 4, 4]).to start_with 0, 1 + # + # source://rspec-expectations//lib/rspec/matchers.rb#828 + def start_with(*expected); end + + # Matches if the actual value starts with the expected value(s). In the + # case of a string, matches against the first `expected.length` characters + # of the actual string. In the case of an array, matches against the first + # `expected.length` elements of the actual array. + # + # @example + # expect("this string").to start_with "this s" + # expect([0, 1, 2, 3, 4]).to start_with 0 + # expect([0, 2, 3, 4, 4]).to start_with 0, 1 + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def starting_with(*args, **_arg1, &block); end + + # Given no argument, matches if a proc throws any Symbol. + # + # Given a Symbol, matches if the given proc throws the specified Symbol. + # + # Given a Symbol and an arg, matches if the given proc throws the + # specified Symbol with the specified arg. + # + # @example + # expect { do_something_risky }.to throw_symbol + # expect { do_something_risky }.to throw_symbol(:that_was_risky) + # expect { do_something_risky }.to throw_symbol(:that_was_risky, 'culprit') + # + # expect { do_something_risky }.not_to throw_symbol + # expect { do_something_risky }.not_to throw_symbol(:that_was_risky) + # expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit') + # + # source://rspec-expectations//lib/rspec/matchers.rb#850 + def throw_symbol(expected_symbol = T.unsafe(nil), expected_arg = T.unsafe(nil)); end + + # Given no argument, matches if a proc throws any Symbol. + # + # Given a Symbol, matches if the given proc throws the specified Symbol. + # + # Given a Symbol and an arg, matches if the given proc throws the + # specified Symbol with the specified arg. + # + # @example + # expect { do_something_risky }.to throw_symbol + # expect { do_something_risky }.to throw_symbol(:that_was_risky) + # expect { do_something_risky }.to throw_symbol(:that_was_risky, 'culprit') + # + # expect { do_something_risky }.not_to throw_symbol + # expect { do_something_risky }.not_to throw_symbol(:that_was_risky) + # expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit') + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def throwing(*args, **_arg1, &block); end + + # Passes if actual == expected +/- delta + # + # @example + # expect(result).to be_within(0.5).of(3.0) + # expect(result).not_to be_within(0.5).of(3.0) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def within(*args, **_arg1, &block); end + + # Passes if the method called in the expect block yields, regardless + # of whether or not arguments are yielded. + # + # @example + # expect { |b| 5.tap(&b) }.to yield_control + # expect { |b| "a".to_sym(&b) }.not_to yield_control + # @note Your expect block must accept a parameter and pass it on to + # the method-under-test as a block. + # + # source://rspec-expectations//lib/rspec/matchers.rb#871 + def yield_control; end + + # Designed for use with methods that repeatedly yield (such as + # iterators). Passes if the method called in the expect block yields + # multiple times with arguments matching those given. + # + # Argument matching is done using `===` (the case match operator) + # and `==`. If the expected and actual arguments match with either + # operator, the matcher will pass. + # + # @example + # expect { |b| [1, 2, 3].each(&b) }.to yield_successive_args(1, 2, 3) + # expect { |b| { :a => 1, :b => 2 }.each(&b) }.to yield_successive_args([:a, 1], [:b, 2]) + # expect { |b| [1, 2, 3].each(&b) }.not_to yield_successive_args(1, 2) + # @note Your expect block must accept a parameter and pass it on to + # the method-under-test as a block. + # + # source://rspec-expectations//lib/rspec/matchers.rb#940 + def yield_successive_args(*args); end + + # Given no arguments, matches if the method called in the expect + # block yields with arguments (regardless of what they are or how + # many there are). + # + # Given arguments, matches if the method called in the expect block + # yields with arguments that match the given arguments. + # + # Argument matching is done using `===` (the case match operator) + # and `==`. If the expected and actual arguments match with either + # operator, the matcher will pass. + # + # @example + # expect { |b| 5.tap(&b) }.to yield_with_args # because #tap yields an arg + # expect { |b| 5.tap(&b) }.to yield_with_args(5) # because 5 == 5 + # expect { |b| 5.tap(&b) }.to yield_with_args(Integer) # because Integer === 5 + # expect { |b| File.open("f.txt", &b) }.to yield_with_args(/txt/) # because /txt/ === "f.txt" + # + # expect { |b| User.transaction(&b) }.not_to yield_with_args # because it yields no args + # expect { |b| 5.tap(&b) }.not_to yield_with_args(1, 2, 3) + # @note Your expect block must accept a parameter and pass it on to + # the method-under-test as a block. + # @note This matcher is not designed for use with methods that yield + # multiple times. + # + # source://rspec-expectations//lib/rspec/matchers.rb#919 + def yield_with_args(*args); end + + # Passes if the method called in the expect block yields with + # no arguments. Fails if it does not yield, or yields with arguments. + # + # @example + # expect { |b| User.transaction(&b) }.to yield_with_no_args + # expect { |b| 5.tap(&b) }.not_to yield_with_no_args # because it yields with `5` + # expect { |b| "a".to_sym(&b) }.not_to yield_with_no_args # because it does not yield + # @note Your expect block must accept a parameter and pass it on to + # the method-under-test as a block. + # @note This matcher is not designed for use with methods that yield + # multiple times. + # + # source://rspec-expectations//lib/rspec/matchers.rb#889 + def yield_with_no_args; end + + # Passes if the method called in the expect block yields, regardless + # of whether or not arguments are yielded. + # + # @example + # expect { |b| 5.tap(&b) }.to yield_control + # expect { |b| "a".to_sym(&b) }.not_to yield_control + # @note Your expect block must accept a parameter and pass it on to + # the method-under-test as a block. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def yielding_control(*args, **_arg1, &block); end + + # Designed for use with methods that repeatedly yield (such as + # iterators). Passes if the method called in the expect block yields + # multiple times with arguments matching those given. + # + # Argument matching is done using `===` (the case match operator) + # and `==`. If the expected and actual arguments match with either + # operator, the matcher will pass. + # + # @example + # expect { |b| [1, 2, 3].each(&b) }.to yield_successive_args(1, 2, 3) + # expect { |b| { :a => 1, :b => 2 }.each(&b) }.to yield_successive_args([:a, 1], [:b, 2]) + # expect { |b| [1, 2, 3].each(&b) }.not_to yield_successive_args(1, 2) + # @note Your expect block must accept a parameter and pass it on to + # the method-under-test as a block. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def yielding_successive_args(*args, **_arg1, &block); end + + # Given no arguments, matches if the method called in the expect + # block yields with arguments (regardless of what they are or how + # many there are). + # + # Given arguments, matches if the method called in the expect block + # yields with arguments that match the given arguments. + # + # Argument matching is done using `===` (the case match operator) + # and `==`. If the expected and actual arguments match with either + # operator, the matcher will pass. + # + # @example + # expect { |b| 5.tap(&b) }.to yield_with_args # because #tap yields an arg + # expect { |b| 5.tap(&b) }.to yield_with_args(5) # because 5 == 5 + # expect { |b| 5.tap(&b) }.to yield_with_args(Integer) # because Integer === 5 + # expect { |b| File.open("f.txt", &b) }.to yield_with_args(/txt/) # because /txt/ === "f.txt" + # + # expect { |b| User.transaction(&b) }.not_to yield_with_args # because it yields no args + # expect { |b| 5.tap(&b) }.not_to yield_with_args(1, 2, 3) + # @note Your expect block must accept a parameter and pass it on to + # the method-under-test as a block. + # @note This matcher is not designed for use with methods that yield + # multiple times. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def yielding_with_args(*args, **_arg1, &block); end + + # Passes if the method called in the expect block yields with + # no arguments. Fails if it does not yield, or yields with arguments. + # + # @example + # expect { |b| User.transaction(&b) }.to yield_with_no_args + # expect { |b| 5.tap(&b) }.not_to yield_with_no_args # because it yields with `5` + # expect { |b| "a".to_sym(&b) }.not_to yield_with_no_args # because it does not yield + # @note Your expect block must accept a parameter and pass it on to + # the method-under-test as a block. + # @note This matcher is not designed for use with methods that yield + # multiple times. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def yielding_with_no_args(*args, **_arg1, &block); end + + private + + # source://rspec-expectations//lib/rspec/matchers.rb#961 + def method_missing(method, *args, **_arg2, &block); end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers.rb#974 + def respond_to_missing?(method, *_arg1); end + + class << self + # Extended from {RSpec::Matchers::DSL#alias_matcher}. + # + # source://rspec-expectations//lib/rspec/matchers.rb#250 + def alias_matcher(*args, &block); end + + # Used by rspec-core to clear the state used to generate + # descriptions after an example. + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#11 + def clear_generated_description; end + + # Delegates to {RSpec::Expectations.configuration}. + # This is here because rspec-core's `expect_with` option + # looks for a `configuration` method on the mixin + # (`RSpec::Matchers`) to yield to a block. + # + # @return [RSpec::Expectations::Configuration] the configuration object + # + # source://rspec-expectations//lib/rspec/matchers.rb#951 + def configuration; end + + # Generates an an example description based on the last expectation. + # Used by rspec-core's one-liner syntax. + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#19 + def generated_description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers.rb#1008 + def is_a_describable_matcher?(obj); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers.rb#988 + def is_a_matcher?(obj); end + + # @private + # + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#25 + def last_description; end + + # @private + # + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#5 + def last_expectation_handler; end + + # @private + # + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#5 + def last_expectation_handler=(_arg0); end + + # @private + # + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#5 + def last_matcher; end + + # @private + # + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#5 + def last_matcher=(_arg0); end + end +end + +# Decorator that wraps a matcher and overrides `description` +# using the provided block in order to support an alias +# of a matcher. This is intended for use when composing +# matchers, so that you can use an expression like +# `include( a_value_within(0.1).of(3) )` rather than +# `include( be_within(0.1).of(3) )`, and have the corresponding +# description read naturally. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#12 +class RSpec::Matchers::AliasedMatcher < ::RSpec::Matchers::MatcherDelegator + # @api private + # @return [AliasedMatcher] a new instance of AliasedMatcher + # + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#13 + def initialize(base_matcher, description_block); end + + # Provides the description of the aliased matcher. Aliased matchers + # are designed to behave identically to the original matcher except + # for the description and failure messages. The description is different + # to reflect the aliased name. + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#36 + def description; end + + # Provides the failure_message of the aliased matcher. Aliased matchers + # are designed to behave identically to the original matcher except + # for the description and failure messages. The failure_message is different + # to reflect the aliased name. + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#46 + def failure_message; end + + # Provides the failure_message_when_negated of the aliased matcher. Aliased matchers + # are designed to behave identically to the original matcher except + # for the description and failure messages. The failure_message_when_negated is different + # to reflect the aliased name. + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#56 + def failure_message_when_negated; end + + # Forward messages on to the wrapped matcher. + # Since many matchers provide a fluent interface + # (e.g. `a_value_within(0.1).of(3)`), we need to wrap + # the returned value if it responds to `description`, + # so that our override can be applied when it is eventually + # used. + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#24 + def method_missing(*_arg0); end +end + +# Decorator used for matchers that have special implementations of +# operators like `==` and `===`. +# +# @private +# +# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#64 +class RSpec::Matchers::AliasedMatcherWithOperatorSupport < ::RSpec::Matchers::AliasedMatcher; end + +# @private +# +# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#71 +class RSpec::Matchers::AliasedNegatedMatcher < ::RSpec::Matchers::AliasedMatcher + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#80 + def does_not_match?(*args, &block); end + + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#84 + def failure_message; end + + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#88 + def failure_message_when_negated; end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#72 + def matches?(*args, &block); end + + private + + # For a matcher that uses the default failure messages, we prefer to + # use the override provided by the `description_block`, because it + # includes the phrasing that the user has expressed a preference for + # by going through the effort of defining a negated matcher. + # + # However, if the override didn't actually change anything, then we + # should return the opposite failure message instead -- the overridden + # message is going to be confusing if we return it as-is, as it represents + # the non-negated failure message for a negated match (or vice versa). + # + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#105 + def optimal_failure_message(same, inverted); end +end + +# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#94 +RSpec::Matchers::AliasedNegatedMatcher::DefaultFailureMessages = RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages + +# source://rspec-expectations//lib/rspec/matchers.rb#957 +RSpec::Matchers::BE_PREDICATE_REGEX = T.let(T.unsafe(nil), Regexp) + +# Provides a base class with as little methods as possible, so that +# most methods can be delegated via `method_missing`. +# +# On Ruby 2.0+ BasicObject could be used for this purpose, but it +# introduce some extra complexity with constant resolution, so the +# BlankSlate pattern was prefered. +# +# @private +# +# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#10 +class RSpec::Matchers::BaseDelegator; end + +# Container module for all built-in matchers. The matcher classes are here +# (rather than directly under `RSpec::Matchers`) in order to prevent name +# collisions, since `RSpec::Matchers` gets included into the user's namespace. +# +# Autoloading is used to delay when the matcher classes get loaded, allowing +# rspec-matchers to boot faster, and avoiding loading matchers the user is +# not using. +# +# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#3 +module RSpec::Matchers::BuiltIn; end + +# Provides the implementation for `all`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#7 +class RSpec::Matchers::BuiltIn::All < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [All] a new instance of All + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#11 + def initialize(matcher); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#37 + def description; end + + # @api private + # @private + # @raise [NotImplementedError] + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#17 + def does_not_match?(_actual); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#9 + def failed_objects; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#23 + def failure_message; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#9 + def matcher; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#63 + def add_new_line_if_needed(message); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#58 + def failure_message_for_item(index, failure_message); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#67 + def indent_multiline_message(message); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#50 + def index_failed_objects; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#74 + def initialize_copy(other); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#80 + def iterable?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#43 + def match(_expected, _actual); end +end + +# Used _internally_ as a base class for matchers that ship with +# rspec-expectations and rspec-rails. +# +# ### Warning: +# +# This class is for internal use, and subject to change without notice. +# We strongly recommend that you do not base your custom matchers on this +# class. If/when this changes, we will announce it and remove this warning. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#14 +class RSpec::Matchers::BuiltIn::BaseMatcher + include ::RSpec::Matchers::Composable + include ::RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting + include ::RSpec::Matchers::BuiltIn::BaseMatcher::StringEncodingFormatting + include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages + + # @api private + # @return [BaseMatcher] a new instance of BaseMatcher + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#28 + def initialize(expected = T.unsafe(nil)); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#23 + def actual; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#97 + def actual_formatted; end + + # Generates a description using {EnglishPhrasing}. + # + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#60 + def description; end + + # Matchers are not diffable by default. Override this to make your + # subclass diffable. + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#69 + def diffable?; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#23 + def expected; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#92 + def expected_formatted; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#87 + def expects_call_stack_jump?; end + + # Used to wrap a block of code that will indicate failure by + # raising one of the named exceptions. + # + # This is used by rspec-rails for some of its matchers that + # wrap rails' assertions. + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#47 + def match_unless_raises(*exceptions); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#107 + def matcher_name; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#26 + def matcher_name=(_arg0); end + + # Indicates if the match is successful. Delegates to `match`, which + # should be defined on a subclass. Takes care of consistently + # initializing the `actual` attribute. + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#36 + def matches?(actual); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#23 + def rescued_exception; end + + # Most matchers are value matchers (i.e. meant to work with `expect(value)`) + # rather than block matchers (i.e. meant to work with `expect { }`), so + # this defaults to false. Block matchers must override this to return true. + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#77 + def supports_block_expectations?; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#82 + def supports_value_expectations?; end + + class << self + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#102 + def matcher_name; end + + private + + # Borrowed from ActiveSupport. + # + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#117 + def underscore(camel_cased_word); end + end +end + +# Provides default implementations of failure messages, based on the `description`. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#193 +module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages + # Provides a good generic failure message. Based on `description`. + # When subclassing, if you are not satisfied with this failure message + # you often only need to override `description`. + # + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#199 + def failure_message; end + + # Provides a good generic negative failure message. Based on `description`. + # When subclassing, if you are not satisfied with this failure message + # you often only need to override `description`. + # + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#208 + def failure_message_when_negated; end + + class << self + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#213 + def has_default_failure_messages?(matcher); end + end +end + +# @api private +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#128 +module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting + private + + # `{ :a => 5, :b => 2 }.inspect` produces: + # + # {:a=>5, :b=>2} + # + # ...but it looks much better as: + # + # {:a => 5, :b => 2} + # + # This is idempotent and safe to run on a string multiple times. + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#138 + def improve_hash_formatting(inspect_string); end + + class << self + # `{ :a => 5, :b => 2 }.inspect` produces: + # + # {:a=>5, :b=>2} + # + # ...but it looks much better as: + # + # {:a => 5, :b => 2} + # + # This is idempotent and safe to run on a string multiple times. + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#138 + def improve_hash_formatting(inspect_string); end + end +end + +# @api private +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#147 +module RSpec::Matchers::BuiltIn::BaseMatcher::StringEncodingFormatting + private + + # Formats a String's encoding as a human readable string + # :nocov: + # + # @api private + # @param _value [String] + # @return [nil] nil as the curent Ruby version does not support String encoding + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#172 + def format_encoding(value); end + + # :nocov: + # + # @api private + # @return [Boolean] False always as the curent Ruby version does not support String encoding + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#153 + def string_encoding_differs?; end + + class << self + # Formats a String's encoding as a human readable string + # :nocov: + # + # @api private + # @param _value [String] + # @return [nil] nil as the curent Ruby version does not support String encoding + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#172 + def format_encoding(value); end + + # :nocov: + # + # @api private + # @return [Boolean] False always as the curent Ruby version does not support String encoding + # + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#153 + def string_encoding_differs?; end + end +end + +# Used to detect when no arg is passed to `initialize`. +# `nil` cannot be used because it's a valid value to pass. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#20 +RSpec::Matchers::BuiltIn::BaseMatcher::UNDEFINED = T.let(T.unsafe(nil), Object) + +# Provides the implementation for `be`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#101 +class RSpec::Matchers::BuiltIn::Be < ::RSpec::Matchers::BuiltIn::BaseMatcher + include ::RSpec::Matchers::BuiltIn::BeHelpers + + # @api private + # @return [Be] a new instance of Be + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#104 + def initialize(*args); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 + def <(operand); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 + def <=(operand); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 + def ==(operand); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 + def ===(operand); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 + def =~(operand); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 + def >(operand); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 + def >=(operand); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#110 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#116 + def failure_message_when_negated; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#128 + def match(_, actual); end +end + +# Provides the implementation for `be_a_kind_of`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/be_kind_of.rb#7 +class RSpec::Matchers::BuiltIn::BeAKindOf < ::RSpec::Matchers::BuiltIn::BaseMatcher + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_kind_of.rb#10 + def match(expected, actual); end +end + +# Provides the implementation for `be_an_instance_of`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/be_instance_of.rb#7 +class RSpec::Matchers::BuiltIn::BeAnInstanceOf < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_instance_of.rb#10 + def description; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_instance_of.rb#16 + def match(expected, actual); end +end + +# Provides the implementation for `be_between`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#7 +class RSpec::Matchers::BuiltIn::BeBetween < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [BeBetween] a new instance of BeBetween + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#8 + def initialize(min, max); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#57 + def description; end + + # Makes the between comparison exclusive. + # + # @api public + # @example + # expect(3).to be_between(2, 4).exclusive + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#33 + def exclusive; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#51 + def failure_message; end + + # Makes the between comparison inclusive. + # + # @api public + # @example + # expect(3).to be_between(2, 3).inclusive + # @note The matcher is inclusive by default; this simply provides + # a way to be more explicit about it. + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#21 + def inclusive; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#42 + def matches?(actual); end + + private + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#63 + def comparable?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#71 + def compare; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#67 + def not_comparable_clause; end +end + +# Provides the implementation of `be value`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#136 +class RSpec::Matchers::BuiltIn::BeComparedTo < ::RSpec::Matchers::BuiltIn::BaseMatcher + include ::RSpec::Matchers::BuiltIn::BeHelpers + + # @api private + # @return [BeComparedTo] a new instance of BeComparedTo + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#139 + def initialize(operand, operator); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#178 + def description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#151 + def does_not_match?(actual); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#159 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#166 + def failure_message_when_negated; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#145 + def matches?(actual); end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#184 + def perform_match(actual); end +end + +# Provides the implementation for `be_falsey`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#30 +class RSpec::Matchers::BuiltIn::BeFalsey < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#33 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#39 + def failure_message_when_negated; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#45 + def match(_, actual); end +end + +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#74 +module RSpec::Matchers::BuiltIn::BeHelpers + private + + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#77 + def args_to_s; end + + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#93 + def args_to_sentence; end + + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#89 + def expected_to_sentence; end + + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#85 + def inspected_args; end + + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#81 + def parenthesize(string); end +end + +# Provides the implementation for `be_nil`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#53 +class RSpec::Matchers::BuiltIn::BeNil < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#56 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#62 + def failure_message_when_negated; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#68 + def match(_, actual); end +end + +# Provides the implementation of `be_`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#164 +class RSpec::Matchers::BuiltIn::BePredicate < ::RSpec::Matchers::BuiltIn::DynamicPredicate + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#176 + def failure_to_respond_explanation; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#168 + def predicate; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#184 + def predicate_accessible?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#172 + def predicate_method_name; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#188 + def present_tense_predicate; end +end + +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#166 +RSpec::Matchers::BuiltIn::BePredicate::REGEX = T.let(T.unsafe(nil), Regexp) + +# Provides the implementation for `be_truthy`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#7 +class RSpec::Matchers::BuiltIn::BeTruthy < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#10 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#16 + def failure_message_when_negated; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#22 + def match(_, actual); end +end + +# Provides the implementation for `be_within`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#7 +class RSpec::Matchers::BuiltIn::BeWithin < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [BeWithin] a new instance of BeWithin + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#8 + def initialize(delta); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#52 + def description; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#40 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#46 + def failure_message_when_negated; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#32 + def matches?(actual); end + + # Sets the expected value. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#14 + def of(expected); end + + # Sets the expected value, and makes the matcher do + # a percent comparison. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#24 + def percent_of(expected); end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#62 + def needs_expected; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#66 + def not_numeric_clause; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#58 + def numeric?; end +end + +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#159 +module RSpec::Matchers::BuiltIn::CaptureStderr + class << self + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#164 + def capture(block); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#160 + def name; end + end +end + +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#139 +module RSpec::Matchers::BuiltIn::CaptureStdout + class << self + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#144 + def capture(block); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#140 + def name; end + end +end + +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#179 +class RSpec::Matchers::BuiltIn::CaptureStreamToTempfile < ::Struct + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#180 + def capture(block); end +end + +# Provides the implementation for `change`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#7 +class RSpec::Matchers::BuiltIn::Change < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [Change] a new instance of Change + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#87 + def initialize(receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end + + # Specifies the delta of the expected change. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#10 + def by(expected_delta); end + + # Specifies a minimum delta of the expected change. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#18 + def by_at_least(minimum); end + + # Specifies a maximum delta of the expected change. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#26 + def by_at_most(maximum); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#71 + def description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#50 + def does_not_match?(event_proc); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#57 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#64 + def failure_message_when_negated; end + + # Specifies the original value. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#40 + def from(value); end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#45 + def matches?(event_proc); end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#76 + def supports_block_expectations?; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#81 + def supports_value_expectations?; end + + # Specifies the new value you expect. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#34 + def to(value); end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#93 + def change_details; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#119 + def negative_failure_reason; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#97 + def perform_change(event_proc); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#114 + def positive_failure_reason; end + + # @api private + # @raise [SyntaxError] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#109 + def raise_block_syntax_error; end +end + +# Encapsulates the details of the before/after values. +# +# Note that this class exposes the `actual_after` value, to allow the +# matchers above to derive failure messages, etc from the value on demand +# as needed, but it intentionally does _not_ expose the `actual_before` +# value. Some usages of the `change` matcher mutate a specific object +# returned by the value proc, which means that failure message snippets, +# etc, which are derived from the `before` value may not be accurate if +# they are lazily computed as needed. We must pre-compute them before +# applying the change in the `expect` block. To ensure that all `change` +# matchers do that properly, we do not expose the `actual_before` value. +# Instead, matchers must pass a block to `perform_change`, which yields +# the `actual_before` value before applying the change. +# +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#352 +class RSpec::Matchers::BuiltIn::ChangeDetails + # @return [ChangeDetails] a new instance of ChangeDetails + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#357 + def initialize(matcher_name, receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end + + # Returns the value of attribute actual_after. + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#353 + def actual_after; end + + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#418 + def actual_delta; end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#402 + def changed?; end + + # @yield [@actual_before] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#389 + def perform_change(event_proc); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#378 + def value_representation; end + + private + + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#424 + def evaluate_value_proc; end + + # :nocov: + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#438 + def extract_value_block_snippet; end + + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#428 + def message_notation(receiver, message); end +end + +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#355 +module RSpec::Matchers::BuiltIn::ChangeDetails::UNDEFINED; end + +# Used to specify a change from a specific value +# (and, optionally, to a specific value). +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#270 +class RSpec::Matchers::BuiltIn::ChangeFromValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange + # @api private + # @return [ChangeFromValue] a new instance of ChangeFromValue + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#271 + def initialize(change_details, expected_before); end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#285 + def does_not_match?(event_proc); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#295 + def failure_message_when_negated; end + + # Specifies the new value you expect. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#278 + def to(value); end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#303 + def change_description; end +end + +# Used to specify a relative change. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#128 +class RSpec::Matchers::BuiltIn::ChangeRelatively < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [ChangeRelatively] a new instance of ChangeRelatively + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#129 + def initialize(change_details, expected_delta, relativity, &comparer); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#156 + def description; end + + # @api private + # @private + # @raise [NotImplementedError] + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#150 + def does_not_match?(_event_proc); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#137 + def failure_message; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#144 + def matches?(event_proc); end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#162 + def supports_block_expectations?; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#167 + def supports_value_expectations?; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#173 + def failure_reason; end +end + +# Used to specify a change to a specific value +# (and, optionally, from a specific value). +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#311 +class RSpec::Matchers::BuiltIn::ChangeToValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange + # @api private + # @return [ChangeToValue] a new instance of ChangeToValue + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#312 + def initialize(change_details, expected_after); end + + # @api private + # @private + # @raise [NotImplementedError] + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#326 + def does_not_match?(_event_proc); end + + # Specifies the original value. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#319 + def from(value); end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#333 + def change_description; end +end + +# Base class for `and` and `or` compound matchers. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#6 +class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [Compound] a new instance of Compound + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#10 + def initialize(matcher_1, matcher_2); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#25 + def description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#49 + def diffable?; end + + # @api private + # @private + # @raise [NotImplementedError] + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#16 + def does_not_match?(_actual); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#8 + def evaluator; end + + # @api private + # @return [RSpec::Matchers::MultiMatcherDiff] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#55 + def expected; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#42 + def expects_call_stack_jump?; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#8 + def matcher_1; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#8 + def matcher_2; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#30 + def supports_block_expectations?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#36 + def supports_value_expectations?; end + + protected + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#62 + def diffable_matcher_list; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#96 + def compound_failure_message; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#128 + def diffable_matcher_list_for(matcher); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#90 + def indent_multiline_message(message); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#71 + def initialize_copy(other); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#77 + def match(_expected, actual); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#102 + def matcher_1_matches?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#106 + def matcher_2_matches?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#122 + def matcher_is_diffable?(matcher); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#110 + def matcher_supports_block_expectations?(matcher); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#116 + def matcher_supports_value_expectations?(matcher); end +end + +# Matcher used to represent a compound `and` expectation. +# +# @api public +# +# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#245 +class RSpec::Matchers::BuiltIn::Compound::And < ::RSpec::Matchers::BuiltIn::Compound + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#248 + def failure_message; end + + private + + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#265 + def conjunction; end + + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#260 + def match(*_arg0); end +end + +# Normally, we evaluate the matching sequentially. For an expression like +# `expect(x).to foo.and bar`, this becomes: +# +# expect(x).to foo +# expect(x).to bar +# +# For block expectations, we need to nest them instead, so that +# `expect { x }.to foo.and bar` becomes: +# +# expect { +# expect { x }.to foo +# }.to bar +# +# This is necessary so that the `expect` block is only executed once. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#159 +class RSpec::Matchers::BuiltIn::Compound::NestedEvaluator + # @api private + # @return [NestedEvaluator] a new instance of NestedEvaluator + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#160 + def initialize(actual, matcher_1, matcher_2); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#173 + def matcher_matches?(matcher); end + + private + + # Some block matchers (such as `yield_xyz`) pass args to the `expect` block. + # When such a matcher is used as the outer matcher, we need to forward the + # the args on to the `expect` block. + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#187 + def inner_matcher_block(outer_args); end + + # For a matcher like `raise_error` or `throw_symbol`, where the block will jump + # up the call stack, we need to order things so that it is the inner matcher. + # For example, we need it to be this: + # + # expect { + # expect { + # x += 1 + # raise "boom" + # }.to raise_error("boom") + # }.to change { x }.by(1) + # + # ...rather than: + # + # expect { + # expect { + # x += 1 + # raise "boom" + # }.to change { x }.by(1) + # }.to raise_error("boom") + # + # In the latter case, the after-block logic in the `change` matcher would never + # get executed because the `raise "boom"` line would jump to the `rescue` in the + # `raise_error` logic, so only the former case will work properly. + # + # This method figures out which matcher should be the inner matcher and which + # should be the outer matcher. + # + # @api private + # @raise [ArgumentError] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#227 + def order_block_matchers; end + + class << self + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#236 + def matcher_expects_call_stack_jump?(matcher); end + end +end + +# Matcher used to represent a compound `or` expectation. +# +# @api public +# +# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#272 +class RSpec::Matchers::BuiltIn::Compound::Or < ::RSpec::Matchers::BuiltIn::Compound + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#275 + def failure_message; end + + private + + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#286 + def conjunction; end + + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#281 + def match(*_arg0); end +end + +# For value expectations, we can evaluate the matchers sequentially. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#135 +class RSpec::Matchers::BuiltIn::Compound::SequentialEvaluator + # @api private + # @return [SequentialEvaluator] a new instance of SequentialEvaluator + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#136 + def initialize(actual, *_arg1); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#140 + def matcher_matches?(matcher); end +end + +# Provides the implementation for `contain_exactly` and `match_array`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#8 +class RSpec::Matchers::BuiltIn::ContainExactly < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#29 + def description; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#11 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#22 + def failure_message_when_negated; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#34 + def matches?(actual); end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#56 + def actual_collection_line; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#137 + def best_solution; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#94 + def convert_actual_to_an_array; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#68 + def describe_collection(collection, surface_descriptions = T.unsafe(nil)); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#52 + def expected_collection_line; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#64 + def extra_elements_line; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#131 + def extra_items; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#44 + def generate_failure_message; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#81 + def match(_expected, _actual); end + + # This cannot always work (e.g. when dealing with unsortable items, + # or matchers as expected items), but it's practically free compared to + # the slowness of the full matching algorithm, and in common cases this + # works, so it's worth a try. + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#90 + def match_when_sorted?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#76 + def message_line(prefix, collection, surface_descriptions = T.unsafe(nil)); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#60 + def missing_elements_line; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#125 + def missing_items; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#141 + def pairings_maximizer; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#104 + def safe_sort(array); end + + # :nocov: + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#120 + def to_a_disallowed?(object); end +end + +# Once we started supporting composing matchers, the algorithm for this matcher got +# much more complicated. Consider this expression: +# +# expect(["fool", "food"]).to contain_exactly(/foo/, /fool/) +# +# This should pass (because we can pair /fool/ with "fool" and /foo/ with "food"), but +# the original algorithm used by this matcher would pair the first elements it could +# (/foo/ with "fool"), which would leave /fool/ and "food" unmatched. When we have +# an expected element which is a matcher that matches a superset of actual items +# compared to another expected element matcher, we need to consider every possible pairing. +# +# This class is designed to maximize the number of actual/expected pairings -- or, +# conversely, to minimize the number of unpaired items. It's essentially a brute +# force solution, but with a few heuristics applied to reduce the size of the +# problem space: +# +# * Any items which match none of the items in the other list are immediately +# placed into the `unmatched_expected_indexes` or `unmatched_actual_indexes` array. +# The extra items and missing items in the matcher failure message are derived +# from these arrays. +# * Any items which reciprocally match only each other are paired up and not +# considered further. +# +# What's left is only the items which match multiple items from the other list +# (or vice versa). From here, it performs a brute-force depth-first search, +# looking for a solution which pairs all elements in both lists, or, barring that, +# that produces the fewest unmatched items. +# +# @api private +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#188 +class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer + # @api private + # @return [PairingsMaximizer] a new instance of PairingsMaximizer + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#225 + def initialize(expected_to_actual_matched_indexes, actual_to_expected_matched_indexes); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#223 + def actual_to_expected_matched_indexes; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#223 + def expected_to_actual_matched_indexes; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#239 + def find_best_solution; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#223 + def solution; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#301 + def apply_pairing_to(indeterminates, original_matches, other_list_index); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#285 + def best_solution_for_pairing(expected_index, actual_index); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#265 + def categorize_indexes(indexes_to_categorize, other_indexes); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#280 + def reciprocal_single_match?(matches, index, other_list); end +end + +# Starting solution that is worse than any other real solution. +# +# @api private +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#259 +class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::NullSolution + class << self + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#260 + def worse_than?(_other); end + end +end + +# @api private +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 +class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < ::Struct + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#212 + def +(derived_candidate_solution); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#196 + def candidate?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#201 + def ideal?; end + + # Returns the value of attribute indeterminate_actual_indexes + # + # @return [Object] the current value of indeterminate_actual_indexes + def indeterminate_actual_indexes; end + + # Sets the attribute indeterminate_actual_indexes + # + # @param value [Object] the value to set the attribute indeterminate_actual_indexes to. + # @return [Object] the newly set value + def indeterminate_actual_indexes=(_); end + + # Returns the value of attribute indeterminate_expected_indexes + # + # @return [Object] the current value of indeterminate_expected_indexes + def indeterminate_expected_indexes; end + + # Sets the attribute indeterminate_expected_indexes + # + # @param value [Object] the value to set the attribute indeterminate_expected_indexes to. + # @return [Object] the newly set value + def indeterminate_expected_indexes=(_); end + + # Returns the value of attribute unmatched_actual_indexes + # + # @return [Object] the current value of unmatched_actual_indexes + def unmatched_actual_indexes; end + + # Sets the attribute unmatched_actual_indexes + # + # @param value [Object] the value to set the attribute unmatched_actual_indexes to. + # @return [Object] the newly set value + def unmatched_actual_indexes=(_); end + + # Returns the value of attribute unmatched_expected_indexes + # + # @return [Object] the current value of unmatched_expected_indexes + def unmatched_expected_indexes; end + + # Sets the attribute unmatched_expected_indexes + # + # @param value [Object] the value to set the attribute unmatched_expected_indexes to. + # @return [Object] the newly set value + def unmatched_expected_indexes=(_); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#208 + def unmatched_item_count; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#192 + def worse_than?(other); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Abstract class to implement `once`, `at_least` and other +# count constraints. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#7 +module RSpec::Matchers::BuiltIn::CountExpectation + # Specifies the minimum number of times the method is expected to match + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#42 + def at_least(number); end + + # Specifies the maximum number of times the method is expected to match + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#35 + def at_most(number); end + + # Specifies that the method is expected to match the given number of times. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#28 + def exactly(number); end + + # Specifies that the method is expected to match once. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#10 + def once; end + + # Specifies that the method is expected to match thrice. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#22 + def thrice; end + + # No-op. Provides syntactic sugar. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#49 + def times; end + + # Specifies that the method is expected to match twice. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#16 + def twice; end + + protected + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#55 + def count_expectation_type; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#55 + def expected_count; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#122 + def count_constraint_to_number(n); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#141 + def count_expectation_description; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#145 + def count_failure_reason(action); end + + # :nocov: + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#60 + def cover?(count, number); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#71 + def expected_count_matches?(actual_count); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#79 + def has_expected_count?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#159 + def human_readable_count(count); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#150 + def human_readable_expectation_type; end + + # @api private + # @raise [ArgumentError] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#102 + def raise_impossible_count_expectation(count); end + + # @api private + # @raise [ArgumentError] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#111 + def raise_unsupported_count_expectation; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#83 + def set_expected_count(relativity, n); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#134 + def unsupported_count_expectation?(relativity); end +end + +# Provides the implementation for `cover`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/cover.rb#7 +class RSpec::Matchers::BuiltIn::Cover < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [Cover] a new instance of Cover + # + # source://rspec-expectations//lib/rspec/matchers/built_in/cover.rb#8 + def initialize(*expected); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/cover.rb#17 + def does_not_match?(range); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/cover.rb#12 + def matches?(range); end +end + +# Provides the implementation for dynamic predicate matchers. +# Not intended to be inherited directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#7 +class RSpec::Matchers::BuiltIn::DynamicPredicate < ::RSpec::Matchers::BuiltIn::BaseMatcher + include ::RSpec::Matchers::BuiltIn::BeHelpers + + # @api private + # @return [DynamicPredicate] a new instance of DynamicPredicate + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#10 + def initialize(method_name, *args, **_arg2, &block); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#43 + def description; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#23 + def does_not_match?(actual, &block); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#31 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#37 + def failure_message_when_negated; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#16 + def matches?(actual, &block); end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#126 + def expectation_of(value); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#121 + def failure_message_expecting(value); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#142 + def failure_to_respond_explanation; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#117 + def method_description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#88 + def methods_include?(method); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#68 + def predicate_accessible?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#101 + def predicate_matches?(value = T.unsafe(nil)); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#97 + def predicate_method_name; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#93 + def predicate_result; end + + # :nocov: + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#84 + def private_predicate?; end + + # :nocov: + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#53 + def really_responds_to?(method); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#109 + def root; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#136 + def validity_message; end +end + +# Provides the implementation for `end_with`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#81 +class RSpec::Matchers::BuiltIn::EndWith < ::RSpec::Matchers::BuiltIn::StartOrEndWith + private + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#88 + def element_matches?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#84 + def subset_matches?; end +end + +# Provides the implementation for `eq`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#7 +class RSpec::Matchers::BuiltIn::Eq < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#26 + def description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#32 + def diffable?; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#10 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#20 + def failure_message_when_negated; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#38 + def match(expected, actual); end +end + +# Provides the implementation for `eql`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#7 +class RSpec::Matchers::BuiltIn::Eql < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#26 + def diffable?; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#10 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#20 + def failure_message_when_negated; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#32 + def match(expected, actual); end +end + +# Provides the implementation for `equal`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#7 +class RSpec::Matchers::BuiltIn::Equal < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#33 + def diffable?; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#10 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#20 + def failure_message_when_negated; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#49 + def actual_inspected; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#61 + def detailed_failure_message; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#45 + def expected_is_a_literal_singleton?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#75 + def inspect_object(o); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#39 + def match(expected, actual); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#57 + def simple_failure_message; end +end + +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#43 +RSpec::Matchers::BuiltIn::Equal::LITERAL_SINGLETONS = T.let(T.unsafe(nil), Array) + +# Provides the implementation for `exist`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#7 +class RSpec::Matchers::BuiltIn::Exist < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [Exist] a new instance of Exist + # + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#8 + def initialize(*expected); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#22 + def does_not_match?(actual); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#30 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#36 + def failure_message_when_negated; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#14 + def matches?(actual); end +end + +# Simple class for memoizing actual/expected for this matcher +# and examining the match +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#43 +class RSpec::Matchers::BuiltIn::Exist::ExistenceTest < ::Struct + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#52 + def actual_exists?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#46 + def valid_test?; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#58 + def validity_message; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#83 + def deprecated(predicate, actual); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#75 + def existence_values; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#79 + def predicates; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#71 + def uniq_truthy_values; end +end + +# Provides the implementation for `has_`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#152 +class RSpec::Matchers::BuiltIn::Has < ::RSpec::Matchers::BuiltIn::DynamicPredicate + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#156 + def predicate; end +end + +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#154 +RSpec::Matchers::BuiltIn::Has::REGEX = T.let(T.unsafe(nil), Regexp) + +# Provides the implementation for `have_attributes`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#7 +class RSpec::Matchers::BuiltIn::HaveAttributes < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [HaveAttributes] a new instance of HaveAttributes + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#11 + def initialize(expected); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#19 + def actual; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#43 + def description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#50 + def diffable?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#34 + def does_not_match?(actual); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#56 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#64 + def failure_message_when_negated; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#25 + def matches?(actual); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#9 + def respond_to_failed; end + + private + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#85 + def actual_has_attribute?(attribute_key, attribute_value); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#70 + def cache_all_values; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#107 + def formatted_values; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#78 + def perform_match(predicate); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#89 + def respond_to_attributes?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#99 + def respond_to_failure_message_or; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#95 + def respond_to_matcher; end +end + +# Provides the implementation for `include`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#9 +class RSpec::Matchers::BuiltIn::Include < ::RSpec::Matchers::BuiltIn::BaseMatcher + include ::RSpec::Matchers::BuiltIn::CountExpectation + + # @api private + # @raise [ArgumentError] + # @return [Include] a new instance of Include + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#15 + def initialize(*expecteds); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#44 + def description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#62 + def diffable?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#33 + def does_not_match?(actual); end + + # @api private + # @return [Array, Hash] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#68 + def expected; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#12 + def expecteds; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#50 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#56 + def failure_message_when_negated; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#22 + def matches?(actual); end + + private + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#168 + def actual_collection_includes?(expected_item); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#154 + def actual_hash_has_key?(expected_key); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#142 + def actual_hash_includes?(expected_key, expected_value); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#78 + def check_actual?(actual); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#84 + def check_expected_count?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#150 + def comparing_hash_keys?(expected_item); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#138 + def comparing_hash_to_a_subset?(expected_item); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#212 + def convert_to_hash?(obj); end + + # :nocov: + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#185 + def count_enumerable(expected_item); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#190 + def count_inclusions; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#202 + def diff_would_wrongly_highlight_matched_item?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#121 + def excluded_from_actual; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#96 + def format_failure_message(preposition); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#116 + def perform_match(&block); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#107 + def readable_list_of(items); end +end + +# Provides the implementation for `match`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#7 +class RSpec::Matchers::BuiltIn::Match < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [Match] a new instance of Match + # + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#8 + def initialize(expected); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#15 + def description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#25 + def diffable?; end + + # Used to specify the captures we match against + # + # @api private + # @return [self] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#31 + def with_captures(*captures); end + + private + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#45 + def can_safely_call_match?(expected, actual); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#38 + def match(expected, actual); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#52 + def match_captures(expected, actual); end +end + +# Handles operator matcher for `should_not`. +# +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#116 +class RSpec::Matchers::BuiltIn::NegativeOperatorMatcher < ::RSpec::Matchers::BuiltIn::OperatorMatcher + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#117 + def __delegate_operator(actual, operator, expected); end +end + +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#128 +module RSpec::Matchers::BuiltIn::NullCapture + class << self + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#133 + def capture(_block); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#129 + def name; end + end +end + +# Provides the implementation for operator matchers. +# Not intended to be instantiated directly. +# Only available for use with `should`. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#10 +class RSpec::Matchers::BuiltIn::OperatorMatcher + # @api private + # @return [OperatorMatcher] a new instance of OperatorMatcher + # + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#41 + def initialize(actual); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#57 + def !=(_expected); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#57 + def !~(_expected); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 + def <(expected); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 + def <=(expected); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 + def ==(expected); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 + def ===(expected); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 + def =~(expected); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 + def >(expected); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 + def >=(expected); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#76 + def description; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#70 + def fail_with_message(message); end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#88 + def eval_match(actual, operator, expected); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#82 + def has_non_generic_implementation_of?(op); end + + class << self + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#29 + def get(klass, operator); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#18 + def register(klass, operator, matcher); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#13 + def registry; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#24 + def unregister(klass, operator); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#46 + def use_custom_matcher_or_delegate(operator); end + end +end + +# Provides the implementation for `output`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#9 +class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [Output] a new instance of Output + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#10 + def initialize(expected); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#76 + def description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#86 + def diffable?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#24 + def does_not_match?(block); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#64 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#70 + def failure_message_when_negated; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#17 + def matches?(block); end + + # Indicates this matcher matches against a block. + # + # @api private + # @return [True] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#93 + def supports_block_expectations?; end + + # Indicates this matcher matches against a block only. + # + # @api private + # @return [False] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#100 + def supports_value_expectations?; end + + # Tells the matcher to match against stderr. + # Works only when the main Ruby process prints to stderr + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#39 + def to_stderr; end + + # Tells the matcher to match against stderr. + # Works when subprocesses print to stderr as well. + # This is significantly (~30x) slower than `to_stderr` + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#57 + def to_stderr_from_any_process; end + + # Tells the matcher to match against stdout. + # Works only when the main Ruby process prints to stdout + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#31 + def to_stdout; end + + # Tells the matcher to match against stdout. + # Works when subprocesses print to stdout as well. + # This is significantly (~30x) slower than `to_stdout` + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#48 + def to_stdout_from_any_process; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#121 + def actual_output_description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#106 + def captured?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#116 + def negative_failure_reason; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#110 + def positive_failure_reason; end +end + +# Handles operator matcher for `should`. +# +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#97 +class RSpec::Matchers::BuiltIn::PositiveOperatorMatcher < ::RSpec::Matchers::BuiltIn::OperatorMatcher + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#98 + def __delegate_operator(actual, operator, expected); end +end + +# Provides the implementation for `raise_error`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#9 +class RSpec::Matchers::BuiltIn::RaiseError + include ::RSpec::Matchers::Composable + + # @api private + # @return [RaiseError] a new instance of RaiseError + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#22 + def initialize(expected_error_or_message, expected_message, &block); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#117 + def description; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#83 + def does_not_match?(given_proc); end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#99 + def expects_call_stack_jump?; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#105 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#111 + def failure_message_when_negated; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#52 + def matches?(given_proc, negative_expectation = T.unsafe(nil), &block); end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#89 + def supports_block_expectations?; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#94 + def supports_value_expectations?; end + + # Specifies the expected error message. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#43 + def with_message(expected_message); end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#123 + def actual_error_message; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#137 + def block_matches?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#133 + def error_and_message_match?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#145 + def eval_block; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#129 + def expectation_matched?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#226 + def expected_error; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#257 + def expecting_specific_exception?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#241 + def format_backtrace(backtrace); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#246 + def given_error; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#176 + def handle_warning(message); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#261 + def raise_message_already_set; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#141 + def ready_to_eval_block?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#155 + def verify_message; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#188 + def warn_about_bare_error!; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#180 + def warn_about_bare_error?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#214 + def warn_about_negative_false_positive!(expression); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#201 + def warn_about_nil_error!; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#184 + def warn_about_nil_error?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#160 + def warn_for_negative_false_positives!; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#266 + def warning; end +end + +# Used as a sentinel value to be able to tell when the user did not pass an +# argument. We can't use `nil` for that because we need to warn when `nil` is +# passed in a different way. It's an Object, not a Module, since Module's `===` +# does not evaluate to true when compared to itself. +# +# Note; this _is_ the default value supplied for expected_error_or_message, but +# because there are two method-calls involved, that default is actually supplied +# in the definition of the _matcher_ method, `RSpec::Matchers#raise_error` +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#20 +RSpec::Matchers::BuiltIn::RaiseError::UndefinedValue = T.let(T.unsafe(nil), Object) + +# Used to wrap match data and make it reliable for 1.8.7 +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#72 +class RSpec::Matchers::BuiltIn::ReliableMatchData + # @api private + # @return [ReliableMatchData] a new instance of ReliableMatchData + # + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#73 + def initialize(match_data); end + + # returns an array of captures from the match data + # + # @api private + # @return Array + # + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#98 + def captures; end + + # Returns match data names for named captures + # + # @api private + # @return Array + # + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#90 + def names; end + + protected + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#104 + def match_data; end +end + +# Provides the implementation for `respond_to`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#9 +class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [RespondTo] a new instance of RespondTo + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#10 + def initialize(*names); end + + # Specifies that the method accepts any keyword, i.e. the method has + # a splatted keyword parameter of the form **kw_args. + # + # @api public + # @example + # expect(obj).to respond_to(:message).with_any_keywords + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#48 + def and_any_keywords; end + + # Specifies keyword arguments, if any. + # + # @api public + # @example + # expect(obj).to respond_to(:message).with_keywords(:color, :shape) + # @example with an expected number of arguments + # expect(obj).to respond_to(:message).with(3).arguments.and_keywords(:color, :shape) + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#36 + def and_keywords(*keywords); end + + # Specifies that the number of arguments has no upper limit, i.e. the + # method has a splatted parameter of the form *args. + # + # @api public + # @example + # expect(obj).to respond_to(:message).with_unlimited_arguments + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#60 + def and_unlimited_arguments; end + + # No-op. Intended to be used as syntactic sugar when using `with`. + # + # @api public + # @example + # expect(obj).to respond_to(:message).with(3).arguments + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#71 + def argument; end + + # No-op. Intended to be used as syntactic sugar when using `with`. + # + # @api public + # @example + # expect(obj).to respond_to(:message).with(3).arguments + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#71 + def arguments; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#100 + def description; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#82 + def does_not_match?(actual); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#88 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#94 + def failure_message_when_negated; end + + # Used by other matchers to suppress a check + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#106 + def ignoring_method_signature_failure!; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#77 + def matches?(actual); end + + # Specifies the number of expected arguments. + # + # @api public + # @example + # expect(obj).to respond_to(:message).with(3).arguments + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#24 + def with(n); end + + # Specifies that the method accepts any keyword, i.e. the method has + # a splatted keyword parameter of the form **kw_args. + # + # @api public + # @example + # expect(obj).to respond_to(:message).with_any_keywords + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#48 + def with_any_keywords; end + + # Specifies keyword arguments, if any. + # + # @api public + # @example + # expect(obj).to respond_to(:message).with_keywords(:color, :shape) + # @example with an expected number of arguments + # expect(obj).to respond_to(:message).with(3).arguments.and_keywords(:color, :shape) + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#36 + def with_keywords(*keywords); end + + # Specifies that the number of arguments has no upper limit, i.e. the + # method has a splatted parameter of the form *args. + # + # @api public + # @example + # expect(obj).to respond_to(:message).with_unlimited_arguments + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#60 + def with_unlimited_arguments; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#112 + def find_failing_method_names(actual, filter_method); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#119 + def matches_arity?(actual, name); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#156 + def pp_names; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#130 + def with_arity; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#139 + def with_arity_string; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#143 + def with_keywords_string; end +end + +# @api private +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#161 +class RSpec::Matchers::BuiltIn::RespondTo::ArityCheck + # @api private + # @return [ArityCheck] a new instance of ArityCheck + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#162 + def initialize(expected_arity, expected_keywords, arbitrary_keywords, unlimited_arguments); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#178 + def matches?(actual, name); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#187 + def method_signature_for(actual, name); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#183 + def verifier_for(actual, name); end +end + +# Provides the implementation for `satisfy`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#7 +class RSpec::Matchers::BuiltIn::Satisfy < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [Satisfy] a new instance of Satisfy + # + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#8 + def initialize(description = T.unsafe(nil), &block); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#21 + def description; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#27 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#33 + def failure_message_when_negated; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#14 + def matches?(actual, &block); end + + private + + # :nocov: + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#40 + def block_representation; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#48 + def extract_block_snippet; end +end + +# Base class for specifying a change from and/or to specific values. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#181 +class RSpec::Matchers::BuiltIn::SpecificValuesChange < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [SpecificValuesChange] a new instance of SpecificValuesChange + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#185 + def initialize(change_details, from, to); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#197 + def description; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#202 + def failure_message; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#192 + def matches?(event_proc); end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#210 + def supports_block_expectations?; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#215 + def supports_value_expectations?; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#244 + def after_value_failure; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#238 + def before_value_failure; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#255 + def did_change_failure; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#250 + def did_not_change_failure; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#234 + def matches_after?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#261 + def not_given_a_block_failure; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#221 + def perform_change(event_proc); end +end + +# @api private +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#183 +RSpec::Matchers::BuiltIn::SpecificValuesChange::MATCH_ANYTHING = BasicObject + +# For RSpec 3.1, the base class was named `StartAndEndWith`. For SemVer reasons, +# we still provide this constant until 4.0. +# +# @deprecated Use StartOrEndWith instead. +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#61 +RSpec::Matchers::BuiltIn::StartAndEndWith = RSpec::Matchers::BuiltIn::StartOrEndWith + +# Base class for the `end_with` and `start_with` matchers. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#7 +class RSpec::Matchers::BuiltIn::StartOrEndWith < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [StartOrEndWith] a new instance of StartOrEndWith + # + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#8 + def initialize(*expected); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#27 + def description; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#15 + def failure_message; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#36 + def match(_expected, actual); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#48 + def subsets_comparable?; end +end + +# Provides the implementation for `start_with`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#66 +class RSpec::Matchers::BuiltIn::StartWith < ::RSpec::Matchers::BuiltIn::StartOrEndWith + private + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#73 + def element_matches?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#69 + def subset_matches?; end +end + +# Provides the implementation for `throw_symbol`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#7 +class RSpec::Matchers::BuiltIn::ThrowSymbol + include ::RSpec::Matchers::Composable + + # @api private + # @return [ThrowSymbol] a new instance of ThrowSymbol + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#10 + def initialize(expected_symbol = T.unsafe(nil), expected_arg = T.unsafe(nil)); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#86 + def description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#68 + def does_not_match?(given_proc); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#103 + def expects_call_stack_jump?; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#74 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#80 + def failure_message_when_negated; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#18 + def matches?(given_proc); end + + # Indicates this matcher matches against a block. + # + # @api private + # @return [True] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#93 + def supports_block_expectations?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#98 + def supports_value_expectations?; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#109 + def actual_result; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#118 + def caught; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#114 + def expected(symbol_desc = T.unsafe(nil)); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#122 + def throw_description(symbol, arg); end +end + +# Provides the implementation for `yield_control`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#101 +class RSpec::Matchers::BuiltIn::YieldControl < ::RSpec::Matchers::BuiltIn::BaseMatcher + include ::RSpec::Matchers::BuiltIn::CountExpectation + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#111 + def does_not_match?(block); end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#117 + def failure_message; end + + # @api private + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#123 + def failure_message_when_negated; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#104 + def matches?(block); end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#128 + def supports_block_expectations?; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#133 + def supports_value_expectations?; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#139 + def failure_reason; end +end + +# Object that is yielded to `expect` when one of the +# yield matchers is used. Provides information about +# the yield behavior of the object-under-test. +# +# @private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#12 +class RSpec::Matchers::BuiltIn::YieldProbe + # @return [YieldProbe] a new instance of YieldProbe + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#21 + def initialize(block, &callback); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#68 + def assert_used!; end + + # :nocov: + # On 1.8.7, `lambda { }.arity` and `lambda { |*a| }.arity` both return -1, + # so we can't distinguish between accepting no args and an arg splat. + # It's OK to skip, this, though; it just provides a nice error message + # when the user forgets to accept an arg in their block. They'll still get + # the `assert_used!` error message from above, which is sufficient. + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#78 + def assert_valid_expect_block!; end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#29 + def has_block?; end + + # Returns the value of attribute num_yields. + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#19 + def num_yields; end + + # Sets the attribute num_yields + # + # @param value the value to set the attribute num_yields to. + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#19 + def num_yields=(_arg0); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#33 + def probe; end + + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#53 + def single_yield_args; end + + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#40 + def to_proc; end + + # Returns the value of attribute yielded_args. + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#19 + def yielded_args; end + + # Sets the attribute yielded_args + # + # @param value the value to set the attribute yielded_args to. + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#19 + def yielded_args=(_arg0); end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#57 + def yielded_once?(matcher_name); end + + class << self + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#13 + def probe(block, &callback); end + end +end + +# Provides the implementation for `yield_successive_args`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#296 +class RSpec::Matchers::BuiltIn::YieldSuccessiveArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [YieldSuccessiveArgs] a new instance of YieldSuccessiveArgs + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#297 + def initialize(*args); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#337 + def description; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#320 + def does_not_match?(block); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#325 + def failure_message; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#331 + def failure_message_when_negated; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#302 + def matches?(block); end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#342 + def supports_block_expectations?; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#347 + def supports_value_expectations?; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#353 + def expected_arg_description; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#365 + def negative_failure_reason; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#357 + def positive_failure_reason; end +end + +# Provides the implementation for `yield_with_args`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#199 +class RSpec::Matchers::BuiltIn::YieldWithArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @return [YieldWithArgs] a new instance of YieldWithArgs + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#200 + def initialize(*args); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#233 + def description; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#218 + def does_not_match?(block); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#223 + def failure_message; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#228 + def failure_message_when_negated; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#205 + def matches?(block); end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#240 + def supports_block_expectations?; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#245 + def supports_value_expectations?; end + + private + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#288 + def all_args_match?; end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#273 + def args_currently_match?; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#257 + def expected_arg_description; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#261 + def negative_failure_reason; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#251 + def positive_failure_reason; end +end + +# Provides the implementation for `yield_with_no_args`. +# Not intended to be instantiated directly. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#149 +class RSpec::Matchers::BuiltIn::YieldWithNoArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#158 + def does_not_match?(block); end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#163 + def failure_message; end + + # @api private + # @private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#168 + def failure_message_when_negated; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#151 + def matches?(block); end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#173 + def supports_block_expectations?; end + + # @api private + # @private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#178 + def supports_value_expectations?; end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#190 + def negative_failure_reason; end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#184 + def positive_failure_reason; end +end + +# Mixin designed to support the composable matcher features +# of RSpec 3+. Mix it into your custom matcher classes to +# allow them to be used in a composable fashion. +# +# @api public +# +# source://rspec-expectations//lib/rspec/matchers/composable.rb#10 +module RSpec::Matchers::Composable + # Creates a compound `and` expectation. The matcher will + # only pass if both sub-matchers pass. + # This can be chained together to form an arbitrarily long + # chain of matchers. + # + # @api public + # @example + # expect(alphabet).to start_with("a").and end_with("z") + # expect(alphabet).to start_with("a") & end_with("z") + # @note The negative form (`expect(...).not_to matcher.and other`) + # is not supported at this time. + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#22 + def &(matcher); end + + # Delegates to `#matches?`. Allows matchers to be used in composable + # fashion and also supports using matchers in case statements. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#45 + def ===(value); end + + # Creates a compound `and` expectation. The matcher will + # only pass if both sub-matchers pass. + # This can be chained together to form an arbitrarily long + # chain of matchers. + # + # @api public + # @example + # expect(alphabet).to start_with("a").and end_with("z") + # expect(alphabet).to start_with("a") & end_with("z") + # @note The negative form (`expect(...).not_to matcher.and other`) + # is not supported at this time. + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#22 + def and(matcher); end + + # Creates a compound `or` expectation. The matcher will + # pass if either sub-matcher passes. + # This can be chained together to form an arbitrarily long + # chain of matchers. + # + # @api public + # @example + # expect(stoplight.color).to eq("red").or eq("green").or eq("yellow") + # expect(stoplight.color).to eq("red") | eq("green") | eq("yellow") + # @note The negative form (`expect(...).not_to matcher.or other`) + # is not supported at this time. + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#38 + def or(matcher); end + + # Creates a compound `or` expectation. The matcher will + # pass if either sub-matcher passes. + # This can be chained together to form an arbitrarily long + # chain of matchers. + # + # @api public + # @example + # expect(stoplight.color).to eq("red").or eq("green").or eq("yellow") + # expect(stoplight.color).to eq("red") | eq("green") | eq("yellow") + # @note The negative form (`expect(...).not_to matcher.or other`) + # is not supported at this time. + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#38 + def |(matcher); end + + private + + # Returns the description of the given object in a way that is + # aware of composed matchers. If the object is a matcher with + # a `description` method, returns the description; otherwise + # returns `object.inspect`. + # + # You are encouraged to use this in your custom matcher's + # `description`, `failure_message` or + # `failure_message_when_negated` implementation if you are + # supporting matcher arguments. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#82 + def description_of(object); end + + # We should enumerate arrays as long as they are not recursive. + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#142 + def should_enumerate?(item); end + + # Transforms the given data structure (typically a hash or array) + # into a new data structure that, when `#inspect` is called on it, + # will provide descriptions of any contained matchers rather than + # the normal `#inspect` output. + # + # You are encouraged to use this in your custom matcher's + # `description`, `failure_message` or + # `failure_message_when_negated` implementation if you are + # supporting any arguments which may be a data structure + # containing matchers. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#98 + def surface_descriptions_in(item); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#147 + def unreadable_io?(object); end + + # This provides a generic way to fuzzy-match an expected value against + # an actual value. It understands nested data structures (e.g. hashes + # and arrays) and is able to match against a matcher being used as + # the expected value or within the expected value at any level of + # nesting. + # + # Within a custom matcher you are encouraged to use this whenever your + # matcher needs to match two values, unless it needs more precise semantics. + # For example, the `eq` matcher _does not_ use this as it is meant to + # use `==` (and only `==`) for matching. + # + # @api public + # @param expected [Object] what is expected + # @param actual [Object] the actual value + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#66 + def values_match?(expected, actual); end + + # Historically, a single matcher instance was only checked + # against a single value. Given that the matcher was only + # used once, it's been common to memoize some intermediate + # calculation that is derived from the `actual` value in + # order to reuse that intermediate result in the failure + # message. + # + # This can cause a problem when using such a matcher as an + # argument to another matcher in a composed matcher expression, + # since the matcher instance may be checked against multiple + # values and produce invalid results due to the memoization. + # + # To deal with this, we clone any matchers in `expected` via + # this method when using `values_match?`, so that any memoization + # does not "leak" between checks. + # + # @api public + # @private + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#128 + def with_matchers_cloned(object); end + + class << self + # We should enumerate arrays as long as they are not recursive. + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#142 + def should_enumerate?(item); end + + # Transforms the given data structure (typically a hash or array) + # into a new data structure that, when `#inspect` is called on it, + # will provide descriptions of any contained matchers rather than + # the normal `#inspect` output. + # + # You are encouraged to use this in your custom matcher's + # `description`, `failure_message` or + # `failure_message_when_negated` implementation if you are + # supporting any arguments which may be a data structure + # containing matchers. + # + # @api public + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#98 + def surface_descriptions_in(item); end + + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#147 + def unreadable_io?(object); end + end +end + +# Wraps an item in order to surface its `description` via `inspect`. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/composable.rb#158 +class RSpec::Matchers::Composable::DescribableItem < ::Struct + # Inspectable version of the item description + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#160 + def inspect; end + + # Returns the value of attribute item + # + # @return [Object] the current value of item + def item; end + + # Sets the attribute item + # + # @param value [Object] the value to set the attribute item to. + # @return [Object] the newly set value + def item=(_); end + + # A pretty printed version of the item description. + # + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#165 + def pretty_print(pp); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Defines the custom matcher DSL. +# +# source://rspec-expectations//lib/rspec/matchers/dsl.rb#6 +module RSpec::Matchers::DSL + # Defines a matcher alias. The returned matcher's `description` will be overridden + # to reflect the phrasing of the new name, which will be used in failure messages + # when passed as an argument to another matcher in a composed matcher expression. + # + # @example + # RSpec::Matchers.alias_matcher :a_list_sorted_by, :be_sorted_by do |description| + # description.sub("be sorted by", "a list sorted by") + # end + # + # be_sorted_by(:age).description # => "be sorted by age" + # a_list_sorted_by(:age).description # => "a list sorted by age" + # @example + # RSpec::Matchers.alias_matcher :a_list_that_sums_to, :sum_to + # sum_to(3).description # => "sum to 3" + # a_list_that_sums_to(3).description # => "a list that sums to 3" + # @option options + # @param old_name [Symbol] the original name for the matcher + # @param new_name [Symbol] the new name for the matcher + # @param options [Hash] options for the aliased matcher + # @see RSpec::Matchers + # @yield [String] optional block that, when given, is used to define the overridden + # logic. The yielded arg is the original description or failure message. If no + # block is provided, a default override is used based on the old and new names. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#32 + def alias_matcher(new_name, old_name, options = T.unsafe(nil), &description_override); end + + # Defines a custom matcher. + # + # @param name [Symbol] the name for the matcher + # @see RSpec::Matchers + # @yield [Object] block that is used to define the matcher. + # The block is evaluated in the context of your custom matcher class. + # When args are passed to your matcher, they will be yielded here, + # usually representing the expected value(s). + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#73 + def define(name, &declarations); end + + # Defines a negated matcher. The returned matcher's `description` and `failure_message` + # will be overridden to reflect the phrasing of the new name, and the match logic will + # be based on the original matcher but negated. + # + # @example + # RSpec::Matchers.define_negated_matcher :exclude, :include + # include(1, 2).description # => "include 1 and 2" + # exclude(1, 2).description # => "exclude 1 and 2" + # @param negated_name [Symbol] the name for the negated matcher + # @param base_name [Symbol] the name of the original matcher that will be negated + # @see RSpec::Matchers + # @yield [String] optional block that, when given, is used to define the overridden + # logic. The yielded arg is the original description or failure message. If no + # block is provided, a default override is used based on the old and new names. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#61 + def define_negated_matcher(negated_name, base_name, &description_override); end + + # Defines a custom matcher. + # + # @param name [Symbol] the name for the matcher + # @see RSpec::Matchers + # @yield [Object] block that is used to define the matcher. + # The block is evaluated in the context of your custom matcher class. + # When args are passed to your matcher, they will be yielded here, + # usually representing the expected value(s). + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#73 + def matcher(name, &declarations); end + + private + + # :nocov: + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#84 + def warn_about_block_args(name, declarations); end +end + +# Defines default implementations of the matcher +# protocol methods for custom matchers. You can +# override any of these using the {RSpec::Matchers::DSL::Macros Macros} methods +# from within an `RSpec::Matchers.define` block. +# +# source://rspec-expectations//lib/rspec/matchers/dsl.rb#385 +module RSpec::Matchers::DSL::DefaultImplementations + include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages + + # The default description. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#395 + def description; end + + # Used internally by objects returns by `should` and `should_not`. + # + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#390 + def diffable?; end + + # Most matchers do not expect call stack jumps. + # + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#412 + def expects_call_stack_jump?; end + + # Matchers do not support block expectations by default. You + # must opt-in. + # + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#403 + def supports_block_expectations?; end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#407 + def supports_value_expectations?; end + + private + + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#418 + def chained_method_clause_sentences; end +end + +# Contains the methods that are available from within the +# `RSpec::Matchers.define` DSL for creating custom matchers. +# +# source://rspec-expectations//lib/rspec/matchers/dsl.rb#104 +module RSpec::Matchers::DSL::Macros + # Convenience for defining methods on this matcher to create a fluent + # interface. The trick about fluent interfaces is that each method must + # return self in order to chain methods together. `chain` handles that + # for you. If the method is invoked and the + # `include_chain_clauses_in_custom_matcher_descriptions` config option + # hash been enabled, the chained method name and args will be added to the + # default description and failure message. + # + # In the common case where you just want the chained method to store some + # value(s) for later use (e.g. in `match`), you can provide one or more + # attribute names instead of a block; the chained method will store its + # arguments in instance variables with those names, and the values will + # be exposed via getters. + # + # @example + # + # RSpec::Matchers.define :have_errors_on do |key| + # chain :with do |message| + # @message = message + # end + # + # match do |actual| + # actual.errors[key] == @message + # end + # end + # + # expect(minor).to have_errors_on(:age).with("Not old enough to participate") + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#298 + def chain(method_name, *attr_names, &definition); end + + # Customize the description to use for one-liners. Only use this when + # the description generated by default doesn't suit your needs. + # + # @example + # + # RSpec::Matchers.define :qualify_for do |expected| + # match { your_match_logic } + # + # description do + # "qualify for #{expected}" + # end + # end + # @yield [Object] actual the actual object (i.e. the value wrapped by `expect`) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#253 + def description(&definition); end + + # Tells the matcher to diff the actual and expected values in the failure + # message. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#259 + def diffable; end + + # Customizes the failure message to use when this matcher is + # asked to positively match. Only use this when the message + # generated by default doesn't suit your needs. + # + # @example + # + # RSpec::Matchers.define :have_strength do |expected| + # match { your_match_logic } + # + # failure_message do |actual| + # "Expected strength of #{expected}, but had #{actual.strength}" + # end + # end + # @yield [Object] actual the actual object (i.e. the value wrapped by `expect`) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#216 + def failure_message(&definition); end + + # Customize the failure message to use when this matcher is asked + # to negatively match. Only use this when the message generated by + # default doesn't suit your needs. + # + # @example + # + # RSpec::Matchers.define :have_strength do |expected| + # match { your_match_logic } + # + # failure_message_when_negated do |actual| + # "Expected not to have strength of #{expected}, but did" + # end + # end + # @yield [Object] actual the actual object (i.e. the value wrapped by `expect`) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#235 + def failure_message_when_negated(&definition); end + + # Stores the block that is used to determine whether this matcher passes + # or fails. The block should return a boolean value. When the matcher is + # passed to `expect(...).to` and the block returns `true`, then the expectation + # passes. Similarly, when the matcher is passed to `expect(...).not_to` and the + # block returns `false`, then the expectation passes. + # + # By default the match block will swallow expectation errors (e.g. + # caused by using an expectation such as `expect(1).to eq 2`), if you + # wish to allow these to bubble up, pass in the option + # `:notify_expectation_failures => true`. + # + # @example + # + # RSpec::Matchers.define :be_even do + # match do |actual| + # actual.even? + # end + # end + # + # expect(4).to be_even # passes + # expect(3).not_to be_even # passes + # expect(3).to be_even # fails + # expect(4).not_to be_even # fails + # @param options [Hash] for defining the behavior of the match block. + # @yield [Object] actual the actual value (i.e. the value wrapped by `expect`) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#131 + def match(options = T.unsafe(nil), &match_block); end + + # Use this instead of `match` when the block will raise an exception + # rather than returning false to indicate a failure. + # + # @example + # + # RSpec::Matchers.define :accept_as_valid do |candidate_address| + # match_unless_raises ValidationException do |validator| + # validator.validate(candidate_address) + # end + # end + # + # expect(email_validator).to accept_as_valid("person@company.com") + # @yield [Object] actual the actual object (i.e. the value wrapped by `expect`) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#188 + def match_unless_raises(expected_exception = T.unsafe(nil), &match_block); end + + # Use this to define the block for a negative expectation (`expect(...).not_to`) + # when the positive and negative forms require different handling. This + # is rarely necessary, but can be helpful, for example, when specifying + # asynchronous processes that require different timeouts. + # + # By default the match block will swallow expectation errors (e.g. + # caused by using an expectation such as `expect(1).to eq 2`), if you + # wish to allow these to bubble up, pass in the option + # `:notify_expectation_failures => true`. + # + # @param options [Hash] for defining the behavior of the match block. + # @yield [Object] actual the actual value (i.e. the value wrapped by `expect`) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#160 + def match_when_negated(options = T.unsafe(nil), &match_block); end + + # Declares that the matcher can be used in a block expectation. + # Users will not be able to use your matcher in a block + # expectation without declaring this. + # (e.g. `expect { do_something }.to matcher`). + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#267 + def supports_block_expectations; end + + private + + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#312 + def assign_attributes(attr_names); end + + # Does the following: + # + # - Defines the named method using a user-provided block + # in @user_method_defs, which is included as an ancestor + # in the singleton class in which we eval the `define` block. + # - Defines an overridden definition for the same method + # usign the provided `our_def` block. + # - Provides a default `our_def` block for the common case + # of needing to call the user's definition with `@actual` + # as an arg, but only if their block's arity can handle it. + # + # This compiles the user block into an actual method, allowing + # them to use normal method constructs like `return` + # (e.g. for an early guard statement), while allowing us to define + # an override that can provide the wrapped handling + # (e.g. assigning `@actual`, rescueing errors, etc) and + # can `super` to the user's definition. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#346 + def define_user_override(method_name, user_def, &our_def); end +end + +# Defines deprecated macro methods from RSpec 2 for backwards compatibility. +# +# @deprecated Use the methods from {Macros} instead. +# +# source://rspec-expectations//lib/rspec/matchers/dsl.rb#354 +module RSpec::Matchers::DSL::Macros::Deprecated + # @deprecated Use {Macros#failure_message} instead. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#368 + def failure_message_for_should(&definition); end + + # @deprecated Use {Macros#failure_message_when_negated} instead. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#374 + def failure_message_for_should_not(&definition); end + + # @deprecated Use {Macros#match} instead. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#356 + def match_for_should(&definition); end + + # @deprecated Use {Macros#match_when_negated} instead. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#362 + def match_for_should_not(&definition); end +end + +# @private +# +# source://rspec-expectations//lib/rspec/matchers/dsl.rb#146 +RSpec::Matchers::DSL::Macros::RAISE_NOTIFIER = T.let(T.unsafe(nil), Proc) + +# The class used for custom matchers. The block passed to +# `RSpec::Matchers.define` will be evaluated in the context +# of the singleton class of an instance, and will have the +# {RSpec::Matchers::DSL::Macros Macros} methods available. +# +# source://rspec-expectations//lib/rspec/matchers/dsl.rb#433 +class RSpec::Matchers::DSL::Matcher + include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages + include ::RSpec::Matchers::DSL::DefaultImplementations + include ::RSpec::Matchers + include ::RSpec::Matchers::Composable + extend ::RSpec::Matchers::DSL::Macros + extend ::RSpec::Matchers::DSL::Macros::Deprecated + + # @api private + # @return [Matcher] a new instance of Matcher + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#462 + def initialize(name, declarations, matcher_execution_context, *expected, &block_arg); end + + # Exposes the value being matched against -- generally the object + # object wrapped by `expect`. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#449 + def actual; end + + # The block parameter used in the expectation + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#456 + def block_arg; end + + # Provides the expected value. This will return an array if + # multiple arguments were passed to the matcher; otherwise it + # will return a single value. + # + # @see #expected_as_array + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#482 + def expected; end + + # Returns the expected value as an an array. This exists primarily + # to aid in upgrading from RSpec 2.x, since in RSpec 2, `expected` + # always returned an array. + # + # @see #expected + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#494 + def expected_as_array; end + + # Adds the name (rather than a cryptic hex number) + # so we can identify an instance of + # the matcher in error messages (e.g. for `NoMethodError`) + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#499 + def inspect; end + + # The name of the matcher. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#459 + def name; end + + # Exposes the exception raised during the matching by `match_unless_raises`. + # Could be useful to extract details for a failure message. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#453 + def rescued_exception; end + + private + + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#522 + def actual_arg_for(block); end + + # Takes care of forwarding unhandled messages to the + # `@matcher_execution_context` (typically the current + # running `RSpec::Core::Example`). This is needed by + # rspec-rails so that it can define matchers that wrap + # Rails' test helper methods, but it's also a useful + # feature in its own right. + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#532 + def method_missing(method, *args, **_arg2, &block); end + + # Indicates that this matcher responds to messages + # from the `@matcher_execution_context` as well. + # Also, supports getting a method object for such methods. + # + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#507 + def respond_to_missing?(method, include_private = T.unsafe(nil)); end +end + +# source://rspec-expectations//lib/rspec/matchers.rb#959 +RSpec::Matchers::DYNAMIC_MATCHER_REGEX = T.let(T.unsafe(nil), Regexp) + +# Facilitates converting ruby objects to English phrases. +# +# source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#4 +module RSpec::Matchers::EnglishPhrasing + class << self + # when given an empty list. + # + # Converts an object (often a collection of objects) + # into an English list. + # + # list(['banana', 'kiwi', 'mango']) + # #=> " \"banana\", \"kiwi\", and \"mango\"" + # + # Given an empty collection, returns the empty string. + # + # list([]) #=> "" + # + # @note The returned string has a leading space except + # + # source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#26 + def list(obj); end + + # Converts a symbol into an English expression. + # + # split_words(:banana_creme_pie) #=> "banana creme pie" + # + # source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#9 + def split_words(sym); end + end +end + +# source://rspec-expectations//lib/rspec/matchers.rb#958 +RSpec::Matchers::HAS_REGEX = T.let(T.unsafe(nil), Regexp) + +# Provides the necessary plumbing to wrap a matcher with a decorator. +# +# @private +# +# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#31 +class RSpec::Matchers::MatcherDelegator < ::RSpec::Matchers::BaseDelegator + include ::RSpec::Matchers::Composable + + # @return [MatcherDelegator] a new instance of MatcherDelegator + # + # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#35 + def initialize(base_matcher); end + + # Returns the value of attribute base_matcher. + # + # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#33 + def base_matcher; end + + # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#39 + def method_missing(*args, &block); end + + private + + # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#55 + def initialize_copy(other); end + + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#44 + def respond_to_missing?(name, include_all = T.unsafe(nil)); end +end + +# Handles list of expected and actual value pairs when there is a need +# to render multiple diffs. Also can handle one pair. +# +# @api private +# +# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#6 +class RSpec::Matchers::MultiMatcherDiff + # @api private + # @return [MultiMatcherDiff] a new instance of MultiMatcherDiff + # + # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#16 + def initialize(expected_list); end + + # Returns message with diff(s) appended for provided differ + # factory and actual value if there are any + # + # @api private + # @param message [String] original failure message + # @param differ [Proc] + # @return [String] + # + # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#47 + def message_with_diff(message, differ); end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#68 + def diffs(differ); end + + class << self + # Wraps provided matcher list in instance of + # MultiMatcherDiff. + # + # @api private + # @param matchers [Array] list of matchers to wrap + # @return [RSpec::Matchers::MultiMatcherDiff] + # + # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#37 + def for_many_matchers(matchers); end + + # Wraps provided expected value in instance of + # MultiMatcherDiff. If provided value is already an + # MultiMatcherDiff then it just returns it. + # + # @api private + # @param expected [Any] value to be wrapped + # @param actual [Any] value + # @return [RSpec::Matchers::MultiMatcherDiff] + # + # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#27 + def from(expected, actual); end + + private + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#58 + def diff_label_for(matcher); end + + # @api private + # + # source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#62 + def truncated(description); end + end +end + +# Default diff label when there is only one matcher in diff +# output +# +# @api private +# @private +# +# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#10 +RSpec::Matchers::MultiMatcherDiff::DEFAULT_DIFF_LABEL = T.let(T.unsafe(nil), String) + +# Maximum readable matcher description length +# +# @api private +# @private +# +# source://rspec-expectations//lib/rspec/matchers/multi_matcher_diff.rb#14 +RSpec::Matchers::MultiMatcherDiff::DESCRIPTION_MAX_LENGTH = T.let(T.unsafe(nil), Integer) diff --git a/Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.2.rbi b/Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.2.rbi new file mode 100644 index 0000000000..2c065ea7f4 --- /dev/null +++ b/Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.2.rbi @@ -0,0 +1,1668 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rspec-support` gem. +# Please instead update this file by running `bin/tapioca gem rspec-support`. + + +# source://rspec-support//lib/rspec/support.rb#3 +module RSpec + extend ::RSpec::Support::Warnings + + class << self + # source://rspec-core/3.13.2/lib/rspec/core.rb#70 + def clear_examples; end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#85 + def configuration; end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#49 + def configuration=(_arg0); end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#97 + def configure; end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#194 + def const_missing(name); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def context(*args, &example_group_block); end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#122 + def current_example; end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#128 + def current_example=(example); end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#154 + def current_scope; end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#134 + def current_scope=(scope); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def describe(*args, &example_group_block); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def example_group(*args, &example_group_block); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def fcontext(*args, &example_group_block); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def fdescribe(*args, &example_group_block); end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#58 + def reset; end + + # source://rspec-core/3.13.2/lib/rspec/core/shared_example_group.rb#110 + def shared_context(name, *args, &block); end + + # source://rspec-core/3.13.2/lib/rspec/core/shared_example_group.rb#110 + def shared_examples(name, *args, &block); end + + # source://rspec-core/3.13.2/lib/rspec/core/shared_example_group.rb#110 + def shared_examples_for(name, *args, &block); end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#160 + def world; end + + # source://rspec-core/3.13.2/lib/rspec/core.rb#49 + def world=(_arg0); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def xcontext(*args, &example_group_block); end + + # source://rspec-core/3.13.2/lib/rspec/core/dsl.rb#42 + def xdescribe(*args, &example_group_block); end + end +end + +# Consistent implementation for "cleaning" the caller method to strip out +# non-rspec lines. This enables errors to be reported at the call site in +# the code using the library, which is far more useful than the particular +# internal method that raised an error. +# +# source://rspec-support//lib/rspec/support/caller_filter.rb#10 +class RSpec::CallerFilter + class << self + # Earlier rubies do not support the two argument form of `caller`. This + # fallback is logically the same, but slower. + # + # source://rspec-support//lib/rspec/support/caller_filter.rb#49 + def first_non_rspec_line(skip_frames = T.unsafe(nil), increment = T.unsafe(nil)); end + end +end + +# source://rspec-support//lib/rspec/support/caller_filter.rb#20 +RSpec::CallerFilter::ADDITIONAL_TOP_LEVEL_FILES = T.let(T.unsafe(nil), Array) + +# rubygems/core_ext/kernel_require.rb isn't actually part of rspec (obviously) but we want +# it ignored when we are looking for the first meaningful line of the backtrace outside +# of RSpec. It can show up in the backtrace as the immediate first caller +# when `CallerFilter.first_non_rspec_line` is called from the top level of a required +# file, but it depends on if rubygems is loaded or not. We don't want to have to deal +# with this complexity in our `RSpec.deprecate` calls, so we ignore it here. +# +# source://rspec-support//lib/rspec/support/caller_filter.rb#30 +RSpec::CallerFilter::IGNORE_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rspec-support//lib/rspec/support/caller_filter.rb#22 +RSpec::CallerFilter::LIB_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rspec-support//lib/rspec/support/caller_filter.rb#11 +RSpec::CallerFilter::RSPEC_LIBS = T.let(T.unsafe(nil), Array) + +# source://rspec-support//lib/rspec/support.rb#4 +module RSpec::Support + class << self + # Used internally to get a class of a given object, even if it does not respond to #class. + # + # @api private + # + # source://rspec-support//lib/rspec/support.rb#86 + def class_of(object); end + + # Defines a helper method that is optimized to require files from the + # named lib. The passed block MUST be `{ |f| require_relative f }` + # because for `require_relative` to work properly from within the named + # lib the line of code must be IN that lib. + # + # `require_relative` is preferred when available because it is always O(1), + # regardless of the number of dirs in $LOAD_PATH. `require`, on the other + # hand, does a linear O(N) search over the dirs in the $LOAD_PATH until + # it can resolve the file relative to one of the dirs. + # + # @api private + # + # source://rspec-support//lib/rspec/support.rb#16 + def define_optimized_require_for_rspec(lib, &require_relative); end + + # Remove a previously registered matcher. Useful for cleaning up after + # yourself in specs. + # + # @private + # + # source://rspec-support//lib/rspec/support/matcher_definition.rb#24 + def deregister_matcher_definition(&block); end + + # @api private + # + # source://rspec-support//lib/rspec/support.rb#113 + def failure_notifier; end + + # @api private + # + # source://rspec-support//lib/rspec/support.rb#105 + def failure_notifier=(callable); end + + # @private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/matcher_definition.rb#29 + def is_a_matcher?(object); end + + # @private + # + # source://rspec-support//lib/rspec/support/matcher_definition.rb#6 + def matcher_definitions; end + + # source://rspec-support//lib/rspec/support.rb#54 + def method_handle_for(object, method_name); end + + # @api private + # + # source://rspec-support//lib/rspec/support.rb#118 + def notify_failure(failure, options = T.unsafe(nil)); end + + # Used internally to break cyclic dependency between mocks, expectations, + # and support. We don't currently have a consistent implementation of our + # matchers, though we are considering changing that: + # https://github.com/rspec/rspec-mocks/issues/513 + # + # @private + # + # source://rspec-support//lib/rspec/support/matcher_definition.rb#16 + def register_matcher_definition(&block); end + + # source://rspec-support//lib/rspec/support.rb#25 + def require_rspec_core(f); end + + # source://rspec-support//lib/rspec/support.rb#25 + def require_rspec_expectations(f); end + + # source://rspec-support//lib/rspec/support.rb#25 + def require_rspec_matchers(f); end + + # source://rspec-support//lib/rspec/support.rb#25 + def require_rspec_mocks(f); end + + # source://rspec-support//lib/rspec/support.rb#25 + def require_rspec_support(f); end + + # gives a string representation of an object for use in RSpec descriptions + # + # @api private + # + # source://rspec-support//lib/rspec/support/matcher_definition.rb#36 + def rspec_description_for_object(object); end + + # source://rspec-support//lib/rspec/support.rb#95 + def thread_local_data; end + + # @api private + # + # source://rspec-support//lib/rspec/support.rb#140 + def warning_notifier; end + + # @api private + # + # source://rspec-support//lib/rspec/support.rb#133 + def warning_notifier=(_arg0); end + + # @api private + # + # source://rspec-support//lib/rspec/support.rb#123 + def with_failure_notifier(callable); end + end +end + +# @private +# +# source://rspec-support//lib/rspec/support.rb#145 +module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue + class << self + # source://rspec-support//lib/rspec/support.rb#150 + def ===(exception); end + end +end + +# These exceptions are dangerous to rescue as rescuing them +# would interfere with things we should not interfere with. +# +# source://rspec-support//lib/rspec/support.rb#148 +RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue::AVOID_RESCUING = T.let(T.unsafe(nil), Array) + +# Deals with the slightly different semantics of block arguments. +# For methods, arguments are required unless a default value is provided. +# For blocks, arguments are optional, even if no default value is provided. +# +# However, we want to treat block args as required since you virtually +# always want to pass a value for each received argument and our +# `and_yield` has treated block args as required for many years. +# +# @api private +# +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#268 +class RSpec::Support::BlockSignature < ::RSpec::Support::MethodSignature + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#270 + def classify_parameters; end +end + +# @private +# +# source://rspec-support//lib/rspec/support/comparable_version.rb#6 +class RSpec::Support::ComparableVersion + include ::Comparable + + # @return [ComparableVersion] a new instance of ComparableVersion + # + # source://rspec-support//lib/rspec/support/comparable_version.rb#11 + def initialize(string); end + + # source://rspec-support//lib/rspec/support/comparable_version.rb#15 + def <=>(other); end + + # source://rspec-support//lib/rspec/support/comparable_version.rb#37 + def segments; end + + # Returns the value of attribute string. + # + # source://rspec-support//lib/rspec/support/comparable_version.rb#9 + def string; end +end + +# @private +# +# source://rspec-support//lib/rspec/support.rb#110 +RSpec::Support::DEFAULT_FAILURE_NOTIFIER = T.let(T.unsafe(nil), Proc) + +# @private +# +# source://rspec-support//lib/rspec/support.rb#137 +RSpec::Support::DEFAULT_WARNING_NOTIFIER = T.let(T.unsafe(nil), Proc) + +# source://rspec-support//lib/rspec/support/differ.rb#12 +class RSpec::Support::Differ + # @return [Differ] a new instance of Differ + # + # source://rspec-support//lib/rspec/support/differ.rb#69 + def initialize(opts = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/differ.rb#65 + def color?; end + + # source://rspec-support//lib/rspec/support/differ.rb#13 + def diff(actual, expected); end + + # source://rspec-support//lib/rspec/support/differ.rb#59 + def diff_as_object(actual, expected); end + + # source://rspec-support//lib/rspec/support/differ.rb#30 + def diff_as_string(actual, expected); end + + private + + # source://rspec-support//lib/rspec/support/differ.rb#130 + def add_old_hunk_to_hunk(hunk, oldhunk); end + + # source://rspec-support//lib/rspec/support/differ.rb#126 + def add_to_output(output, string); end + + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/differ.rb#80 + def all_strings?(*args); end + + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/differ.rb#84 + def any_multiline_strings?(*args); end + + # source://rspec-support//lib/rspec/support/differ.rb#155 + def blue(text); end + + # source://rspec-support//lib/rspec/support/differ.rb#117 + def build_hunks(actual, expected); end + + # source://rspec-support//lib/rspec/support/differ.rb#92 + def coerce_to_string(string_or_array); end + + # source://rspec-support//lib/rspec/support/differ.rb#143 + def color(text, color_code); end + + # source://rspec-support//lib/rspec/support/differ.rb#163 + def color_diff(diff); end + + # source://rspec-support//lib/rspec/support/differ.rb#97 + def diffably_stringify(array); end + + # source://rspec-support//lib/rspec/support/differ.rb#121 + def finalize_output(output, final_line); end + + # source://rspec-support//lib/rspec/support/differ.rb#139 + def format_type; end + + # source://rspec-support//lib/rspec/support/differ.rb#151 + def green(text); end + + # source://rspec-support//lib/rspec/support/differ.rb#204 + def handle_encoding_errors(actual, expected); end + + # source://rspec-support//lib/rspec/support/differ.rb#194 + def hash_to_string(hash); end + + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/differ.rb#108 + def multiline?(string); end + + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/differ.rb#88 + def no_numbers?(*args); end + + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/differ.rb#76 + def no_procs?(*args); end + + # source://rspec-support//lib/rspec/support/differ.rb#159 + def normal(text); end + + # source://rspec-support//lib/rspec/support/differ.rb#180 + def object_to_string(object); end + + # source://rspec-support//lib/rspec/support/differ.rb#147 + def red(text); end + + # source://rspec-support//lib/rspec/support/differ.rb#134 + def safely_flatten(array); end +end + +# Replacement for fileutils#mkdir_p because we don't want to require parts +# of stdlib in RSpec. +# +# @api private +# +# source://rspec-support//lib/rspec/support/directory_maker.rb#11 +class RSpec::Support::DirectoryMaker + class << self + # Implements nested directory construction + # + # @api private + # + # source://rspec-support//lib/rspec/support/directory_maker.rb#15 + def mkdir_p(path); end + + private + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/directory_maker.rb#57 + def directory_exists?(dirname); end + + # @api private + # + # source://rspec-support//lib/rspec/support/directory_maker.rb#52 + def generate_path(stack, part); end + + # @api private + # + # source://rspec-support//lib/rspec/support/directory_maker.rb#49 + def generate_stack(path); end + end +end + +# @private +# +# source://rspec-support//lib/rspec/support/encoded_string.rb#6 +class RSpec::Support::EncodedString + # @return [EncodedString] a new instance of EncodedString + # + # source://rspec-support//lib/rspec/support/encoded_string.rb#16 + def initialize(string, encoding = T.unsafe(nil)); end + + # source://rspec-support//lib/rspec/support/encoded_string.rb#28 + def <<(string); end + + # source://rspec-support//lib/rspec/support/encoded_string.rb#25 + def ==(*args, &block); end + + # source://rspec-support//lib/rspec/support/encoded_string.rb#25 + def empty?(*args, &block); end + + # source://rspec-support//lib/rspec/support/encoded_string.rb#25 + def encoding(*args, &block); end + + # source://rspec-support//lib/rspec/support/encoded_string.rb#25 + def eql?(*args, &block); end + + # source://rspec-support//lib/rspec/support/encoded_string.rb#25 + def lines(*args, &block); end + + # Returns the value of attribute source_encoding. + # + # source://rspec-support//lib/rspec/support/encoded_string.rb#21 + def source_encoding; end + + # source://rspec-support//lib/rspec/support/encoded_string.rb#41 + def split(regex_or_string); end + + # source://rspec-support//lib/rspec/support/encoded_string.rb#46 + def to_s; end + + # source://rspec-support//lib/rspec/support/encoded_string.rb#46 + def to_str; end + + private + + # source://rspec-support//lib/rspec/support/encoded_string.rb#139 + def detect_source_encoding(string); end + + # Encoding Exceptions: + # + # Raised by Encoding and String methods: + # Encoding::UndefinedConversionError: + # when a transcoding operation fails + # if the String contains characters invalid for the target encoding + # e.g. "\x80".encode('UTF-8','ASCII-8BIT') + # vs "\x80".encode('UTF-8','ASCII-8BIT', undef: :replace, replace: '') + # # => '' + # Encoding::CompatibilityError + # when Encoding.compatible?(str1, str2) is nil + # e.g. utf_16le_emoji_string.split("\n") + # e.g. valid_unicode_string.encode(utf8_encoding) << ascii_string + # Encoding::InvalidByteSequenceError: + # when the string being transcoded contains a byte invalid for + # either the source or target encoding + # e.g. "\x80".encode('UTF-8','US-ASCII') + # vs "\x80".encode('UTF-8','US-ASCII', invalid: :replace, replace: '') + # # => '' + # ArgumentError + # when operating on a string with invalid bytes + # e.g."\x80".split("\n") + # TypeError + # when a symbol is passed as an encoding + # Encoding.find(:"UTF-8") + # when calling force_encoding on an object + # that doesn't respond to #to_str + # + # Raised by transcoding methods: + # Encoding::ConverterNotFoundError: + # when a named encoding does not correspond with a known converter + # e.g. 'abc'.force_encoding('UTF-8').encode('foo') + # or a converter path cannot be found + # e.g. "\x80".force_encoding('ASCII-8BIT').encode('Emacs-Mule') + # + # Raised by byte <-> char conversions + # RangeError: out of char range + # e.g. the UTF-16LE emoji: 128169.chr + # + # source://rspec-support//lib/rspec/support/encoded_string.rb#93 + def matching_encoding(string); end + + # http://stackoverflow.com/a/8711118/879854 + # Loop over chars in a string replacing chars + # with invalid encoding, which is a pretty good proxy + # for the invalid byte sequence that causes an ArgumentError + # + # source://rspec-support//lib/rspec/support/encoded_string.rb#124 + def remove_invalid_bytes(string); end + + class << self + # source://rspec-support//lib/rspec/support/encoded_string.rb#143 + def pick_encoding(source_a, source_b); end + end +end + +# Ruby's default replacement string is: +# U+FFFD ("\xEF\xBF\xBD"), for Unicode encoding forms, else +# ? ("\x3F") +# +# source://rspec-support//lib/rspec/support/encoded_string.rb#14 +RSpec::Support::EncodedString::REPLACE = T.let(T.unsafe(nil), String) + +# source://rspec-support//lib/rspec/support/encoded_string.rb#9 +RSpec::Support::EncodedString::US_ASCII = T.let(T.unsafe(nil), String) + +# Reduce allocations by storing constants. +# +# source://rspec-support//lib/rspec/support/encoded_string.rb#8 +RSpec::Support::EncodedString::UTF_8 = T.let(T.unsafe(nil), String) + +# Provides a means to fuzzy-match between two arbitrary objects. +# Understands array/hash nesting. Uses `===` or `==` to +# perform the matching. +# +# source://rspec-support//lib/rspec/support/fuzzy_matcher.rb#8 +module RSpec::Support::FuzzyMatcher + class << self + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/fuzzy_matcher.rb#10 + def values_match?(expected, actual); end + + private + + # @private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/fuzzy_matcher.rb#29 + def arrays_match?(expected_list, actual_list); end + + # @private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/fuzzy_matcher.rb#38 + def hashes_match?(expected_hash, actual_hash); end + end +end + +# @private +# +# source://rspec-support//lib/rspec/support/hunk_generator.rb#9 +class RSpec::Support::HunkGenerator + # @return [HunkGenerator] a new instance of HunkGenerator + # + # source://rspec-support//lib/rspec/support/hunk_generator.rb#10 + def initialize(actual, expected); end + + # source://rspec-support//lib/rspec/support/hunk_generator.rb#15 + def hunks; end + + private + + # source://rspec-support//lib/rspec/support/hunk_generator.rb#32 + def actual_lines; end + + # source://rspec-support//lib/rspec/support/hunk_generator.rb#36 + def build_hunk(piece); end + + # source://rspec-support//lib/rspec/support/hunk_generator.rb#44 + def context_lines; end + + # source://rspec-support//lib/rspec/support/hunk_generator.rb#24 + def diffs; end + + # source://rspec-support//lib/rspec/support/hunk_generator.rb#28 + def expected_lines; end +end + +# @api private +# +# source://rspec-support//lib/rspec/support.rb#40 +RSpec::Support::KERNEL_METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# Allows matchers to be used instead of providing keyword arguments. In +# practice, when this happens only the arity of the method is verified. +# +# @private +# +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#395 +class RSpec::Support::LooseSignatureVerifier < ::RSpec::Support::MethodSignatureVerifier + private + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#398 + def split_args(*args); end +end + +# If a matcher is used in a signature in place of keyword arguments, all +# keyword argument validation needs to be skipped since the matcher is +# opaque. +# +# Instead, keyword arguments will be validated when the method is called +# and they are actually known. +# +# @private +# +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#415 +class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher + # @return [SignatureWithKeywordArgumentsMatcher] a new instance of SignatureWithKeywordArgumentsMatcher + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#416 + def initialize(signature); end + + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#436 + def has_kw_args_in?(args); end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#424 + def invalid_kw_args_from(_kw_args); end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#420 + def missing_kw_args_from(_kw_args); end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#428 + def non_kw_args_arity_description; end + + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#432 + def valid_non_kw_args?(*args); end +end + +# Extracts info about the number of arguments and allowed/required +# keyword args of a given method. +# +# @private +# +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#13 +class RSpec::Support::MethodSignature + # @return [MethodSignature] a new instance of MethodSignature + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#16 + def initialize(method); end + + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#98 + def arbitrary_kw_args?; end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#38 + def classify_arity(arity = T.unsafe(nil)); end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#106 + def classify_parameters; end + + # Without considering what the last arg is, could it + # contain keyword arguments? + # + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#92 + def could_contain_kw_args?(args); end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#51 + def description; end + + # If the last argument is Hash, Ruby will treat only symbol keys as keyword arguments + # the rest will be grouped in another Hash and passed as positional argument. + # + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#84 + def has_kw_args_in?(args); end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#77 + def invalid_kw_args_from(given_kw_args); end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14 + def max_non_kw_args; end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14 + def min_non_kw_args; end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#73 + def missing_kw_args_from(given_kw_args); end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#23 + def non_kw_args_arity_description; end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14 + def optional_kw_args; end + + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14 + def required_kw_args; end + + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#102 + def unlimited_args?; end + + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#31 + def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = T.unsafe(nil)); end +end + +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#162 +RSpec::Support::MethodSignature::INFINITY = T.let(T.unsafe(nil), Float) + +# Encapsulates expectations about the number of arguments and +# allowed/required keyword args of a given method. +# +# @api private +# +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#219 +class RSpec::Support::MethodSignatureExpectation + # @api private + # @return [MethodSignatureExpectation] a new instance of MethodSignatureExpectation + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#220 + def initialize; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#247 + def empty?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231 + def expect_arbitrary_keywords; end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231 + def expect_arbitrary_keywords=(_arg0); end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231 + def expect_unlimited_arguments; end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231 + def expect_unlimited_arguments=(_arg0); end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229 + def keywords; end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#254 + def keywords=(values); end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229 + def max_count; end + + # @api private + # @raise [ArgumentError] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#233 + def max_count=(number); end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229 + def min_count; end + + # @api private + # @raise [ArgumentError] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#240 + def min_count=(number); end +end + +# Abstract base class for signature verifiers. +# +# @api private +# +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#280 +class RSpec::Support::MethodSignatureVerifier + # @api private + # @return [MethodSignatureVerifier] a new instance of MethodSignatureVerifier + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#283 + def initialize(signature, args = T.unsafe(nil)); end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#326 + def error_message; end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281 + def kw_args; end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281 + def max_non_kw_args; end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281 + def min_non_kw_args; end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281 + def non_kw_args; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#318 + def valid?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#290 + def with_expectation(expectation); end + + private + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#357 + def arbitrary_kw_args?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#353 + def invalid_kw_args; end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#349 + def missing_kw_args; end + + # @api private + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#365 + def split_args(*args); end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#361 + def unlimited_args?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#345 + def valid_non_kw_args?; end +end + +# On 1.9 and up, this is in core, so we just use the real one +# +# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#65 +class RSpec::Support::Mutex < ::Thread::Mutex + class << self + # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#70 + def new; end + end +end + +# If you mock Mutex.new you break our usage of Mutex, so +# instead we capture the original method to return Mutexes. +# +# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#68 +RSpec::Support::Mutex::NEW_MUTEX_METHOD = T.let(T.unsafe(nil), Method) + +# Provides query methods for different OS or OS features. +# +# @api private +# +# source://rspec-support//lib/rspec/support/ruby_features.rb#11 +module RSpec::Support::OS + private + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#14 + def windows?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#18 + def windows_file_path?; end + + class << self + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#14 + def windows?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#18 + def windows_file_path?; end + end +end + +# Provide additional output details beyond what `inspect` provides when +# printing Time, DateTime, or BigDecimal +# +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#10 +class RSpec::Support::ObjectFormatter + # @api private + # @return [ObjectFormatter] a new instance of ObjectFormatter + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#29 + def initialize(max_formatted_output_length = T.unsafe(nil)); end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#34 + def format(object); end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#13 + def max_formatted_output_length; end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#13 + def max_formatted_output_length=(_arg0); end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#70 + def prepare_array(array); end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#94 + def prepare_element(element); end + + # Prepares the provided object to be formatted by wrapping it as needed + # in something that, when `inspect` is called on it, will produce the + # desired output. + # + # This allows us to apply the desired formatting to hash/array data structures + # at any level of nesting, simply by walking that structure and replacing items + # with custom items that have `inspect` defined to return the desired output + # for that item. Then we can just use `Array#inspect` or `Hash#inspect` to + # format the entire thing. + # + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#58 + def prepare_for_inspection(object); end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#76 + def prepare_hash(input_hash); end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#113 + def recursive_structure?(object); end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#86 + def sort_hash_keys(input_hash); end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#106 + def with_entering_structure(structure); end + + private + + # Returns the substring defined by the start_index and end_index + # If the string ends with a partial ANSI code code then that + # will be removed as printing partial ANSI + # codes to the terminal can lead to corruption + # + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#268 + def truncate_string(str, start_index, end_index); end + + class << self + # Methods are deferred to a default instance of the class to maintain the interface + # For example, calling ObjectFormatter.format is still possible + # + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#17 + def default_instance; end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#21 + def format(object); end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#25 + def prepare_for_inspection(object); end + end +end + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#127 +class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct + # Returns the value of attribute formatter + # + # @return [Object] the current value of formatter + def formatter; end + + # Sets the attribute formatter + # + # @param value [Object] the value to set the attribute formatter to. + # @return [Object] the newly set value + def formatter=(_); end + + # @api private + # @raise [NotImplementedError] + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#132 + def inspect; end + + # Returns the value of attribute object + # + # @return [Object] the current value of object + def object; end + + # Sets the attribute object + # + # @param value [Object] the value to set the attribute object to. + # @return [Object] the newly set value + def object=(_); end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#136 + def pretty_print(pp); end + + class << self + def [](*_arg0); end + + # @api private + # @raise [NotImplementedError] + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#128 + def can_inspect?(_object); end + + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#177 +class RSpec::Support::ObjectFormatter::BigDecimalInspector < ::RSpec::Support::ObjectFormatter::BaseInspector + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#182 + def inspect; end + + class << self + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#178 + def can_inspect?(object); end + end +end + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#159 +class RSpec::Support::ObjectFormatter::DateTimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector + # ActiveSupport sometimes overrides inspect. If `ActiveSupport` is + # defined use a custom format string that includes more time precision. + # + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#168 + def inspect; end + + class << self + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#162 + def can_inspect?(object); end + end +end + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#160 +RSpec::Support::ObjectFormatter::DateTimeInspector::FORMAT = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#224 +class RSpec::Support::ObjectFormatter::DelegatorInspector < ::RSpec::Support::ObjectFormatter::BaseInspector + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#229 + def inspect; end + + class << self + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#225 + def can_inspect?(object); end + end +end + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#187 +class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < ::RSpec::Support::ObjectFormatter::BaseInspector + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#192 + def inspect; end + + class << self + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#188 + def can_inspect?(object); end + end +end + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#11 +RSpec::Support::ObjectFormatter::ELLIPSIS = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#247 +RSpec::Support::ObjectFormatter::INSPECTOR_CLASSES = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#117 +class RSpec::Support::ObjectFormatter::InspectableItem < ::Struct + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#118 + def inspect; end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#122 + def pretty_print(pp); end + + # Returns the value of attribute text + # + # @return [Object] the current value of text + def text; end + + # Sets the attribute text + # + # @param value [Object] the value to set the attribute text to. + # @return [Object] the newly set value + def text=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#234 +class RSpec::Support::ObjectFormatter::InspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#242 + def inspect; end + + class << self + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#235 + def can_inspect?(object); end + end +end + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#141 +class RSpec::Support::ObjectFormatter::TimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector + # for 1.8.7 + # + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#149 + def inspect; end + + class << self + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#144 + def can_inspect?(object); end + end +end + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#142 +RSpec::Support::ObjectFormatter::TimeInspector::FORMAT = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#197 +class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#207 + def inspect; end + + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#211 + def klass; end + + # http://stackoverflow.com/a/2818916 + # + # @api private + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#216 + def native_object_id; end + + class << self + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#200 + def can_inspect?(object); end + end +end + +# @api private +# +# source://rspec-support//lib/rspec/support/object_formatter.rb#198 +RSpec::Support::ObjectFormatter::UninspectableObjectInspector::OBJECT_ID_FORMAT = T.let(T.unsafe(nil), String) + +# Provides recursive constant lookup methods useful for +# constant stubbing. +# +# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#7 +module RSpec::Support::RecursiveConstMethods + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#45 + def const_defined_on?(mod, const_name); end + + # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#53 + def constants_defined_on(mod); end + + # @raise [NameError] + # + # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#49 + def get_const_defined_on(mod, const_name); end + + # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#73 + def normalize_const_name(const_name); end + + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#64 + def recursive_const_defined?(const_name); end + + # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#58 + def recursive_const_get(const_name); end +end + +# Allows a thread to lock out other threads from a critical section of code, +# while allowing the thread with the lock to reenter that section. +# +# Based on Monitor as of 2.2 - +# https://github.com/ruby/ruby/blob/eb7ddaa3a47bf48045d26c72eb0f263a53524ebc/lib/monitor.rb#L9 +# +# Depends on Mutex, but Mutex is only available as part of core since 1.9.1: +# exists - http://ruby-doc.org/core-1.9.1/Mutex.html +# dne - http://ruby-doc.org/core-1.9.0/Mutex.html +# +# @private +# +# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#16 +class RSpec::Support::ReentrantMutex + # @return [ReentrantMutex] a new instance of ReentrantMutex + # + # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#17 + def initialize; end + + # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#23 + def synchronize; end + + private + + # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#35 + def enter; end + + # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#40 + def exit; end +end + +# Provides query methods for different rubies +# +# @api private +# +# source://rspec-support//lib/rspec/support/ruby_features.rb#26 +module RSpec::Support::Ruby + private + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#29 + def jruby?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#37 + def jruby_9000?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#33 + def jruby_version; end + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#49 + def mri?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#45 + def non_mri?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#41 + def rbx?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#53 + def truffleruby?; end + + class << self + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#29 + def jruby?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#37 + def jruby_9000?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#33 + def jruby_version; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#49 + def mri?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#45 + def non_mri?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#41 + def rbx?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#53 + def truffleruby?; end + end +end + +# Provides query methods for ruby features that differ among +# implementations. +# +# @api private +# +# source://rspec-support//lib/rspec/support/ruby_features.rb#62 +module RSpec::Support::RubyFeatures + private + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#85 + def caller_locations_supported?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#155 + def distincts_kw_args_from_positional_hash?; end + + # On JRuby 1.7 `--1.8` mode, `Process.respond_to?(:fork)` returns true, + # but when you try to fork, it raises an error: + # NotImplementedError: fork is not available on this platform + # + # When we drop support for JRuby 1.7 and/or Ruby 1.8, we can drop + # this special case. + # + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#76 + def fork_supported?; end + + # https://rubyreferences.github.io/rubychanges/3.0.html#keyword-arguments-are-now-fully-separated-from-positional-arguments + # + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#111 + def kw_arg_separation?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#160 + def kw_args_supported?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#216 + def module_prepends_supported?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#212 + def module_refinement_supported?; end + + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#81 + def optional_and_splat_args_supported?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#164 + def required_kw_args_supported?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#146 + def ripper_supported?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#90 + def supports_exception_cause?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#168 + def supports_rebinding_module_methods?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#100 + def supports_syntax_suggest?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#121 + def supports_taint?; end + + class << self + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#85 + def caller_locations_supported?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#155 + def distincts_kw_args_from_positional_hash?; end + + # source://rspec-support//lib/rspec/support/ruby_features.rb#76 + def fork_supported?; end + + # source://rspec-support//lib/rspec/support/ruby_features.rb#111 + def kw_arg_separation?; end + + # source://rspec-support//lib/rspec/support/ruby_features.rb#160 + def kw_args_supported?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#216 + def module_prepends_supported?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#212 + def module_refinement_supported?; end + + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#81 + def optional_and_splat_args_supported?; end + + # source://rspec-support//lib/rspec/support/ruby_features.rb#164 + def required_kw_args_supported?; end + + # source://rspec-support//lib/rspec/support/ruby_features.rb#146 + def ripper_supported?; end + + # source://rspec-support//lib/rspec/support/ruby_features.rb#90 + def supports_exception_cause?; end + + # source://rspec-support//lib/rspec/support/ruby_features.rb#168 + def supports_rebinding_module_methods?; end + + # source://rspec-support//lib/rspec/support/ruby_features.rb#100 + def supports_syntax_suggest?; end + + # source://rspec-support//lib/rspec/support/ruby_features.rb#121 + def supports_taint?; end + end +end + +# Figures out whether a given method can accept various arguments. +# Surprisingly non-trivial. +# +# @private +# +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#389 +RSpec::Support::StrictSignatureVerifier = RSpec::Support::MethodSignatureVerifier + +# source://rspec-support//lib/rspec/support/version.rb#5 +module RSpec::Support::Version; end + +# source://rspec-support//lib/rspec/support/version.rb#6 +RSpec::Support::Version::STRING = T.let(T.unsafe(nil), String) + +# source://rspec-support//lib/rspec/support/warnings.rb#8 +module RSpec::Support::Warnings + # source://rspec-support//lib/rspec/support/warnings.rb#9 + def deprecate(deprecated, options = T.unsafe(nil)); end + + # Used internally to print deprecation warnings + # when rspec-core isn't loaded + # + # @private + # + # source://rspec-support//lib/rspec/support/warnings.rb#17 + def warn_deprecation(message, options = T.unsafe(nil)); end + + # Used internally to print longer warnings + # + # @private + # + # source://rspec-support//lib/rspec/support/warnings.rb#31 + def warn_with(message, options = T.unsafe(nil)); end + + # Used internally to print warnings + # + # @private + # + # source://rspec-support//lib/rspec/support/warnings.rb#24 + def warning(text, options = T.unsafe(nil)); end +end + +# source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#7 +module RSpec::Support::WithKeywordsWhenNeeded + private + + # Remove this in RSpec 4 in favour of explicitly passed in kwargs where + # this is used. Works around a warning in Ruby 2.7 + # + # source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#17 + def class_exec(klass, *args, **_arg2, &block); end + + class << self + # source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#17 + def class_exec(klass, *args, **_arg2, &block); end + end +end