win32-api 1.4.8 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (564) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGES +212 -144
  3. data/Dockerfile +99 -0
  4. data/Dockerfile.trunk +17 -0
  5. data/Gemfile +4 -0
  6. data/Gemfile.lock +24 -0
  7. data/MANIFEST +9 -9
  8. data/{README → README.md} +136 -106
  9. data/RELEASE.md +32 -0
  10. data/Rakefile +261 -128
  11. data/appveyor.yml +46 -0
  12. data/build-gem.bat +3 -0
  13. data/ext/Makefile +267 -0
  14. data/ext/api-x64-mingw32.def +2 -0
  15. data/ext/api.o +0 -0
  16. data/ext/api.so +0 -0
  17. data/ext/extconf.rb +15 -11
  18. data/ext/mkmf.log +38 -0
  19. data/ext/win32/api.c +1102 -949
  20. data/ext/win32/api.so +0 -0
  21. data/test.rb +10 -0
  22. data/test/test_win32_api.rb +145 -148
  23. data/test/test_win32_api_callback.rb +74 -74
  24. data/test/test_win32_api_function.rb +66 -66
  25. data/vendor/bundle/ruby/2.5.0/bin/rake +27 -0
  26. data/vendor/bundle/ruby/2.5.0/bin/rake-compiler-dock +27 -0
  27. data/vendor/bundle/ruby/2.5.0/bin/rake-compiler-dock.bat +6 -0
  28. data/vendor/bundle/ruby/2.5.0/bin/rake.bat +6 -0
  29. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/BSDL +22 -0
  30. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/COPYING +57 -0
  31. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/Gemfile +9 -0
  32. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/LEGAL +4 -0
  33. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/README.rdoc +81 -0
  34. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/Rakefile +59 -0
  35. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/bin/console +12 -0
  36. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/bin/setup +6 -0
  37. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/lib/power_assert.rb +98 -0
  38. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/lib/power_assert/colorize.rb +9 -0
  39. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/lib/power_assert/configuration.rb +46 -0
  40. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/lib/power_assert/context.rb +235 -0
  41. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/lib/power_assert/enable_tracepoint_events.rb +91 -0
  42. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/lib/power_assert/inspector.rb +61 -0
  43. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/lib/power_assert/parser.rb +251 -0
  44. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/lib/power_assert/version.rb +3 -0
  45. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.5/power_assert.gemspec +31 -0
  46. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/BSDL +22 -0
  47. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/COPYING +57 -0
  48. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/Gemfile +9 -0
  49. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/LEGAL +4 -0
  50. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/README.rdoc +81 -0
  51. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/Rakefile +59 -0
  52. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/bin/console +12 -0
  53. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/bin/setup +6 -0
  54. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/lib/power_assert.rb +98 -0
  55. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/lib/power_assert/colorize.rb +9 -0
  56. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/lib/power_assert/configuration.rb +46 -0
  57. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/lib/power_assert/context.rb +238 -0
  58. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/lib/power_assert/enable_tracepoint_events.rb +91 -0
  59. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/lib/power_assert/inspector.rb +61 -0
  60. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/lib/power_assert/parser.rb +251 -0
  61. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/lib/power_assert/version.rb +3 -0
  62. data/vendor/bundle/ruby/2.5.0/gems/power_assert-1.1.7/power_assert.gemspec +31 -0
  63. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/CONTRIBUTING.rdoc +43 -0
  64. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/Gemfile +10 -0
  65. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/History.rdoc +2368 -0
  66. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/MIT-LICENSE +21 -0
  67. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/README.rdoc +155 -0
  68. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/Rakefile +41 -0
  69. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/bin/bundle +105 -0
  70. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/bin/console +7 -0
  71. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/bin/rake +29 -0
  72. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/bin/rdoc +29 -0
  73. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/bin/rubocop +29 -0
  74. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/bin/setup +6 -0
  75. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/doc/command_line_usage.rdoc +158 -0
  76. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/doc/example/Rakefile1 +38 -0
  77. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/doc/example/Rakefile2 +35 -0
  78. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/doc/example/a.c +6 -0
  79. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/doc/example/b.c +6 -0
  80. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/doc/example/main.c +11 -0
  81. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/doc/glossary.rdoc +42 -0
  82. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/doc/jamis.rb +592 -0
  83. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/doc/proto_rake.rdoc +127 -0
  84. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/doc/rake.1 +156 -0
  85. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/doc/rakefile.rdoc +622 -0
  86. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/doc/rational.rdoc +151 -0
  87. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/exe/rake +27 -0
  88. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake.rb +71 -0
  89. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb +824 -0
  90. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/backtrace.rb +24 -0
  91. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/clean.rb +78 -0
  92. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/cloneable.rb +17 -0
  93. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/cpu_counter.rb +107 -0
  94. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/default_loader.rb +15 -0
  95. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/dsl_definition.rb +195 -0
  96. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/early_time.rb +22 -0
  97. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/ext/core.rb +26 -0
  98. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/ext/string.rb +176 -0
  99. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_creation_task.rb +25 -0
  100. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb +435 -0
  101. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_task.rb +54 -0
  102. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_utils.rb +134 -0
  103. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_utils_ext.rb +134 -0
  104. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/invocation_chain.rb +57 -0
  105. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/invocation_exception_mixin.rb +17 -0
  106. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/late_time.rb +18 -0
  107. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/linked_list.rb +112 -0
  108. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/loaders/makefile.rb +54 -0
  109. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/multi_task.rb +14 -0
  110. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/name_space.rb +38 -0
  111. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/packagetask.rb +222 -0
  112. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/phony.rb +16 -0
  113. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/private_reader.rb +21 -0
  114. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/promise.rb +100 -0
  115. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/pseudo_status.rb +30 -0
  116. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/rake_module.rb +67 -0
  117. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/rake_test_loader.rb +27 -0
  118. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/rule_recursion_overflow_error.rb +20 -0
  119. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/scope.rb +43 -0
  120. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/task.rb +434 -0
  121. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/task_argument_error.rb +8 -0
  122. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/task_arguments.rb +109 -0
  123. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/task_manager.rb +331 -0
  124. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/tasklib.rb +12 -0
  125. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/testtask.rb +224 -0
  126. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/thread_history_display.rb +49 -0
  127. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/thread_pool.rb +163 -0
  128. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/trace_output.rb +23 -0
  129. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/version.rb +10 -0
  130. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/win32.rb +51 -0
  131. data/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/rake.gemspec +43 -0
  132. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/Dockerfile.jruby +61 -0
  133. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/Dockerfile.mri +122 -0
  134. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/Gemfile +8 -0
  135. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/History.md +130 -0
  136. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/LICENSE.txt +22 -0
  137. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/README.md +162 -0
  138. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/Rakefile +36 -0
  139. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/bin/rake-compiler-dock +18 -0
  140. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/build/mk_i686.rb +16 -0
  141. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/build/patches/rake-compiler-1.0.7/enable-static.diff +13 -0
  142. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/build/patches/ruby-2.5.3/no_sendfile.patch +24 -0
  143. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/build/runas +12 -0
  144. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/build/sigfw.c +45 -0
  145. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/build/strip_wrapper +30 -0
  146. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/build/sudoers +1 -0
  147. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/lib/rake_compiler_dock.rb +66 -0
  148. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/lib/rake_compiler_dock/colors.rb +43 -0
  149. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/lib/rake_compiler_dock/docker_check.rb +350 -0
  150. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/lib/rake_compiler_dock/gem_helper.rb +73 -0
  151. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/lib/rake_compiler_dock/predefined_user_group.rb +5 -0
  152. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/lib/rake_compiler_dock/starter.rb +155 -0
  153. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/lib/rake_compiler_dock/version.rb +4 -0
  154. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/rake-compiler-dock.gemspec +28 -0
  155. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/test/test_environment_variables.rb +54 -0
  156. data/vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/test/test_starter.rb +33 -0
  157. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/COPYING +67 -0
  158. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/GPL +339 -0
  159. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/LGPL +502 -0
  160. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/PSFL +271 -0
  161. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/README.md +101 -0
  162. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/Rakefile +80 -0
  163. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/doc/text/getting-started.md +246 -0
  164. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/doc/text/how-to.md +90 -0
  165. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/doc/text/news.md +1453 -0
  166. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test-unit.rb +34 -0
  167. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit.rb +514 -0
  168. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/assertion-failed-error.rb +25 -0
  169. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/assertions.rb +2256 -0
  170. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/attribute-matcher.rb +26 -0
  171. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/attribute.rb +227 -0
  172. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/auto-runner-loader.rb +17 -0
  173. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/autorunner.rb +537 -0
  174. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/code-snippet-fetcher.rb +56 -0
  175. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/collector.rb +73 -0
  176. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/collector/descendant.rb +19 -0
  177. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/collector/dir.rb +108 -0
  178. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/collector/load.rb +197 -0
  179. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/collector/objectspace.rb +34 -0
  180. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/collector/xml.rb +249 -0
  181. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/color-scheme.rb +198 -0
  182. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/color.rb +134 -0
  183. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/data-sets.rb +116 -0
  184. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/data.rb +371 -0
  185. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/diff.rb +746 -0
  186. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/error.rb +158 -0
  187. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/exception-handler.rb +82 -0
  188. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/failure.rb +169 -0
  189. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/fault-location-detector.rb +100 -0
  190. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/fixture.rb +298 -0
  191. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/notification.rb +138 -0
  192. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/omission.rb +198 -0
  193. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/pending.rb +155 -0
  194. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/priority.rb +196 -0
  195. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/runner/console.rb +84 -0
  196. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/runner/emacs.rb +8 -0
  197. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/runner/xml.rb +15 -0
  198. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/test-suite-creator.rb +103 -0
  199. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/testcase.rb +899 -0
  200. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/testresult.rb +132 -0
  201. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/testsuite.rb +175 -0
  202. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/ui/console/outputlevel.rb +15 -0
  203. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/ui/console/testrunner.rb +750 -0
  204. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/ui/emacs/testrunner.rb +49 -0
  205. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/ui/testrunner.rb +53 -0
  206. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/ui/testrunnermediator.rb +114 -0
  207. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/ui/testrunnerutilities.rb +41 -0
  208. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/ui/xml/testrunner.rb +224 -0
  209. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/util/backtracefilter.rb +59 -0
  210. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/util/method-owner-finder.rb +28 -0
  211. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/util/observable.rb +90 -0
  212. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/util/output.rb +32 -0
  213. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/util/procwrapper.rb +48 -0
  214. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/lib/test/unit/version.rb +5 -0
  215. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/sample/adder.rb +13 -0
  216. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/sample/subtracter.rb +12 -0
  217. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/sample/test_adder.rb +20 -0
  218. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/sample/test_subtracter.rb +20 -0
  219. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/sample/test_user.rb +23 -0
  220. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/collector/test-descendant.rb +182 -0
  221. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/collector/test-load.rb +475 -0
  222. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/collector/test_dir.rb +407 -0
  223. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/collector/test_objectspace.rb +102 -0
  224. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/fixtures/header-label.csv +3 -0
  225. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/fixtures/header-label.tsv +3 -0
  226. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/fixtures/header.csv +3 -0
  227. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/fixtures/header.tsv +3 -0
  228. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/fixtures/no-header.csv +2 -0
  229. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/fixtures/no-header.tsv +2 -0
  230. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/fixtures/plus.csv +3 -0
  231. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/run-test.rb +22 -0
  232. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-assertions.rb +2187 -0
  233. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-attribute-matcher.rb +38 -0
  234. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-attribute.rb +123 -0
  235. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-code-snippet.rb +79 -0
  236. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-color-scheme.rb +82 -0
  237. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-color.rb +47 -0
  238. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-data.rb +419 -0
  239. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-diff.rb +518 -0
  240. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-emacs-runner.rb +60 -0
  241. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-error.rb +26 -0
  242. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-failure.rb +33 -0
  243. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-fault-location-detector.rb +163 -0
  244. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-fixture.rb +713 -0
  245. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-notification.rb +33 -0
  246. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-omission.rb +81 -0
  247. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-pending.rb +70 -0
  248. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-priority.rb +184 -0
  249. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-test-case.rb +1279 -0
  250. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-test-result.rb +113 -0
  251. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-test-suite-creator.rb +97 -0
  252. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/test-test-suite.rb +151 -0
  253. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/testunit-test-util.rb +33 -0
  254. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/ui/test_testrunmediator.rb +20 -0
  255. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/util/test-method-owner-finder.rb +38 -0
  256. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/util/test-output.rb +11 -0
  257. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/util/test_backtracefilter.rb +52 -0
  258. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/util/test_observable.rb +102 -0
  259. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/util/test_procwrapper.rb +36 -0
  260. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/COPYING +67 -0
  261. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/GPL +339 -0
  262. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/LGPL +502 -0
  263. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/PSFL +271 -0
  264. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/README.md +101 -0
  265. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/Rakefile +80 -0
  266. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/doc/text/getting-started.md +246 -0
  267. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/doc/text/how-to.md +90 -0
  268. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/doc/text/news.md +1464 -0
  269. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test-unit.rb +34 -0
  270. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit.rb +514 -0
  271. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/assertion-failed-error.rb +25 -0
  272. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/assertions.rb +2256 -0
  273. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/attribute-matcher.rb +26 -0
  274. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/attribute.rb +227 -0
  275. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/auto-runner-loader.rb +17 -0
  276. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/autorunner.rb +537 -0
  277. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/code-snippet-fetcher.rb +58 -0
  278. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/collector.rb +73 -0
  279. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/collector/descendant.rb +19 -0
  280. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/collector/dir.rb +108 -0
  281. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/collector/load.rb +197 -0
  282. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/collector/objectspace.rb +34 -0
  283. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/collector/xml.rb +249 -0
  284. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/color-scheme.rb +198 -0
  285. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/color.rb +134 -0
  286. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/data-sets.rb +116 -0
  287. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/data.rb +371 -0
  288. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/diff.rb +746 -0
  289. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/error.rb +158 -0
  290. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/exception-handler.rb +82 -0
  291. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/failure.rb +169 -0
  292. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/fault-location-detector.rb +100 -0
  293. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/fixture.rb +298 -0
  294. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/notification.rb +138 -0
  295. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/omission.rb +198 -0
  296. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/pending.rb +155 -0
  297. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/priority.rb +196 -0
  298. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/runner/console.rb +84 -0
  299. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/runner/emacs.rb +8 -0
  300. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/runner/xml.rb +15 -0
  301. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/test-suite-creator.rb +103 -0
  302. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/testcase.rb +899 -0
  303. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/testresult.rb +132 -0
  304. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/testsuite.rb +175 -0
  305. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/ui/console/outputlevel.rb +15 -0
  306. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/ui/console/testrunner.rb +750 -0
  307. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/ui/emacs/testrunner.rb +49 -0
  308. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/ui/testrunner.rb +53 -0
  309. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/ui/testrunnermediator.rb +114 -0
  310. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/ui/testrunnerutilities.rb +41 -0
  311. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/ui/xml/testrunner.rb +224 -0
  312. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/util/backtracefilter.rb +59 -0
  313. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/util/method-owner-finder.rb +28 -0
  314. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/util/observable.rb +90 -0
  315. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/util/output.rb +32 -0
  316. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/util/procwrapper.rb +48 -0
  317. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/lib/test/unit/version.rb +5 -0
  318. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/sample/adder.rb +13 -0
  319. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/sample/subtracter.rb +12 -0
  320. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/sample/test_adder.rb +20 -0
  321. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/sample/test_subtracter.rb +20 -0
  322. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/sample/test_user.rb +23 -0
  323. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/collector/test-descendant.rb +182 -0
  324. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/collector/test-load.rb +475 -0
  325. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/collector/test_dir.rb +407 -0
  326. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/collector/test_objectspace.rb +102 -0
  327. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/fixtures/header-label.csv +3 -0
  328. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/fixtures/header-label.tsv +3 -0
  329. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/fixtures/header.csv +3 -0
  330. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/fixtures/header.tsv +3 -0
  331. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/fixtures/no-header.csv +2 -0
  332. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/fixtures/no-header.tsv +2 -0
  333. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/fixtures/plus.csv +3 -0
  334. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/run-test.rb +22 -0
  335. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-assertions.rb +2187 -0
  336. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-attribute-matcher.rb +38 -0
  337. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-attribute.rb +123 -0
  338. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-code-snippet.rb +79 -0
  339. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-color-scheme.rb +82 -0
  340. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-color.rb +47 -0
  341. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-data.rb +419 -0
  342. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-diff.rb +518 -0
  343. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-emacs-runner.rb +60 -0
  344. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-error.rb +26 -0
  345. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-failure.rb +33 -0
  346. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-fault-location-detector.rb +163 -0
  347. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-fixture.rb +713 -0
  348. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-notification.rb +33 -0
  349. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-omission.rb +81 -0
  350. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-pending.rb +70 -0
  351. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-priority.rb +184 -0
  352. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-test-case.rb +1279 -0
  353. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-test-result.rb +113 -0
  354. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-test-suite-creator.rb +97 -0
  355. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/test-test-suite.rb +151 -0
  356. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/testunit-test-util.rb +33 -0
  357. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb +20 -0
  358. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/util/test-method-owner-finder.rb +38 -0
  359. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/util/test-output.rb +11 -0
  360. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/util/test_backtracefilter.rb +52 -0
  361. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/util/test_observable.rb +102 -0
  362. data/vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/util/test_procwrapper.rb +36 -0
  363. data/vendor/bundle/ruby/2.5.0/specifications/power_assert-1.1.5.gemspec +54 -0
  364. data/vendor/bundle/ruby/2.5.0/specifications/power_assert-1.1.7.gemspec +54 -0
  365. data/vendor/bundle/ruby/2.5.0/specifications/rake-13.0.1.gemspec +26 -0
  366. data/vendor/bundle/ruby/2.5.0/specifications/rake-compiler-dock-0.7.2.gemspec +40 -0
  367. data/vendor/bundle/ruby/2.5.0/specifications/test-unit-3.3.4.gemspec +48 -0
  368. data/vendor/bundle/ruby/2.5.0/specifications/test-unit-3.3.5.gemspec +48 -0
  369. data/vendor/bundle/ruby/2.7.0/bin/rake +27 -0
  370. data/vendor/bundle/ruby/2.7.0/bin/rake.bat +2 -0
  371. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/BSDL +22 -0
  372. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/COPYING +57 -0
  373. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/Gemfile +9 -0
  374. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/LEGAL +4 -0
  375. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/README.rdoc +81 -0
  376. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/Rakefile +59 -0
  377. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/bin/console +12 -0
  378. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/bin/setup +6 -0
  379. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/lib/power_assert.rb +98 -0
  380. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/lib/power_assert/colorize.rb +9 -0
  381. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/lib/power_assert/configuration.rb +46 -0
  382. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/lib/power_assert/context.rb +238 -0
  383. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/lib/power_assert/enable_tracepoint_events.rb +91 -0
  384. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/lib/power_assert/inspector.rb +61 -0
  385. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/lib/power_assert/parser.rb +251 -0
  386. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/lib/power_assert/version.rb +3 -0
  387. data/vendor/bundle/ruby/2.7.0/gems/power_assert-1.1.7/power_assert.gemspec +31 -0
  388. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/CONTRIBUTING.rdoc +43 -0
  389. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/Gemfile +10 -0
  390. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/History.rdoc +2368 -0
  391. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/MIT-LICENSE +21 -0
  392. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/README.rdoc +155 -0
  393. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/Rakefile +41 -0
  394. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/bin/bundle +105 -0
  395. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/bin/console +7 -0
  396. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/bin/rake +29 -0
  397. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/bin/rdoc +29 -0
  398. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/bin/rubocop +29 -0
  399. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/bin/setup +6 -0
  400. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/doc/command_line_usage.rdoc +158 -0
  401. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/doc/example/Rakefile1 +38 -0
  402. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/doc/example/Rakefile2 +35 -0
  403. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/doc/example/a.c +6 -0
  404. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/doc/example/b.c +6 -0
  405. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/doc/example/main.c +11 -0
  406. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/doc/glossary.rdoc +42 -0
  407. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/doc/jamis.rb +592 -0
  408. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/doc/proto_rake.rdoc +127 -0
  409. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/doc/rake.1 +156 -0
  410. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/doc/rakefile.rdoc +622 -0
  411. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/doc/rational.rdoc +151 -0
  412. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/exe/rake +27 -0
  413. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake.rb +71 -0
  414. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/application.rb +824 -0
  415. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/backtrace.rb +24 -0
  416. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/clean.rb +78 -0
  417. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/cloneable.rb +17 -0
  418. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/cpu_counter.rb +107 -0
  419. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/default_loader.rb +15 -0
  420. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/dsl_definition.rb +195 -0
  421. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/early_time.rb +22 -0
  422. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/ext/core.rb +26 -0
  423. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/ext/string.rb +176 -0
  424. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/file_creation_task.rb +25 -0
  425. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/file_list.rb +435 -0
  426. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/file_task.rb +54 -0
  427. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/file_utils.rb +134 -0
  428. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/file_utils_ext.rb +134 -0
  429. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/invocation_chain.rb +57 -0
  430. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/invocation_exception_mixin.rb +17 -0
  431. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/late_time.rb +18 -0
  432. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/linked_list.rb +112 -0
  433. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/loaders/makefile.rb +54 -0
  434. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/multi_task.rb +14 -0
  435. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/name_space.rb +38 -0
  436. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/packagetask.rb +222 -0
  437. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/phony.rb +16 -0
  438. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/private_reader.rb +21 -0
  439. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/promise.rb +100 -0
  440. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/pseudo_status.rb +30 -0
  441. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/rake_module.rb +67 -0
  442. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/rake_test_loader.rb +27 -0
  443. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/rule_recursion_overflow_error.rb +20 -0
  444. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/scope.rb +43 -0
  445. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/task.rb +434 -0
  446. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/task_argument_error.rb +8 -0
  447. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/task_arguments.rb +109 -0
  448. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/task_manager.rb +331 -0
  449. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/tasklib.rb +12 -0
  450. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/testtask.rb +224 -0
  451. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/thread_history_display.rb +49 -0
  452. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/thread_pool.rb +163 -0
  453. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/trace_output.rb +23 -0
  454. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/version.rb +10 -0
  455. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/win32.rb +51 -0
  456. data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/rake.gemspec +43 -0
  457. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/COPYING +67 -0
  458. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/GPL +339 -0
  459. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/LGPL +502 -0
  460. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/PSFL +271 -0
  461. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/README.md +101 -0
  462. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/Rakefile +80 -0
  463. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/doc/text/getting-started.md +246 -0
  464. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/doc/text/how-to.md +90 -0
  465. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/doc/text/news.md +1464 -0
  466. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test-unit.rb +34 -0
  467. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit.rb +514 -0
  468. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/assertion-failed-error.rb +25 -0
  469. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/assertions.rb +2256 -0
  470. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/attribute-matcher.rb +26 -0
  471. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/attribute.rb +227 -0
  472. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/auto-runner-loader.rb +17 -0
  473. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/autorunner.rb +537 -0
  474. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/code-snippet-fetcher.rb +58 -0
  475. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/collector.rb +73 -0
  476. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/collector/descendant.rb +19 -0
  477. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/collector/dir.rb +108 -0
  478. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/collector/load.rb +197 -0
  479. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/collector/objectspace.rb +34 -0
  480. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/collector/xml.rb +249 -0
  481. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/color-scheme.rb +198 -0
  482. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/color.rb +134 -0
  483. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/data-sets.rb +116 -0
  484. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/data.rb +371 -0
  485. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/diff.rb +746 -0
  486. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/error.rb +158 -0
  487. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/exception-handler.rb +82 -0
  488. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/failure.rb +169 -0
  489. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/fault-location-detector.rb +100 -0
  490. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/fixture.rb +298 -0
  491. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/notification.rb +138 -0
  492. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/omission.rb +198 -0
  493. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/pending.rb +155 -0
  494. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/priority.rb +196 -0
  495. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/runner/console.rb +84 -0
  496. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/runner/emacs.rb +8 -0
  497. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/runner/xml.rb +15 -0
  498. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/test-suite-creator.rb +103 -0
  499. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/testcase.rb +899 -0
  500. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/testresult.rb +132 -0
  501. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/testsuite.rb +175 -0
  502. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/ui/console/outputlevel.rb +15 -0
  503. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/ui/console/testrunner.rb +750 -0
  504. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/ui/emacs/testrunner.rb +49 -0
  505. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/ui/testrunner.rb +53 -0
  506. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/ui/testrunnermediator.rb +114 -0
  507. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/ui/testrunnerutilities.rb +41 -0
  508. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/ui/xml/testrunner.rb +224 -0
  509. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/util/backtracefilter.rb +59 -0
  510. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/util/method-owner-finder.rb +28 -0
  511. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/util/observable.rb +90 -0
  512. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/util/output.rb +32 -0
  513. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/util/procwrapper.rb +48 -0
  514. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/lib/test/unit/version.rb +5 -0
  515. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/sample/adder.rb +13 -0
  516. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/sample/subtracter.rb +12 -0
  517. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/sample/test_adder.rb +20 -0
  518. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/sample/test_subtracter.rb +20 -0
  519. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/sample/test_user.rb +23 -0
  520. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/collector/test-descendant.rb +182 -0
  521. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/collector/test-load.rb +475 -0
  522. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/collector/test_dir.rb +407 -0
  523. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/collector/test_objectspace.rb +102 -0
  524. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/fixtures/header-label.csv +3 -0
  525. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/fixtures/header-label.tsv +3 -0
  526. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/fixtures/header.csv +3 -0
  527. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/fixtures/header.tsv +3 -0
  528. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/fixtures/no-header.csv +2 -0
  529. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/fixtures/no-header.tsv +2 -0
  530. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/fixtures/plus.csv +3 -0
  531. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/run-test.rb +22 -0
  532. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-assertions.rb +2187 -0
  533. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-attribute-matcher.rb +38 -0
  534. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-attribute.rb +123 -0
  535. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-code-snippet.rb +79 -0
  536. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-color-scheme.rb +82 -0
  537. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-color.rb +47 -0
  538. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-data.rb +419 -0
  539. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-diff.rb +518 -0
  540. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-emacs-runner.rb +60 -0
  541. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-error.rb +26 -0
  542. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-failure.rb +33 -0
  543. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-fault-location-detector.rb +163 -0
  544. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-fixture.rb +713 -0
  545. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-notification.rb +33 -0
  546. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-omission.rb +81 -0
  547. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-pending.rb +70 -0
  548. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-priority.rb +184 -0
  549. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-test-case.rb +1279 -0
  550. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-test-result.rb +113 -0
  551. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-test-suite-creator.rb +97 -0
  552. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/test-test-suite.rb +151 -0
  553. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/testunit-test-util.rb +33 -0
  554. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb +20 -0
  555. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/util/test-method-owner-finder.rb +38 -0
  556. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/util/test-output.rb +11 -0
  557. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/util/test_backtracefilter.rb +52 -0
  558. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/util/test_observable.rb +102 -0
  559. data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/util/test_procwrapper.rb +36 -0
  560. data/vendor/bundle/ruby/2.7.0/specifications/power_assert-1.1.7.gemspec +46 -0
  561. data/vendor/bundle/ruby/2.7.0/specifications/rake-13.0.1.gemspec +26 -0
  562. data/vendor/bundle/ruby/2.7.0/specifications/test-unit-3.3.5.gemspec +41 -0
  563. data/win32-api.gemspec +27 -29
  564. metadata +610 -63
