inkcpp_rb 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +1 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +84 -0
- data/LICENSE +7 -0
- data/README.md +3 -0
- data/Rakefile +16 -0
- data/bin/console +15 -0
- data/bin/setup +10 -0
- data/bin/tapioca +29 -0
- data/ext/inkcpp_rb/extconf.rb +19 -0
- data/ext/inkcpp_rb/inkcpp/.clang-format +99 -0
- data/ext/inkcpp_rb/inkcpp/.github/FUNDING.yml +1 -0
- data/ext/inkcpp_rb/inkcpp/.github/workflows/build.yml +344 -0
- data/ext/inkcpp_rb/inkcpp/.github/workflows/release.yml +49 -0
- data/ext/inkcpp_rb/inkcpp/.gitignore +25 -0
- data/ext/inkcpp_rb/inkcpp/.gitmodules +9 -0
- data/ext/inkcpp_rb/inkcpp/CMakeLists.txt +170 -0
- data/ext/inkcpp_rb/inkcpp/CODE_OF_CONDUCT.md +76 -0
- data/ext/inkcpp_rb/inkcpp/CONTRIBUTING.md +55 -0
- data/ext/inkcpp_rb/inkcpp/Config.cmake.in +2 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/cmake_example/CMakeLists.txt +13 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/cmake_example/main.c +38 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/cmake_example/main.cpp +40 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/cmake_example/test.ink +8 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/cmake_example/test.ink.json +1 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/cmake_example.zip +0 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/unreal/InkCPP_DEMO.zip +0 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/unreal/imgs/CreateThread.png +0 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/unreal/imgs/HandleChoice.png +0 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/unreal/imgs/ListElementOf.png +0 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/unreal/imgs/MinimalRuntime.png +0 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/unreal/imgs/MinimalThread.png +0 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/unreal/imgs/ObseverChange.png +0 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/unreal/imgs/TagListGetValue.png +0 -0
- data/ext/inkcpp_rb/inkcpp/Documentation/unreal/imgs/YieldResume.png +0 -0
- data/ext/inkcpp_rb/inkcpp/Doxyfile +2825 -0
- data/ext/inkcpp_rb/inkcpp/LICENSE.txt +22 -0
- data/ext/inkcpp_rb/inkcpp/Minimal.runsettings +8 -0
- data/ext/inkcpp_rb/inkcpp/README.md +192 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/CMakeLists.txt +67 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/array.h +481 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/avl_array.h +833 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/casting.h +93 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/choice.cpp +54 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/collections/restorable.cpp +124 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/collections/restorable.h +406 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/container_operations.cpp +52 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/container_operations.h +34 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/executioner.h +179 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/functional.cpp +86 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/functions.cpp +54 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/functions.h +40 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/globals_impl.cpp +289 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/globals_impl.h +149 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/header.cpp +44 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/include/choice.h +106 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/include/functional.h +327 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/include/globals.h +196 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/include/list.h +187 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/include/runner.h +291 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/include/snapshot.h +61 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/include/story.h +219 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/include/story_ptr.h +233 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/include/traits.h +270 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/include/types.h +169 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/list_impl.cpp +79 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/list_impl.h +39 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/list_operations.cpp +276 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/list_operations.h +356 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/list_table.cpp +841 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/list_table.h +450 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/numeric_operations.cpp +40 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/numeric_operations.h +529 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/operation_bases.h +164 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/operations.h +100 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/output.cpp +528 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/output.h +153 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/platform.h +22 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/random.h +38 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/runner_impl.cpp +1396 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/runner_impl.h +336 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/simple_restorable_stack.h +335 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/snapshot_impl.cpp +182 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/snapshot_impl.h +91 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/snapshot_interface.h +57 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/stack.cpp +618 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/stack.h +243 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/story_impl.cpp +361 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/story_impl.h +92 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/story_ptr.cpp +75 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/string_operations.cpp +125 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/string_operations.h +67 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/string_table.cpp +149 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/string_table.h +47 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/string_utils.h +207 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/system.cpp +39 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/tuple.hpp +151 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/value.cpp +279 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp/value.h +666 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_c/CMakeLists.txt +62 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_c/include/inkcpp.h +393 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_c/inkcpp.cpp +344 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_c/inkcpp_c.pc.in +10 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_c/tests/ExternalFunction.c +56 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_c/tests/Globals.c +98 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_c/tests/Lists.c +73 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_c/tests/Observer.c +36 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_c/tests/Snapshot.c +65 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_cl/CMakeLists.txt +49 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_cl/inkcpp_cl.cpp +215 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_cl/test.cpp +209 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_cl/test.h +8 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/CMakeLists.txt +37 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/binary_emitter.cpp +446 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/binary_emitter.h +70 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/binary_stream.cpp +166 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/binary_stream.h +79 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/command.cpp +107 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/compiler.cpp +96 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/emitter.cpp +62 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/emitter.h +104 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/include/compilation_results.h +22 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/include/compiler.h +44 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/json.hpp +24596 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/json_compiler.cpp +411 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/json_compiler.h +62 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/list_data.cpp +47 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/list_data.h +70 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/reporter.cpp +107 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_compiler/reporter.h +55 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_py/CMakeLists.txt +19 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_py/example.py +78 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_py/src/module.cpp +317 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_py/tests/conftest.py +53 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_py/tests/test_ExternalFunctions.py +35 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_py/tests/test_Globals.py +40 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_py/tests/test_Lists.py +43 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_py/tests/test_Observer.py +27 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_py/tests/test_Snapshot.py +57 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_py/unreal_example.ink +71 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/Array.cpp +115 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/CMakeLists.txt +117 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/Callstack.cpp +392 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/EmptyStringForDivert.cpp +36 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ExternalFunctionsExecuteProperly.cpp +34 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/FallbackFunction.cpp +77 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/Globals.cpp +73 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/InkyJson.cpp +34 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/LabelCondition.cpp +60 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/Lists.cpp +144 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/LookaheadSafe.cpp +46 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/Main.cpp +7 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/MoveTo.cpp +95 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/NewLines.cpp +76 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/NoEarlyTags.cpp +33 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/Observer.cpp +245 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/Pointer.cpp +191 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/Restorable.cpp +294 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/SpaceAfterBracketChoice.cpp +45 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/Stack.cpp +224 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/Tags.cpp +131 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ThirdTierChoiceAfterBrackets.cpp +38 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/UTF8.cpp +56 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/Value.cpp +210 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/catch.hpp +17970 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/AHF.ink +7 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/ChoiceBracketStory.ink +7 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/EmptyStringForDivert.ink +13 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/ExternalFunctionsExecuteProperly.ink +11 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/FallBack.ink +15 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/GlobalStory.ink +9 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/LabelConditionStory.ink +5 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/LinesStory.ink +42 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/ListLogicStory.ink +40 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/ListStory.ink +8 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/LookaheadSafe.ink +14 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/MoveTo.ink +36 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/NoEarlyTags.ink +19 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/ObserverStory.ink +8 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/SimpleStoryFlow.ink +65 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/TagsStory.ink +22 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/TheIntercept.ink +1686 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/ThirdTierChoiceAfterBracketsStory.ink +13 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/UTF-8-demo.txt +212 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/UTF8Story.ink +218 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/simple-1.1.1-inklecate.json +154 -0
- data/ext/inkcpp_rb/inkcpp/inkcpp_test/ink/simple-1.1.1-inky.json +160 -0
- data/ext/inkcpp_rb/inkcpp/notes/ArchitectureNotes.md +54 -0
- data/ext/inkcpp_rb/inkcpp/notes/ListNotes.md +69 -0
- data/ext/inkcpp_rb/inkcpp/notes/OperationNotes.md +35 -0
- data/ext/inkcpp_rb/inkcpp/notes/TagsNotes.md +24 -0
- data/ext/inkcpp_rb/inkcpp/notes/WhitespaceNotes.md +28 -0
- data/ext/inkcpp_rb/inkcpp/proofing/README.md +3 -0
- data/ext/inkcpp_rb/inkcpp/proofing/inkcpp_runtime_driver +12 -0
- data/ext/inkcpp_rb/inkcpp/pyproject.toml +63 -0
- data/ext/inkcpp_rb/inkcpp/setup.py +166 -0
- data/ext/inkcpp_rb/inkcpp/shared/CMakeLists.txt +14 -0
- data/ext/inkcpp_rb/inkcpp/shared/private/command.h +172 -0
- data/ext/inkcpp_rb/inkcpp/shared/private/header.h +46 -0
- data/ext/inkcpp_rb/inkcpp/shared/public/config.h +53 -0
- data/ext/inkcpp_rb/inkcpp/shared/public/system.h +307 -0
- data/ext/inkcpp_rb/inkcpp/shared/public/version.h +14 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestAllSequenceTypes.ink +59 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestArithmetic.ink +17 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestBasicStringLiterals.ink +8 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestBasicTunnel.ink +10 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestBlanksInInlineSequences.ink +51 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestCallStackEvaluation.ink +15 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestChoiceCount.ink +15 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestChoiceDivertsToDone.ink +6 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestChoiceWithBracketsOnly.ink +9 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestCompareDivertTargets.ink +26 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestComplexTunnels.ink +22 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestConditionalChoiceInWeave.ink +19 -0
- data/ext/inkcpp_rb/inkcpp/tests/TestTunnelOnwardsAfterTunnel.ink +17 -0
- data/ext/inkcpp_rb/inkcpp/unreal/CMakeLists.txt +51 -0
- data/ext/inkcpp_rb/inkcpp/unreal/UE_example.ink +92 -0
- data/ext/inkcpp_rb/inkcpp/unreal/blueprint_filter.js +377 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Resources/Icon128.png +0 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Private/InkAsset.cpp +47 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Private/InkChoice.cpp +40 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Private/InkList.cpp +86 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Private/InkRuntime.cpp +265 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Private/InkThread.cpp +239 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Private/InkVar.cpp +143 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Private/TagList.cpp +95 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Private/inkcpp.cpp +13 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/InkAsset.h +50 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/InkChoice.h +58 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/InkDelegates.h +139 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/InkList.h +102 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/InkRuntime.h +177 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/InkSnapshot.h +30 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/InkThread.h +215 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/InkVar.h +245 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/TagList.h +77 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/inkcpp.h +217 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/inkcpp.Build.cs +62 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp_editor/Private/InkAssetFactory.cpp +237 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp_editor/Private/InkAssetFactory.h +43 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp_editor/Private/inkcpp_editor.cpp +13 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp_editor/Private/inklecate_cmd.cpp.in +24 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp_editor/Public/inkcpp_editor.h +9 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp_editor/inkcpp_editor.Build.cs +61 -0
- data/ext/inkcpp_rb/inkcpp/unreal/inkcpp/inkcpp.uplugin +44 -0
- data/ext/inkcpp_rb/inkcpp/unreal/render.css +1 -0
- data/ext/inkcpp_rb/inkcpp_rb.cpp +321 -0
- data/inkcpp_rb.gemspec +54 -0
- data/rbi/inkcpp_rb.rbi +211 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/minitest.rbi +119 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
- data/sorbet/rbi/gems/minitest@5.25.4.rbi +1547 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
- data/sorbet/rbi/gems/prism@1.3.0.rbi +40040 -0
- data/sorbet/rbi/gems/rake-compiler@1.2.8.rbi +9 -0
- data/sorbet/rbi/gems/rake@13.2.1.rbi +3033 -0
- data/sorbet/rbi/gems/rbi@0.2.2.rbi +4527 -0
- data/sorbet/rbi/gems/rice@4.3.3.rbi +44 -0
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
- data/sorbet/rbi/gems/tapioca@0.16.7.rbi +3611 -0
- data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +400 -0
@@ -0,0 +1,1547 @@
|
|
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#733
|
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)
|