active_cached_resource 0.0.1.pre → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/LICENSE +21 -0
- data/lib/active_cached_resource/caching.rb +104 -1
- data/lib/active_cached_resource/configuration.rb +22 -1
- data/lib/active_cached_resource/logger.rb +14 -0
- data/lib/active_cached_resource/model.rb +18 -0
- data/lib/active_cached_resource/version.rb +1 -8
- data/lib/activeresource/lib/active_resource/collection.rb +14 -1
- data/lib/activeresource/lib/active_resource/railtie.rb +2 -2
- data/lib/activeresource/lib/active_resource.rb +1 -1
- metadata +5 -401
- data/.rspec +0 -3
- data/.rubocop.yml +0 -22
- data/.standard.yml +0 -2
- data/Rakefile +0 -21
- data/example/consumer/.dockerignore +0 -41
- data/example/consumer/.gitattributes +0 -9
- data/example/consumer/.gitignore +0 -36
- data/example/consumer/.kamal/hooks/docker-setup.sample +0 -3
- data/example/consumer/.kamal/hooks/post-deploy.sample +0 -14
- data/example/consumer/.kamal/hooks/post-proxy-reboot.sample +0 -3
- data/example/consumer/.kamal/hooks/pre-build.sample +0 -51
- data/example/consumer/.kamal/hooks/pre-connect.sample +0 -47
- data/example/consumer/.kamal/hooks/pre-deploy.sample +0 -109
- data/example/consumer/.kamal/hooks/pre-proxy-reboot.sample +0 -3
- data/example/consumer/.kamal/secrets +0 -17
- data/example/consumer/Dockerfile +0 -65
- data/example/consumer/Gemfile +0 -17
- data/example/consumer/Rakefile +0 -6
- data/example/consumer/app/controllers/application_controller.rb +0 -2
- data/example/consumer/app/controllers/concerns/.keep +0 -0
- data/example/consumer/app/jobs/application_job.rb +0 -7
- data/example/consumer/app/mailers/application_mailer.rb +0 -4
- data/example/consumer/app/models/application_record.rb +0 -3
- data/example/consumer/app/models/concerns/.keep +0 -0
- data/example/consumer/app/models/person.rb +0 -9
- data/example/consumer/app/views/layouts/mailer.html.erb +0 -13
- data/example/consumer/app/views/layouts/mailer.text.erb +0 -1
- data/example/consumer/bin/brakeman +0 -7
- data/example/consumer/bin/bundle +0 -109
- data/example/consumer/bin/dev +0 -2
- data/example/consumer/bin/docker-entrypoint +0 -14
- data/example/consumer/bin/jobs +0 -6
- data/example/consumer/bin/kamal +0 -27
- data/example/consumer/bin/rails +0 -4
- data/example/consumer/bin/rake +0 -4
- data/example/consumer/bin/rubocop +0 -8
- data/example/consumer/bin/setup +0 -34
- data/example/consumer/bin/thrust +0 -5
- data/example/consumer/config/application.rb +0 -20
- data/example/consumer/config/boot.rb +0 -3
- data/example/consumer/config/cache.yml +0 -16
- data/example/consumer/config/credentials.yml.enc +0 -1
- data/example/consumer/config/database.yml +0 -14
- data/example/consumer/config/deploy.yml +0 -116
- data/example/consumer/config/environment.rb +0 -5
- data/example/consumer/config/environments/development.rb +0 -64
- data/example/consumer/config/environments/production.rb +0 -85
- data/example/consumer/config/environments/test.rb +0 -50
- data/example/consumer/config/initializers/cors.rb +0 -16
- data/example/consumer/config/initializers/filter_parameter_logging.rb +0 -8
- data/example/consumer/config/initializers/inflections.rb +0 -16
- data/example/consumer/config/locales/en.yml +0 -31
- data/example/consumer/config/puma.rb +0 -41
- data/example/consumer/config/queue.yml +0 -18
- data/example/consumer/config/recurring.yml +0 -10
- data/example/consumer/config/routes.rb +0 -10
- data/example/consumer/config.ru +0 -6
- data/example/consumer/db/cache_schema.rb +0 -14
- data/example/consumer/db/queue_schema.rb +0 -129
- data/example/consumer/db/seeds.rb +0 -0
- data/example/consumer/lib/tasks/.keep +0 -0
- data/example/consumer/log/.keep +0 -0
- data/example/consumer/public/robots.txt +0 -1
- data/example/consumer/script/.keep +0 -0
- data/example/consumer/storage/.keep +0 -0
- data/example/consumer/tmp/.keep +0 -0
- data/example/consumer/tmp/cache/.keep +0 -0
- data/example/consumer/tmp/pids/.keep +0 -0
- data/example/consumer/tmp/storage/.keep +0 -0
- data/example/consumer/vendor/.keep +0 -0
- data/example/provider/.dockerignore +0 -41
- data/example/provider/.gitattributes +0 -9
- data/example/provider/.gitignore +0 -32
- data/example/provider/.kamal/hooks/docker-setup.sample +0 -3
- data/example/provider/.kamal/hooks/post-deploy.sample +0 -14
- data/example/provider/.kamal/hooks/post-proxy-reboot.sample +0 -3
- data/example/provider/.kamal/hooks/pre-build.sample +0 -51
- data/example/provider/.kamal/hooks/pre-connect.sample +0 -47
- data/example/provider/.kamal/hooks/pre-deploy.sample +0 -109
- data/example/provider/.kamal/hooks/pre-proxy-reboot.sample +0 -3
- data/example/provider/.kamal/secrets +0 -17
- data/example/provider/Dockerfile +0 -65
- data/example/provider/Gemfile +0 -14
- data/example/provider/Rakefile +0 -6
- data/example/provider/app/controllers/application_controller.rb +0 -2
- data/example/provider/app/controllers/concerns/.keep +0 -0
- data/example/provider/app/controllers/people_controller.rb +0 -68
- data/example/provider/app/jobs/application_job.rb +0 -7
- data/example/provider/app/mailers/application_mailer.rb +0 -4
- data/example/provider/app/models/address.rb +0 -3
- data/example/provider/app/models/application_record.rb +0 -3
- data/example/provider/app/models/company.rb +0 -3
- data/example/provider/app/models/concerns/.keep +0 -0
- data/example/provider/app/models/person.rb +0 -6
- data/example/provider/app/views/layouts/mailer.html.erb +0 -13
- data/example/provider/app/views/layouts/mailer.text.erb +0 -1
- data/example/provider/bin/brakeman +0 -7
- data/example/provider/bin/bundle +0 -109
- data/example/provider/bin/dev +0 -2
- data/example/provider/bin/docker-entrypoint +0 -14
- data/example/provider/bin/jobs +0 -6
- data/example/provider/bin/kamal +0 -27
- data/example/provider/bin/rails +0 -4
- data/example/provider/bin/rake +0 -4
- data/example/provider/bin/rubocop +0 -8
- data/example/provider/bin/setup +0 -34
- data/example/provider/bin/thrust +0 -5
- data/example/provider/config/application.rb +0 -44
- data/example/provider/config/boot.rb +0 -3
- data/example/provider/config/cache.yml +0 -16
- data/example/provider/config/credentials.yml.enc +0 -1
- data/example/provider/config/database.yml +0 -20
- data/example/provider/config/deploy.yml +0 -116
- data/example/provider/config/environment.rb +0 -5
- data/example/provider/config/environments/development.rb +0 -64
- data/example/provider/config/environments/production.rb +0 -85
- data/example/provider/config/environments/test.rb +0 -50
- data/example/provider/config/initializers/cors.rb +0 -16
- data/example/provider/config/initializers/filter_parameter_logging.rb +0 -8
- data/example/provider/config/initializers/inflections.rb +0 -16
- data/example/provider/config/locales/en.yml +0 -31
- data/example/provider/config/puma.rb +0 -41
- data/example/provider/config/queue.yml +0 -18
- data/example/provider/config/recurring.yml +0 -10
- data/example/provider/config/routes.rb +0 -4
- data/example/provider/config.ru +0 -6
- data/example/provider/db/cache_schema.rb +0 -14
- data/example/provider/db/migrate/20241202183937_create_people.rb +0 -11
- data/example/provider/db/migrate/20241202183955_create_addresses.rb +0 -13
- data/example/provider/db/migrate/20241202184017_create_companies.rb +0 -14
- data/example/provider/db/queue_schema.rb +0 -129
- data/example/provider/db/schema.rb +0 -47
- data/example/provider/db/seeds.rb +0 -18
- data/example/provider/lib/tasks/.keep +0 -0
- data/example/provider/log/.keep +0 -0
- data/example/provider/public/robots.txt +0 -1
- data/example/provider/script/.keep +0 -0
- data/example/provider/storage/.keep +0 -0
- data/example/provider/tmp/.keep +0 -0
- data/example/provider/tmp/pids/.keep +0 -0
- data/example/provider/tmp/storage/.keep +0 -0
- data/example/provider/vendor/.keep +0 -0
- data/lib/activeresource/.gitignore +0 -15
- data/lib/activeresource/examples/performance.rb +0 -72
- data/lib/activeresource/test/abstract_unit.rb +0 -153
- data/lib/activeresource/test/cases/active_job_serializer_test.rb +0 -53
- data/lib/activeresource/test/cases/association_test.rb +0 -104
- data/lib/activeresource/test/cases/associations/builder/belongs_to_test.rb +0 -42
- data/lib/activeresource/test/cases/associations/builder/has_many_test.rb +0 -28
- data/lib/activeresource/test/cases/associations/builder/has_one_test.rb +0 -28
- data/lib/activeresource/test/cases/authorization_test.rb +0 -276
- data/lib/activeresource/test/cases/base/custom_methods_test.rb +0 -155
- data/lib/activeresource/test/cases/base/equality_test.rb +0 -53
- data/lib/activeresource/test/cases/base/load_test.rb +0 -249
- data/lib/activeresource/test/cases/base/schema_test.rb +0 -428
- data/lib/activeresource/test/cases/base_errors_test.rb +0 -129
- data/lib/activeresource/test/cases/base_test.rb +0 -1622
- data/lib/activeresource/test/cases/callbacks_test.rb +0 -155
- data/lib/activeresource/test/cases/collection_test.rb +0 -172
- data/lib/activeresource/test/cases/connection_test.rb +0 -357
- data/lib/activeresource/test/cases/finder_test.rb +0 -217
- data/lib/activeresource/test/cases/format_test.rb +0 -137
- data/lib/activeresource/test/cases/http_mock_test.rb +0 -213
- data/lib/activeresource/test/cases/inheritence_test.rb +0 -19
- data/lib/activeresource/test/cases/inheriting_hash_test.rb +0 -25
- data/lib/activeresource/test/cases/log_subscriber_test.rb +0 -63
- data/lib/activeresource/test/cases/reflection_test.rb +0 -65
- data/lib/activeresource/test/cases/validations_test.rb +0 -78
- data/lib/activeresource/test/fixtures/address.rb +0 -20
- data/lib/activeresource/test/fixtures/beast.rb +0 -16
- data/lib/activeresource/test/fixtures/comment.rb +0 -5
- data/lib/activeresource/test/fixtures/customer.rb +0 -5
- data/lib/activeresource/test/fixtures/inventory.rb +0 -14
- data/lib/activeresource/test/fixtures/person.rb +0 -15
- data/lib/activeresource/test/fixtures/pet.rb +0 -6
- data/lib/activeresource/test/fixtures/post.rb +0 -5
- data/lib/activeresource/test/fixtures/product.rb +0 -11
- data/lib/activeresource/test/fixtures/project.rb +0 -19
- data/lib/activeresource/test/fixtures/proxy.rb +0 -6
- data/lib/activeresource/test/fixtures/sound.rb +0 -11
- data/lib/activeresource/test/fixtures/street_address.rb +0 -6
- data/lib/activeresource/test/fixtures/subscription_plan.rb +0 -7
- data/lib/activeresource/test/fixtures/weather.rb +0 -21
- data/lib/activeresource/test/setter_trap.rb +0 -28
- data/lib/activeresource/test/singleton_test.rb +0 -138
- data/lib/activeresource/test/threadsafe_attributes_test.rb +0 -91
- data/sorbet/config +0 -4
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/activemodel.rbi +0 -89
- data/sorbet/rbi/annotations/activesupport.rbi +0 -457
- data/sorbet/rbi/annotations/minitest.rbi +0 -119
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/dsl/.gitattributes +0 -1
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -21
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/actioncable@8.0.0.rbi +0 -252
- data/sorbet/rbi/gems/actionmailbox@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/actionmailer@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/actionpack@8.0.0.rbi +0 -20909
- data/sorbet/rbi/gems/actiontext@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/actionview@8.0.0.rbi +0 -16207
- data/sorbet/rbi/gems/activejob@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/activemodel-serializers-xml@1.0.3.rbi +0 -166
- data/sorbet/rbi/gems/activemodel@8.0.0.rbi +0 -6857
- data/sorbet/rbi/gems/activerecord@8.0.0.rbi +0 -42896
- data/sorbet/rbi/gems/activeresource@6.1.4.rbi +0 -3944
- data/sorbet/rbi/gems/activestorage@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/activesupport@8.0.0.rbi +0 -21251
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -585
- data/sorbet/rbi/gems/base64@0.2.0.rbi +0 -509
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +0 -618
- data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +0 -78
- data/sorbet/rbi/gems/builder@3.3.0.rbi +0 -9
- data/sorbet/rbi/gems/bump@0.10.0.rbi +0 -169
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -3607
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3427
- data/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi +0 -11645
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +0 -9
- data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -623
- data/sorbet/rbi/gems/date@3.4.0.rbi +0 -75
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +0 -1131
- data/sorbet/rbi/gems/docile@1.4.1.rbi +0 -377
- data/sorbet/rbi/gems/drb@2.2.1.rbi +0 -1347
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +0 -150
- data/sorbet/rbi/gems/globalid@1.2.1.rbi +0 -9
- data/sorbet/rbi/gems/i18n@1.14.6.rbi +0 -2359
- data/sorbet/rbi/gems/io-console@0.7.2.rbi +0 -9
- data/sorbet/rbi/gems/json@2.8.2.rbi +0 -1901
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14238
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +0 -240
- data/sorbet/rbi/gems/logger@1.6.1.rbi +0 -920
- data/sorbet/rbi/gems/loofah@2.23.1.rbi +0 -1081
- data/sorbet/rbi/gems/mail@2.8.1.rbi +0 -9
- data/sorbet/rbi/gems/marcel@1.0.4.rbi +0 -9
- data/sorbet/rbi/gems/method_source@1.1.0.rbi +0 -304
- data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +0 -9
- data/sorbet/rbi/gems/minitest@5.25.2.rbi +0 -1547
- data/sorbet/rbi/gems/net-imap@0.5.1.rbi +0 -9
- data/sorbet/rbi/gems/net-pop@0.1.2.rbi +0 -9
- data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +0 -292
- data/sorbet/rbi/gems/net-smtp@0.5.0.rbi +0 -9
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
- data/sorbet/rbi/gems/nio4r@2.7.4.rbi +0 -9
- data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +0 -7311
- data/sorbet/rbi/gems/parallel@1.26.3.rbi +0 -291
- data/sorbet/rbi/gems/parser@3.3.6.0.rbi +0 -5519
- data/sorbet/rbi/gems/prism@1.2.0.rbi +0 -39085
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +0 -1151
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10076
- data/sorbet/rbi/gems/psych@5.2.0.rbi +0 -1785
- data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -162
- data/sorbet/rbi/gems/rack-session@2.0.0.rbi +0 -727
- data/sorbet/rbi/gems/rack-test@2.1.0.rbi +0 -747
- data/sorbet/rbi/gems/rack@3.1.8.rbi +0 -4905
- data/sorbet/rbi/gems/rackup@2.2.1.rbi +0 -230
- data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +0 -758
- data/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi +0 -785
- data/sorbet/rbi/gems/rails@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/railties@8.0.0.rbi +0 -6287
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
- data/sorbet/rbi/gems/rake@13.2.1.rbi +0 -3091
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +0 -4535
- data/sorbet/rbi/gems/rdoc@6.8.1.rbi +0 -12572
- data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +0 -3772
- data/sorbet/rbi/gems/reline@0.5.12.rbi +0 -2416
- data/sorbet/rbi/gems/rexml@3.3.9.rbi +0 -4858
- data/sorbet/rbi/gems/rspec-core@3.13.2.rbi +0 -11287
- data/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi +0 -8183
- data/sorbet/rbi/gems/rspec-mocks@3.13.2.rbi +0 -5341
- data/sorbet/rbi/gems/rspec-support@3.13.1.rbi +0 -1630
- data/sorbet/rbi/gems/rspec@3.13.0.rbi +0 -83
- data/sorbet/rbi/gems/rubocop-ast@1.36.1.rbi +0 -7303
- data/sorbet/rbi/gems/rubocop-performance@1.21.1.rbi +0 -9
- data/sorbet/rbi/gems/rubocop@1.65.1.rbi +0 -58170
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
- data/sorbet/rbi/gems/securerandom@0.3.2.rbi +0 -395
- data/sorbet/rbi/gems/simplecov-html@0.13.1.rbi +0 -225
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +0 -2149
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +0 -9
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +0 -4932
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +0 -9
- data/sorbet/rbi/gems/standard-performance@1.4.0.rbi +0 -9
- data/sorbet/rbi/gems/standard@1.40.0.rbi +0 -929
- data/sorbet/rbi/gems/stringio@3.1.2.rbi +0 -9
- data/sorbet/rbi/gems/tapioca@0.16.4.rbi +0 -3597
- data/sorbet/rbi/gems/thor@1.3.2.rbi +0 -4378
- data/sorbet/rbi/gems/timeout@0.4.2.rbi +0 -151
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5918
- data/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi +0 -66
- data/sorbet/rbi/gems/uri@1.0.2.rbi +0 -2377
- data/sorbet/rbi/gems/useragent@0.16.10.rbi +0 -9
- data/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +0 -9
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +0 -9
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
- data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18504
- data/sorbet/rbi/gems/zeitwerk@2.7.1.rbi +0 -9
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -12
@@ -1,1547 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `minitest` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem minitest`.
|
6
|
-
|
7
|
-
|
8
|
-
# The top-level namespace for Minitest. Also the location of the main
|
9
|
-
# runtime. See +Minitest.run+ for more information.
|
10
|
-
#
|
11
|
-
# source://minitest//lib/minitest/parallel.rb#1
|
12
|
-
module Minitest
|
13
|
-
class << self
|
14
|
-
# Internal run method. Responsible for telling all Runnable
|
15
|
-
# sub-classes to run.
|
16
|
-
#
|
17
|
-
# source://minitest//lib/minitest.rb#323
|
18
|
-
def __run(reporter, options); end
|
19
|
-
|
20
|
-
# A simple hook allowing you to run a block of code after everything
|
21
|
-
# is done running. Eg:
|
22
|
-
#
|
23
|
-
# Minitest.after_run { p $debugging_info }
|
24
|
-
#
|
25
|
-
# source://minitest//lib/minitest.rb#97
|
26
|
-
def after_run(&block); end
|
27
|
-
|
28
|
-
# source://minitest//lib/minitest.rb#20
|
29
|
-
def allow_fork; end
|
30
|
-
|
31
|
-
# source://minitest//lib/minitest.rb#20
|
32
|
-
def allow_fork=(_arg0); end
|
33
|
-
|
34
|
-
# Registers Minitest to run at process exit
|
35
|
-
#
|
36
|
-
# source://minitest//lib/minitest.rb#70
|
37
|
-
def autorun; end
|
38
|
-
|
39
|
-
# source://minitest//lib/minitest.rb#20
|
40
|
-
def backtrace_filter; end
|
41
|
-
|
42
|
-
# source://minitest//lib/minitest.rb#20
|
43
|
-
def backtrace_filter=(_arg0); end
|
44
|
-
|
45
|
-
# source://minitest//lib/minitest.rb#19
|
46
|
-
def cattr_accessor(name); end
|
47
|
-
|
48
|
-
# source://minitest//lib/minitest.rb#1216
|
49
|
-
def clock_time; end
|
50
|
-
|
51
|
-
# source://minitest//lib/minitest.rb#303
|
52
|
-
def empty_run!(options); end
|
53
|
-
|
54
|
-
# source://minitest//lib/minitest.rb#20
|
55
|
-
def extensions; end
|
56
|
-
|
57
|
-
# source://minitest//lib/minitest.rb#20
|
58
|
-
def extensions=(_arg0); end
|
59
|
-
|
60
|
-
# source://minitest//lib/minitest.rb#336
|
61
|
-
def filter_backtrace(bt); end
|
62
|
-
|
63
|
-
# source://minitest//lib/minitest.rb#20
|
64
|
-
def info_signal; end
|
65
|
-
|
66
|
-
# source://minitest//lib/minitest.rb#20
|
67
|
-
def info_signal=(_arg0); end
|
68
|
-
|
69
|
-
# source://minitest//lib/minitest.rb#125
|
70
|
-
def init_plugins(options); end
|
71
|
-
|
72
|
-
# source://minitest//lib/minitest.rb#109
|
73
|
-
def load_plugins; end
|
74
|
-
|
75
|
-
# source://minitest//lib/minitest.rb#20
|
76
|
-
def parallel_executor; end
|
77
|
-
|
78
|
-
# source://minitest//lib/minitest.rb#20
|
79
|
-
def parallel_executor=(_arg0); end
|
80
|
-
|
81
|
-
# source://minitest//lib/minitest.rb#143
|
82
|
-
def process_args(args = T.unsafe(nil)); end
|
83
|
-
|
84
|
-
# Register a plugin to be used. Does NOT require / load it.
|
85
|
-
#
|
86
|
-
# source://minitest//lib/minitest.rb#104
|
87
|
-
def register_plugin(name_or_mod); end
|
88
|
-
|
89
|
-
# source://minitest//lib/minitest.rb#20
|
90
|
-
def reporter; end
|
91
|
-
|
92
|
-
# source://minitest//lib/minitest.rb#20
|
93
|
-
def reporter=(_arg0); end
|
94
|
-
|
95
|
-
# This is the top-level run method. Everything starts from here. It
|
96
|
-
# tells each Runnable sub-class to run, and each of those are
|
97
|
-
# responsible for doing whatever they do.
|
98
|
-
#
|
99
|
-
# The overall structure of a run looks like this:
|
100
|
-
#
|
101
|
-
# Minitest.autorun
|
102
|
-
# Minitest.run(args)
|
103
|
-
# Minitest.load_plugins
|
104
|
-
# Minitest.process_args
|
105
|
-
# Minitest.init_plugins
|
106
|
-
# Minitest.__run(reporter, options)
|
107
|
-
# Runnable.runnables.each
|
108
|
-
# runnable_klass.run(reporter, options)
|
109
|
-
# self.runnable_methods.each
|
110
|
-
# self.run_one_method(self, runnable_method, reporter)
|
111
|
-
# Minitest.run_one_method(klass, runnable_method)
|
112
|
-
# klass.new(runnable_method).run
|
113
|
-
#
|
114
|
-
# source://minitest//lib/minitest.rb#269
|
115
|
-
def run(args = T.unsafe(nil)); end
|
116
|
-
|
117
|
-
# source://minitest//lib/minitest.rb#1207
|
118
|
-
def run_one_method(klass, method_name); end
|
119
|
-
|
120
|
-
# source://minitest//lib/minitest.rb#20
|
121
|
-
def seed; end
|
122
|
-
|
123
|
-
# source://minitest//lib/minitest.rb#20
|
124
|
-
def seed=(_arg0); end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
|
-
# Defines the API for Reporters. Subclass this and override whatever
|
129
|
-
# you want. Go nuts.
|
130
|
-
#
|
131
|
-
# source://minitest//lib/minitest.rb#687
|
132
|
-
class Minitest::AbstractReporter
|
133
|
-
# @return [AbstractReporter] a new instance of AbstractReporter
|
134
|
-
#
|
135
|
-
# source://minitest//lib/minitest.rb#689
|
136
|
-
def initialize; end
|
137
|
-
|
138
|
-
# Did this run pass?
|
139
|
-
#
|
140
|
-
# @return [Boolean]
|
141
|
-
#
|
142
|
-
# source://minitest//lib/minitest.rb#724
|
143
|
-
def passed?; end
|
144
|
-
|
145
|
-
# About to start running a test. This allows a reporter to show
|
146
|
-
# that it is starting or that we are in the middle of a test run.
|
147
|
-
#
|
148
|
-
# source://minitest//lib/minitest.rb#703
|
149
|
-
def prerecord(klass, name); end
|
150
|
-
|
151
|
-
# Output and record the result of the test. Call
|
152
|
-
# {result#result_code}[rdoc-ref:Runnable#result_code] to get the
|
153
|
-
# result character string. Stores the result of the run if the run
|
154
|
-
# did not pass.
|
155
|
-
#
|
156
|
-
# source://minitest//lib/minitest.rb#712
|
157
|
-
def record(result); end
|
158
|
-
|
159
|
-
# Outputs the summary of the run.
|
160
|
-
#
|
161
|
-
# source://minitest//lib/minitest.rb#718
|
162
|
-
def report; end
|
163
|
-
|
164
|
-
# Starts reporting on the run.
|
165
|
-
#
|
166
|
-
# source://minitest//lib/minitest.rb#696
|
167
|
-
def start; end
|
168
|
-
|
169
|
-
# source://minitest//lib/minitest.rb#728
|
170
|
-
def synchronize(&block); end
|
171
|
-
end
|
172
|
-
|
173
|
-
# Represents run failures.
|
174
|
-
#
|
175
|
-
# source://minitest//lib/minitest.rb#1020
|
176
|
-
class Minitest::Assertion < ::Exception
|
177
|
-
# source://minitest//lib/minitest.rb#1023
|
178
|
-
def error; end
|
179
|
-
|
180
|
-
# Where was this run before an assertion was raised?
|
181
|
-
#
|
182
|
-
# source://minitest//lib/minitest.rb#1030
|
183
|
-
def location; end
|
184
|
-
|
185
|
-
# source://minitest//lib/minitest.rb#1038
|
186
|
-
def result_code; end
|
187
|
-
|
188
|
-
# source://minitest//lib/minitest.rb#1042
|
189
|
-
def result_label; end
|
190
|
-
end
|
191
|
-
|
192
|
-
# source://minitest//lib/minitest.rb#1021
|
193
|
-
Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp)
|
194
|
-
|
195
|
-
# Minitest Assertions. All assertion methods accept a +msg+ which is
|
196
|
-
# printed if the assertion fails.
|
197
|
-
#
|
198
|
-
# Protocol: Nearly everything here boils up to +assert+, which
|
199
|
-
# expects to be able to increment an instance accessor named
|
200
|
-
# +assertions+. This is not provided by Assertions and must be
|
201
|
-
# provided by the thing including Assertions. See Minitest::Runnable
|
202
|
-
# for an example.
|
203
|
-
#
|
204
|
-
# source://minitest//lib/minitest/assertions.rb#16
|
205
|
-
module Minitest::Assertions
|
206
|
-
# source://minitest//lib/minitest/assertions.rb#181
|
207
|
-
def _synchronize; end
|
208
|
-
|
209
|
-
# source://minitest//lib/minitest/assertions.rb#194
|
210
|
-
def _where; end
|
211
|
-
|
212
|
-
# Fails unless +test+ is truthy.
|
213
|
-
#
|
214
|
-
# source://minitest//lib/minitest/assertions.rb#171
|
215
|
-
def assert(test, msg = T.unsafe(nil)); end
|
216
|
-
|
217
|
-
# Fails unless +obj+ is empty.
|
218
|
-
#
|
219
|
-
# source://minitest//lib/minitest/assertions.rb#188
|
220
|
-
def assert_empty(obj, msg = T.unsafe(nil)); end
|
221
|
-
|
222
|
-
# Fails unless <tt>exp == act</tt> printing the difference between
|
223
|
-
# the two, if possible.
|
224
|
-
#
|
225
|
-
# If there is no visible difference but the assertion fails, you
|
226
|
-
# should suspect that your #== is buggy, or your inspect output is
|
227
|
-
# missing crucial details. For nicer structural diffing, set
|
228
|
-
# Minitest::Test.make_my_diffs_pretty!
|
229
|
-
#
|
230
|
-
# For floats use assert_in_delta.
|
231
|
-
#
|
232
|
-
# See also: Minitest::Assertions.diff
|
233
|
-
#
|
234
|
-
# source://minitest//lib/minitest/assertions.rb#214
|
235
|
-
def assert_equal(exp, act, msg = T.unsafe(nil)); end
|
236
|
-
|
237
|
-
# For comparing Floats. Fails unless +exp+ and +act+ are within +delta+
|
238
|
-
# of each other.
|
239
|
-
#
|
240
|
-
# assert_in_delta Math::PI, (22.0 / 7.0), 0.01
|
241
|
-
#
|
242
|
-
# source://minitest//lib/minitest/assertions.rb#235
|
243
|
-
def assert_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
|
244
|
-
|
245
|
-
# For comparing Floats. Fails unless +exp+ and +act+ have a relative
|
246
|
-
# error less than +epsilon+.
|
247
|
-
#
|
248
|
-
# source://minitest//lib/minitest/assertions.rb#247
|
249
|
-
def assert_in_epsilon(exp, act, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
|
250
|
-
|
251
|
-
# Fails unless +collection+ includes +obj+.
|
252
|
-
#
|
253
|
-
# source://minitest//lib/minitest/assertions.rb#254
|
254
|
-
def assert_includes(collection, obj, msg = T.unsafe(nil)); end
|
255
|
-
|
256
|
-
# Fails unless +obj+ is an instance of +cls+.
|
257
|
-
#
|
258
|
-
# source://minitest//lib/minitest/assertions.rb#265
|
259
|
-
def assert_instance_of(cls, obj, msg = T.unsafe(nil)); end
|
260
|
-
|
261
|
-
# Fails unless +obj+ is a kind of +cls+.
|
262
|
-
#
|
263
|
-
# source://minitest//lib/minitest/assertions.rb#276
|
264
|
-
def assert_kind_of(cls, obj, msg = T.unsafe(nil)); end
|
265
|
-
|
266
|
-
# Fails unless +matcher+ <tt>=~</tt> +obj+.
|
267
|
-
#
|
268
|
-
# source://minitest//lib/minitest/assertions.rb#287
|
269
|
-
def assert_match(matcher, obj, msg = T.unsafe(nil)); end
|
270
|
-
|
271
|
-
# Fails unless +obj+ is nil
|
272
|
-
#
|
273
|
-
# source://minitest//lib/minitest/assertions.rb#299
|
274
|
-
def assert_nil(obj, msg = T.unsafe(nil)); end
|
275
|
-
|
276
|
-
# For testing with binary operators. Eg:
|
277
|
-
#
|
278
|
-
# assert_operator 5, :<=, 4
|
279
|
-
#
|
280
|
-
# source://minitest//lib/minitest/assertions.rb#309
|
281
|
-
def assert_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
|
282
|
-
|
283
|
-
# Fails if stdout or stderr do not output the expected results.
|
284
|
-
# Pass in nil if you don't care about that streams output. Pass in
|
285
|
-
# "" if you require it to be silent. Pass in a regexp if you want
|
286
|
-
# to pattern match.
|
287
|
-
#
|
288
|
-
# assert_output(/hey/) { method_with_output }
|
289
|
-
#
|
290
|
-
# NOTE: this uses #capture_io, not #capture_subprocess_io.
|
291
|
-
#
|
292
|
-
# See also: #assert_silent
|
293
|
-
#
|
294
|
-
# source://minitest//lib/minitest/assertions.rb#327
|
295
|
-
def assert_output(stdout = T.unsafe(nil), stderr = T.unsafe(nil)); end
|
296
|
-
|
297
|
-
# Fails unless +path+ exists.
|
298
|
-
#
|
299
|
-
# source://minitest//lib/minitest/assertions.rb#351
|
300
|
-
def assert_path_exists(path, msg = T.unsafe(nil)); end
|
301
|
-
|
302
|
-
# For testing with pattern matching (only supported with Ruby 3.0 and later)
|
303
|
-
#
|
304
|
-
# # pass
|
305
|
-
# assert_pattern { [1,2,3] => [Integer, Integer, Integer] }
|
306
|
-
#
|
307
|
-
# # fail "length mismatch (given 3, expected 1)"
|
308
|
-
# assert_pattern { [1,2,3] => [Integer] }
|
309
|
-
#
|
310
|
-
# The bare <tt>=></tt> pattern will raise a NoMatchingPatternError on failure, which would
|
311
|
-
# normally be counted as a test error. This assertion rescues NoMatchingPatternError and
|
312
|
-
# generates a test failure. Any other exception will be raised as normal and generate a test
|
313
|
-
# error.
|
314
|
-
#
|
315
|
-
# @raise [NotImplementedError]
|
316
|
-
#
|
317
|
-
# source://minitest//lib/minitest/assertions.rb#370
|
318
|
-
def assert_pattern; end
|
319
|
-
|
320
|
-
# For testing with predicates. Eg:
|
321
|
-
#
|
322
|
-
# assert_predicate str, :empty?
|
323
|
-
#
|
324
|
-
# This is really meant for specs and is front-ended by assert_operator:
|
325
|
-
#
|
326
|
-
# str.must_be :empty?
|
327
|
-
#
|
328
|
-
# source://minitest//lib/minitest/assertions.rb#391
|
329
|
-
def assert_predicate(o1, op, msg = T.unsafe(nil)); end
|
330
|
-
|
331
|
-
# Fails unless the block raises one of +exp+. Returns the
|
332
|
-
# exception matched so you can check the message, attributes, etc.
|
333
|
-
#
|
334
|
-
# +exp+ takes an optional message on the end to help explain
|
335
|
-
# failures and defaults to StandardError if no exception class is
|
336
|
-
# passed. Eg:
|
337
|
-
#
|
338
|
-
# assert_raises(CustomError) { method_with_custom_error }
|
339
|
-
#
|
340
|
-
# With custom error message:
|
341
|
-
#
|
342
|
-
# assert_raises(CustomError, 'This should have raised CustomError') { method_with_custom_error }
|
343
|
-
#
|
344
|
-
# Using the returned object:
|
345
|
-
#
|
346
|
-
# error = assert_raises(CustomError) do
|
347
|
-
# raise CustomError, 'This is really bad'
|
348
|
-
# end
|
349
|
-
#
|
350
|
-
# assert_equal 'This is really bad', error.message
|
351
|
-
#
|
352
|
-
# source://minitest//lib/minitest/assertions.rb#418
|
353
|
-
def assert_raises(*exp); end
|
354
|
-
|
355
|
-
# Fails unless +obj+ responds to +meth+.
|
356
|
-
# include_all defaults to false to match Object#respond_to?
|
357
|
-
#
|
358
|
-
# source://minitest//lib/minitest/assertions.rb#450
|
359
|
-
def assert_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end
|
360
|
-
|
361
|
-
# Fails unless +exp+ and +act+ are #equal?
|
362
|
-
#
|
363
|
-
# source://minitest//lib/minitest/assertions.rb#460
|
364
|
-
def assert_same(exp, act, msg = T.unsafe(nil)); end
|
365
|
-
|
366
|
-
# +send_ary+ is a receiver, message and arguments.
|
367
|
-
#
|
368
|
-
# Fails unless the call returns a true value
|
369
|
-
#
|
370
|
-
# source://minitest//lib/minitest/assertions.rb#473
|
371
|
-
def assert_send(send_ary, m = T.unsafe(nil)); end
|
372
|
-
|
373
|
-
# Fails if the block outputs anything to stderr or stdout.
|
374
|
-
#
|
375
|
-
# See also: #assert_output
|
376
|
-
#
|
377
|
-
# source://minitest//lib/minitest/assertions.rb#488
|
378
|
-
def assert_silent; end
|
379
|
-
|
380
|
-
# Fails unless the block throws +sym+
|
381
|
-
#
|
382
|
-
# source://minitest//lib/minitest/assertions.rb#497
|
383
|
-
def assert_throws(sym, msg = T.unsafe(nil)); end
|
384
|
-
|
385
|
-
# Captures $stdout and $stderr into strings:
|
386
|
-
#
|
387
|
-
# out, err = capture_io do
|
388
|
-
# puts "Some info"
|
389
|
-
# warn "You did a bad thing"
|
390
|
-
# end
|
391
|
-
#
|
392
|
-
# assert_match %r%info%, out
|
393
|
-
# assert_match %r%bad%, err
|
394
|
-
#
|
395
|
-
# NOTE: For efficiency, this method uses StringIO and does not
|
396
|
-
# capture IO for subprocesses. Use #capture_subprocess_io for
|
397
|
-
# that.
|
398
|
-
#
|
399
|
-
# source://minitest//lib/minitest/assertions.rb#538
|
400
|
-
def capture_io; end
|
401
|
-
|
402
|
-
# Captures $stdout and $stderr into strings, using Tempfile to
|
403
|
-
# ensure that subprocess IO is captured as well.
|
404
|
-
#
|
405
|
-
# out, err = capture_subprocess_io do
|
406
|
-
# system "echo Some info"
|
407
|
-
# system "echo You did a bad thing 1>&2"
|
408
|
-
# end
|
409
|
-
#
|
410
|
-
# assert_match %r%info%, out
|
411
|
-
# assert_match %r%bad%, err
|
412
|
-
#
|
413
|
-
# NOTE: This method is approximately 10x slower than #capture_io so
|
414
|
-
# only use it when you need to test the output of a subprocess.
|
415
|
-
#
|
416
|
-
# source://minitest//lib/minitest/assertions.rb#571
|
417
|
-
def capture_subprocess_io; end
|
418
|
-
|
419
|
-
# Returns a diff between +exp+ and +act+. If there is no known
|
420
|
-
# diff command or if it doesn't make sense to diff the output
|
421
|
-
# (single line, short output), then it simply returns a basic
|
422
|
-
# comparison between the two.
|
423
|
-
#
|
424
|
-
# See +things_to_diff+ for more info.
|
425
|
-
#
|
426
|
-
# source://minitest//lib/minitest/assertions.rb#57
|
427
|
-
def diff(exp, act); end
|
428
|
-
|
429
|
-
# Returns details for exception +e+
|
430
|
-
#
|
431
|
-
# source://minitest//lib/minitest/assertions.rb#603
|
432
|
-
def exception_details(e, msg); end
|
433
|
-
|
434
|
-
# Fails after a given date (in the local time zone). This allows
|
435
|
-
# you to put time-bombs in your tests if you need to keep
|
436
|
-
# something around until a later date lest you forget about it.
|
437
|
-
#
|
438
|
-
# source://minitest//lib/minitest/assertions.rb#619
|
439
|
-
def fail_after(y, m, d, msg); end
|
440
|
-
|
441
|
-
# Fails with +msg+.
|
442
|
-
#
|
443
|
-
# source://minitest//lib/minitest/assertions.rb#626
|
444
|
-
def flunk(msg = T.unsafe(nil)); end
|
445
|
-
|
446
|
-
# Returns a proc that will output +msg+ along with the default message.
|
447
|
-
#
|
448
|
-
# source://minitest//lib/minitest/assertions.rb#634
|
449
|
-
def message(msg = T.unsafe(nil), ending = T.unsafe(nil), &default); end
|
450
|
-
|
451
|
-
# This returns a human-readable version of +obj+. By default
|
452
|
-
# #inspect is called. You can override this to use #pretty_inspect
|
453
|
-
# if you want.
|
454
|
-
#
|
455
|
-
# See Minitest::Test.make_my_diffs_pretty!
|
456
|
-
#
|
457
|
-
# source://minitest//lib/minitest/assertions.rb#127
|
458
|
-
def mu_pp(obj); end
|
459
|
-
|
460
|
-
# This returns a diff-able more human-readable version of +obj+.
|
461
|
-
# This differs from the regular mu_pp because it expands escaped
|
462
|
-
# newlines and makes hex-values (like object_ids) generic. This
|
463
|
-
# uses mu_pp to do the first pass and then cleans it up.
|
464
|
-
#
|
465
|
-
# source://minitest//lib/minitest/assertions.rb#145
|
466
|
-
def mu_pp_for_diff(obj); end
|
467
|
-
|
468
|
-
# used for counting assertions
|
469
|
-
#
|
470
|
-
# source://minitest//lib/minitest/assertions.rb#645
|
471
|
-
def pass(_msg = T.unsafe(nil)); end
|
472
|
-
|
473
|
-
# Fails if +test+ is truthy.
|
474
|
-
#
|
475
|
-
# source://minitest//lib/minitest/assertions.rb#652
|
476
|
-
def refute(test, msg = T.unsafe(nil)); end
|
477
|
-
|
478
|
-
# Fails if +obj+ is empty.
|
479
|
-
#
|
480
|
-
# source://minitest//lib/minitest/assertions.rb#660
|
481
|
-
def refute_empty(obj, msg = T.unsafe(nil)); end
|
482
|
-
|
483
|
-
# Fails if <tt>exp == act</tt>.
|
484
|
-
#
|
485
|
-
# For floats use refute_in_delta.
|
486
|
-
#
|
487
|
-
# source://minitest//lib/minitest/assertions.rb#671
|
488
|
-
def refute_equal(exp, act, msg = T.unsafe(nil)); end
|
489
|
-
|
490
|
-
# For comparing Floats. Fails if +exp+ is within +delta+ of +act+.
|
491
|
-
#
|
492
|
-
# refute_in_delta Math::PI, (22.0 / 7.0)
|
493
|
-
#
|
494
|
-
# source://minitest//lib/minitest/assertions.rb#683
|
495
|
-
def refute_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
|
496
|
-
|
497
|
-
# For comparing Floats. Fails if +exp+ and +act+ have a relative error
|
498
|
-
# less than +epsilon+.
|
499
|
-
#
|
500
|
-
# source://minitest//lib/minitest/assertions.rb#695
|
501
|
-
def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
|
502
|
-
|
503
|
-
# Fails if +collection+ includes +obj+.
|
504
|
-
#
|
505
|
-
# source://minitest//lib/minitest/assertions.rb#702
|
506
|
-
def refute_includes(collection, obj, msg = T.unsafe(nil)); end
|
507
|
-
|
508
|
-
# Fails if +obj+ is an instance of +cls+.
|
509
|
-
#
|
510
|
-
# source://minitest//lib/minitest/assertions.rb#713
|
511
|
-
def refute_instance_of(cls, obj, msg = T.unsafe(nil)); end
|
512
|
-
|
513
|
-
# Fails if +obj+ is a kind of +cls+.
|
514
|
-
#
|
515
|
-
# source://minitest//lib/minitest/assertions.rb#723
|
516
|
-
def refute_kind_of(cls, obj, msg = T.unsafe(nil)); end
|
517
|
-
|
518
|
-
# Fails if +matcher+ <tt>=~</tt> +obj+.
|
519
|
-
#
|
520
|
-
# source://minitest//lib/minitest/assertions.rb#731
|
521
|
-
def refute_match(matcher, obj, msg = T.unsafe(nil)); end
|
522
|
-
|
523
|
-
# Fails if +obj+ is nil.
|
524
|
-
#
|
525
|
-
# source://minitest//lib/minitest/assertions.rb#741
|
526
|
-
def refute_nil(obj, msg = T.unsafe(nil)); end
|
527
|
-
|
528
|
-
# Fails if +o1+ is not +op+ +o2+. Eg:
|
529
|
-
#
|
530
|
-
# refute_operator 1, :>, 2 #=> pass
|
531
|
-
# refute_operator 1, :<, 2 #=> fail
|
532
|
-
#
|
533
|
-
# source://minitest//lib/minitest/assertions.rb#776
|
534
|
-
def refute_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
|
535
|
-
|
536
|
-
# Fails if +path+ exists.
|
537
|
-
#
|
538
|
-
# source://minitest//lib/minitest/assertions.rb#785
|
539
|
-
def refute_path_exists(path, msg = T.unsafe(nil)); end
|
540
|
-
|
541
|
-
# For testing with pattern matching (only supported with Ruby 3.0 and later)
|
542
|
-
#
|
543
|
-
# # pass
|
544
|
-
# refute_pattern { [1,2,3] => [String] }
|
545
|
-
#
|
546
|
-
# # fail "NoMatchingPatternError expected, but nothing was raised."
|
547
|
-
# refute_pattern { [1,2,3] => [Integer, Integer, Integer] }
|
548
|
-
#
|
549
|
-
# This assertion expects a NoMatchingPatternError exception, and will fail if none is raised. Any
|
550
|
-
# other exceptions will be raised as normal and generate a test error.
|
551
|
-
#
|
552
|
-
# @raise [NotImplementedError]
|
553
|
-
#
|
554
|
-
# source://minitest//lib/minitest/assertions.rb#758
|
555
|
-
def refute_pattern; end
|
556
|
-
|
557
|
-
# For testing with predicates.
|
558
|
-
#
|
559
|
-
# refute_predicate str, :empty?
|
560
|
-
#
|
561
|
-
# This is really meant for specs and is front-ended by refute_operator:
|
562
|
-
#
|
563
|
-
# str.wont_be :empty?
|
564
|
-
#
|
565
|
-
# source://minitest//lib/minitest/assertions.rb#799
|
566
|
-
def refute_predicate(o1, op, msg = T.unsafe(nil)); end
|
567
|
-
|
568
|
-
# Fails if +obj+ responds to the message +meth+.
|
569
|
-
# include_all defaults to false to match Object#respond_to?
|
570
|
-
#
|
571
|
-
# source://minitest//lib/minitest/assertions.rb#808
|
572
|
-
def refute_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end
|
573
|
-
|
574
|
-
# Fails if +exp+ is the same (by object identity) as +act+.
|
575
|
-
#
|
576
|
-
# source://minitest//lib/minitest/assertions.rb#817
|
577
|
-
def refute_same(exp, act, msg = T.unsafe(nil)); end
|
578
|
-
|
579
|
-
# Skips the current run. If run in verbose-mode, the skipped run
|
580
|
-
# gets listed at the end of the run but doesn't cause a failure
|
581
|
-
# exit code.
|
582
|
-
#
|
583
|
-
# @raise [Minitest::Skip]
|
584
|
-
#
|
585
|
-
# source://minitest//lib/minitest/assertions.rb#830
|
586
|
-
def skip(msg = T.unsafe(nil), _ignored = T.unsafe(nil)); end
|
587
|
-
|
588
|
-
# Skips the current run until a given date (in the local time
|
589
|
-
# zone). This allows you to put some fixes on hold until a later
|
590
|
-
# date, but still holds you accountable and prevents you from
|
591
|
-
# forgetting it.
|
592
|
-
#
|
593
|
-
# source://minitest//lib/minitest/assertions.rb#842
|
594
|
-
def skip_until(y, m, d, msg); end
|
595
|
-
|
596
|
-
# Was this testcase skipped? Meant for #teardown.
|
597
|
-
#
|
598
|
-
# @return [Boolean]
|
599
|
-
#
|
600
|
-
# source://minitest//lib/minitest/assertions.rb#851
|
601
|
-
def skipped?; end
|
602
|
-
|
603
|
-
# Returns things to diff [expect, butwas], or [nil, nil] if nothing to diff.
|
604
|
-
#
|
605
|
-
# Criterion:
|
606
|
-
#
|
607
|
-
# 1. Strings include newlines or escaped newlines, but not both.
|
608
|
-
# 2. or: String lengths are > 30 characters.
|
609
|
-
# 3. or: Strings are equal to each other (but maybe different encodings?).
|
610
|
-
# 4. and: we found a diff executable.
|
611
|
-
#
|
612
|
-
# source://minitest//lib/minitest/assertions.rb#102
|
613
|
-
def things_to_diff(exp, act); end
|
614
|
-
|
615
|
-
class << self
|
616
|
-
# Returns the diff command to use in #diff. Tries to intelligently
|
617
|
-
# figure out what diff to use.
|
618
|
-
#
|
619
|
-
# source://minitest//lib/minitest/assertions.rb#27
|
620
|
-
def diff; end
|
621
|
-
|
622
|
-
# Set the diff command to use in #diff.
|
623
|
-
#
|
624
|
-
# source://minitest//lib/minitest/assertions.rb#45
|
625
|
-
def diff=(o); end
|
626
|
-
end
|
627
|
-
end
|
628
|
-
|
629
|
-
# source://minitest//lib/minitest/assertions.rb#199
|
630
|
-
Minitest::Assertions::E = T.let(T.unsafe(nil), String)
|
631
|
-
|
632
|
-
# source://minitest//lib/minitest/assertions.rb#17
|
633
|
-
Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object)
|
634
|
-
|
635
|
-
# The standard backtrace filter for minitest.
|
636
|
-
#
|
637
|
-
# See Minitest.backtrace_filter=.
|
638
|
-
#
|
639
|
-
# source://minitest//lib/minitest.rb#1175
|
640
|
-
class Minitest::BacktraceFilter
|
641
|
-
# @return [BacktraceFilter] a new instance of BacktraceFilter
|
642
|
-
#
|
643
|
-
# source://minitest//lib/minitest.rb#1184
|
644
|
-
def initialize(regexp = T.unsafe(nil)); end
|
645
|
-
|
646
|
-
# Filter +bt+ to something useful. Returns the whole thing if
|
647
|
-
# $DEBUG (ruby) or $MT_DEBUG (env).
|
648
|
-
#
|
649
|
-
# source://minitest//lib/minitest.rb#1192
|
650
|
-
def filter(bt); end
|
651
|
-
|
652
|
-
# The regular expression to use to filter backtraces. Defaults to +MT_RE+.
|
653
|
-
#
|
654
|
-
# source://minitest//lib/minitest.rb#1182
|
655
|
-
def regexp; end
|
656
|
-
|
657
|
-
# The regular expression to use to filter backtraces. Defaults to +MT_RE+.
|
658
|
-
#
|
659
|
-
# source://minitest//lib/minitest.rb#1182
|
660
|
-
def regexp=(_arg0); end
|
661
|
-
end
|
662
|
-
|
663
|
-
# source://minitest//lib/minitest.rb#1177
|
664
|
-
Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp)
|
665
|
-
|
666
|
-
# Dispatch to multiple reporters as one.
|
667
|
-
#
|
668
|
-
# source://minitest//lib/minitest.rb#969
|
669
|
-
class Minitest::CompositeReporter < ::Minitest::AbstractReporter
|
670
|
-
# @return [CompositeReporter] a new instance of CompositeReporter
|
671
|
-
#
|
672
|
-
# source://minitest//lib/minitest.rb#975
|
673
|
-
def initialize(*reporters); end
|
674
|
-
|
675
|
-
# Add another reporter to the mix.
|
676
|
-
#
|
677
|
-
# source://minitest//lib/minitest.rb#987
|
678
|
-
def <<(reporter); end
|
679
|
-
|
680
|
-
# source://minitest//lib/minitest.rb#980
|
681
|
-
def io; end
|
682
|
-
|
683
|
-
# @return [Boolean]
|
684
|
-
#
|
685
|
-
# source://minitest//lib/minitest.rb#991
|
686
|
-
def passed?; end
|
687
|
-
|
688
|
-
# source://minitest//lib/minitest.rb#999
|
689
|
-
def prerecord(klass, name); end
|
690
|
-
|
691
|
-
# source://minitest//lib/minitest.rb#1006
|
692
|
-
def record(result); end
|
693
|
-
|
694
|
-
# source://minitest//lib/minitest.rb#1012
|
695
|
-
def report; end
|
696
|
-
|
697
|
-
# The list of reporters to dispatch to.
|
698
|
-
#
|
699
|
-
# source://minitest//lib/minitest.rb#973
|
700
|
-
def reporters; end
|
701
|
-
|
702
|
-
# The list of reporters to dispatch to.
|
703
|
-
#
|
704
|
-
# source://minitest//lib/minitest.rb#973
|
705
|
-
def reporters=(_arg0); end
|
706
|
-
|
707
|
-
# source://minitest//lib/minitest.rb#995
|
708
|
-
def start; end
|
709
|
-
end
|
710
|
-
|
711
|
-
# Compresses backtraces.
|
712
|
-
#
|
713
|
-
# source://minitest//lib/minitest/compress.rb#5
|
714
|
-
module Minitest::Compress
|
715
|
-
# Takes a backtrace (array of strings) and compresses repeating
|
716
|
-
# cycles in it to make it more readable.
|
717
|
-
#
|
718
|
-
# source://minitest//lib/minitest/compress.rb#11
|
719
|
-
def compress(orig); end
|
720
|
-
end
|
721
|
-
|
722
|
-
# Provides a simple set of guards that you can use in your tests
|
723
|
-
# to skip execution if it is not applicable. These methods are
|
724
|
-
# mixed into Test as both instance and class methods so you
|
725
|
-
# can use them inside or outside of the test methods.
|
726
|
-
#
|
727
|
-
# def test_something_for_mri
|
728
|
-
# skip "bug 1234" if jruby?
|
729
|
-
# # ...
|
730
|
-
# end
|
731
|
-
#
|
732
|
-
# if windows? then
|
733
|
-
# # ... lots of test methods ...
|
734
|
-
# end
|
735
|
-
#
|
736
|
-
# source://minitest//lib/minitest.rb#1119
|
737
|
-
module Minitest::Guard
|
738
|
-
# Is this running on jruby?
|
739
|
-
#
|
740
|
-
# @return [Boolean]
|
741
|
-
#
|
742
|
-
# source://minitest//lib/minitest.rb#1124
|
743
|
-
def jruby?(platform = T.unsafe(nil)); end
|
744
|
-
|
745
|
-
# Is this running on maglev?
|
746
|
-
#
|
747
|
-
# @return [Boolean]
|
748
|
-
#
|
749
|
-
# source://minitest//lib/minitest.rb#1131
|
750
|
-
def maglev?(platform = T.unsafe(nil)); end
|
751
|
-
|
752
|
-
# Is this running on mri?
|
753
|
-
#
|
754
|
-
# @return [Boolean]
|
755
|
-
#
|
756
|
-
# source://minitest//lib/minitest.rb#1141
|
757
|
-
def mri?(platform = T.unsafe(nil)); end
|
758
|
-
|
759
|
-
# Is this running on macOS?
|
760
|
-
#
|
761
|
-
# @return [Boolean]
|
762
|
-
#
|
763
|
-
# source://minitest//lib/minitest.rb#1148
|
764
|
-
def osx?(platform = T.unsafe(nil)); end
|
765
|
-
|
766
|
-
# Is this running on rubinius?
|
767
|
-
#
|
768
|
-
# @return [Boolean]
|
769
|
-
#
|
770
|
-
# source://minitest//lib/minitest.rb#1155
|
771
|
-
def rubinius?(platform = T.unsafe(nil)); end
|
772
|
-
|
773
|
-
# Is this running on windows?
|
774
|
-
#
|
775
|
-
# @return [Boolean]
|
776
|
-
#
|
777
|
-
# source://minitest//lib/minitest.rb#1165
|
778
|
-
def windows?(platform = T.unsafe(nil)); end
|
779
|
-
end
|
780
|
-
|
781
|
-
# source://minitest//lib/minitest/parallel.rb#2
|
782
|
-
module Minitest::Parallel; end
|
783
|
-
|
784
|
-
# The engine used to run multiple tests in parallel.
|
785
|
-
#
|
786
|
-
# source://minitest//lib/minitest/parallel.rb#7
|
787
|
-
class Minitest::Parallel::Executor
|
788
|
-
# Create a parallel test executor of with +size+ workers.
|
789
|
-
#
|
790
|
-
# @return [Executor] a new instance of Executor
|
791
|
-
#
|
792
|
-
# source://minitest//lib/minitest/parallel.rb#17
|
793
|
-
def initialize(size); end
|
794
|
-
|
795
|
-
# Add a job to the queue
|
796
|
-
#
|
797
|
-
# source://minitest//lib/minitest/parallel.rb#43
|
798
|
-
def <<(work); end
|
799
|
-
|
800
|
-
# Shuts down the pool of workers by signalling them to quit and
|
801
|
-
# waiting for them all to finish what they're currently working
|
802
|
-
# on.
|
803
|
-
#
|
804
|
-
# source://minitest//lib/minitest/parallel.rb#50
|
805
|
-
def shutdown; end
|
806
|
-
|
807
|
-
# The size of the pool of workers.
|
808
|
-
#
|
809
|
-
# source://minitest//lib/minitest/parallel.rb#12
|
810
|
-
def size; end
|
811
|
-
|
812
|
-
# Start the executor
|
813
|
-
#
|
814
|
-
# source://minitest//lib/minitest/parallel.rb#26
|
815
|
-
def start; end
|
816
|
-
end
|
817
|
-
|
818
|
-
# source://minitest//lib/minitest/parallel.rb#56
|
819
|
-
module Minitest::Parallel::Test
|
820
|
-
# source://minitest//lib/minitest/parallel.rb#57
|
821
|
-
def _synchronize; end
|
822
|
-
end
|
823
|
-
|
824
|
-
# source://minitest//lib/minitest/parallel.rb#59
|
825
|
-
module Minitest::Parallel::Test::ClassMethods
|
826
|
-
# source://minitest//lib/minitest/parallel.rb#60
|
827
|
-
def run_one_method(klass, method_name, reporter); end
|
828
|
-
|
829
|
-
# source://minitest//lib/minitest/parallel.rb#64
|
830
|
-
def test_order; end
|
831
|
-
end
|
832
|
-
|
833
|
-
# A very simple reporter that prints the "dots" during the run.
|
834
|
-
#
|
835
|
-
# This is added to the top-level CompositeReporter at the start of
|
836
|
-
# the run. If you want to change the output of minitest via a
|
837
|
-
# plugin, pull this out of the composite and replace it with your
|
838
|
-
# own.
|
839
|
-
#
|
840
|
-
# source://minitest//lib/minitest.rb#759
|
841
|
-
class Minitest::ProgressReporter < ::Minitest::Reporter
|
842
|
-
# source://minitest//lib/minitest.rb#760
|
843
|
-
def prerecord(klass, name); end
|
844
|
-
|
845
|
-
# source://minitest//lib/minitest.rb#767
|
846
|
-
def record(result); end
|
847
|
-
end
|
848
|
-
|
849
|
-
# Shared code for anything that can get passed to a Reporter. See
|
850
|
-
# Minitest::Test & Minitest::Result.
|
851
|
-
#
|
852
|
-
# source://minitest//lib/minitest.rb#581
|
853
|
-
module Minitest::Reportable
|
854
|
-
# @raise [NotImplementedError]
|
855
|
-
#
|
856
|
-
# source://minitest//lib/minitest.rb#603
|
857
|
-
def class_name; end
|
858
|
-
|
859
|
-
# Did this run error?
|
860
|
-
#
|
861
|
-
# @return [Boolean]
|
862
|
-
#
|
863
|
-
# source://minitest//lib/minitest.rb#624
|
864
|
-
def error?; end
|
865
|
-
|
866
|
-
# The location identifier of this test. Depends on a method
|
867
|
-
# existing called class_name.
|
868
|
-
#
|
869
|
-
# source://minitest//lib/minitest.rb#598
|
870
|
-
def location; end
|
871
|
-
|
872
|
-
# Did this run pass?
|
873
|
-
#
|
874
|
-
# Note: skipped runs are not considered passing, but they don't
|
875
|
-
# cause the process to exit non-zero.
|
876
|
-
#
|
877
|
-
# @return [Boolean]
|
878
|
-
#
|
879
|
-
# source://minitest//lib/minitest.rb#588
|
880
|
-
def passed?; end
|
881
|
-
|
882
|
-
# Returns ".", "F", or "E" based on the result of the run.
|
883
|
-
#
|
884
|
-
# source://minitest//lib/minitest.rb#610
|
885
|
-
def result_code; end
|
886
|
-
|
887
|
-
# Was this run skipped?
|
888
|
-
#
|
889
|
-
# @return [Boolean]
|
890
|
-
#
|
891
|
-
# source://minitest//lib/minitest.rb#617
|
892
|
-
def skipped?; end
|
893
|
-
end
|
894
|
-
|
895
|
-
# source://minitest//lib/minitest.rb#592
|
896
|
-
Minitest::Reportable::BASE_DIR = T.let(T.unsafe(nil), String)
|
897
|
-
|
898
|
-
# source://minitest//lib/minitest.rb#735
|
899
|
-
class Minitest::Reporter < ::Minitest::AbstractReporter
|
900
|
-
# @return [Reporter] a new instance of Reporter
|
901
|
-
#
|
902
|
-
# source://minitest//lib/minitest.rb#744
|
903
|
-
def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
|
904
|
-
|
905
|
-
# The IO used to report.
|
906
|
-
#
|
907
|
-
# source://minitest//lib/minitest.rb#737
|
908
|
-
def io; end
|
909
|
-
|
910
|
-
# The IO used to report.
|
911
|
-
#
|
912
|
-
# source://minitest//lib/minitest.rb#737
|
913
|
-
def io=(_arg0); end
|
914
|
-
|
915
|
-
# Command-line options for this run.
|
916
|
-
#
|
917
|
-
# source://minitest//lib/minitest.rb#742
|
918
|
-
def options; end
|
919
|
-
|
920
|
-
# Command-line options for this run.
|
921
|
-
#
|
922
|
-
# source://minitest//lib/minitest.rb#742
|
923
|
-
def options=(_arg0); end
|
924
|
-
end
|
925
|
-
|
926
|
-
# This represents a test result in a clean way that can be
|
927
|
-
# marshalled over a wire. Tests can do anything they want to the
|
928
|
-
# test instance and can create conditions that cause Marshal.dump to
|
929
|
-
# blow up. By using Result.from(a_test) you can be reasonably sure
|
930
|
-
# that the test result can be marshalled.
|
931
|
-
#
|
932
|
-
# source://minitest//lib/minitest.rb#636
|
933
|
-
class Minitest::Result < ::Minitest::Runnable
|
934
|
-
include ::Minitest::Reportable
|
935
|
-
|
936
|
-
# source://minitest//lib/minitest.rb#670
|
937
|
-
def class_name; end
|
938
|
-
|
939
|
-
# The class name of the test result.
|
940
|
-
#
|
941
|
-
# source://minitest//lib/minitest.rb#645
|
942
|
-
def klass; end
|
943
|
-
|
944
|
-
# The class name of the test result.
|
945
|
-
#
|
946
|
-
# source://minitest//lib/minitest.rb#645
|
947
|
-
def klass=(_arg0); end
|
948
|
-
|
949
|
-
# The location of the test method.
|
950
|
-
#
|
951
|
-
# source://minitest//lib/minitest.rb#650
|
952
|
-
def source_location; end
|
953
|
-
|
954
|
-
# The location of the test method.
|
955
|
-
#
|
956
|
-
# source://minitest//lib/minitest.rb#650
|
957
|
-
def source_location=(_arg0); end
|
958
|
-
|
959
|
-
# source://minitest//lib/minitest.rb#674
|
960
|
-
def to_s; end
|
961
|
-
|
962
|
-
class << self
|
963
|
-
# Create a new test result from a Runnable instance.
|
964
|
-
#
|
965
|
-
# source://minitest//lib/minitest.rb#655
|
966
|
-
def from(runnable); end
|
967
|
-
end
|
968
|
-
end
|
969
|
-
|
970
|
-
# re-open
|
971
|
-
#
|
972
|
-
# source://minitest//lib/minitest.rb#349
|
973
|
-
class Minitest::Runnable
|
974
|
-
# @return [Runnable] a new instance of Runnable
|
975
|
-
#
|
976
|
-
# source://minitest//lib/minitest.rb#512
|
977
|
-
def initialize(name); end
|
978
|
-
|
979
|
-
# Number of assertions executed in this run.
|
980
|
-
#
|
981
|
-
# source://minitest//lib/minitest.rb#353
|
982
|
-
def assertions; end
|
983
|
-
|
984
|
-
# Number of assertions executed in this run.
|
985
|
-
#
|
986
|
-
# source://minitest//lib/minitest.rb#353
|
987
|
-
def assertions=(_arg0); end
|
988
|
-
|
989
|
-
# source://minitest//lib/minitest.rb#508
|
990
|
-
def failure; end
|
991
|
-
|
992
|
-
# An assertion raised during the run, if any.
|
993
|
-
#
|
994
|
-
# source://minitest//lib/minitest.rb#358
|
995
|
-
def failures; end
|
996
|
-
|
997
|
-
# An assertion raised during the run, if any.
|
998
|
-
#
|
999
|
-
# source://minitest//lib/minitest.rb#358
|
1000
|
-
def failures=(_arg0); end
|
1001
|
-
|
1002
|
-
# source://minitest//lib/minitest.rb#494
|
1003
|
-
def marshal_dump; end
|
1004
|
-
|
1005
|
-
# source://minitest//lib/minitest.rb#504
|
1006
|
-
def marshal_load(ary); end
|
1007
|
-
|
1008
|
-
# Metadata you attach to the test results that get sent to the reporter.
|
1009
|
-
#
|
1010
|
-
# Lazily initializes to a hash, to keep memory down.
|
1011
|
-
#
|
1012
|
-
# NOTE: this data *must* be plain (read: marshal-able) data!
|
1013
|
-
# Hashes! Arrays! Strings!
|
1014
|
-
#
|
1015
|
-
# source://minitest//lib/minitest.rb#527
|
1016
|
-
def metadata; end
|
1017
|
-
|
1018
|
-
# Sets metadata, mainly used for +Result.from+.
|
1019
|
-
#
|
1020
|
-
# source://minitest//lib/minitest.rb#534
|
1021
|
-
def metadata=(_arg0); end
|
1022
|
-
|
1023
|
-
# Returns true if metadata exists.
|
1024
|
-
#
|
1025
|
-
# @return [Boolean]
|
1026
|
-
#
|
1027
|
-
# source://minitest//lib/minitest.rb#539
|
1028
|
-
def metadata?; end
|
1029
|
-
|
1030
|
-
# Name of the run.
|
1031
|
-
#
|
1032
|
-
# source://minitest//lib/minitest.rb#376
|
1033
|
-
def name; end
|
1034
|
-
|
1035
|
-
# Set the name of the run.
|
1036
|
-
#
|
1037
|
-
# source://minitest//lib/minitest.rb#383
|
1038
|
-
def name=(o); end
|
1039
|
-
|
1040
|
-
# Did this run pass?
|
1041
|
-
#
|
1042
|
-
# Note: skipped runs are not considered passing, but they don't
|
1043
|
-
# cause the process to exit non-zero.
|
1044
|
-
#
|
1045
|
-
# @raise [NotImplementedError]
|
1046
|
-
# @return [Boolean]
|
1047
|
-
#
|
1048
|
-
# source://minitest//lib/minitest.rb#556
|
1049
|
-
def passed?; end
|
1050
|
-
|
1051
|
-
# Returns a single character string to print based on the result
|
1052
|
-
# of the run. One of <tt>"."</tt>, <tt>"F"</tt>,
|
1053
|
-
# <tt>"E"</tt> or <tt>"S"</tt>.
|
1054
|
-
#
|
1055
|
-
# @raise [NotImplementedError]
|
1056
|
-
#
|
1057
|
-
# source://minitest//lib/minitest.rb#565
|
1058
|
-
def result_code; end
|
1059
|
-
|
1060
|
-
# Runs a single method. Needs to return self.
|
1061
|
-
#
|
1062
|
-
# @raise [NotImplementedError]
|
1063
|
-
#
|
1064
|
-
# source://minitest//lib/minitest.rb#546
|
1065
|
-
def run; end
|
1066
|
-
|
1067
|
-
# Was this run skipped? See #passed? for more information.
|
1068
|
-
#
|
1069
|
-
# @raise [NotImplementedError]
|
1070
|
-
# @return [Boolean]
|
1071
|
-
#
|
1072
|
-
# source://minitest//lib/minitest.rb#572
|
1073
|
-
def skipped?; end
|
1074
|
-
|
1075
|
-
# The time it took to run.
|
1076
|
-
#
|
1077
|
-
# source://minitest//lib/minitest.rb#363
|
1078
|
-
def time; end
|
1079
|
-
|
1080
|
-
# The time it took to run.
|
1081
|
-
#
|
1082
|
-
# source://minitest//lib/minitest.rb#363
|
1083
|
-
def time=(_arg0); end
|
1084
|
-
|
1085
|
-
# source://minitest//lib/minitest.rb#365
|
1086
|
-
def time_it; end
|
1087
|
-
|
1088
|
-
class << self
|
1089
|
-
# source://minitest//lib/minitest.rb#1226
|
1090
|
-
def inherited(klass); end
|
1091
|
-
|
1092
|
-
# Returns all instance methods matching the pattern +re+.
|
1093
|
-
#
|
1094
|
-
# source://minitest//lib/minitest.rb#390
|
1095
|
-
def methods_matching(re); end
|
1096
|
-
|
1097
|
-
# source://minitest//lib/minitest.rb#464
|
1098
|
-
def on_signal(name, action); end
|
1099
|
-
|
1100
|
-
# source://minitest//lib/minitest.rb#394
|
1101
|
-
def reset; end
|
1102
|
-
|
1103
|
-
# Responsible for running all runnable methods in a given class,
|
1104
|
-
# each in its own instance. Each instance is passed to the
|
1105
|
-
# reporter to record.
|
1106
|
-
#
|
1107
|
-
# source://minitest//lib/minitest.rb#405
|
1108
|
-
def run(reporter, options = T.unsafe(nil)); end
|
1109
|
-
|
1110
|
-
# Runs a single method and has the reporter record the result.
|
1111
|
-
# This was considered internal API but is factored out of run so
|
1112
|
-
# that subclasses can specialize the running of an individual
|
1113
|
-
# test. See Minitest::ParallelTest::ClassMethods for an example.
|
1114
|
-
#
|
1115
|
-
# source://minitest//lib/minitest.rb#445
|
1116
|
-
def run_one_method(klass, method_name, reporter); end
|
1117
|
-
|
1118
|
-
# Each subclass of Runnable is responsible for overriding this
|
1119
|
-
# method to return all runnable methods. See #methods_matching.
|
1120
|
-
#
|
1121
|
-
# @raise [NotImplementedError]
|
1122
|
-
#
|
1123
|
-
# source://minitest//lib/minitest.rb#481
|
1124
|
-
def runnable_methods; end
|
1125
|
-
|
1126
|
-
# Returns all subclasses of Runnable.
|
1127
|
-
#
|
1128
|
-
# source://minitest//lib/minitest.rb#488
|
1129
|
-
def runnables; end
|
1130
|
-
|
1131
|
-
# Defines the order to run tests (:random by default). Override
|
1132
|
-
# this or use a convenience method to change it for your tests.
|
1133
|
-
#
|
1134
|
-
# source://minitest//lib/minitest.rb#454
|
1135
|
-
def test_order; end
|
1136
|
-
|
1137
|
-
# source://minitest//lib/minitest.rb#458
|
1138
|
-
def with_info_handler(reporter, &block); end
|
1139
|
-
end
|
1140
|
-
end
|
1141
|
-
|
1142
|
-
# source://minitest//lib/minitest.rb#462
|
1143
|
-
Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash)
|
1144
|
-
|
1145
|
-
# Assertion raised when skipping a run.
|
1146
|
-
#
|
1147
|
-
# source://minitest//lib/minitest.rb#1050
|
1148
|
-
class Minitest::Skip < ::Minitest::Assertion
|
1149
|
-
# source://minitest//lib/minitest.rb#1051
|
1150
|
-
def result_label; end
|
1151
|
-
end
|
1152
|
-
|
1153
|
-
# A reporter that gathers statistics about a test run. Does not do
|
1154
|
-
# any IO because meant to be used as a parent class for a reporter
|
1155
|
-
# that does.
|
1156
|
-
#
|
1157
|
-
# If you want to create an entirely different type of output (eg,
|
1158
|
-
# CI, HTML, etc), this is the place to start.
|
1159
|
-
#
|
1160
|
-
# Example:
|
1161
|
-
#
|
1162
|
-
# class JenkinsCIReporter < StatisticsReporter
|
1163
|
-
# def report
|
1164
|
-
# super # Needed to calculate some statistics
|
1165
|
-
#
|
1166
|
-
# print "<testsuite "
|
1167
|
-
# print "tests='#{count}' "
|
1168
|
-
# print "failures='#{failures}' "
|
1169
|
-
# # Remaining XML...
|
1170
|
-
# end
|
1171
|
-
# end
|
1172
|
-
#
|
1173
|
-
# source://minitest//lib/minitest.rb#795
|
1174
|
-
class Minitest::StatisticsReporter < ::Minitest::Reporter
|
1175
|
-
# @return [StatisticsReporter] a new instance of StatisticsReporter
|
1176
|
-
#
|
1177
|
-
# source://minitest//lib/minitest.rb#844
|
1178
|
-
def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
|
1179
|
-
|
1180
|
-
# Total number of assertions.
|
1181
|
-
#
|
1182
|
-
# source://minitest//lib/minitest.rb#799
|
1183
|
-
def assertions; end
|
1184
|
-
|
1185
|
-
# Total number of assertions.
|
1186
|
-
#
|
1187
|
-
# source://minitest//lib/minitest.rb#799
|
1188
|
-
def assertions=(_arg0); end
|
1189
|
-
|
1190
|
-
# Total number of test cases.
|
1191
|
-
#
|
1192
|
-
# source://minitest//lib/minitest.rb#804
|
1193
|
-
def count; end
|
1194
|
-
|
1195
|
-
# Total number of test cases.
|
1196
|
-
#
|
1197
|
-
# source://minitest//lib/minitest.rb#804
|
1198
|
-
def count=(_arg0); end
|
1199
|
-
|
1200
|
-
# Total number of tests that erred.
|
1201
|
-
#
|
1202
|
-
# source://minitest//lib/minitest.rb#832
|
1203
|
-
def errors; end
|
1204
|
-
|
1205
|
-
# Total number of tests that erred.
|
1206
|
-
#
|
1207
|
-
# source://minitest//lib/minitest.rb#832
|
1208
|
-
def errors=(_arg0); end
|
1209
|
-
|
1210
|
-
# Total number of tests that failed.
|
1211
|
-
#
|
1212
|
-
# source://minitest//lib/minitest.rb#827
|
1213
|
-
def failures; end
|
1214
|
-
|
1215
|
-
# Total number of tests that failed.
|
1216
|
-
#
|
1217
|
-
# source://minitest//lib/minitest.rb#827
|
1218
|
-
def failures=(_arg0); end
|
1219
|
-
|
1220
|
-
# @return [Boolean]
|
1221
|
-
#
|
1222
|
-
# source://minitest//lib/minitest.rb#858
|
1223
|
-
def passed?; end
|
1224
|
-
|
1225
|
-
# source://minitest//lib/minitest.rb#866
|
1226
|
-
def record(result); end
|
1227
|
-
|
1228
|
-
# Report on the tracked statistics.
|
1229
|
-
#
|
1230
|
-
# source://minitest//lib/minitest.rb#876
|
1231
|
-
def report; end
|
1232
|
-
|
1233
|
-
# An +Array+ of test cases that failed or were skipped.
|
1234
|
-
#
|
1235
|
-
# source://minitest//lib/minitest.rb#809
|
1236
|
-
def results; end
|
1237
|
-
|
1238
|
-
# An +Array+ of test cases that failed or were skipped.
|
1239
|
-
#
|
1240
|
-
# source://minitest//lib/minitest.rb#809
|
1241
|
-
def results=(_arg0); end
|
1242
|
-
|
1243
|
-
# Total number of tests that where skipped.
|
1244
|
-
#
|
1245
|
-
# source://minitest//lib/minitest.rb#842
|
1246
|
-
def skips; end
|
1247
|
-
|
1248
|
-
# Total number of tests that where skipped.
|
1249
|
-
#
|
1250
|
-
# source://minitest//lib/minitest.rb#842
|
1251
|
-
def skips=(_arg0); end
|
1252
|
-
|
1253
|
-
# source://minitest//lib/minitest.rb#862
|
1254
|
-
def start; end
|
1255
|
-
|
1256
|
-
# Time the test run started. If available, the monotonic clock is
|
1257
|
-
# used and this is a +Float+, otherwise it's an instance of
|
1258
|
-
# +Time+.
|
1259
|
-
#
|
1260
|
-
# source://minitest//lib/minitest.rb#816
|
1261
|
-
def start_time; end
|
1262
|
-
|
1263
|
-
# Time the test run started. If available, the monotonic clock is
|
1264
|
-
# used and this is a +Float+, otherwise it's an instance of
|
1265
|
-
# +Time+.
|
1266
|
-
#
|
1267
|
-
# source://minitest//lib/minitest.rb#816
|
1268
|
-
def start_time=(_arg0); end
|
1269
|
-
|
1270
|
-
# Test run time. If available, the monotonic clock is used and
|
1271
|
-
# this is a +Float+, otherwise it's an instance of +Time+.
|
1272
|
-
#
|
1273
|
-
# source://minitest//lib/minitest.rb#822
|
1274
|
-
def total_time; end
|
1275
|
-
|
1276
|
-
# Test run time. If available, the monotonic clock is used and
|
1277
|
-
# this is a +Float+, otherwise it's an instance of +Time+.
|
1278
|
-
#
|
1279
|
-
# source://minitest//lib/minitest.rb#822
|
1280
|
-
def total_time=(_arg0); end
|
1281
|
-
|
1282
|
-
# Total number of tests that warned.
|
1283
|
-
#
|
1284
|
-
# source://minitest//lib/minitest.rb#837
|
1285
|
-
def warnings; end
|
1286
|
-
|
1287
|
-
# Total number of tests that warned.
|
1288
|
-
#
|
1289
|
-
# source://minitest//lib/minitest.rb#837
|
1290
|
-
def warnings=(_arg0); end
|
1291
|
-
end
|
1292
|
-
|
1293
|
-
# A reporter that prints the header, summary, and failure details at
|
1294
|
-
# the end of the run.
|
1295
|
-
#
|
1296
|
-
# This is added to the top-level CompositeReporter at the start of
|
1297
|
-
# the run. If you want to change the output of minitest via a
|
1298
|
-
# plugin, pull this out of the composite and replace it with your
|
1299
|
-
# own.
|
1300
|
-
#
|
1301
|
-
# source://minitest//lib/minitest.rb#897
|
1302
|
-
class Minitest::SummaryReporter < ::Minitest::StatisticsReporter
|
1303
|
-
# source://minitest//lib/minitest.rb#930
|
1304
|
-
def aggregated_results(io); end
|
1305
|
-
|
1306
|
-
# source://minitest//lib/minitest.rb#899
|
1307
|
-
def old_sync; end
|
1308
|
-
|
1309
|
-
# source://minitest//lib/minitest.rb#899
|
1310
|
-
def old_sync=(_arg0); end
|
1311
|
-
|
1312
|
-
# source://minitest//lib/minitest.rb#913
|
1313
|
-
def report; end
|
1314
|
-
|
1315
|
-
# source://minitest//lib/minitest.rb#901
|
1316
|
-
def start; end
|
1317
|
-
|
1318
|
-
# source://minitest//lib/minitest.rb#925
|
1319
|
-
def statistics; end
|
1320
|
-
|
1321
|
-
# source://minitest//lib/minitest.rb#950
|
1322
|
-
def summary; end
|
1323
|
-
|
1324
|
-
# source://minitest//lib/minitest.rb#898
|
1325
|
-
def sync; end
|
1326
|
-
|
1327
|
-
# source://minitest//lib/minitest.rb#898
|
1328
|
-
def sync=(_arg0); end
|
1329
|
-
|
1330
|
-
# source://minitest//lib/minitest.rb#946
|
1331
|
-
def to_s; end
|
1332
|
-
end
|
1333
|
-
|
1334
|
-
# Subclass Test to create your own tests. Typically you'll want a
|
1335
|
-
# Test subclass per implementation class.
|
1336
|
-
#
|
1337
|
-
# See Minitest::Assertions
|
1338
|
-
#
|
1339
|
-
# source://minitest//lib/minitest/test.rb#10
|
1340
|
-
class Minitest::Test < ::Minitest::Runnable
|
1341
|
-
include ::Minitest::Assertions
|
1342
|
-
include ::Minitest::Reportable
|
1343
|
-
include ::Minitest::Test::LifecycleHooks
|
1344
|
-
include ::Minitest::Guard
|
1345
|
-
extend ::Minitest::Guard
|
1346
|
-
|
1347
|
-
# LifecycleHooks
|
1348
|
-
#
|
1349
|
-
# source://minitest//lib/minitest/test.rb#189
|
1350
|
-
def capture_exceptions; end
|
1351
|
-
|
1352
|
-
# source://minitest//lib/minitest/test.rb#15
|
1353
|
-
def class_name; end
|
1354
|
-
|
1355
|
-
# source://minitest//lib/minitest/test.rb#206
|
1356
|
-
def neuter_exception(e); end
|
1357
|
-
|
1358
|
-
# source://minitest//lib/minitest/test.rb#217
|
1359
|
-
def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end
|
1360
|
-
|
1361
|
-
# Runs a single test with setup/teardown hooks.
|
1362
|
-
#
|
1363
|
-
# source://minitest//lib/minitest/test.rb#87
|
1364
|
-
def run; end
|
1365
|
-
|
1366
|
-
# source://minitest//lib/minitest/test.rb#199
|
1367
|
-
def sanitize_exception(e); end
|
1368
|
-
|
1369
|
-
class << self
|
1370
|
-
# Call this at the top of your tests when you absolutely
|
1371
|
-
# positively need to have ordered tests. In doing so, you're
|
1372
|
-
# admitting that you suck and your tests are weak.
|
1373
|
-
#
|
1374
|
-
# source://minitest//lib/minitest/test.rb#35
|
1375
|
-
def i_suck_and_my_tests_are_order_dependent!; end
|
1376
|
-
|
1377
|
-
# Returns the value of attribute io_lock.
|
1378
|
-
#
|
1379
|
-
# source://minitest//lib/minitest/test.rb#26
|
1380
|
-
def io_lock; end
|
1381
|
-
|
1382
|
-
# Sets the attribute io_lock
|
1383
|
-
#
|
1384
|
-
# @param value the value to set the attribute io_lock to.
|
1385
|
-
#
|
1386
|
-
# source://minitest//lib/minitest/test.rb#26
|
1387
|
-
def io_lock=(_arg0); end
|
1388
|
-
|
1389
|
-
# Make diffs for this Test use #pretty_inspect so that diff
|
1390
|
-
# in assert_equal can have more details. NOTE: this is much slower
|
1391
|
-
# than the regular inspect but much more usable for complex
|
1392
|
-
# objects.
|
1393
|
-
#
|
1394
|
-
# source://minitest//lib/minitest/test.rb#48
|
1395
|
-
def make_my_diffs_pretty!; end
|
1396
|
-
|
1397
|
-
# Call this at the top of your tests (inside the +Minitest::Test+
|
1398
|
-
# subclass or +describe+ block) when you want to run your tests in
|
1399
|
-
# parallel. In doing so, you're admitting that you rule and your
|
1400
|
-
# tests are awesome.
|
1401
|
-
#
|
1402
|
-
# source://minitest//lib/minitest/test.rb#60
|
1403
|
-
def parallelize_me!; end
|
1404
|
-
|
1405
|
-
# Returns all instance methods starting with "test_". Based on
|
1406
|
-
# #test_order, the methods are either sorted, randomized
|
1407
|
-
# (default), or run in parallel.
|
1408
|
-
#
|
1409
|
-
# source://minitest//lib/minitest/test.rb#70
|
1410
|
-
def runnable_methods; end
|
1411
|
-
end
|
1412
|
-
end
|
1413
|
-
|
1414
|
-
# Provides before/after hooks for setup and teardown. These are
|
1415
|
-
# meant for library writers, NOT for regular test authors. See
|
1416
|
-
# #before_setup for an example.
|
1417
|
-
#
|
1418
|
-
# source://minitest//lib/minitest/test.rb#112
|
1419
|
-
module Minitest::Test::LifecycleHooks
|
1420
|
-
# Runs before every test, after setup. This hook is meant for
|
1421
|
-
# libraries to extend minitest. It is not meant to be used by
|
1422
|
-
# test developers.
|
1423
|
-
#
|
1424
|
-
# See #before_setup for an example.
|
1425
|
-
#
|
1426
|
-
# source://minitest//lib/minitest/test.rb#162
|
1427
|
-
def after_setup; end
|
1428
|
-
|
1429
|
-
# Runs after every test, after teardown. This hook is meant for
|
1430
|
-
# libraries to extend minitest. It is not meant to be used by
|
1431
|
-
# test developers.
|
1432
|
-
#
|
1433
|
-
# See #before_setup for an example.
|
1434
|
-
#
|
1435
|
-
# source://minitest//lib/minitest/test.rb#186
|
1436
|
-
def after_teardown; end
|
1437
|
-
|
1438
|
-
# Runs before every test, before setup. This hook is meant for
|
1439
|
-
# libraries to extend minitest. It is not meant to be used by
|
1440
|
-
# test developers.
|
1441
|
-
#
|
1442
|
-
# As a simplistic example:
|
1443
|
-
#
|
1444
|
-
# module MyMinitestPlugin
|
1445
|
-
# def before_setup
|
1446
|
-
# super
|
1447
|
-
# # ... stuff to do before setup is run
|
1448
|
-
# end
|
1449
|
-
#
|
1450
|
-
# def after_setup
|
1451
|
-
# # ... stuff to do after setup is run
|
1452
|
-
# super
|
1453
|
-
# end
|
1454
|
-
#
|
1455
|
-
# def before_teardown
|
1456
|
-
# super
|
1457
|
-
# # ... stuff to do before teardown is run
|
1458
|
-
# end
|
1459
|
-
#
|
1460
|
-
# def after_teardown
|
1461
|
-
# # ... stuff to do after teardown is run
|
1462
|
-
# super
|
1463
|
-
# end
|
1464
|
-
# end
|
1465
|
-
#
|
1466
|
-
# class Minitest::Test
|
1467
|
-
# include MyMinitestPlugin
|
1468
|
-
# end
|
1469
|
-
#
|
1470
|
-
# source://minitest//lib/minitest/test.rb#147
|
1471
|
-
def before_setup; end
|
1472
|
-
|
1473
|
-
# Runs after every test, before teardown. This hook is meant for
|
1474
|
-
# libraries to extend minitest. It is not meant to be used by
|
1475
|
-
# test developers.
|
1476
|
-
#
|
1477
|
-
# See #before_setup for an example.
|
1478
|
-
#
|
1479
|
-
# source://minitest//lib/minitest/test.rb#171
|
1480
|
-
def before_teardown; end
|
1481
|
-
|
1482
|
-
# Runs before every test. Use this to set up before each test
|
1483
|
-
# run.
|
1484
|
-
#
|
1485
|
-
# source://minitest//lib/minitest/test.rb#153
|
1486
|
-
def setup; end
|
1487
|
-
|
1488
|
-
# Runs after every test. Use this to clean up after each test
|
1489
|
-
# run.
|
1490
|
-
#
|
1491
|
-
# source://minitest//lib/minitest/test.rb#177
|
1492
|
-
def teardown; end
|
1493
|
-
end
|
1494
|
-
|
1495
|
-
# source://minitest//lib/minitest/test.rb#19
|
1496
|
-
Minitest::Test::PASSTHROUGH_EXCEPTIONS = T.let(T.unsafe(nil), Array)
|
1497
|
-
|
1498
|
-
# source://minitest//lib/minitest/test.rb#21
|
1499
|
-
Minitest::Test::SETUP_METHODS = T.let(T.unsafe(nil), Array)
|
1500
|
-
|
1501
|
-
# source://minitest//lib/minitest/test.rb#23
|
1502
|
-
Minitest::Test::TEARDOWN_METHODS = T.let(T.unsafe(nil), Array)
|
1503
|
-
|
1504
|
-
# Assertion wrapping an unexpected error that was raised during a run.
|
1505
|
-
#
|
1506
|
-
# source://minitest//lib/minitest.rb#1059
|
1507
|
-
class Minitest::UnexpectedError < ::Minitest::Assertion
|
1508
|
-
include ::Minitest::Compress
|
1509
|
-
|
1510
|
-
# @return [UnexpectedError] a new instance of UnexpectedError
|
1511
|
-
#
|
1512
|
-
# source://minitest//lib/minitest.rb#1065
|
1513
|
-
def initialize(error); end
|
1514
|
-
|
1515
|
-
# source://minitest//lib/minitest.rb#1078
|
1516
|
-
def backtrace; end
|
1517
|
-
|
1518
|
-
# TODO: figure out how to use `cause` instead
|
1519
|
-
#
|
1520
|
-
# source://minitest//lib/minitest.rb#1063
|
1521
|
-
def error; end
|
1522
|
-
|
1523
|
-
# TODO: figure out how to use `cause` instead
|
1524
|
-
#
|
1525
|
-
# source://minitest//lib/minitest.rb#1063
|
1526
|
-
def error=(_arg0); end
|
1527
|
-
|
1528
|
-
# source://minitest//lib/minitest.rb#1084
|
1529
|
-
def message; end
|
1530
|
-
|
1531
|
-
# source://minitest//lib/minitest.rb#1090
|
1532
|
-
def result_label; end
|
1533
|
-
end
|
1534
|
-
|
1535
|
-
# source://minitest//lib/minitest.rb#1082
|
1536
|
-
Minitest::UnexpectedError::BASE_RE = T.let(T.unsafe(nil), Regexp)
|
1537
|
-
|
1538
|
-
# Assertion raised on warning when running in -Werror mode.
|
1539
|
-
#
|
1540
|
-
# source://minitest//lib/minitest.rb#1098
|
1541
|
-
class Minitest::UnexpectedWarning < ::Minitest::Assertion
|
1542
|
-
# source://minitest//lib/minitest.rb#1099
|
1543
|
-
def result_label; end
|
1544
|
-
end
|
1545
|
-
|
1546
|
-
# source://minitest//lib/minitest.rb#13
|
1547
|
-
Minitest::VERSION = T.let(T.unsafe(nil), String)
|