@@ -0,0 +1,33 @@
1
+ require 'test/unit'
2
+ require 'testunit-test-util'
3
+
4
+ class TestUnitNotification < Test::Unit::TestCase
5
+ include TestUnitTestUtil
6
+
7
+ class TestCase < Test::Unit::TestCase
8
+ class << self
9
+ def suite
10
+ Test::Unit::TestSuite.new(name)
11
+ end
12
+ end
13
+
14
+ def test_notify
15
+ notify("1st notify")
16
+ notify("2nd notify. Reach here.")
17
+ end
18
+ end
19
+
20
+ def test_notify
21
+ result = _run_test("test_notify")
22
+ assert_equal("1 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, " \
23
+ "0 omissions, 2 notifications",
24
+ result.to_s)
25
+ assert_fault_messages(["1st notify", "2nd notify. Reach here."],
26
+ result.notifications)
27
+ end
28
+
29
+ private
30
+ def _run_test(name)
31
+ super(TestCase, name)
32
+ end
33
+ end
@@ -0,0 +1,81 @@
1
+ require 'test/unit'
2
+ require 'testunit-test-util'
3
+
4
+ class TestUnitOmission < Test::Unit::TestCase
5
+ include TestUnitTestUtil
6
+
7
+ class TestCase < Test::Unit::TestCase
8
+ class << self
9
+ def suite
10
+ Test::Unit::TestSuite.new(name)
11
+ end
12
+ end
13
+
14
+ def test_omit
15
+ omit("1st omit")
16
+ omit("2nd omit. Should not be reached here.")
17
+ assert(true, "Should not be reached here too.")
18
+ end
19
+
20
+ def test_omit_with_condition
21
+ omit_if(false, "Never omit.")
22
+ omit_unless(true, "Never omit too.")
23
+ omit_if(true, "Should omit.")
24
+ omit("The last omit. Should not be reached here.")
25
+ end
26
+
27
+ def test_omit_with_block
28
+ omit("Omit block") do
29
+ flunk("Should not be reached here.")
30
+ end
31
+ assert(true, "Should be reached here.")
32
+ end
33
+
34
+ def test_omit_with_block_and_condition
35
+ omit_if(false, "Never omit.") do
36
+ assert(true, "Should be reached here.")
37
+ end
38
+ omit_if(true, "Should omit.") do
39
+ flunk("Never reached here.")
40
+ end
41
+ assert(true, "Should be reached here too.")
42
+ end
43
+ end
44
+
45
+ def test_omit
46
+ result = _run_test("test_omit")
47
+ assert_equal("1 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, " \
48
+ "1 omissions, 0 notifications",
49
+ result.to_s)
50
+ assert_fault_messages(["1st omit"], result.omissions)
51
+ end
52
+
53
+ def test_omit_with_condition
54
+ result = _run_test("test_omit_with_condition")
55
+ assert_equal("1 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, " \
56
+ "1 omissions, 0 notifications",
57
+ result.to_s)
58
+ assert_fault_messages(["Should omit."], result.omissions)
59
+ end
60
+
61
+ def test_omit_with_block
62
+ result = _run_test("test_omit_with_block")
63
+ assert_equal("1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, " \
64
+ "1 omissions, 0 notifications",
65
+ result.to_s)
66
+ assert_fault_messages(["Omit block"], result.omissions)
67
+ end
68
+
69
+ def test_omit_with_condition_and_block
70
+ result = _run_test("test_omit_with_block_and_condition")
71
+ assert_equal("1 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, " \
72
+ "1 omissions, 0 notifications",
73
+ result.to_s)
74
+ assert_fault_messages(["Should omit."], result.omissions)
75
+ end
76
+
77
+ private
78
+ def _run_test(name)
79
+ super(TestCase, name)
80
+ end
81
+ end
@@ -0,0 +1,70 @@
1
+ require 'test/unit'
2
+ require 'testunit-test-util'
3
+
4
+ class TestUnitPending < Test::Unit::TestCase
5
+ include TestUnitTestUtil
6
+
7
+ class TestCase < Test::Unit::TestCase
8
+ class << self
9
+ def suite
10
+ Test::Unit::TestSuite.new(name)
11
+ end
12
+ end
13
+
14
+ def test_pend
15
+ pend("1st pend")
16
+ pend("2nd pend. Should not be reached here.")
17
+ assert(true, "Should not be reached here too.")
18
+ end
19
+
20
+ def test_pend_with_failure_in_block
21
+ pend("Wait a minute") do
22
+ raise "Not implemented yet"
23
+ end
24
+ assert(true, "Reached here.")
25
+ end
26
+
27
+ def test_pend_with_no_failure_in_block
28
+ pend("Wait a minute") do
29
+ "Nothing raised"
30
+ end
31
+ assert(true, "Not reached here.")
32
+ end
33
+ end
34
+
35
+ def test_pend
36
+ test = nil
37
+ result = _run_test("test_pend") {|t| test = t}
38
+ assert_equal("1 tests, 0 assertions, 0 failures, 0 errors, 1 pendings, " \
39
+ "0 omissions, 0 notifications",
40
+ result.to_s)
41
+ assert_fault_messages(["1st pend"], result.pendings)
42
+ assert_true(test.interrupted?)
43
+ end
44
+
45
+ def test_pend_with_failure_in_block
46
+ test = nil
47
+ result = _run_test("test_pend_with_failure_in_block") {|t| test = t}
48
+ assert_equal("1 tests, 1 assertions, 0 failures, 0 errors, 1 pendings, " \
49
+ "0 omissions, 0 notifications",
50
+ result.to_s)
51
+ assert_fault_messages(["Wait a minute"], result.pendings)
52
+ assert_false(test.interrupted?)
53
+ end
54
+
55
+ def test_pend_with_no_failure_in_block
56
+ test = nil
57
+ result = _run_test("test_pend_with_no_failure_in_block") {|t| test = t}
58
+ assert_equal("1 tests, 1 assertions, 1 failures, 0 errors, 0 pendings, " \
59
+ "0 omissions, 0 notifications",
60
+ result.to_s)
61
+ assert_fault_messages(["Pending block should not be passed: Wait a minute."],
62
+ result.failures)
63
+ assert_true(test.interrupted?)
64
+ end
65
+
66
+ private
67
+ def _run_test(name, &block)
68
+ super(TestCase, name, &block)
69
+ end
70
+ end
@@ -0,0 +1,184 @@
1
+ require 'test/unit'
2
+
3
+ class TestUnitPriority < Test::Unit::TestCase
4
+ class TestCase < Test::Unit::TestCase
5
+ class << self
6
+ def suite
7
+ Test::Unit::TestSuite.new(name)
8
+ end
9
+ end
10
+
11
+ priority :must
12
+ def test_must
13
+ assert(true)
14
+ end
15
+
16
+ def test_must_inherited
17
+ assert(true)
18
+ end
19
+
20
+ priority :important
21
+ def test_important
22
+ assert(true)
23
+ end
24
+
25
+ def test_important_inherited
26
+ assert(true)
27
+ end
28
+
29
+ priority :high
30
+ def test_high
31
+ assert(true)
32
+ end
33
+
34
+ def test_high_inherited
35
+ assert(true)
36
+ end
37
+
38
+ priority :normal
39
+ def test_normal
40
+ assert(true)
41
+ end
42
+
43
+ def test_normal_inherited
44
+ assert(true)
45
+ end
46
+
47
+ priority :low
48
+ def test_low
49
+ assert(true)
50
+ end
51
+
52
+ def test_low_inherited
53
+ assert(true)
54
+ end
55
+
56
+ priority :never
57
+ def test_never
58
+ assert(true)
59
+ end
60
+
61
+ def test_never_inherited
62
+ assert(true)
63
+ end
64
+ end
65
+
66
+ def test_priority_must
67
+ assert_priority("must", 1.0, 0.0001)
68
+ end
69
+
70
+ def test_priority_important
71
+ assert_priority("important", 0.9, 0.09)
72
+ end
73
+
74
+ def test_priority_high
75
+ assert_priority("high", 0.70, 0.1)
76
+ end
77
+
78
+ def test_priority_normal
79
+ assert_priority("normal", 0.5, 0.1)
80
+ end
81
+
82
+ def test_priority_low
83
+ assert_priority("low", 0.25, 0.1)
84
+ end
85
+
86
+ def test_priority_never
87
+ assert_priority("never", 0.0, 0.0001)
88
+ end
89
+
90
+ def assert_priority(priority, expected, delta)
91
+ assert_need_to_run("test_#{priority}", expected, delta)
92
+ assert_need_to_run("test_#{priority}_inherited", expected, delta)
93
+ end
94
+
95
+ def assert_need_to_run(test_name, expected, delta)
96
+ test = TestCase.new(test_name)
97
+ n = 1000
98
+ n_need_to_run = 0
99
+ n.times do |i|
100
+ n_need_to_run += 1 if Test::Unit::Priority::Checker.need_to_run?(test)
101
+ end
102
+ assert_in_delta(expected, n_need_to_run.to_f / n, delta)
103
+ end
104
+
105
+ class TestClassName < self
106
+ def test_colon
107
+ assert_escaped_name("Test_colon__colon_Priority", "Test::Priority")
108
+ end
109
+
110
+ def test_space
111
+ assert_escaped_name("test_priority", "test priority")
112
+ end
113
+
114
+ def test_slash
115
+ assert_escaped_name("test_priority", "test/priority")
116
+ end
117
+
118
+ def test_back_slash
119
+ assert_escaped_name("test_priority", "test\/priority")
120
+ end
121
+
122
+ def test_question
123
+ assert_escaped_name("#question.predicate", "#question?")
124
+ end
125
+
126
+ def test_exclamation
127
+ assert_escaped_name("#exclamation.destructive", "#exclamation!")
128
+ end
129
+
130
+ def test_equal
131
+ assert_escaped_name("#equal.equal", "#equal=")
132
+ end
133
+
134
+ def assert_escaped_name(expected, class_name)
135
+ checker = Checker.new(nil)
136
+ escaped_class_name = checker.send(:escape_class_name, class_name)
137
+ assert_equal(expected, escaped_class_name)
138
+ end
139
+ end
140
+
141
+ class TestFileName < self
142
+ class SpecialNameTestCase < Test::Unit::TestCase
143
+ class << self
144
+ def suite
145
+ Test::Unit::TestSuite.new(name)
146
+ end
147
+ end
148
+
149
+ def test_question?
150
+ end
151
+
152
+ def test_exclamation!
153
+ end
154
+
155
+ def test_equal=
156
+ end
157
+
158
+ test "have space" do
159
+ end
160
+ end
161
+
162
+ def test_question
163
+ assert_escaped_name("test_colon__#question.predicate_case",
164
+ "test: #question? case")
165
+ end
166
+
167
+ def test_exclamation
168
+ assert_escaped_name("test_colon__#exclamation.destructive_case",
169
+ "test: #exclamation! case")
170
+ end
171
+
172
+ def test_equal
173
+ assert_escaped_name("test_colon__#equal.equal_case",
174
+ "test: #equal= case")
175
+ end
176
+
177
+ def assert_escaped_name(expected, test_method_name)
178
+ checker = Checker.new(SpecialNameTestCase.new(test_method_name))
179
+ passed_file = checker.send(:passed_file)
180
+ method_name_component = File.basename(File.dirname(passed_file))
181
+ assert_equal(expected, method_name_component)
182
+ end
183
+ end
184
+ end
@@ -0,0 +1,1279 @@
1
+ # Author:: Nathaniel Talbott.
2
+ # Copyright:: Copyright (c) 2008-2014 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright:: Copyright (c) 2011 Haruka Yoshihara <yoshihara@clear-code.com>
4
+ # Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott
5
+ # License:: Ruby license.
6
+
7
+ require 'test/unit'
8
+
9
+ module Test
10
+ module Unit
11
+ class TestTestCase < TestCase
12
+ self.test_order = :random
13
+ def test_creation
14
+ test_case = Class.new(TestCase) do
15
+ def test_with_arguments(arg1, arg2)
16
+ end
17
+ end
18
+
19
+ test = test_case.new(:test_with_arguments)
20
+ check("Should have caught an invalid test when there are arguments",
21
+ !test.valid?)
22
+
23
+ test = test_case.new(:non_existent_test)
24
+ check("Should have caught an invalid test when the method does not exist",
25
+ !test.valid?)
26
+ end
27
+
28
+ def setup
29
+ @tc_failure_error = Class.new(TestCase) do
30
+ def test_failure
31
+ assert_block("failure") do
32
+ false
33
+ end
34
+ end
35
+ def test_error
36
+ 1 / 0
37
+ end
38
+ def test_nested_failure
39
+ nested
40
+ end
41
+ def nested
42
+ assert_block("nested") do
43
+ false
44
+ end
45
+ end
46
+ def return_passed?
47
+ return passed?
48
+ end
49
+ end
50
+
51
+ def @tc_failure_error.name
52
+ "TC_FailureError"
53
+ end
54
+ end
55
+
56
+ def jruby_backtrace_entry?(entry)
57
+ entry.start_with?("org/jruby/")
58
+ end
59
+
60
+ def rubinius_backtrace_entry?(entry)
61
+ entry.start_with?("kernel/")
62
+ end
63
+
64
+ def normalize_location(location)
65
+ filtered_location = location.reject do |entry|
66
+ jruby_backtrace_entry?(entry) or
67
+ rubinius_backtrace_entry?(entry)
68
+ end
69
+ filtered_location.collect do |entry|
70
+ entry.sub(/:\d+:/, ":0:")
71
+ end
72
+ end
73
+
74
+ def test_add_failed_assertion
75
+ test_case = @tc_failure_error.new(:test_failure)
76
+ assert do
77
+ test_case.passed?
78
+ end
79
+
80
+ result = TestResult.new
81
+ faults = []
82
+ result.add_listener(TestResult::FAULT) do |fault|
83
+ faults << fault
84
+ end
85
+ progress = []
86
+ test_case.run(result) do |*arguments|
87
+ progress << arguments
88
+ end
89
+ fault_details = faults.collect do |fault|
90
+ {
91
+ :class => fault.class,
92
+ :message => fault.message,
93
+ :test_name => fault.test_name,
94
+ :location => normalize_location(fault.location),
95
+ }
96
+ end
97
+ assert_equal([
98
+ {
99
+ :class => Failure,
100
+ :message => "failure",
101
+ :test_name => "test_failure(TC_FailureError)",
102
+ :location => [
103
+ "#{__FILE__}:0:in `test_failure'",
104
+ "#{__FILE__}:0:in `#{__method__}'",
105
+ ],
106
+ },
107
+ ],
108
+ fault_details)
109
+
110
+ assert do
111
+ not test_case.passed?
112
+ end
113
+ assert_equal([
114
+ [TestCase::STARTED, test_case.name],
115
+ [TestCase::STARTED_OBJECT, test_case],
116
+ [TestCase::FINISHED, test_case.name],
117
+ [TestCase::FINISHED_OBJECT, test_case],
118
+ ],
119
+ progress)
120
+ end
121
+
122
+ def test_add_failure_nested
123
+ test_case = @tc_failure_error.new(:test_nested_failure)
124
+ assert do
125
+ test_case.passed?
126
+ end
127
+
128
+ result = TestResult.new
129
+ faults = []
130
+ result.add_listener(TestResult::FAULT) do |fault|
131
+ faults << fault
132
+ end
133
+ test_case.run(result) do
134
+ end
135
+ fault_details = faults.collect do |fault|
136
+ {
137
+ :class => fault.class,
138
+ :message => fault.message,
139
+ :test_name => fault.test_name,
140
+ :location => normalize_location(fault.location),
141
+ }
142
+ end
143
+ assert_equal([
144
+ {
145
+ :class => Failure,
146
+ :message => "nested",
147
+ :test_name => "test_nested_failure(TC_FailureError)",
148
+ :location => [
149
+ "#{__FILE__}:0:in `nested'",
150
+ "#{__FILE__}:0:in `test_nested_failure'",
151
+ "#{__FILE__}:0:in `#{__method__}'",
152
+ ],
153
+ },
154
+ ],
155
+ fault_details)
156
+
157
+ assert do
158
+ not test_case.passed?
159
+ end
160
+ end
161
+
162
+ def jruby?
163
+ defined?(JRUBY_VERSION)
164
+ end
165
+
166
+ def rubinius?
167
+ false # TODO
168
+ end
169
+
170
+ def cruby?
171
+ (not jruby?) and (not rubinius?)
172
+ end
173
+
174
+ def test_add_error
175
+ test_case = @tc_failure_error.new(:test_error)
176
+ assert do
177
+ test_case.passed?
178
+ end
179
+
180
+ result = TestResult.new
181
+ faults = []
182
+ result.add_listener(TestResult::FAULT) do |fault|
183
+ faults << fault
184
+ end
185
+ test_case.run(result) do
186
+ end
187
+ fault_details = faults.collect do |fault|
188
+ {
189
+ :class => fault.class,
190
+ :message => fault.message,
191
+ :test_name => fault.test_name,
192
+ :location => normalize_location(fault.location),
193
+ }
194
+ end
195
+ location = []
196
+ location << "#{__FILE__}:0:in `/'" if cruby?
197
+ location << "#{__FILE__}:0:in `test_error'"
198
+ location << "#{__FILE__}:0:in `#{__method__}'"
199
+ assert_equal([
200
+ {
201
+ :class => Error,
202
+ :message => "ZeroDivisionError: divided by 0",
203
+ :test_name => "test_error(TC_FailureError)",
204
+ :location => location,
205
+ },
206
+ ],
207
+ fault_details)
208
+
209
+ assert do
210
+ not test_case.passed?
211
+ end
212
+ end
213
+
214
+ def test_no_tests
215
+ suite = TestCase.suite
216
+ check("Should have a test suite", suite.instance_of?(TestSuite))
217
+ check("Should have one test", suite.size == 1)
218
+ check("Should have the default test", suite.tests.first.name == "default_test(Test::Unit::TestCase)")
219
+
220
+ result = TestResult.new
221
+ suite.run(result) {}
222
+ check("Should have had one test run", result.run_count == 1)
223
+ check("Should have had one test failure", result.failure_count == 1)
224
+ check("Should have had no errors", result.error_count == 0)
225
+ end
226
+
227
+ def test_suite
228
+ tc = Class.new(TestCase) do
229
+ def test_succeed
230
+ assert_block {true}
231
+ end
232
+ def test_fail
233
+ assert_block {false}
234
+ end
235
+ def test_error
236
+ 1/0
237
+ end
238
+ def dont_run
239
+ assert_block {true}
240
+ end
241
+ def test_dont_run(argument)
242
+ assert_block {true}
243
+ end
244
+ def test
245
+ assert_block {true}
246
+ end
247
+ end
248
+
249
+ suite = tc.suite
250
+ check("Should have a test suite", suite.instance_of?(TestSuite))
251
+ check("Should have three tests", suite.size == 3)
252
+
253
+ result = TestResult.new
254
+ suite.run(result) {}
255
+ check("Should have had three test runs", result.run_count == 3)
256
+ check("Should have had one test failure", result.failure_count == 1)
257
+ check("Should have had one test error", result.error_count == 1)
258
+ end
259
+
260
+ def test_setup_teardown
261
+ tc = Class.new(TestCase) do
262
+ attr_reader(:setup_called, :teardown_called)
263
+ def initialize(test)
264
+ super(test)
265
+ @setup_called = false
266
+ @teardown_called = false
267
+ end
268
+ def setup
269
+ @setup_called = true
270
+ end
271
+ def teardown
272
+ @teardown_called = true
273
+ end
274
+ def test_succeed
275
+ assert_block {true}
276
+ end
277
+ def test_fail
278
+ assert_block {false}
279
+ end
280
+ def test_error
281
+ raise "Error!"
282
+ end
283
+ end
284
+ result = TestResult.new
285
+
286
+ test = tc.new(:test_succeed)
287
+ test.run(result) {}
288
+ check("Should have called setup the correct number of times", test.setup_called)
289
+ check("Should have called teardown the correct number of times", test.teardown_called)
290
+
291
+ test = tc.new(:test_fail)
292
+ test.run(result) {}
293
+ check("Should have called setup the correct number of times", test.setup_called)
294
+ check("Should have called teardown the correct number of times", test.teardown_called)
295
+
296
+ test = tc.new(:test_error)
297
+ test.run(result) {}
298
+ check("Should have called setup the correct number of times", test.setup_called)
299
+ check("Should have called teardown the correct number of times", test.teardown_called)
300
+
301
+ check("Should have had two test runs", result.run_count == 3)
302
+ check("Should have had a test failure", result.failure_count == 1)
303
+ check("Should have had a test error", result.error_count == 1)
304
+ end
305
+
306
+ def test_assertion_failed_not_called
307
+ tc = Class.new(TestCase) do
308
+ def test_thing
309
+ raise AssertionFailedError.new
310
+ end
311
+ end
312
+
313
+ suite = tc.suite
314
+ check("Should have one test", suite.size == 1)
315
+ result = TestResult.new
316
+ suite.run(result) {}
317
+ check("Should have had one test run", result.run_count == 1)
318
+ check("Should have had one assertion failure", result.failure_count == 1)
319
+ check("Should not have any assertion errors but had #{result.error_count}", result.error_count == 0)
320
+ end
321
+
322
+ def test_equality
323
+ tc1 = Class.new(TestCase) do
324
+ def test_1
325
+ end
326
+ def test_2
327
+ end
328
+ end
329
+
330
+ tc2 = Class.new(TestCase) do
331
+ def test_1
332
+ end
333
+ end
334
+
335
+ test1 = tc1.new('test_1')
336
+ test2 = tc1.new('test_1')
337
+ check("Should be equal", test1 == test2)
338
+ check("Should be equal", test2 == test1)
339
+
340
+ test1 = tc1.new('test_2')
341
+ check("Should not be equal", test1 != test2)
342
+ check("Should not be equal", test2 != test1)
343
+
344
+ test2 = tc1.new('test_2')
345
+ check("Should be equal", test1 == test2)
346
+ check("Should be equal", test2 == test1)
347
+
348
+ test1 = tc1.new('test_1')
349
+ test2 = tc2.new('test_1')
350
+ check("Should not be equal", test1 != test2)
351
+ check("Should not be equal", test2 != test1)
352
+
353
+ check("Should not be equal", test1 != Object.new)
354
+ check("Should not be equal", Object.new != test1)
355
+ end
356
+
357
+ def test_re_raise_exception
358
+ test_case = Class.new(TestCase) do
359
+ def test_raise_interrupt
360
+ raise Interrupt, "from test"
361
+ end
362
+ end
363
+
364
+ test = test_case.new("test_raise_interrupt")
365
+ begin
366
+ test.run(TestResult.new) {}
367
+ check("Should not be reached", false)
368
+ rescue Exception
369
+ check("Interrupt exception should be re-raised", $!.class == Interrupt)
370
+ end
371
+ end
372
+
373
+ def test_timeout_error
374
+ test_case = Class.new(TestCase) do
375
+ def test_raise_timeout_error
376
+ require "timeout"
377
+ raise Timeout::Error
378
+ end
379
+ end
380
+
381
+ test_suite = test_case.suite
382
+ result = TestResult.new
383
+ begin
384
+ test_suite.run(result) {}
385
+ check("Timeout::Error should be handled as error",
386
+ result.error_count == 1)
387
+ rescue Exception
388
+ check("Timeout::Error should not be passed through: #{$!}", false)
389
+ end
390
+ end
391
+
392
+ def test_interrupted
393
+ test_case = Class.new(TestCase) do
394
+ def test_fail
395
+ flunk
396
+ end
397
+
398
+ def test_nothing
399
+ end
400
+ end
401
+
402
+ failed_test = test_case.new(:test_fail)
403
+ failed_test.run(TestResult.new) {}
404
+ check("Should be interrupted", failed_test.interrupted?)
405
+
406
+ success_test = test_case.new(:test_nothing)
407
+ success_test.run(TestResult.new) {}
408
+ check("Should not be interrupted", !success_test.interrupted?)
409
+ end
410
+
411
+ def test_inherited_test_should_be_ignored
412
+ test_case = Class.new(TestCase) do
413
+ def test_nothing
414
+ end
415
+ end
416
+
417
+ sub_test_case = Class.new(test_case) do
418
+ def test_fail
419
+ flunk
420
+ end
421
+ end
422
+
423
+ test = test_case.new("test_nothing")
424
+ assert_predicate(test, :valid?)
425
+
426
+ test = sub_test_case.new("test_fail")
427
+ assert_predicate(test, :valid?)
428
+
429
+ test = sub_test_case.new("test_nothing")
430
+ assert_not_predicate(test, :valid?)
431
+ end
432
+
433
+ def test_mixin_test_should_not_be_ignored
434
+ test_module = Module.new do
435
+ def test_nothing
436
+ end
437
+ end
438
+
439
+ test_case = Class.new(Test::Unit::TestCase) do
440
+ include test_module
441
+
442
+ def test_fail
443
+ flunk
444
+ end
445
+ end
446
+
447
+ assert_nothing_thrown do
448
+ test_case.new("test_nothing")
449
+ end
450
+
451
+ assert_nothing_thrown do
452
+ test_case.new("test_fail")
453
+ end
454
+ end
455
+
456
+ def test_defined_order
457
+ test_case = Class.new(Test::Unit::TestCase) do
458
+ def test_z
459
+ end
460
+
461
+ def test_1
462
+ end
463
+
464
+ def test_a
465
+ end
466
+ end
467
+
468
+ test_case.test_order = :defined
469
+ assert_equal(["test_z", "test_1", "test_a"],
470
+ test_case.suite.tests.collect {|test| test.method_name})
471
+ end
472
+
473
+ def test_declarative_style
474
+ test_case = Class.new(Test::Unit::TestCase) do
475
+ test "declarative style test definition" do
476
+ end
477
+
478
+ test "include parenthesis" do
479
+ end
480
+
481
+ test "1 + 2 = 3" do
482
+ end
483
+ end
484
+
485
+ test_case.test_order = :defined
486
+
487
+ assert_equal(["test: declarative style test definition",
488
+ "test: include parenthesis",
489
+ "test: 1 + 2 = 3"],
490
+ test_case.suite.tests.collect {|test| test.method_name})
491
+
492
+ assert_equal(["declarative style test definition",
493
+ "include parenthesis",
494
+ "1 + 2 = 3"],
495
+ test_case.suite.tests.collect {|test| test.description})
496
+ end
497
+
498
+ def test_test_mark
499
+ test_case = Class.new(Test::Unit::TestCase) do
500
+ test
501
+ def my_test_method
502
+ end
503
+ end
504
+
505
+ test_case.test_order = :defined
506
+
507
+ assert_equal(["my_test_method"],
508
+ test_case.suite.tests.collect {|test| test.method_name})
509
+ end
510
+
511
+ def test_redefine_method
512
+ test_case = Class.new(Test::Unit::TestCase) do
513
+ self.test_order = :alphabetic
514
+
515
+ def test_name
516
+ end
517
+ alias_method :test_name2, :test_name
518
+
519
+ def test_name
520
+ end
521
+ end
522
+
523
+ suite = test_case.suite
524
+ assert_equal(["test_name", "test_name2"],
525
+ suite.tests.collect {|test| test.method_name})
526
+ result = TestResult.new
527
+ suite.run(result) {}
528
+ assert_equal("2 tests, 0 assertions, 0 failures, " +
529
+ "0 errors, 0 pendings, 0 omissions, 1 notifications",
530
+ result.summary)
531
+ end
532
+
533
+ def test_data_driven_test
534
+ test_case = Class.new(TestCase) do
535
+ def test_with_data(data)
536
+ end
537
+ end
538
+
539
+ test = test_case.new("test_with_data")
540
+ assert_not_predicate(test, :valid?)
541
+ test.assign_test_data("label1", :test_data1)
542
+ assert_predicate(test, :valid?)
543
+ end
544
+
545
+ def test_data_driven_test_without_parameter
546
+ test_case = Class.new(TestCase) do
547
+ data("label" => "value")
548
+ def test_without_parameter
549
+ assert_equal("value", data)
550
+ end
551
+ end
552
+
553
+ suite = test_case.suite
554
+ assert_equal(["test_without_parameter"],
555
+ suite.tests.collect {|test| test.method_name})
556
+ result = TestResult.new
557
+ suite.run(result) {}
558
+ assert_equal("1 tests, 1 assertions, 0 failures, " +
559
+ "0 errors, 0 pendings, 0 omissions, 0 notifications",
560
+ result.summary)
561
+ end
562
+
563
+ private
564
+ def check(message, passed)
565
+ add_assertion
566
+ raise AssertionFailedError.new(message) unless passed
567
+ end
568
+
569
+ class TestTestDefined < self
570
+ class TestNoQuery < self
571
+ def test_no_test
572
+ test_case = Class.new(TestCase) do
573
+ end
574
+ assert_false(test_case.test_defined?({}))
575
+ end
576
+
577
+ def test_have_def_style_test
578
+ test_case = Class.new(TestCase) do
579
+ def test_nothing
580
+ end
581
+ end
582
+ assert_true(test_case.test_defined?({}))
583
+ end
584
+
585
+ def test_have_method_style_test
586
+ test_case = Class.new(TestCase) do
587
+ test "nothing" do
588
+ end
589
+ end
590
+ assert_true(test_case.test_defined?({}))
591
+ end
592
+ end
593
+
594
+ class TestPath < self
595
+ class TestDefStyle < self
596
+ def test_base_name
597
+ test_case = Class.new(TestCase) do
598
+ def test_nothing
599
+ end
600
+ end
601
+ base_name = File.basename(__FILE__)
602
+ assert_true(test_case.test_defined?(:path => base_name))
603
+ end
604
+
605
+ def test_absolute_path
606
+ test_case = Class.new(TestCase) do
607
+ def test_nothing
608
+ end
609
+ end
610
+ assert_true(test_case.test_defined?(:path => __FILE__))
611
+ end
612
+
613
+ def test_not_match
614
+ test_case = Class.new(TestCase) do
615
+ def test_nothing
616
+ end
617
+ end
618
+ assert_false(test_case.test_defined?(:path => "nonexistent.rb"))
619
+ end
620
+ end
621
+
622
+ class TestMethodStyle < self
623
+ def test_base_name
624
+ test_case = Class.new(TestCase) do
625
+ test "nothing" do
626
+ end
627
+ end
628
+ base_name = File.basename(__FILE__)
629
+ assert_true(test_case.test_defined?(:path => base_name))
630
+ end
631
+
632
+ def test_absolute_path
633
+ test_case = Class.new(TestCase) do
634
+ test "nothing" do
635
+ end
636
+ end
637
+ assert_true(test_case.test_defined?(:path => __FILE__))
638
+ end
639
+
640
+ def test_not_match
641
+ test_case = Class.new(TestCase) do
642
+ test "nothing" do
643
+ end
644
+ end
645
+ assert_false(test_case.test_defined?(:path => "nonexistent.rb"))
646
+ end
647
+ end
648
+ end
649
+
650
+ class TestLine < self
651
+ class TestDefStyle < self
652
+ def test_before
653
+ line_before = nil
654
+ test_case = Class.new(TestCase) do
655
+ line_before = __LINE__
656
+ def test_nothing
657
+ end
658
+ end
659
+ assert_false(test_case.test_defined?(:line => line_before))
660
+ end
661
+
662
+ def test_def
663
+ line_def = nil
664
+ test_case = Class.new(TestCase) do
665
+ line_def = __LINE__; def test_nothing
666
+ end
667
+ end
668
+ assert_true(test_case.test_defined?(:line => line_def))
669
+ end
670
+
671
+ def test_after
672
+ line_after = nil
673
+ test_case = Class.new(TestCase) do
674
+ def test_nothing
675
+ end
676
+ line_after = __LINE__
677
+ end
678
+ assert_true(test_case.test_defined?(:line => line_after))
679
+ end
680
+
681
+ def test_child
682
+ child_test_case = nil
683
+ line_child = nil
684
+ parent_test_case = Class.new(TestCase) do
685
+ test "parent" do
686
+ end
687
+
688
+ child_test_case = Class.new(self) do
689
+ line_child = __LINE__; test "child" do
690
+ end
691
+ end
692
+ end
693
+ assert_equal([
694
+ false,
695
+ true,
696
+ ],
697
+ [
698
+ parent_test_case.test_defined?(:line => line_child),
699
+ child_test_case.test_defined?(:line => line_child),
700
+ ])
701
+ end
702
+ end
703
+
704
+ class TestMethodStyle < self
705
+ def test_before
706
+ line_before = nil
707
+ test_case = Class.new(TestCase) do
708
+ line_before = __LINE__
709
+ test "nothing" do
710
+ end
711
+ end
712
+ assert_false(test_case.test_defined?(:line => line_before))
713
+ end
714
+
715
+ def test_method
716
+ line_method = nil
717
+ test_case = Class.new(TestCase) do
718
+ line_method = __LINE__; test "nothing" do
719
+ end
720
+ end
721
+ assert_true(test_case.test_defined?(:line => line_method))
722
+ end
723
+
724
+ def test_after
725
+ line_after = nil
726
+ test_case = Class.new(TestCase) do
727
+ test "nothing" do
728
+ end
729
+ line_after = __LINE__
730
+ end
731
+ assert_true(test_case.test_defined?(:line => line_after))
732
+ end
733
+
734
+ def test_child
735
+ child_test_case = nil
736
+ line_child = nil
737
+ parent_test_case = Class.new(TestCase) do
738
+ test "parent" do
739
+ end
740
+
741
+ child_test_case = Class.new(self) do
742
+ line_child = __LINE__; test "child" do
743
+ end
744
+ end
745
+ end
746
+ assert_equal([
747
+ false,
748
+ true,
749
+ ],
750
+ [
751
+ parent_test_case.test_defined?(:line => line_child),
752
+ child_test_case.test_defined?(:line => line_child),
753
+ ])
754
+ end
755
+
756
+ def test_with_setup
757
+ line = nil
758
+ test_case = Class.new(TestCase) do
759
+ setup do
760
+ end
761
+
762
+ line = __LINE__; test "with setup" do
763
+ end
764
+ end
765
+ assert do
766
+ test_case.test_defined?(:line => line,
767
+ :method_name => "test: with setup")
768
+ end
769
+ end
770
+ end
771
+ end
772
+
773
+ class TestMethodName < self
774
+ class TestDefStyle < self
775
+ def test_match
776
+ test_case = Class.new(TestCase) do
777
+ def test_nothing
778
+ end
779
+ end
780
+ query = {:method_name => "test_nothing"}
781
+ assert_true(test_case.test_defined?(query))
782
+ end
783
+
784
+ def test_not_match
785
+ test_case = Class.new(TestCase) do
786
+ def test_nothing
787
+ end
788
+ end
789
+ query = {:method_name => "test_nonexistent"}
790
+ assert_false(test_case.test_defined?(query))
791
+ end
792
+ end
793
+
794
+ class TestMethodStyle < self
795
+ def test_match
796
+ test_case = Class.new(TestCase) do
797
+ test "nothing" do
798
+ end
799
+ end
800
+ query = {:method_name => "test: nothing"}
801
+ assert_true(test_case.test_defined?(query))
802
+ end
803
+
804
+ def test_not_match
805
+ test_case = Class.new(TestCase) do
806
+ test "nothing" do
807
+ end
808
+ end
809
+ query = {:method_name => "test: nonexistent"}
810
+ assert_false(test_case.test_defined?(query))
811
+ end
812
+ end
813
+ end
814
+
815
+ class TestCombine < self
816
+ class TestDefStyle < self
817
+ def test_line_middle
818
+ line_middle = nil
819
+ test_case = Class.new(TestCase) do
820
+ def test_before
821
+ end
822
+ line_middle = __LINE__
823
+ def test_after
824
+ end
825
+ end
826
+ query = {
827
+ :path => __FILE__,
828
+ :line => line_middle,
829
+ :method_name => "test_before",
830
+ }
831
+ assert_true(test_case.test_defined?(query))
832
+ end
833
+
834
+ def test_line_after_def
835
+ line_after_def = nil
836
+ test_case = Class.new(TestCase) do
837
+ def test_before
838
+ end
839
+
840
+ line_after_def = __LINE__; def test_after
841
+ end
842
+ end
843
+ query = {
844
+ :path => __FILE__,
845
+ :line => line_after_def,
846
+ :method_name => "test_before",
847
+ }
848
+ assert_false(test_case.test_defined?(query))
849
+ end
850
+ end
851
+
852
+ class TestMethodStyle < self
853
+ def test_line_middle
854
+ line_middle = nil
855
+ test_case = Class.new(TestCase) do
856
+ test "before" do
857
+ end
858
+ line_middle = __LINE__
859
+ test "after" do
860
+ end
861
+ end
862
+ query = {
863
+ :path => __FILE__,
864
+ :line => line_middle,
865
+ :method_name => "test: before",
866
+ }
867
+ assert_true(test_case.test_defined?(query))
868
+ end
869
+
870
+ def test_line_after_method
871
+ line_after_method = nil
872
+ test_case = Class.new(TestCase) do
873
+ test "before" do
874
+ end
875
+
876
+ line_after_method = __LINE__; test "after" do
877
+ end
878
+ end
879
+ query = {
880
+ :path => __FILE__,
881
+ :line => line_after_method,
882
+ :method_name => "test: before",
883
+ }
884
+ assert_false(test_case.test_defined?(query))
885
+ end
886
+ end
887
+ end
888
+ end
889
+
890
+ class TestSubTestCase < self
891
+ class TestName < self
892
+ def test_anonymous
893
+ test_case = Class.new(TestCase)
894
+ sub_test_case = test_case.sub_test_case("sub test case") do
895
+ end
896
+ assert_equal("sub test case", sub_test_case.name)
897
+ end
898
+
899
+ def test_named
900
+ test_case = Class.new(TestCase)
901
+ def test_case.name
902
+ "ParentTestCase"
903
+ end
904
+ sub_test_case = test_case.sub_test_case("sub test case") do
905
+ end
906
+ assert_equal("ParentTestCase::sub test case", sub_test_case.name)
907
+ end
908
+ end
909
+
910
+ def test_suite
911
+ test_case = Class.new(TestCase)
912
+ sub_test_case = test_case.sub_test_case("sub test case") do
913
+ def test_nothing
914
+ end
915
+ end
916
+ test_method_names = sub_test_case.suite.tests.collect do |test|
917
+ test.method_name
918
+ end
919
+ assert_equal(["test_nothing"], test_method_names)
920
+ end
921
+
922
+ def test_duplicated_name
923
+ test_case = Class.new(TestCase) do
924
+ def test_nothing
925
+ end
926
+ end
927
+ sub_test_case = test_case.sub_test_case("sub test case") do
928
+ def test_nothing
929
+ end
930
+ end
931
+
932
+ test_method_names = test_case.suite.tests.collect do |test|
933
+ test.method_name
934
+ end
935
+ sub_test_method_names = sub_test_case.suite.tests.collect do |test|
936
+ test.method_name
937
+ end
938
+
939
+ assert_equal([
940
+ ["test_nothing"],
941
+ ["test_nothing"],
942
+ ],
943
+ [
944
+ test_method_names,
945
+ sub_test_method_names,
946
+ ])
947
+ end
948
+ end
949
+
950
+ class TestStartupShutdown < self
951
+ class TestOrder < self
952
+ module CallLogger
953
+ def called
954
+ @@called ||= []
955
+ end
956
+ end
957
+
958
+ def call_order(test_case)
959
+ test_case.called.clear
960
+ test_suite = test_case.suite
961
+ test_suite.run(TestResult.new) {}
962
+ test_case.called
963
+ end
964
+
965
+ class TestNoInheritance < self
966
+ def setup
967
+ @test_case = Class.new(TestCase) do
968
+ extend CallLogger
969
+
970
+ class << self
971
+ def startup
972
+ called << :startup
973
+ end
974
+
975
+ def shutdown
976
+ called << :shutdown
977
+ end
978
+ end
979
+
980
+ def setup
981
+ self.class.called << :setup
982
+ end
983
+
984
+ def teardown
985
+ self.class.called << :teardown
986
+ end
987
+
988
+ def test1
989
+ end
990
+
991
+ def test2
992
+ end
993
+ end
994
+ end
995
+
996
+ def test_call_order
997
+ assert_equal([
998
+ :startup,
999
+ :setup, :teardown,
1000
+ :setup, :teardown,
1001
+ :shutdown,
1002
+ ],
1003
+ call_order(@test_case))
1004
+ end
1005
+ end
1006
+
1007
+ class TestInheritance < self
1008
+ def setup
1009
+ @original_descendants = TestCase::DESCENDANTS.dup
1010
+ TestCase::DESCENDANTS.clear
1011
+
1012
+ @parent_test_case = Class.new(TestCase) do
1013
+ extend CallLogger
1014
+
1015
+ self.test_order = :alphabetic
1016
+
1017
+ class << self
1018
+ def startup
1019
+ called << :startup_parent
1020
+ end
1021
+
1022
+ def shutdown
1023
+ called << :shutdown_parent
1024
+ end
1025
+ end
1026
+
1027
+ def setup
1028
+ self.class.called << :setup_parent
1029
+ end
1030
+
1031
+ def teardown
1032
+ self.class.called << :teardown_parent
1033
+ end
1034
+
1035
+ def test1_parent
1036
+ self.class.called << :test1_parent
1037
+ end
1038
+
1039
+ def test2_parent
1040
+ self.class.called << :test2_parent
1041
+ end
1042
+ end
1043
+
1044
+ @child_test_case = Class.new(@parent_test_case) do
1045
+ class << self
1046
+ def startup
1047
+ called << :startup_child
1048
+ end
1049
+
1050
+ def shutdown
1051
+ called << :shutdown_child
1052
+ end
1053
+ end
1054
+
1055
+ def setup
1056
+ self.class.called << :setup_child
1057
+ end
1058
+
1059
+ def teardown
1060
+ self.class.called << :teardown_child
1061
+ end
1062
+
1063
+ def test1_child
1064
+ self.class.called << :test1_child
1065
+ end
1066
+
1067
+ def test2_child
1068
+ self.class.called << :test2_child
1069
+ end
1070
+ end
1071
+ end
1072
+
1073
+ def teardown
1074
+ TestCase::DESCENDANTS.replace(@original_descendants)
1075
+ end
1076
+
1077
+ def test_call_order
1078
+ collector = Collector::Descendant.new
1079
+ test_suite = collector.collect
1080
+ test_suite.run(TestResult.new) {}
1081
+ called = @parent_test_case.called
1082
+ assert_equal([
1083
+ :startup_parent,
1084
+ :setup_parent, :test1_parent, :teardown_parent,
1085
+ :setup_parent, :test2_parent, :teardown_parent,
1086
+ :startup_child,
1087
+ :setup_child, :test1_child, :teardown_child,
1088
+ :setup_child, :test2_child, :teardown_child,
1089
+ :shutdown_child,
1090
+ :shutdown_parent,
1091
+ ],
1092
+ called)
1093
+ end
1094
+ end
1095
+ end
1096
+
1097
+ class TestError < self
1098
+ def run_test_case(test_case)
1099
+ test_suite = test_case.suite
1100
+ result = TestResult.new
1101
+ test_suite.run(result) {}
1102
+ result
1103
+ end
1104
+
1105
+ def error_count(test_case)
1106
+ run_test_case(test_case).error_count
1107
+ end
1108
+
1109
+ def test_on_startup
1110
+ test_case = Class.new(TestCase) do
1111
+ class << self
1112
+ def startup
1113
+ raise "from startup"
1114
+ end
1115
+ end
1116
+
1117
+ def test_nothing
1118
+ end
1119
+ end
1120
+
1121
+ assert_equal(1, error_count(test_case))
1122
+ end
1123
+
1124
+ def test_pass_through_on_startup
1125
+ test_case = Class.new(TestCase) do
1126
+ class << self
1127
+ def startup
1128
+ raise Interrupt, "from startup"
1129
+ end
1130
+ end
1131
+
1132
+ def test_nothing
1133
+ end
1134
+ end
1135
+
1136
+ assert_raise(Interrupt) do
1137
+ run_test_case(test_case)
1138
+ end
1139
+ end
1140
+
1141
+ def test_on_shutdown
1142
+ test_case = Class.new(TestCase) do
1143
+ class << self