script_core 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2211) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +7 -1
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +1 -1
  5. data/Gemfile +8 -1
  6. data/{LICENSE → MIT-LICENSE} +0 -0
  7. data/bootstrap.sh +1 -1
  8. data/dev.yml +1 -2
  9. data/ext/enterprise_script_service/Rakefile +7 -1
  10. data/ext/enterprise_script_service/data.cpp +21 -11
  11. data/ext/enterprise_script_service/libseccomp/.gitignore +4 -0
  12. data/ext/enterprise_script_service/libseccomp/.mailmap +10 -0
  13. data/ext/enterprise_script_service/libseccomp/.travis.yml +71 -0
  14. data/ext/enterprise_script_service/libseccomp/CHANGELOG +33 -0
  15. data/ext/enterprise_script_service/libseccomp/CONTRIBUTING.md +134 -0
  16. data/ext/enterprise_script_service/libseccomp/CREDITS +16 -1
  17. data/ext/enterprise_script_service/libseccomp/Makefile.am +32 -1
  18. data/ext/enterprise_script_service/libseccomp/README.md +113 -0
  19. data/ext/enterprise_script_service/libseccomp/RELEASE_PROCESS.md +97 -0
  20. data/ext/enterprise_script_service/libseccomp/configure.ac +8 -1
  21. data/ext/enterprise_script_service/libseccomp/doc/Makefile.am +3 -1
  22. data/ext/enterprise_script_service/libseccomp/doc/credits_updater +35 -0
  23. data/ext/enterprise_script_service/libseccomp/doc/man/man1/scmp_sys_resolver.1 +3 -1
  24. data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_api_get.3 +101 -0
  25. data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_api_set.3 +1 -0
  26. data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_arch_add.3 +1 -1
  27. data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_attr_set.3 +23 -4
  28. data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_init.3 +9 -0
  29. data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_merge.3 +2 -2
  30. data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_rule_add.3 +80 -15
  31. data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_syscall_resolve_name.3 +15 -1
  32. data/ext/enterprise_script_service/libseccomp/include/seccomp.h.in +185 -22
  33. data/ext/enterprise_script_service/libseccomp/src/Makefile.am +13 -4
  34. data/ext/enterprise_script_service/libseccomp/src/api.c +87 -8
  35. data/ext/enterprise_script_service/libseccomp/src/arch-aarch64-syscalls.c +18 -7
  36. data/ext/enterprise_script_service/libseccomp/src/arch-aarch64.h +2 -1
  37. data/ext/enterprise_script_service/libseccomp/src/arch-arm-syscalls.c +17 -6
  38. data/ext/enterprise_script_service/libseccomp/src/arch-arm.h +1 -1
  39. data/ext/enterprise_script_service/libseccomp/src/arch-mips-syscalls.c +17 -6
  40. data/ext/enterprise_script_service/libseccomp/src/arch-mips.h +1 -1
  41. data/ext/enterprise_script_service/libseccomp/src/arch-mips64-syscalls.c +17 -6
  42. data/ext/enterprise_script_service/libseccomp/src/arch-mips64.h +1 -1
  43. data/ext/enterprise_script_service/libseccomp/src/arch-mips64n32-syscalls.c +17 -6
  44. data/ext/enterprise_script_service/libseccomp/src/arch-mips64n32.h +1 -1
  45. data/ext/enterprise_script_service/libseccomp/src/arch-parisc-syscalls.c +510 -0
  46. data/ext/enterprise_script_service/libseccomp/src/arch-parisc.c +22 -0
  47. data/ext/enterprise_script_service/libseccomp/src/arch-parisc.h +38 -0
  48. data/ext/enterprise_script_service/libseccomp/src/arch-parisc64.c +22 -0
  49. data/ext/enterprise_script_service/libseccomp/src/arch-ppc-syscalls.c +18 -7
  50. data/ext/enterprise_script_service/libseccomp/src/arch-ppc.h +1 -1
  51. data/ext/enterprise_script_service/libseccomp/src/arch-ppc64-syscalls.c +18 -7
  52. data/ext/enterprise_script_service/libseccomp/src/arch-ppc64.h +1 -1
  53. data/ext/enterprise_script_service/libseccomp/src/arch-s390-syscalls.c +19 -7
  54. data/ext/enterprise_script_service/libseccomp/src/arch-s390.c +43 -45
  55. data/ext/enterprise_script_service/libseccomp/src/arch-s390.h +2 -3
  56. data/ext/enterprise_script_service/libseccomp/src/arch-s390x-syscalls.c +18 -7
  57. data/ext/enterprise_script_service/libseccomp/src/arch-s390x.c +43 -45
  58. data/ext/enterprise_script_service/libseccomp/src/arch-s390x.h +2 -3
  59. data/ext/enterprise_script_service/libseccomp/src/arch-syscall-check.c +56 -53
  60. data/ext/enterprise_script_service/libseccomp/src/arch-syscall-dump.c +23 -18
  61. data/ext/enterprise_script_service/libseccomp/src/arch-syscall-validate +52 -49
  62. data/ext/enterprise_script_service/libseccomp/src/arch-x32-syscalls.c +17 -6
  63. data/ext/enterprise_script_service/libseccomp/src/arch-x32.h +1 -1
  64. data/ext/enterprise_script_service/libseccomp/src/arch-x86-syscalls.c +18 -7
  65. data/ext/enterprise_script_service/libseccomp/src/arch-x86.c +41 -45
  66. data/ext/enterprise_script_service/libseccomp/src/arch-x86.h +2 -3
  67. data/ext/enterprise_script_service/libseccomp/src/arch-x86_64-syscalls.c +17 -6
  68. data/ext/enterprise_script_service/libseccomp/src/arch-x86_64.h +1 -1
  69. data/ext/enterprise_script_service/libseccomp/src/arch.c +48 -83
  70. data/ext/enterprise_script_service/libseccomp/src/arch.h +4 -21
  71. data/ext/enterprise_script_service/libseccomp/src/db.c +1184 -541
  72. data/ext/enterprise_script_service/libseccomp/src/db.h +12 -32
  73. data/ext/enterprise_script_service/libseccomp/src/gen_bpf.c +43 -24
  74. data/ext/enterprise_script_service/libseccomp/src/gen_pfc.c +20 -7
  75. data/ext/enterprise_script_service/libseccomp/src/hash.c +65 -649
  76. data/ext/enterprise_script_service/libseccomp/src/hash.h +3 -13
  77. data/ext/enterprise_script_service/libseccomp/src/helper.c +49 -0
  78. data/ext/enterprise_script_service/libseccomp/src/helper.h +27 -0
  79. data/ext/enterprise_script_service/libseccomp/src/python/Makefile.am +9 -4
  80. data/ext/enterprise_script_service/libseccomp/src/python/libseccomp.pxd +9 -0
  81. data/ext/enterprise_script_service/libseccomp/src/python/seccomp.pyx +72 -8
  82. data/ext/enterprise_script_service/libseccomp/src/python/setup.py +0 -0
  83. data/ext/enterprise_script_service/libseccomp/src/system.c +137 -4
  84. data/ext/enterprise_script_service/libseccomp/src/system.h +32 -2
  85. data/ext/enterprise_script_service/libseccomp/tests/.gitignore +17 -0
  86. data/ext/enterprise_script_service/libseccomp/tests/01-sim-allow.tests +2 -2
  87. data/ext/enterprise_script_service/libseccomp/tests/05-sim-long_jumps.tests +18 -18
  88. data/ext/enterprise_script_service/libseccomp/tests/06-sim-actions.c +12 -0
  89. data/ext/enterprise_script_service/libseccomp/tests/06-sim-actions.py +4 -0
  90. data/ext/enterprise_script_service/libseccomp/tests/06-sim-actions.tests +13 -8
  91. data/ext/enterprise_script_service/libseccomp/tests/08-sim-subtree_checks.c +2 -2
  92. data/ext/enterprise_script_service/libseccomp/tests/08-sim-subtree_checks.py +2 -2
  93. data/ext/enterprise_script_service/libseccomp/tests/08-sim-subtree_checks.tests +27 -27
  94. data/ext/enterprise_script_service/libseccomp/tests/09-sim-syscall_priority_pre.tests +7 -7
  95. data/ext/enterprise_script_service/libseccomp/tests/10-sim-syscall_priority_post.tests +7 -7
  96. data/ext/enterprise_script_service/libseccomp/tests/11-basic-basic_errors.c +12 -0
  97. data/ext/enterprise_script_service/libseccomp/tests/12-sim-basic_masked_ops.tests +29 -29
  98. data/ext/enterprise_script_service/libseccomp/tests/13-basic-attrs.c +37 -0
  99. data/ext/enterprise_script_service/libseccomp/tests/13-basic-attrs.py +10 -0
  100. data/ext/enterprise_script_service/libseccomp/tests/15-basic-resolver.c +79 -21
  101. data/ext/enterprise_script_service/libseccomp/tests/15-basic-resolver.py +2 -2
  102. data/ext/enterprise_script_service/libseccomp/tests/16-sim-arch_basic.c +44 -0
  103. data/ext/enterprise_script_service/libseccomp/tests/16-sim-arch_basic.py +4 -0
  104. data/ext/enterprise_script_service/libseccomp/tests/18-sim-basic_whitelist.c +6 -6
  105. data/ext/enterprise_script_service/libseccomp/tests/18-sim-basic_whitelist.py +6 -6
  106. data/ext/enterprise_script_service/libseccomp/tests/18-sim-basic_whitelist.tests +12 -12
  107. data/ext/enterprise_script_service/libseccomp/tests/20-live-basic_die.py +1 -0
  108. data/ext/enterprise_script_service/libseccomp/tests/20-live-basic_die.tests +4 -4
  109. data/ext/enterprise_script_service/libseccomp/tests/21-live-basic_allow.py +2 -0
  110. data/ext/enterprise_script_service/libseccomp/tests/21-live-basic_allow.tests +2 -2
  111. data/ext/enterprise_script_service/libseccomp/tests/24-live-arg_allow.py +3 -2
  112. data/ext/enterprise_script_service/libseccomp/tests/24-live-arg_allow.tests +2 -2
  113. data/ext/enterprise_script_service/libseccomp/tests/25-sim-multilevel_chains_adv.tests +6 -6
  114. data/ext/enterprise_script_service/libseccomp/tests/26-sim-arch_all_be_basic.c +6 -0
  115. data/ext/enterprise_script_service/libseccomp/tests/26-sim-arch_all_be_basic.py +2 -0
  116. data/ext/enterprise_script_service/libseccomp/tests/27-sim-bpf_blk_state.tests +5 -5
  117. data/ext/enterprise_script_service/libseccomp/tests/28-sim-arch_x86.py +0 -0
  118. data/ext/enterprise_script_service/libseccomp/tests/29-sim-pseudo_syscall.py +0 -0
  119. data/ext/enterprise_script_service/libseccomp/tests/32-live-tsync_allow.py +1 -0
  120. data/ext/enterprise_script_service/libseccomp/tests/32-live-tsync_allow.tests +2 -2
  121. data/ext/enterprise_script_service/libseccomp/tests/34-sim-basic_blacklist.c +74 -0
  122. data/ext/enterprise_script_service/libseccomp/tests/34-sim-basic_blacklist.py +45 -0
  123. data/ext/enterprise_script_service/libseccomp/tests/34-sim-basic_blacklist.tests +32 -0
  124. data/ext/enterprise_script_service/libseccomp/tests/35-sim-negative_one.c +73 -0
  125. data/ext/enterprise_script_service/libseccomp/tests/35-sim-negative_one.py +46 -0
  126. data/ext/enterprise_script_service/libseccomp/tests/35-sim-negative_one.tests +18 -0
  127. data/ext/enterprise_script_service/libseccomp/tests/36-sim-ipc_syscalls.c +112 -0
  128. data/ext/enterprise_script_service/libseccomp/tests/36-sim-ipc_syscalls.py +56 -0
  129. data/ext/enterprise_script_service/libseccomp/tests/36-sim-ipc_syscalls.tests +39 -0
  130. data/ext/enterprise_script_service/libseccomp/tests/37-sim-ipc_syscalls_be.c +109 -0
  131. data/ext/enterprise_script_service/libseccomp/tests/37-sim-ipc_syscalls_be.py +55 -0
  132. data/ext/enterprise_script_service/libseccomp/tests/37-sim-ipc_syscalls_be.tests +27 -0
  133. data/ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.c +104 -0
  134. data/ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.sh +46 -0
  135. data/ext/enterprise_script_service/libseccomp/tests/38-basic-pfc_coverage.tests +11 -0
  136. data/ext/enterprise_script_service/libseccomp/tests/39-basic-api_level.c +67 -0
  137. data/ext/enterprise_script_service/libseccomp/tests/39-basic-api_level.py +68 -0
  138. data/ext/enterprise_script_service/libseccomp/tests/39-basic-api_level.tests +11 -0
  139. data/ext/enterprise_script_service/libseccomp/tests/40-sim-log.c +59 -0
  140. data/ext/enterprise_script_service/libseccomp/tests/40-sim-log.py +47 -0
  141. data/ext/enterprise_script_service/libseccomp/tests/40-sim-log.tests +21 -0
  142. data/ext/enterprise_script_service/libseccomp/tests/41-sim-syscall_priority_arch.c +63 -0
  143. data/ext/enterprise_script_service/libseccomp/tests/41-sim-syscall_priority_arch.py +44 -0
  144. data/ext/enterprise_script_service/libseccomp/tests/41-sim-syscall_priority_arch.tests +19 -0
  145. data/ext/enterprise_script_service/libseccomp/tests/42-sim-adv_chains.c +198 -0
  146. data/ext/enterprise_script_service/libseccomp/tests/42-sim-adv_chains.py +128 -0
  147. data/ext/enterprise_script_service/libseccomp/tests/42-sim-adv_chains.tests +54 -0
  148. data/ext/enterprise_script_service/libseccomp/tests/43-sim-a2_order.c +132 -0
  149. data/ext/enterprise_script_service/libseccomp/tests/43-sim-a2_order.py +62 -0
  150. data/ext/enterprise_script_service/libseccomp/tests/43-sim-a2_order.tests +55 -0
  151. data/ext/enterprise_script_service/libseccomp/tests/44-live-a2_order.c +178 -0
  152. data/ext/enterprise_script_service/libseccomp/tests/44-live-a2_order.py +107 -0
  153. data/ext/enterprise_script_service/libseccomp/tests/44-live-a2_order.tests +11 -0
  154. data/ext/enterprise_script_service/libseccomp/tests/45-sim-chain_code_coverage.c +108 -0
  155. data/ext/enterprise_script_service/libseccomp/tests/45-sim-chain_code_coverage.py +48 -0
  156. data/ext/enterprise_script_service/libseccomp/tests/45-sim-chain_code_coverage.tests +16 -0
  157. data/ext/enterprise_script_service/libseccomp/tests/46-sim-kill_process.c +78 -0
  158. data/ext/enterprise_script_service/libseccomp/tests/46-sim-kill_process.py +47 -0
  159. data/ext/enterprise_script_service/libseccomp/tests/46-sim-kill_process.tests +16 -0
  160. data/ext/enterprise_script_service/libseccomp/tests/47-live-kill_process.c +102 -0
  161. data/ext/enterprise_script_service/libseccomp/tests/47-live-kill_process.py +68 -0
  162. data/ext/enterprise_script_service/libseccomp/tests/47-live-kill_process.tests +11 -0
  163. data/ext/enterprise_script_service/libseccomp/tests/48-sim-32b_args.c +84 -0
  164. data/ext/enterprise_script_service/libseccomp/tests/48-sim-32b_args.py +50 -0
  165. data/ext/enterprise_script_service/libseccomp/tests/48-sim-32b_args.tests +38 -0
  166. data/ext/enterprise_script_service/libseccomp/tests/49-sim-64b_comparisons.c +56 -0
  167. data/ext/enterprise_script_service/libseccomp/tests/49-sim-64b_comparisons.py +45 -0
  168. data/ext/enterprise_script_service/libseccomp/tests/49-sim-64b_comparisons.tests +25 -0
  169. data/ext/enterprise_script_service/libseccomp/tests/Makefile.am +68 -6
  170. data/ext/enterprise_script_service/libseccomp/tests/miniseq.c +3 -2
  171. data/ext/enterprise_script_service/libseccomp/tests/regression +102 -10
  172. data/ext/enterprise_script_service/libseccomp/tests/util.c +4 -0
  173. data/ext/enterprise_script_service/libseccomp/tests/util.py +2 -2
  174. data/ext/enterprise_script_service/libseccomp/tools/.gitignore +1 -0
  175. data/ext/enterprise_script_service/libseccomp/tools/Makefile.am +5 -1
  176. data/ext/enterprise_script_service/libseccomp/tools/bpf.h +8 -1
  177. data/ext/enterprise_script_service/libseccomp/tools/scmp_api_level.c +39 -0
  178. data/ext/enterprise_script_service/libseccomp/tools/scmp_arch_detect.c +6 -0
  179. data/ext/enterprise_script_service/libseccomp/tools/scmp_bpf_disasm.c +14 -2
  180. data/ext/enterprise_script_service/libseccomp/tools/scmp_bpf_sim.c +12 -2
  181. data/ext/enterprise_script_service/libseccomp/tools/util.c +4 -0
  182. data/ext/enterprise_script_service/mruby/.gitignore +15 -8
  183. data/ext/enterprise_script_service/mruby/.travis.yml +3 -4
  184. data/ext/enterprise_script_service/mruby/.yardopts +1 -1
  185. data/ext/enterprise_script_service/mruby/AUTHORS +6 -2
  186. data/ext/enterprise_script_service/mruby/LEGAL +1 -1
  187. data/ext/enterprise_script_service/mruby/LICENSE +20 -0
  188. data/ext/enterprise_script_service/mruby/README.md +2 -2
  189. data/ext/enterprise_script_service/mruby/Rakefile +28 -12
  190. data/ext/enterprise_script_service/mruby/TODO +0 -2
  191. data/ext/enterprise_script_service/mruby/appveyor.yml +11 -7
  192. data/ext/enterprise_script_service/mruby/benchmark/bm_app_lc_fizzbuzz.rb +1 -2
  193. data/ext/enterprise_script_service/mruby/build_config.rb +3 -2
  194. data/ext/enterprise_script_service/mruby/doc/guides/debugger.md +1 -1
  195. data/ext/enterprise_script_service/mruby/doc/guides/mrbgems.md +7 -2
  196. data/ext/enterprise_script_service/mruby/doc/limitations.md +69 -7
  197. data/ext/enterprise_script_service/mruby/doc/opcode.md +127 -0
  198. data/ext/enterprise_script_service/mruby/examples/targets/build_config_android_arm64-v8a.rb +2 -2
  199. data/ext/enterprise_script_service/mruby/examples/targets/build_config_android_armeabi.rb +2 -2
  200. data/ext/enterprise_script_service/mruby/include/mrbconf.h +9 -3
  201. data/ext/enterprise_script_service/mruby/include/mruby.h +45 -34
  202. data/ext/enterprise_script_service/mruby/include/mruby/array.h +17 -0
  203. data/ext/enterprise_script_service/mruby/include/mruby/boxing_nan.h +1 -1
  204. data/ext/enterprise_script_service/mruby/include/mruby/boxing_word.h +12 -4
  205. data/ext/enterprise_script_service/mruby/include/mruby/class.h +18 -15
  206. data/ext/enterprise_script_service/mruby/include/mruby/common.h +6 -1
  207. data/ext/enterprise_script_service/mruby/include/mruby/compile.h +6 -5
  208. data/ext/enterprise_script_service/mruby/include/mruby/data.h +5 -4
  209. data/ext/enterprise_script_service/mruby/include/mruby/debug.h +5 -5
  210. data/ext/enterprise_script_service/mruby/include/mruby/dump.h +2 -2
  211. data/ext/enterprise_script_service/mruby/include/mruby/error.h +1 -1
  212. data/ext/enterprise_script_service/mruby/include/mruby/hash.h +56 -9
  213. data/ext/enterprise_script_service/mruby/include/mruby/irep.h +17 -4
  214. data/ext/enterprise_script_service/mruby/include/mruby/object.h +5 -6
  215. data/ext/enterprise_script_service/mruby/include/mruby/opcode.h +47 -139
  216. data/ext/enterprise_script_service/mruby/include/mruby/ops.h +117 -0
  217. data/ext/enterprise_script_service/mruby/include/mruby/proc.h +8 -8
  218. data/ext/enterprise_script_service/mruby/include/mruby/range.h +29 -5
  219. data/ext/enterprise_script_service/mruby/include/mruby/string.h +20 -10
  220. data/ext/enterprise_script_service/mruby/include/mruby/throw.h +4 -4
  221. data/ext/enterprise_script_service/mruby/include/mruby/value.h +4 -0
  222. data/ext/enterprise_script_service/mruby/include/mruby/variable.h +7 -4
  223. data/ext/enterprise_script_service/mruby/include/mruby/version.h +7 -7
  224. data/ext/enterprise_script_service/mruby/lib/mruby-core-ext.rb +23 -17
  225. data/ext/enterprise_script_service/mruby/lib/mruby/build.rb +35 -9
  226. data/ext/enterprise_script_service/mruby/lib/mruby/build/command.rb +5 -5
  227. data/ext/enterprise_script_service/mruby/lib/mruby/build/load_gems.rb +5 -3
  228. data/ext/enterprise_script_service/mruby/lib/mruby/gem.rb +26 -27
  229. data/ext/enterprise_script_service/mruby/minirake +136 -15
  230. data/ext/enterprise_script_service/mruby/mrbgems/default.gembox +9 -0
  231. data/ext/enterprise_script_service/mruby/mrbgems/mruby-array-ext/mrblib/array.rb +54 -50
  232. data/ext/enterprise_script_service/mruby/mrbgems/mruby-array-ext/src/array.c +3 -46
  233. data/ext/enterprise_script_service/mruby/mrbgems/mruby-array-ext/test/array.rb +9 -24
  234. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-config/mrbgem.rake +23 -0
  235. data/ext/enterprise_script_service/mruby/mrbgems/{mruby-bin-mruby-config → mruby-bin-config}/mruby-config +0 -0
  236. data/ext/enterprise_script_service/mruby/mrbgems/{mruby-bin-mruby-config → mruby-bin-config}/mruby-config.bat +0 -0
  237. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-debugger/bintest/print.rb +13 -13
  238. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c +9 -7
  239. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c +1 -1
  240. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c +7 -2
  241. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.h +1 -1
  242. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c +3 -3
  243. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c +7 -1
  244. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdprint.c +24 -1
  245. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c +1 -1
  246. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c +8 -5
  247. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.h +2 -0
  248. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-mirb/bintest/mirb.rb +22 -0
  249. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +84 -17
  250. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-mrbc/mrbgem.rake +1 -1
  251. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c +9 -0
  252. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-mruby/bintest/mruby.rb +38 -1
  253. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-mruby/mrbgem.rake +1 -0
  254. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c +60 -7
  255. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-strip/bintest/mruby-strip.rb +3 -3
  256. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.c +1 -17
  257. data/ext/enterprise_script_service/mruby/mrbgems/mruby-class-ext/mrblib/module.rb +89 -0
  258. data/ext/enterprise_script_service/mruby/mrbgems/mruby-class-ext/test/module.rb +55 -1
  259. data/ext/enterprise_script_service/mruby/mrbgems/mruby-compiler/core/codegen.c +918 -767
  260. data/ext/enterprise_script_service/mruby/mrbgems/mruby-compiler/core/node.h +4 -20
  261. data/ext/enterprise_script_service/mruby/mrbgems/mruby-compiler/core/parse.y +552 -273
  262. data/ext/enterprise_script_service/mruby/mrbgems/mruby-compiler/mrbgem.rake +3 -3
  263. data/ext/enterprise_script_service/mruby/mrbgems/mruby-enum-chain/mrbgem.rake +6 -0
  264. data/ext/enterprise_script_service/mruby/mrbgems/mruby-enum-chain/mrblib/chain.rb +60 -0
  265. data/ext/enterprise_script_service/mruby/mrbgems/mruby-enum-chain/test/enum_chain.rb +76 -0
  266. data/ext/enterprise_script_service/mruby/mrbgems/mruby-enum-ext/mrblib/enum.rb +57 -37
  267. data/ext/enterprise_script_service/mruby/mrbgems/mruby-enum-ext/test/enum.rb +10 -2
  268. data/ext/enterprise_script_service/mruby/mrbgems/mruby-enum-lazy/mrblib/lazy.rb +1 -1
  269. data/ext/enterprise_script_service/mruby/mrbgems/mruby-enum-lazy/test/lazy.rb +1 -1
  270. data/ext/enterprise_script_service/mruby/mrbgems/mruby-enumerator/mrblib/enumerator.rb +47 -35
  271. data/ext/enterprise_script_service/mruby/mrbgems/mruby-enumerator/test/enumerator.rb +22 -17
  272. data/ext/enterprise_script_service/mruby/mrbgems/mruby-eval/src/eval.c +90 -40
  273. data/ext/enterprise_script_service/mruby/mrbgems/mruby-eval/test/eval.rb +33 -2
  274. data/ext/enterprise_script_service/mruby/mrbgems/mruby-fiber/src/fiber.c +15 -12
  275. data/ext/enterprise_script_service/mruby/mrbgems/mruby-hash-ext/mrblib/hash.rb +42 -47
  276. data/ext/enterprise_script_service/mruby/mrbgems/mruby-hash-ext/src/hash-ext.c +4 -47
  277. data/ext/enterprise_script_service/mruby/mrbgems/mruby-hash-ext/test/hash.rb +0 -6
  278. data/ext/enterprise_script_service/mruby/mrbgems/mruby-inline-struct/test/inline.c +12 -10
  279. data/ext/enterprise_script_service/mruby/mrbgems/mruby-inline-struct/test/inline.rb +17 -50
  280. data/ext/enterprise_script_service/mruby/mrbgems/mruby-io/mrbgem.rake +2 -1
  281. data/ext/enterprise_script_service/mruby/mrbgems/mruby-io/mrblib/io.rb +3 -2
  282. data/ext/enterprise_script_service/mruby/mrbgems/mruby-io/src/file.c +11 -8
  283. data/ext/enterprise_script_service/mruby/mrbgems/mruby-io/src/io.c +128 -117
  284. data/ext/enterprise_script_service/mruby/mrbgems/mruby-io/test/file.rb +17 -21
  285. data/ext/enterprise_script_service/mruby/mrbgems/mruby-io/test/file_test.rb +4 -4
  286. data/ext/enterprise_script_service/mruby/mrbgems/mruby-io/test/io.rb +16 -53
  287. data/ext/enterprise_script_service/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb +2 -0
  288. data/ext/enterprise_script_service/mruby/mrbgems/mruby-kernel-ext/src/kernel.c +12 -30
  289. data/ext/enterprise_script_service/mruby/mrbgems/mruby-kernel-ext/test/kernel.rb +4 -2
  290. data/ext/enterprise_script_service/mruby/mrbgems/mruby-math/src/math.c +7 -10
  291. data/ext/enterprise_script_service/mruby/mrbgems/mruby-math/test/math.rb +31 -51
  292. data/ext/enterprise_script_service/mruby/mrbgems/mruby-metaprog/mrbgem.rake +5 -0
  293. data/ext/enterprise_script_service/mruby/mrbgems/mruby-metaprog/src/metaprog.c +702 -0
  294. data/ext/enterprise_script_service/mruby/mrbgems/mruby-metaprog/test/metaprog.rb +369 -0
  295. data/ext/enterprise_script_service/mruby/mrbgems/mruby-method/mrblib/kernel.rb +3 -2
  296. data/ext/enterprise_script_service/mruby/mrbgems/mruby-method/mrblib/method.rb +8 -0
  297. data/ext/enterprise_script_service/mruby/mrbgems/mruby-method/src/method.c +4 -4
  298. data/ext/enterprise_script_service/mruby/mrbgems/mruby-method/test/method.rb +27 -9
  299. data/ext/enterprise_script_service/mruby/mrbgems/mruby-numeric-ext/src/numeric_ext.c +7 -10
  300. data/ext/enterprise_script_service/mruby/mrbgems/mruby-numeric-ext/test/numeric.rb +2 -1
  301. data/ext/enterprise_script_service/mruby/mrbgems/mruby-object-ext/test/nil.rb +2 -1
  302. data/ext/enterprise_script_service/mruby/mrbgems/mruby-objectspace/src/mruby_objectspace.c +1 -1
  303. data/ext/enterprise_script_service/mruby/mrbgems/mruby-objectspace/test/objectspace.rb +1 -1
  304. data/ext/enterprise_script_service/mruby/mrbgems/mruby-pack/src/pack.c +126 -79
  305. data/ext/enterprise_script_service/mruby/mrbgems/mruby-pack/test/pack.rb +2 -2
  306. data/ext/enterprise_script_service/mruby/mrbgems/mruby-print/mrblib/print.rb +1 -4
  307. data/ext/enterprise_script_service/mruby/mrbgems/mruby-print/src/print.c +0 -1
  308. data/ext/enterprise_script_service/mruby/mrbgems/mruby-proc-ext/mrblib/proc.rb +9 -1
  309. data/ext/enterprise_script_service/mruby/mrbgems/mruby-proc-ext/src/proc.c +34 -19
  310. data/ext/enterprise_script_service/mruby/mrbgems/mruby-proc-ext/test/proc.rb +18 -0
  311. data/ext/enterprise_script_service/mruby/mrbgems/mruby-random/src/random.c +7 -7
  312. data/ext/enterprise_script_service/mruby/mrbgems/mruby-random/test/random.rb +0 -12
  313. data/ext/enterprise_script_service/mruby/mrbgems/mruby-range-ext/mrblib/range.rb +1 -4
  314. data/ext/enterprise_script_service/mruby/mrbgems/mruby-range-ext/src/range.c +13 -14
  315. data/ext/enterprise_script_service/mruby/mrbgems/mruby-sleep/.gitignore +4 -0
  316. data/ext/enterprise_script_service/mruby/mrbgems/mruby-sleep/.travis.yml +29 -0
  317. data/ext/enterprise_script_service/mruby/mrbgems/mruby-sleep/.travis_build_config.rb +6 -0
  318. data/ext/enterprise_script_service/mruby/mrbgems/mruby-sleep/README.md +27 -0
  319. data/ext/enterprise_script_service/mruby/mrbgems/mruby-sleep/Rakefile +29 -0
  320. data/ext/enterprise_script_service/mruby/mrbgems/mruby-sleep/example/sleep.rb +3 -0
  321. data/ext/enterprise_script_service/mruby/mrbgems/mruby-sleep/mrbgem.rake +5 -0
  322. data/ext/enterprise_script_service/mruby/mrbgems/mruby-sleep/src/mrb_sleep.c +135 -0
  323. data/ext/enterprise_script_service/mruby/mrbgems/mruby-sleep/test/sleep_test.rb +29 -0
  324. data/ext/enterprise_script_service/mruby/mrbgems/mruby-socket/mrbgem.rake +1 -0
  325. data/ext/enterprise_script_service/mruby/mrbgems/mruby-socket/mrblib/socket.rb +3 -3
  326. data/ext/enterprise_script_service/mruby/mrbgems/mruby-socket/src/const.cstub +6 -0
  327. data/ext/enterprise_script_service/mruby/mrbgems/mruby-socket/src/const.def +2 -0
  328. data/ext/enterprise_script_service/mruby/mrbgems/mruby-socket/src/socket.c +48 -20
  329. data/ext/enterprise_script_service/mruby/mrbgems/mruby-socket/test/addrinfo.rb +5 -5
  330. data/ext/enterprise_script_service/mruby/mrbgems/mruby-socket/test/socket.rb +2 -2
  331. data/ext/enterprise_script_service/mruby/mrbgems/mruby-socket/test/sockettest.c +1 -0
  332. data/ext/enterprise_script_service/mruby/mrbgems/mruby-sprintf/src/sprintf.c +14 -13
  333. data/ext/enterprise_script_service/mruby/mrbgems/mruby-sprintf/test/sprintf.rb +6 -3
  334. data/ext/enterprise_script_service/mruby/mrbgems/mruby-string-ext/mrblib/string.rb +96 -21
  335. data/ext/enterprise_script_service/mruby/mrbgems/mruby-string-ext/src/string.c +626 -190
  336. data/ext/enterprise_script_service/mruby/mrbgems/mruby-string-ext/test/string.rb +102 -59
  337. data/ext/enterprise_script_service/mruby/mrbgems/mruby-struct/mrblib/struct.rb +15 -16
  338. data/ext/enterprise_script_service/mruby/mrbgems/mruby-struct/src/struct.c +16 -15
  339. data/ext/enterprise_script_service/mruby/mrbgems/mruby-struct/test/struct.rb +2 -2
  340. data/ext/enterprise_script_service/mruby/mrbgems/mruby-symbol-ext/mrblib/symbol.rb +0 -6
  341. data/ext/enterprise_script_service/mruby/mrbgems/mruby-symbol-ext/src/symbol.c +13 -6
  342. data/ext/enterprise_script_service/mruby/mrbgems/mruby-symbol-ext/test/symbol.rb +21 -13
  343. data/ext/enterprise_script_service/mruby/mrbgems/mruby-test/driver.c +22 -39
  344. data/ext/enterprise_script_service/mruby/mrbgems/mruby-test/mrbgem.rake +22 -23
  345. data/ext/enterprise_script_service/mruby/mrbgems/mruby-time/include/mruby/time.h +25 -0
  346. data/ext/enterprise_script_service/mruby/mrbgems/mruby-time/src/time.c +26 -22
  347. data/ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb +2 -2
  348. data/ext/enterprise_script_service/mruby/mrblib/array.rb +70 -40
  349. data/ext/enterprise_script_service/mruby/mrblib/enum.rb +4 -3
  350. data/ext/enterprise_script_service/mruby/mrblib/hash.rb +17 -46
  351. data/ext/enterprise_script_service/mruby/mrblib/kernel.rb +1 -1
  352. data/ext/enterprise_script_service/mruby/mrblib/mrblib.rake +1 -4
  353. data/ext/enterprise_script_service/mruby/mrblib/numeric.rb +2 -2
  354. data/ext/enterprise_script_service/mruby/mrblib/string.rb +7 -8
  355. data/ext/enterprise_script_service/mruby/mrblib/symbol.rb +7 -0
  356. data/ext/enterprise_script_service/mruby/src/array.c +97 -44
  357. data/ext/enterprise_script_service/mruby/src/backtrace.c +14 -16
  358. data/ext/enterprise_script_service/mruby/src/class.c +156 -464
  359. data/ext/enterprise_script_service/mruby/src/codedump.c +436 -364
  360. data/ext/enterprise_script_service/mruby/src/debug.c +42 -45
  361. data/ext/enterprise_script_service/mruby/src/dump.c +27 -152
  362. data/ext/enterprise_script_service/mruby/src/enum.c +18 -2
  363. data/ext/enterprise_script_service/mruby/src/error.c +5 -4
  364. data/ext/enterprise_script_service/mruby/src/etc.c +1 -0
  365. data/ext/enterprise_script_service/mruby/src/fmt_fp.c +15 -1
  366. data/ext/enterprise_script_service/mruby/src/gc.c +76 -30
  367. data/ext/enterprise_script_service/mruby/src/hash.c +768 -256
  368. data/ext/enterprise_script_service/mruby/src/kernel.c +24 -446
  369. data/ext/enterprise_script_service/mruby/src/load.c +35 -35
  370. data/ext/enterprise_script_service/mruby/src/mruby_core.rake +2 -3
  371. data/ext/enterprise_script_service/mruby/src/numeric.c +96 -32
  372. data/ext/enterprise_script_service/mruby/src/object.c +88 -43
  373. data/ext/enterprise_script_service/mruby/src/proc.c +16 -14
  374. data/ext/enterprise_script_service/mruby/src/range.c +186 -176
  375. data/ext/enterprise_script_service/mruby/src/state.c +5 -5
  376. data/ext/enterprise_script_service/mruby/src/string.c +79 -93
  377. data/ext/enterprise_script_service/mruby/src/symbol.c +173 -85
  378. data/ext/enterprise_script_service/mruby/src/variable.c +283 -177
  379. data/ext/enterprise_script_service/mruby/src/vm.c +711 -688
  380. data/ext/enterprise_script_service/mruby/tasks/libmruby.rake +4 -3
  381. data/ext/enterprise_script_service/mruby/tasks/mrbgems.rake +3 -2
  382. data/ext/enterprise_script_service/mruby/tasks/toolchains/android.rake +1 -0
  383. data/ext/enterprise_script_service/mruby/tasks/toolchains/clang.rake +1 -1
  384. data/ext/enterprise_script_service/mruby/tasks/toolchains/gcc.rake +4 -6
  385. data/ext/enterprise_script_service/mruby/tasks/toolchains/openwrt.rake +0 -2
  386. data/ext/enterprise_script_service/mruby/tasks/toolchains/visualcpp.rake +12 -11
  387. data/ext/enterprise_script_service/mruby/test/assert.rb +114 -121
  388. data/ext/enterprise_script_service/mruby/test/bintest.rb +10 -1
  389. data/ext/enterprise_script_service/mruby/test/t/array.rb +11 -11
  390. data/ext/enterprise_script_service/mruby/test/t/bs_block.rb +32 -31
  391. data/ext/enterprise_script_service/mruby/test/t/class.rb +11 -23
  392. data/ext/enterprise_script_service/mruby/test/t/codegen.rb +3 -3
  393. data/ext/enterprise_script_service/mruby/test/t/enumerable.rb +1 -1
  394. data/ext/enterprise_script_service/mruby/test/t/exception.rb +2 -2
  395. data/ext/enterprise_script_service/mruby/test/t/float.rb +41 -2
  396. data/ext/enterprise_script_service/mruby/test/t/hash.rb +6 -5
  397. data/ext/enterprise_script_service/mruby/test/t/integer.rb +26 -44
  398. data/ext/enterprise_script_service/mruby/test/t/kernel.rb +7 -119
  399. data/ext/enterprise_script_service/mruby/test/t/literals.rb +1 -1
  400. data/ext/enterprise_script_service/mruby/test/t/module.rb +93 -282
  401. data/ext/enterprise_script_service/mruby/test/t/numeric.rb +40 -11
  402. data/ext/enterprise_script_service/mruby/test/t/proc.rb +1 -1
  403. data/ext/enterprise_script_service/mruby/test/t/range.rb +19 -2
  404. data/ext/enterprise_script_service/mruby/test/t/string.rb +17 -24
  405. data/ext/enterprise_script_service/mruby/test/t/symbol.rb +6 -2
  406. data/ext/enterprise_script_service/mruby/test/t/syntax.rb +191 -3
  407. data/ext/enterprise_script_service/mruby/travis_config.rb +1 -1
  408. data/ext/enterprise_script_service/mruby_engine.cpp +1 -1
  409. data/ext/enterprise_script_service/mruby_engine.gembox +1 -0
  410. data/ext/enterprise_script_service/msgpack/.travis.yml +77 -44
  411. data/ext/enterprise_script_service/msgpack/CHANGELOG.md +75 -0
  412. data/ext/enterprise_script_service/msgpack/CMakeLists.txt +187 -50
  413. data/ext/enterprise_script_service/msgpack/Doxyfile +1 -1
  414. data/ext/enterprise_script_service/msgpack/Files.cmake +87 -0
  415. data/ext/enterprise_script_service/msgpack/QUICKSTART-C.md +3 -3
  416. data/ext/enterprise_script_service/msgpack/QUICKSTART-CPP.md +1 -1
  417. data/ext/enterprise_script_service/msgpack/README.md +15 -7
  418. data/ext/enterprise_script_service/msgpack/appveyor.yml +9 -5
  419. data/ext/enterprise_script_service/msgpack/ci/build_cmake.sh +2 -2
  420. data/ext/enterprise_script_service/msgpack/ci/build_regression.sh +49 -0
  421. data/ext/enterprise_script_service/msgpack/erb/v1/cpp03_define_array.hpp.erb +4 -2
  422. data/ext/enterprise_script_service/msgpack/erb/v1/cpp03_define_map.hpp.erb +2 -1
  423. data/ext/enterprise_script_service/msgpack/erb/v1/cpp03_msgpack_tuple.hpp.erb +1 -1
  424. data/ext/enterprise_script_service/msgpack/erb/v1/cpp03_zone.hpp.erb +25 -18
  425. data/ext/enterprise_script_service/msgpack/erb/v1/cpp03_zone_decl.hpp.erb +8 -0
  426. data/ext/enterprise_script_service/msgpack/example/boost/CMakeLists.txt +28 -1
  427. data/ext/enterprise_script_service/msgpack/example/boost/asio_send_recv.cpp +104 -0
  428. data/ext/enterprise_script_service/msgpack/example/boost/asio_send_recv_zlib.cpp +176 -0
  429. data/ext/enterprise_script_service/msgpack/example/c/CMakeLists.txt +4 -2
  430. data/ext/enterprise_script_service/msgpack/example/c/speed_test_uint32_array.c +1 -1
  431. data/ext/enterprise_script_service/msgpack/example/c/speed_test_uint64_array.c +1 -1
  432. data/ext/enterprise_script_service/msgpack/example/cpp03/CMakeLists.txt +15 -3
  433. data/ext/enterprise_script_service/msgpack/example/cpp03/class_non_intrusive.cpp +1 -1
  434. data/ext/enterprise_script_service/msgpack/example/cpp11/CMakeLists.txt +5 -1
  435. data/ext/enterprise_script_service/msgpack/example/x3/CMakeLists.txt +12 -4
  436. data/ext/enterprise_script_service/msgpack/example/x3/parse.cpp +7 -1
  437. data/ext/enterprise_script_service/msgpack/example/x3/stream_unpack.cpp +9 -0
  438. data/ext/enterprise_script_service/msgpack/external/boost/predef/.gitattributes +96 -0
  439. data/ext/enterprise_script_service/msgpack/external/boost/predef/.gitignore +3 -0
  440. data/ext/enterprise_script_service/msgpack/external/boost/predef/.project +17 -0
  441. data/ext/enterprise_script_service/msgpack/external/boost/predef/.pydevproject +5 -0
  442. data/ext/enterprise_script_service/msgpack/external/boost/predef/.travis.yml +109 -0
  443. data/ext/enterprise_script_service/msgpack/external/boost/predef/appveyor.yml +149 -0
  444. data/ext/enterprise_script_service/msgpack/external/boost/predef/build.jam +6 -0
  445. data/ext/enterprise_script_service/msgpack/external/boost/predef/check/predef.jam +17 -0
  446. data/ext/enterprise_script_service/msgpack/external/boost/predef/doc/.gitignore +1 -0
  447. data/ext/enterprise_script_service/msgpack/external/boost/predef/doc/build.jam +100 -0
  448. data/ext/enterprise_script_service/msgpack/external/boost/predef/doc/hardware_simd.qbk +89 -0
  449. data/ext/enterprise_script_service/msgpack/external/boost/predef/doc/history.qbk +93 -0
  450. data/ext/enterprise_script_service/msgpack/external/boost/predef/doc/predef.qbk +734 -0
  451. data/ext/enterprise_script_service/msgpack/external/boost/predef/doc/todo.qbk +12 -0
  452. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/detail/endian.hpp +11 -0
  453. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef.h +24 -0
  454. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture.h +33 -0
  455. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/alpha.h +59 -0
  456. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/arm.h +80 -0
  457. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/blackfin.h +46 -0
  458. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/convex.h +65 -0
  459. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/ia64.h +49 -0
  460. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/m68k.h +82 -0
  461. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/mips.h +73 -0
  462. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/parisc.h +64 -0
  463. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/ppc.h +72 -0
  464. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/ptx.h +44 -0
  465. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/pyramid.h +42 -0
  466. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/rs6k.h +56 -0
  467. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/sparc.h +54 -0
  468. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/superh.h +67 -0
  469. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/sys370.h +43 -0
  470. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/sys390.h +43 -0
  471. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/x86.h +38 -0
  472. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/x86/32.h +87 -0
  473. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/x86/64.h +50 -0
  474. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/architecture/z.h +42 -0
  475. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler.h +44 -0
  476. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/borland.h +63 -0
  477. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/clang.h +56 -0
  478. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/comeau.h +61 -0
  479. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/compaq.h +66 -0
  480. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/diab.h +56 -0
  481. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/digitalmars.h +56 -0
  482. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/dignus.h +56 -0
  483. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/edg.h +56 -0
  484. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/ekopath.h +57 -0
  485. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/gcc.h +68 -0
  486. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/gcc_xml.h +53 -0
  487. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/greenhills.h +66 -0
  488. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/hp_acc.h +61 -0
  489. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/iar.h +56 -0
  490. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/ibm.h +72 -0
  491. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/intel.h +79 -0
  492. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/kai.h +56 -0
  493. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/llvm.h +57 -0
  494. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/metaware.h +53 -0
  495. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/metrowerks.h +77 -0
  496. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/microtec.h +53 -0
  497. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/mpw.h +63 -0
  498. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/nvcc.h +60 -0
  499. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/palm.h +56 -0
  500. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/pgi.h +60 -0
  501. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/sgi_mipspro.h +66 -0
  502. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/sunpro.h +76 -0
  503. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/tendra.h +53 -0
  504. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/visualc.h +105 -0
  505. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/compiler/watcom.h +56 -0
  506. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/detail/_cassert.h +17 -0
  507. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/detail/_exception.h +15 -0
  508. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/detail/comp_detected.h +10 -0
  509. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/detail/endian_compat.h +26 -0
  510. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/detail/os_detected.h +10 -0
  511. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/detail/platform_detected.h +10 -0
  512. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/detail/test.h +17 -0
  513. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/detail/test_def.h +71 -0
  514. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/hardware.h +16 -0
  515. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/hardware/simd.h +119 -0
  516. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/hardware/simd/arm.h +59 -0
  517. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/hardware/simd/arm/versions.h +32 -0
  518. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/hardware/simd/ppc.h +69 -0
  519. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/hardware/simd/ppc/versions.h +51 -0
  520. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/hardware/simd/x86.h +123 -0
  521. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/hardware/simd/x86/versions.h +129 -0
  522. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/hardware/simd/x86_amd.h +87 -0
  523. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/hardware/simd/x86_amd/versions.h +51 -0
  524. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/language.h +18 -0
  525. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/language/cuda.h +52 -0
  526. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/language/objc.h +42 -0
  527. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/language/stdc.h +53 -0
  528. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/language/stdcpp.h +121 -0
  529. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library.h +16 -0
  530. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/c.h +21 -0
  531. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/c/_prefix.h +13 -0
  532. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/c/cloudabi.h +53 -0
  533. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/c/gnu.h +61 -0
  534. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/c/uc.h +47 -0
  535. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/c/vms.h +47 -0
  536. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/c/zos.h +56 -0
  537. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/std.h +25 -0
  538. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/std/_prefix.h +23 -0
  539. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/std/cxx.h +46 -0
  540. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/std/dinkumware.h +52 -0
  541. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/std/libcomo.h +47 -0
  542. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/std/modena.h +45 -0
  543. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/std/msl.h +53 -0
  544. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/std/roguewave.h +56 -0
  545. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/std/sgi.h +51 -0
  546. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/std/stdcpp3.h +53 -0
  547. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/std/stlport.h +59 -0
  548. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/library/std/vacpp.h +44 -0
  549. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/make.h +97 -0
  550. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os.h +33 -0
  551. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/aix.h +66 -0
  552. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/amigaos.h +46 -0
  553. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/android.h +45 -0
  554. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/beos.h +45 -0
  555. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/bsd.h +103 -0
  556. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/bsd/bsdi.h +48 -0
  557. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/bsd/dragonfly.h +50 -0
  558. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/bsd/free.h +67 -0
  559. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/bsd/net.h +84 -0
  560. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/bsd/open.h +251 -0
  561. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/cygwin.h +45 -0
  562. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/haiku.h +46 -0
  563. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/hpux.h +47 -0
  564. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/ios.h +51 -0
  565. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/irix.h +46 -0
  566. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/linux.h +46 -0
  567. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/macos.h +65 -0
  568. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/os400.h +45 -0
  569. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/qnxnto.h +59 -0
  570. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/solaris.h +46 -0
  571. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/unix.h +76 -0
  572. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/vms.h +52 -0
  573. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/os/windows.h +51 -0
  574. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/other.h +16 -0
  575. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/other/endian.h +203 -0
  576. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/other/workaround.h +87 -0
  577. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform.h +28 -0
  578. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform/cloudabi.h +43 -0
  579. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform/ios.h +58 -0
  580. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform/mingw.h +69 -0
  581. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform/mingw32.h +63 -0
  582. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform/mingw64.h +63 -0
  583. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform/windows_desktop.h +51 -0
  584. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform/windows_phone.h +48 -0
  585. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform/windows_runtime.h +53 -0
  586. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform/windows_server.h +47 -0
  587. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform/windows_store.h +50 -0
  588. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform/windows_system.h +47 -0
  589. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/platform/windows_uwp.h +60 -0
  590. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/version.h +15 -0
  591. data/ext/enterprise_script_service/msgpack/external/boost/predef/include/boost/predef/version_number.h +72 -0
  592. data/ext/enterprise_script_service/msgpack/external/boost/predef/index.html +14 -0
  593. data/ext/enterprise_script_service/msgpack/external/boost/predef/meta/libraries.json +14 -0
  594. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/.gitignore +3 -0
  595. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/build.jam +80 -0
  596. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/check_value.cpp +26 -0
  597. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/info_as_c.c +7 -0
  598. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/info_as_cpp.cpp +7 -0
  599. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/info_as_objc.m +7 -0
  600. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/info_as_objcpp.mm +7 -0
  601. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/macos_endian.c +21 -0
  602. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/macos_vs_bsd.c +19 -0
  603. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/make.cpp +94 -0
  604. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/platform_windows.cpp +177 -0
  605. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/predef_info.h +46 -0
  606. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/tested_at.cpp +62 -0
  607. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/tested_at_outdated.cpp +18 -0
  608. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/version.cpp +83 -0
  609. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/workaround.cpp +62 -0
  610. data/ext/enterprise_script_service/msgpack/external/boost/predef/test/workaround_strict_config.cpp +17 -0
  611. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/check/build.jam +9 -0
  612. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/check/predef.jam +202 -0
  613. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/check/predef_check.h +98 -0
  614. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/check/predef_check_as_c.c +7 -0
  615. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/check/predef_check_as_cpp.cpp +7 -0
  616. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/check/predef_check_as_objc.m +7 -0
  617. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/check/predef_check_as_objcpp.mm +7 -0
  618. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/check/predef_check_cc.h +19 -0
  619. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/check/predef_check_cc_as_c.c +7 -0
  620. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/check/predef_check_cc_as_cpp.cpp +7 -0
  621. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/check/predef_check_cc_as_objc.m +7 -0
  622. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/check/predef_check_cc_as_objcpp.mm +7 -0
  623. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/ci/build_log.py +428 -0
  624. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/ci/common.py +878 -0
  625. data/ext/enterprise_script_service/msgpack/external/boost/predef/tools/ci/library_test.py +198 -0
  626. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/.gitattributes +96 -0
  627. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/.travis.yml +39 -0
  628. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/appveyor.yml +36 -0
  629. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/AppendixA-AnIntroductiontoPreprocessorMetaprogramming.html +2494 -0
  630. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/acknowledgements.html +58 -0
  631. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/bibliography.html +58 -0
  632. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/contents.html +38 -0
  633. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/data.html +27 -0
  634. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/data/arrays.html +55 -0
  635. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/data/lists.html +42 -0
  636. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/data/sequences.html +60 -0
  637. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/data/tuples.html +42 -0
  638. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/examples.html +27 -0
  639. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/examples/array_arithmetic.c +196 -0
  640. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/examples/catch_builtin.cpp +51 -0
  641. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/examples/delay.c +95 -0
  642. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/examples/duffs_device.c +61 -0
  643. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/examples/is_integral.cpp +49 -0
  644. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/examples/linear_fib.c +91 -0
  645. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers.html +249 -0
  646. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/arithmetic.html +36 -0
  647. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/arithmetic/add.html +31 -0
  648. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/arithmetic/dec.html +30 -0
  649. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/arithmetic/div.html +31 -0
  650. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/arithmetic/inc.html +30 -0
  651. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/arithmetic/mod.html +31 -0
  652. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/arithmetic/mul.html +31 -0
  653. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/arithmetic/sub.html +31 -0
  654. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array.html +43 -0
  655. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/data.html +30 -0
  656. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/elem.html +30 -0
  657. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/enum.html +24 -0
  658. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/insert.html +31 -0
  659. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/pop_back.html +31 -0
  660. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/pop_front.html +31 -0
  661. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/push_back.html +30 -0
  662. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/push_front.html +30 -0
  663. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/remove.html +31 -0
  664. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/replace.html +31 -0
  665. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/reverse.html +30 -0
  666. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/size.html +30 -0
  667. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/to_list.html +24 -0
  668. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/to_seq.html +24 -0
  669. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/array/to_tuple.html +24 -0
  670. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/assert_msg.html +31 -0
  671. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/cat.html +30 -0
  672. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/comma.html +31 -0
  673. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/comma_if.html +31 -0
  674. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/comparison.html +35 -0
  675. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/comparison/equal.html +31 -0
  676. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/comparison/greater.html +31 -0
  677. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/comparison/greater_equal.html +31 -0
  678. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/comparison/less.html +31 -0
  679. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/comparison/less_equal.html +31 -0
  680. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/comparison/not_equal.html +31 -0
  681. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/config/limits.html +44 -0
  682. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/config/variadics.html +32 -0
  683. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/control.html +35 -0
  684. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/control/deduce_d.html +30 -0
  685. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/control/expr_if.html +30 -0
  686. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/control/expr_iif.html +30 -0
  687. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/control/if.html +30 -0
  688. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/control/iif.html +30 -0
  689. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/control/while.html +31 -0
  690. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/debug.html +31 -0
  691. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/debug/assert.html +31 -0
  692. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/debug/line.html +30 -0
  693. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/dec.html +31 -0
  694. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/empty.html +31 -0
  695. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/enum.html +31 -0
  696. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/enum_params.html +31 -0
  697. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/enum_shifted.html +31 -0
  698. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/enum_shifted_params.html +31 -0
  699. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/epwad.html +31 -0
  700. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/epwd.html +31 -0
  701. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/expand.html +31 -0
  702. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/expr_if.html +31 -0
  703. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/facilities.html +34 -0
  704. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/facilities/apply.html +30 -0
  705. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/facilities/empty.html +30 -0
  706. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/facilities/expand.html +30 -0
  707. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/facilities/identity.html +32 -0
  708. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/facilities/intercept.html +30 -0
  709. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/facilities/overload.html +28 -0
  710. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/for.html +31 -0
  711. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/identity.html +31 -0
  712. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/if.html +31 -0
  713. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/inc.html +31 -0
  714. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/iterate.html +31 -0
  715. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/iteration.html +32 -0
  716. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/iteration/iterate.html +43 -0
  717. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/iteration/local.html +30 -0
  718. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/iteration/self.html +30 -0
  719. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/library.html +26 -0
  720. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/limits.html +31 -0
  721. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list.html +47 -0
  722. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/adt.html +35 -0
  723. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/append.html +31 -0
  724. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/at.html +31 -0
  725. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/cat.html +31 -0
  726. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/enum.html +31 -0
  727. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/filter.html +31 -0
  728. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/first_n.html +31 -0
  729. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/fold_left.html +34 -0
  730. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/fold_right.html +34 -0
  731. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/for_each.html +31 -0
  732. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/for_each_i.html +31 -0
  733. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/for_each_product.html +31 -0
  734. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/rest_n.html +31 -0
  735. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/reverse.html +31 -0
  736. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/size.html +31 -0
  737. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/to_array.html +29 -0
  738. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/to_seq.html +25 -0
  739. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/to_tuple.html +31 -0
  740. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/list/transform.html +31 -0
  741. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/logical.html +40 -0
  742. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/logical/and.html +30 -0
  743. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/logical/bitand.html +30 -0
  744. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/logical/bitnor.html +30 -0
  745. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/logical/bitor.html +30 -0
  746. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/logical/bitxor.html +30 -0
  747. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/logical/bool.html +30 -0
  748. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/logical/compl.html +30 -0
  749. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/logical/nor.html +30 -0
  750. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/logical/not.html +30 -0
  751. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/logical/or.html +30 -0
  752. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/logical/xor.html +30 -0
  753. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/max.html +31 -0
  754. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/min.html +31 -0
  755. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/preprocessor.html +26 -0
  756. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/punctuation.html +33 -0
  757. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/punctuation/comma.html +30 -0
  758. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/punctuation/comma_if.html +30 -0
  759. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/punctuation/is_begin_parens.html +26 -0
  760. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/punctuation/paren.html +31 -0
  761. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/punctuation/paren_if.html +31 -0
  762. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/punctuation/remove_parens.html +26 -0
  763. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repeat.html +31 -0
  764. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repeat_2nd.html +31 -0
  765. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repeat_3rd.html +31 -0
  766. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repeat_from_to.html +31 -0
  767. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repeat_from_to_2nd.html +31 -0
  768. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repeat_from_to_3rd.html +31 -0
  769. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition.html +44 -0
  770. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/deduce_r.html +30 -0
  771. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/deduce_z.html +30 -0
  772. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/enum.html +31 -0
  773. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/enum_binary_params.html +31 -0
  774. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/enum_params.html +31 -0
  775. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/enum_shifted.html +31 -0
  776. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/enum_shifted_params.html +31 -0
  777. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/enum_trailing.html +31 -0
  778. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/enum_trailing_params.html +31 -0
  779. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/epwad.html +30 -0
  780. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/epwd.html +30 -0
  781. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/esbp.html +31 -0
  782. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/etbp.html +31 -0
  783. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/for.html +31 -0
  784. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/repeat.html +34 -0
  785. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/repetition/repeat_from_to.html +36 -0
  786. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/selection.html +31 -0
  787. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/selection/max.html +31 -0
  788. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/selection/min.html +31 -0
  789. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq.html +86 -0
  790. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/cat.html +38 -0
  791. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/elem.html +35 -0
  792. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/enum.html +35 -0
  793. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/filter.html +37 -0
  794. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/first_n.html +36 -0
  795. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/fold_left.html +38 -0
  796. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/fold_right.html +38 -0
  797. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/for_each.html +38 -0
  798. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/for_each_i.html +38 -0
  799. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/for_each_product.html +38 -0
  800. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/insert.html +35 -0
  801. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/pop_back.html +36 -0
  802. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/pop_front.html +36 -0
  803. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/push_back.html +35 -0
  804. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/push_front.html +35 -0
  805. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/remove.html +35 -0
  806. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/replace.html +35 -0
  807. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/rest_n.html +36 -0
  808. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/reverse.html +37 -0
  809. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/seq.html +39 -0
  810. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/size.html +35 -0
  811. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/subseq.html +35 -0
  812. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/to_array.html +36 -0
  813. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/to_list.html +30 -0
  814. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/to_tuple.html +36 -0
  815. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/transform.html +37 -0
  816. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/seq/variadic_seq_to_seq.html +34 -0
  817. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/slot.html +30 -0
  818. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/slot/counter.html +31 -0
  819. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/slot/slot.html +31 -0
  820. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/stringize.html +30 -0
  821. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple.html +59 -0
  822. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/eat.html +25 -0
  823. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/elem.html +25 -0
  824. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/enum.html +25 -0
  825. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/insert.html +27 -0
  826. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/pop_back.html +28 -0
  827. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/pop_front.html +28 -0
  828. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/push_back.html +26 -0
  829. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/push_front.html +26 -0
  830. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/rem.html +27 -0
  831. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/remove.html +27 -0
  832. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/replace.html +28 -0
  833. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/reverse.html +25 -0
  834. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/size.html +25 -0
  835. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/to_array.html +25 -0
  836. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/to_list.html +25 -0
  837. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/tuple/to_seq.html +31 -0
  838. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/variadic.html +33 -0
  839. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/variadic/elem.html +29 -0
  840. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/variadic/size.html +25 -0
  841. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/variadic/to_array.html +25 -0
  842. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/variadic/to_list.html +25 -0
  843. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/variadic/to_seq.html +30 -0
  844. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/variadic/to_tuple.html +31 -0
  845. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/while.html +31 -0
  846. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/headers/wstringize.html +30 -0
  847. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/index.html +23 -0
  848. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/miscellanea.html +24 -0
  849. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref.html +319 -0
  850. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/add.html +68 -0
  851. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/add_d.html +90 -0
  852. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/and.html +64 -0
  853. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/apply.html +64 -0
  854. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_data.html +49 -0
  855. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_elem.html +51 -0
  856. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_enum.html +37 -0
  857. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_insert.html +71 -0
  858. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_insert_d.html +63 -0
  859. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_pop_back.html +59 -0
  860. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_pop_back_z.html +51 -0
  861. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_pop_front.html +51 -0
  862. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_pop_front_z.html +51 -0
  863. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_push_back.html +49 -0
  864. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_push_front.html +49 -0
  865. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_remove.html +60 -0
  866. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_remove_d.html +51 -0
  867. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_replace.html +64 -0
  868. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_replace_d.html +55 -0
  869. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_reverse.html +45 -0
  870. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_size.html +45 -0
  871. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_to_list.html +41 -0
  872. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_to_seq.html +37 -0
  873. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/array_to_tuple.html +39 -0
  874. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/assert.html +114 -0
  875. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/assert_msg.html +66 -0
  876. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/assign_slot.html +61 -0
  877. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/bitand.html +65 -0
  878. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/bitnor.html +65 -0
  879. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/bitor.html +65 -0
  880. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/bitxor.html +66 -0
  881. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/bool.html +54 -0
  882. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/cat.html +57 -0
  883. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/comma.html +43 -0
  884. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/comma_if.html +60 -0
  885. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/compl.html +58 -0
  886. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/config_extended_line_info.html +54 -0
  887. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/counter.html +58 -0
  888. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/dec.html +54 -0
  889. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/deduce_d.html +82 -0
  890. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/deduce_r.html +48 -0
  891. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/deduce_z.html +48 -0
  892. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/div.html +63 -0
  893. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/div_d.html +85 -0
  894. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/empty.html +47 -0
  895. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum.html +80 -0
  896. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_binary_params.html +76 -0
  897. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_binary_params_z.html +93 -0
  898. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_params.html +69 -0
  899. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_params_with_a_default.html +83 -0
  900. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_params_with_defaults.html +84 -0
  901. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_params_z.html +82 -0
  902. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_shifted.html +82 -0
  903. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_shifted_params.html +73 -0
  904. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_shifted_params_z.html +79 -0
  905. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_shifted_z.html +93 -0
  906. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_trailing.html +83 -0
  907. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_trailing_params.html +66 -0
  908. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_trailing_params_z.html +81 -0
  909. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_trailing_z.html +96 -0
  910. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/enum_z.html +96 -0
  911. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/equal.html +64 -0
  912. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/equal_d.html +69 -0
  913. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/esbp.html +65 -0
  914. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/esbpz.html +67 -0
  915. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/etbp.html +83 -0
  916. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/etbpz.html +67 -0
  917. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/expand.html +67 -0
  918. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/expr_if.html +70 -0
  919. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/expr_iif.html +67 -0
  920. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/filename_x.html +52 -0
  921. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/for.html +105 -0
  922. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/for_r.html +148 -0
  923. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/for_r_macros.html +44 -0
  924. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/frame_finish.html +42 -0
  925. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/frame_flags.html +42 -0
  926. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/frame_iteration.html +73 -0
  927. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/frame_start.html +42 -0
  928. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/greater.html +65 -0
  929. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/greater_d.html +69 -0
  930. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/greater_equal.html +65 -0
  931. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/greater_equal_d.html +69 -0
  932. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/identity.html +57 -0
  933. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/identity_n.html +58 -0
  934. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/if.html +63 -0
  935. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/iif.html +66 -0
  936. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/inc.html +54 -0
  937. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/include_self.html +101 -0
  938. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/indirect_self.html +45 -0
  939. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/intercept.html +51 -0
  940. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/is_begin_parens.html +47 -0
  941. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/is_iterating.html +38 -0
  942. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/is_selfish.html +38 -0
  943. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/iterate.html +83 -0
  944. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/iteration.html +55 -0
  945. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/iteration_depth.html +73 -0
  946. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/iteration_finish.html +57 -0
  947. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/iteration_flags.html +68 -0
  948. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/iteration_limits.html +59 -0
  949. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/iteration_params_x.html +77 -0
  950. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/iteration_start.html +57 -0
  951. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/less.html +65 -0
  952. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/less_d.html +70 -0
  953. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/less_equal.html +65 -0
  954. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/less_equal_d.html +70 -0
  955. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/limit_dim.html +35 -0
  956. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/limit_for.html +34 -0
  957. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/limit_iteration.html +34 -0
  958. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/limit_iteration_dim.html +34 -0
  959. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/limit_mag.html +34 -0
  960. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/limit_repeat.html +39 -0
  961. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/limit_seq.html +41 -0
  962. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/limit_slot_count.html +34 -0
  963. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/limit_slot_sig.html +34 -0
  964. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/limit_tuple.html +33 -0
  965. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/limit_variadic.html +24 -0
  966. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/limit_while.html +34 -0
  967. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/line.html +112 -0
  968. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_append.html +69 -0
  969. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_append_d.html +96 -0
  970. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_at.html +61 -0
  971. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_at_d.html +63 -0
  972. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_cat.html +58 -0
  973. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_cat_d.html +67 -0
  974. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_cons.html +87 -0
  975. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_enum.html +62 -0
  976. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_enum_r.html +69 -0
  977. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_filter.html +76 -0
  978. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_filter_d.html +86 -0
  979. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_first.html +62 -0
  980. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_first_n.html +62 -0
  981. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_first_n_d.html +71 -0
  982. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_fold_left.html +75 -0
  983. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_fold_left_2nd.html +75 -0
  984. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_fold_left_2nd_d.html +86 -0
  985. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_fold_left_d.html +81 -0
  986. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_fold_left_d_old.html +86 -0
  987. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_fold_right.html +79 -0
  988. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_fold_right_2nd.html +79 -0
  989. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_fold_right_2nd_d.html +86 -0
  990. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_fold_right_d.html +81 -0
  991. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_fold_right_d_old.html +90 -0
  992. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_for_each.html +75 -0
  993. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_for_each_i.html +75 -0
  994. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_for_each_i_r.html +82 -0
  995. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_for_each_product.html +86 -0
  996. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_for_each_product_r.html +118 -0
  997. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_for_each_r.html +81 -0
  998. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_is_cons.html +51 -0
  999. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_is_nil.html +51 -0
  1000. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_nil.html +68 -0
  1001. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_rest.html +62 -0
  1002. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_rest_n.html +62 -0
  1003. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_rest_n_d.html +71 -0
  1004. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_reverse.html +55 -0
  1005. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_reverse_d.html +63 -0
  1006. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_size.html +55 -0
  1007. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_size_d.html +67 -0
  1008. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_to_array.html +47 -0
  1009. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_to_array_d.html +34 -0
  1010. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_to_seq.html +44 -0
  1011. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_to_seq_r.html +32 -0
  1012. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_to_tuple.html +55 -0
  1013. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_to_tuple_r.html +62 -0
  1014. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_transform.html +78 -0
  1015. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/list_transform_d.html +86 -0
  1016. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/local_iterate.html +62 -0
  1017. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/local_limits.html +80 -0
  1018. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/local_macro.html +64 -0
  1019. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/lparen.html +52 -0
  1020. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/lparen_if.html +61 -0
  1021. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/max.html +64 -0
  1022. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/max_d.html +70 -0
  1023. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/min.html +64 -0
  1024. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/min_d.html +70 -0
  1025. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/mod.html +63 -0
  1026. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/mod_d.html +75 -0
  1027. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/mul.html +68 -0
  1028. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/mul_d.html +91 -0
  1029. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/nil.html +41 -0
  1030. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/nor.html +64 -0
  1031. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/not.html +59 -0
  1032. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/not_equal.html +64 -0
  1033. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/not_equal_d.html +69 -0
  1034. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/or.html +64 -0
  1035. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/overload.html +58 -0
  1036. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/relative_finish.html +46 -0
  1037. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/relative_flags.html +46 -0
  1038. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/relative_iteration.html +101 -0
  1039. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/relative_start.html +46 -0
  1040. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/remove_parens.html +44 -0
  1041. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat.html +80 -0
  1042. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat_1st.html +82 -0
  1043. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat_2nd.html +82 -0
  1044. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat_3rd.html +82 -0
  1045. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat_from_to.html +102 -0
  1046. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat_from_to_1st.html +91 -0
  1047. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat_from_to_2nd.html +91 -0
  1048. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat_from_to_3rd.html +91 -0
  1049. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat_from_to_d.html +83 -0
  1050. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat_from_to_d_z.html +84 -0
  1051. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat_from_to_z.html +105 -0
  1052. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat_z.html +92 -0
  1053. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/repeat_z_macros.html +45 -0
  1054. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/rparen.html +53 -0
  1055. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/rparen_if.html +61 -0
  1056. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_cat.html +64 -0
  1057. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_cat_s.html +60 -0
  1058. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_elem.html +59 -0
  1059. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_enum.html +66 -0
  1060. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_filter.html +93 -0
  1061. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_filter_s.html +79 -0
  1062. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_first_n.html +67 -0
  1063. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_fold_left.html +90 -0
  1064. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_fold_left_s.html +96 -0
  1065. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_fold_right.html +92 -0
  1066. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_fold_right_s.html +97 -0
  1067. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_for_each.html +90 -0
  1068. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_for_each_i.html +91 -0
  1069. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_for_each_i_r.html +78 -0
  1070. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_for_each_product.html +100 -0
  1071. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_for_each_product_r.html +81 -0
  1072. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_for_each_r.html +77 -0
  1073. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_head.html +63 -0
  1074. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_insert.html +70 -0
  1075. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_nil.html +81 -0
  1076. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_pop_back.html +68 -0
  1077. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_pop_front.html +68 -0
  1078. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_push_back.html +76 -0
  1079. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_push_front.html +78 -0
  1080. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_remove.html +66 -0
  1081. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_replace.html +71 -0
  1082. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_rest_n.html +55 -0
  1083. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_reverse.html +68 -0
  1084. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_reverse_s.html +55 -0
  1085. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_size.html +55 -0
  1086. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_subseq.html +69 -0
  1087. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_tail.html +63 -0
  1088. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_to_array.html +55 -0
  1089. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_to_list.html +34 -0
  1090. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_to_tuple.html +55 -0
  1091. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_transform.html +93 -0
  1092. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/seq_transform_s.html +79 -0
  1093. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/slot.html +60 -0
  1094. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/stringize.html +50 -0
  1095. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/sub.html +63 -0
  1096. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/sub_d.html +85 -0
  1097. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_eat.html +58 -0
  1098. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_elem.html +65 -0
  1099. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_enum.html +55 -0
  1100. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_insert.html +54 -0
  1101. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_insert_d.html +46 -0
  1102. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_pop_back.html +48 -0
  1103. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_pop_back_z.html +40 -0
  1104. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_pop_front.html +47 -0
  1105. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_pop_front_z.html +40 -0
  1106. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_push_back.html +39 -0
  1107. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_push_front.html +39 -0
  1108. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_rem.html +60 -0
  1109. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_rem_ctor.html +61 -0
  1110. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_remove.html +50 -0
  1111. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_remove_d.html +41 -0
  1112. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_replace.html +51 -0
  1113. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_replace_d.html +42 -0
  1114. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_reverse.html +61 -0
  1115. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_size.html +32 -0
  1116. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_to_array.html +50 -0
  1117. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_to_list.html +60 -0
  1118. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/tuple_to_seq.html +51 -0
  1119. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/update_counter.html +34 -0
  1120. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/value.html +37 -0
  1121. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/variadic_elem.html +42 -0
  1122. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/variadic_seq_to_seq.html +35 -0
  1123. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/variadic_size.html +33 -0
  1124. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/variadic_to_array.html +32 -0
  1125. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/variadic_to_list.html +31 -0
  1126. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/variadic_to_seq.html +32 -0
  1127. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/variadic_to_tuple.html +32 -0
  1128. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/variadics.html +30 -0
  1129. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/while.html +116 -0
  1130. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/while_d.html +117 -0
  1131. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/while_d_macros.html +89 -0
  1132. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/wstringize.html +49 -0
  1133. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/ref/xor.html +64 -0
  1134. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/styles.css +87 -0
  1135. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/syntax.html +307 -0
  1136. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/terms.html +23 -0
  1137. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/terms/evaluated.html +27 -0
  1138. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/terms/named_external.html +25 -0
  1139. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/title.html +25 -0
  1140. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/top.html +32 -0
  1141. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/topics.html +27 -0
  1142. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/topics/evaluated_slots.html +157 -0
  1143. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/topics/file_iteration.html +1044 -0
  1144. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/topics/incompatible.html +140 -0
  1145. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/topics/local_iteration.html +156 -0
  1146. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/topics/motivation.html +119 -0
  1147. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/topics/problems.html +135 -0
  1148. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/topics/reentrancy.html +298 -0
  1149. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/topics/techniques.html +350 -0
  1150. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/doc/topics/variadic_macros.html +262 -0
  1151. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor.hpp +19 -0
  1152. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/arithmetic.hpp +25 -0
  1153. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/arithmetic/add.hpp +51 -0
  1154. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/arithmetic/dec.hpp +289 -0
  1155. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/arithmetic/detail/div_base.hpp +61 -0
  1156. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/arithmetic/div.hpp +39 -0
  1157. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/arithmetic/inc.hpp +288 -0
  1158. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/arithmetic/mod.hpp +39 -0
  1159. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/arithmetic/mul.hpp +53 -0
  1160. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/arithmetic/sub.hpp +50 -0
  1161. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array.hpp +32 -0
  1162. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/data.hpp +28 -0
  1163. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/detail/get_data.hpp +55 -0
  1164. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/elem.hpp +29 -0
  1165. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/enum.hpp +33 -0
  1166. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/insert.hpp +55 -0
  1167. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/pop_back.hpp +37 -0
  1168. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/pop_front.hpp +38 -0
  1169. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/push_back.hpp +35 -0
  1170. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/push_front.hpp +35 -0
  1171. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/remove.hpp +54 -0
  1172. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/replace.hpp +49 -0
  1173. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/reverse.hpp +29 -0
  1174. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/size.hpp +28 -0
  1175. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/to_list.hpp +47 -0
  1176. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/to_seq.hpp +46 -0
  1177. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/array/to_tuple.hpp +33 -0
  1178. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/assert_msg.hpp +17 -0
  1179. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/cat.hpp +35 -0
  1180. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/comma.hpp +17 -0
  1181. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/comma_if.hpp +17 -0
  1182. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/comparison.hpp +24 -0
  1183. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/comparison/equal.hpp +34 -0
  1184. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/comparison/greater.hpp +38 -0
  1185. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/comparison/greater_equal.hpp +38 -0
  1186. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/comparison/less.hpp +46 -0
  1187. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/comparison/less_equal.hpp +39 -0
  1188. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/comparison/not_equal.hpp +814 -0
  1189. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/config/config.hpp +106 -0
  1190. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/config/limits.hpp +30 -0
  1191. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/control.hpp +22 -0
  1192. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/control/deduce_d.hpp +22 -0
  1193. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/control/detail/dmc/while.hpp +536 -0
  1194. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/control/detail/edg/while.hpp +534 -0
  1195. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/control/detail/msvc/while.hpp +277 -0
  1196. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/control/detail/while.hpp +536 -0
  1197. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/control/expr_if.hpp +30 -0
  1198. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/control/expr_iif.hpp +31 -0
  1199. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/control/if.hpp +30 -0
  1200. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/control/iif.hpp +34 -0
  1201. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/control/while.hpp +312 -0
  1202. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/debug.hpp +18 -0
  1203. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/debug/assert.hpp +44 -0
  1204. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/debug/error.hpp +33 -0
  1205. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/debug/line.hpp +35 -0
  1206. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/dec.hpp +17 -0
  1207. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/detail/auto_rec.hpp +293 -0
  1208. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/detail/check.hpp +48 -0
  1209. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/detail/dmc/auto_rec.hpp +286 -0
  1210. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/detail/is_binary.hpp +30 -0
  1211. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/detail/is_nullary.hpp +30 -0
  1212. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/detail/is_unary.hpp +30 -0
  1213. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/detail/null.hpp +17 -0
  1214. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/detail/split.hpp +35 -0
  1215. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/empty.hpp +17 -0
  1216. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/enum.hpp +17 -0
  1217. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/enum_params.hpp +17 -0
  1218. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/enum_params_with_a_default.hpp +17 -0
  1219. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/enum_params_with_defaults.hpp +17 -0
  1220. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/enum_shifted.hpp +17 -0
  1221. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/enum_shifted_params.hpp +17 -0
  1222. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/expand.hpp +17 -0
  1223. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/expr_if.hpp +17 -0
  1224. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/facilities.hpp +23 -0
  1225. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/facilities/apply.hpp +34 -0
  1226. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/facilities/detail/is_empty.hpp +55 -0
  1227. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/facilities/empty.hpp +23 -0
  1228. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/facilities/expand.hpp +28 -0
  1229. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/facilities/identity.hpp +27 -0
  1230. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/facilities/intercept.hpp +277 -0
  1231. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/facilities/is_1.hpp +23 -0
  1232. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/facilities/is_empty.hpp +56 -0
  1233. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/facilities/is_empty_or_1.hpp +31 -0
  1234. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/facilities/is_empty_variadic.hpp +57 -0
  1235. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/facilities/overload.hpp +25 -0
  1236. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/for.hpp +17 -0
  1237. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/identity.hpp +17 -0
  1238. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/if.hpp +17 -0
  1239. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/inc.hpp +17 -0
  1240. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iterate.hpp +17 -0
  1241. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration.hpp +19 -0
  1242. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp +99 -0
  1243. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/bounds/lower2.hpp +99 -0
  1244. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/bounds/lower3.hpp +99 -0
  1245. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/bounds/lower4.hpp +99 -0
  1246. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/bounds/lower5.hpp +99 -0
  1247. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp +99 -0
  1248. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/bounds/upper2.hpp +99 -0
  1249. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/bounds/upper3.hpp +99 -0
  1250. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/bounds/upper4.hpp +99 -0
  1251. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/bounds/upper5.hpp +99 -0
  1252. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/finish.hpp +99 -0
  1253. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/iter/forward1.hpp +1342 -0
  1254. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/iter/forward2.hpp +1338 -0
  1255. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/iter/forward3.hpp +1338 -0
  1256. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/iter/forward4.hpp +1338 -0
  1257. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/iter/forward5.hpp +1338 -0
  1258. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/iter/reverse1.hpp +1296 -0
  1259. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/iter/reverse2.hpp +1296 -0
  1260. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/iter/reverse3.hpp +1296 -0
  1261. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/iter/reverse4.hpp +1296 -0
  1262. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/iter/reverse5.hpp +1296 -0
  1263. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/local.hpp +812 -0
  1264. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/rlocal.hpp +782 -0
  1265. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/self.hpp +21 -0
  1266. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/detail/start.hpp +99 -0
  1267. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/iterate.hpp +82 -0
  1268. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/local.hpp +26 -0
  1269. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/iteration/self.hpp +19 -0
  1270. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/library.hpp +37 -0
  1271. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/limits.hpp +17 -0
  1272. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list.hpp +37 -0
  1273. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/adt.hpp +73 -0
  1274. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/append.hpp +40 -0
  1275. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/at.hpp +39 -0
  1276. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/cat.hpp +42 -0
  1277. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/detail/dmc/fold_left.hpp +279 -0
  1278. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/detail/edg/fold_left.hpp +536 -0
  1279. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/detail/edg/fold_right.hpp +794 -0
  1280. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/detail/fold_left.hpp +279 -0
  1281. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/detail/fold_right.hpp +277 -0
  1282. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/enum.hpp +41 -0
  1283. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/filter.hpp +54 -0
  1284. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/first_n.hpp +58 -0
  1285. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/fold_left.hpp +303 -0
  1286. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/fold_right.hpp +40 -0
  1287. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/for_each.hpp +49 -0
  1288. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/for_each_i.hpp +65 -0
  1289. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/for_each_product.hpp +141 -0
  1290. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/rest_n.hpp +55 -0
  1291. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/reverse.hpp +40 -0
  1292. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/size.hpp +58 -0
  1293. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/to_array.hpp +155 -0
  1294. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/to_seq.hpp +32 -0
  1295. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/to_tuple.hpp +61 -0
  1296. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/list/transform.hpp +49 -0
  1297. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/logical.hpp +29 -0
  1298. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/logical/and.hpp +30 -0
  1299. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/logical/bitand.hpp +38 -0
  1300. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/logical/bitnor.hpp +38 -0
  1301. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/logical/bitor.hpp +38 -0
  1302. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/logical/bitxor.hpp +38 -0
  1303. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/logical/bool.hpp +288 -0
  1304. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/logical/compl.hpp +36 -0
  1305. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/logical/nor.hpp +30 -0
  1306. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/logical/not.hpp +30 -0
  1307. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/logical/or.hpp +30 -0
  1308. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/logical/xor.hpp +30 -0
  1309. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/max.hpp +17 -0
  1310. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/min.hpp +17 -0
  1311. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/punctuation.hpp +22 -0
  1312. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/punctuation/comma.hpp +21 -0
  1313. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/punctuation/comma_if.hpp +31 -0
  1314. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/punctuation/detail/is_begin_parens.hpp +48 -0
  1315. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/punctuation/is_begin_parens.hpp +51 -0
  1316. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/punctuation/paren.hpp +23 -0
  1317. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/punctuation/paren_if.hpp +38 -0
  1318. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/punctuation/remove_parens.hpp +39 -0
  1319. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repeat.hpp +17 -0
  1320. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repeat_2nd.hpp +17 -0
  1321. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repeat_3rd.hpp +17 -0
  1322. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repeat_from_to.hpp +17 -0
  1323. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repeat_from_to_2nd.hpp +17 -0
  1324. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repeat_from_to_3rd.hpp +17 -0
  1325. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition.hpp +32 -0
  1326. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/deduce_r.hpp +22 -0
  1327. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/deduce_z.hpp +22 -0
  1328. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/detail/dmc/for.hpp +536 -0
  1329. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/detail/edg/for.hpp +534 -0
  1330. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/detail/for.hpp +536 -0
  1331. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/detail/msvc/for.hpp +277 -0
  1332. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/enum.hpp +66 -0
  1333. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/enum_binary_params.hpp +54 -0
  1334. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/enum_params.hpp +41 -0
  1335. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/enum_params_with_a_default.hpp +25 -0
  1336. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/enum_params_with_defaults.hpp +24 -0
  1337. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/enum_shifted.hpp +68 -0
  1338. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/enum_shifted_binary_params.hpp +51 -0
  1339. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/enum_shifted_params.hpp +44 -0
  1340. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/enum_trailing.hpp +63 -0
  1341. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/enum_trailing_binary_params.hpp +53 -0
  1342. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/enum_trailing_params.hpp +38 -0
  1343. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/for.hpp +324 -0
  1344. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/repeat.hpp +825 -0
  1345. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/repetition/repeat_from_to.hpp +87 -0
  1346. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/selection.hpp +18 -0
  1347. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/selection/max.hpp +39 -0
  1348. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/selection/min.hpp +39 -0
  1349. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq.hpp +44 -0
  1350. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/cat.hpp +49 -0
  1351. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/detail/binary_transform.hpp +47 -0
  1352. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/detail/is_empty.hpp +49 -0
  1353. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/detail/split.hpp +284 -0
  1354. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/detail/to_list_msvc.hpp +55 -0
  1355. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/elem.hpp +304 -0
  1356. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/enum.hpp +288 -0
  1357. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/filter.hpp +54 -0
  1358. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/first_n.hpp +30 -0
  1359. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/fold_left.hpp +1070 -0
  1360. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/fold_right.hpp +288 -0
  1361. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/for_each.hpp +107 -0
  1362. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/for_each_i.hpp +109 -0
  1363. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/for_each_product.hpp +126 -0
  1364. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/insert.hpp +28 -0
  1365. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/pop_back.hpp +29 -0
  1366. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/pop_front.hpp +27 -0
  1367. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/push_back.hpp +19 -0
  1368. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/push_front.hpp +19 -0
  1369. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/remove.hpp +29 -0
  1370. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/replace.hpp +45 -0
  1371. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/rest_n.hpp +46 -0
  1372. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/reverse.hpp +39 -0
  1373. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/seq.hpp +44 -0
  1374. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/size.hpp +548 -0
  1375. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/subseq.hpp +28 -0
  1376. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/to_array.hpp +28 -0
  1377. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/to_list.hpp +41 -0
  1378. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/to_tuple.hpp +27 -0
  1379. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/transform.hpp +48 -0
  1380. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/seq/variadic_seq_to_seq.hpp +28 -0
  1381. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/slot.hpp +17 -0
  1382. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/slot/counter.hpp +25 -0
  1383. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/slot/detail/counter.hpp +269 -0
  1384. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/slot/detail/def.hpp +49 -0
  1385. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/slot/detail/shared.hpp +247 -0
  1386. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/slot/detail/slot1.hpp +267 -0
  1387. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/slot/detail/slot2.hpp +267 -0
  1388. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/slot/detail/slot3.hpp +267 -0
  1389. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/slot/detail/slot4.hpp +267 -0
  1390. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/slot/detail/slot5.hpp +267 -0
  1391. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/slot/slot.hpp +32 -0
  1392. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/stringize.hpp +33 -0
  1393. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple.hpp +35 -0
  1394. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/detail/is_single_return.hpp +28 -0
  1395. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/eat.hpp +115 -0
  1396. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/elem.hpp +201 -0
  1397. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/enum.hpp +22 -0
  1398. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/insert.hpp +37 -0
  1399. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/pop_back.hpp +64 -0
  1400. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/pop_front.hpp +65 -0
  1401. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/push_back.hpp +31 -0
  1402. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/push_front.hpp +32 -0
  1403. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/rem.hpp +149 -0
  1404. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/remove.hpp +64 -0
  1405. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/replace.hpp +37 -0
  1406. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/reverse.hpp +117 -0
  1407. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/size.hpp +28 -0
  1408. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/to_array.hpp +39 -0
  1409. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/to_list.hpp +118 -0
  1410. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/tuple/to_seq.hpp +119 -0
  1411. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/variadic.hpp +23 -0
  1412. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/variadic/detail/is_single_return.hpp +28 -0
  1413. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/variadic/elem.hpp +94 -0
  1414. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/variadic/size.hpp +30 -0
  1415. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/variadic/to_array.hpp +32 -0
  1416. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/variadic/to_list.hpp +25 -0
  1417. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/variadic/to_seq.hpp +25 -0
  1418. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/variadic/to_tuple.hpp +24 -0
  1419. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/while.hpp +17 -0
  1420. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/include/boost/preprocessor/wstringize.hpp +29 -0
  1421. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/index.html +18 -0
  1422. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/meta/libraries.json +15 -0
  1423. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/Jamfile.v2 +252 -0
  1424. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/arithmetic.c +12 -0
  1425. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/arithmetic.cpp +12 -0
  1426. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/arithmetic.cxx +82 -0
  1427. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/array.c +14 -0
  1428. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/array.cpp +14 -0
  1429. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/array.cxx +192 -0
  1430. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/comparison.c +13 -0
  1431. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/comparison.cpp +12 -0
  1432. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/comparison.cxx +45 -0
  1433. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/config_info.cpp +93 -0
  1434. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/control.c +12 -0
  1435. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/control.cpp +12 -0
  1436. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/control.cxx +40 -0
  1437. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/debug.c +12 -0
  1438. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/debug.cpp +12 -0
  1439. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/debug.cxx +21 -0
  1440. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/facilities.c +12 -0
  1441. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/facilities.cpp +12 -0
  1442. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/facilities.cxx +55 -0
  1443. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/isempty.c +12 -0
  1444. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/isempty.cpp +12 -0
  1445. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/isempty.cxx +145 -0
  1446. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/isempty_variadic_standard_failure.c +12 -0
  1447. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/isempty_variadic_standard_failure.cpp +12 -0
  1448. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/isempty_variadic_standard_failure.cxx +25 -0
  1449. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/isempty_variadic_standard_failure2.c +12 -0
  1450. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/isempty_variadic_standard_failure2.cpp +12 -0
  1451. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/isempty_variadic_standard_failure2.cxx +25 -0
  1452. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/iteration.cpp +33 -0
  1453. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/iteration.h +62 -0
  1454. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/list.c +14 -0
  1455. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/list.cpp +14 -0
  1456. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/list.cxx +91 -0
  1457. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/logical.c +12 -0
  1458. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/logical.cpp +12 -0
  1459. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/logical.cxx +59 -0
  1460. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/punctuation.c +14 -0
  1461. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/punctuation.cpp +14 -0
  1462. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/punctuation.cxx +54 -0
  1463. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/repetition.cpp +50 -0
  1464. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/selection.c +12 -0
  1465. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/selection.cpp +12 -0
  1466. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/selection.cxx +21 -0
  1467. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/seq.c +14 -0
  1468. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/seq.cpp +14 -0
  1469. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/seq.cxx +222 -0
  1470. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/slot.c +12 -0
  1471. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/slot.cpp +12 -0
  1472. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/slot.cxx +53 -0
  1473. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/test.h +37 -0
  1474. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/tuple.c +14 -0
  1475. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/tuple.cpp +14 -0
  1476. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/tuple.cxx +266 -0
  1477. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/tuple_elem_bug_test.cxx +38 -0
  1478. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/variadic.c +12 -0
  1479. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/variadic.cpp +12 -0
  1480. data/ext/enterprise_script_service/msgpack/external/boost/preprocessor/test/variadic.cxx +56 -0
  1481. data/ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt +43 -0
  1482. data/ext/enterprise_script_service/msgpack/fuzz/regression_runner.cpp +50 -0
  1483. data/ext/enterprise_script_service/msgpack/fuzz/unpack_pack_fuzzer.cpp +23 -0
  1484. data/ext/enterprise_script_service/msgpack/fuzz/unpack_pack_fuzzer_regressions/clusterfuzz-testcase-minimized-unpack_pack_fuzzer-5656982724804608 +0 -0
  1485. data/ext/enterprise_script_service/msgpack/fuzz/unpack_pack_fuzzer_regressions/clusterfuzz-testcase-minimized-unpack_pack_fuzzer-6022481354686464 +0 -0
  1486. data/ext/enterprise_script_service/msgpack/fuzz/unpack_pack_fuzzer_seed_corpus/EmptyArray +1 -0
  1487. data/ext/enterprise_script_service/msgpack/fuzz/unpack_pack_fuzzer_seed_corpus/EmptyObject +1 -0
  1488. data/ext/enterprise_script_service/msgpack/fuzz/unpack_pack_fuzzer_seed_corpus/ExcessiveNesting +2 -0
  1489. data/ext/enterprise_script_service/msgpack/fuzz/unpack_pack_fuzzer_seed_corpus/OpenWeatherMap +0 -0
  1490. data/ext/enterprise_script_service/msgpack/fuzz/unpack_pack_fuzzer_seed_corpus/WeatherUnderground +0 -0
  1491. data/ext/enterprise_script_service/msgpack/include/msgpack.hpp +4 -0
  1492. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/adaptor_base.hpp +1 -0
  1493. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/adaptor_base_decl.hpp +1 -0
  1494. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/array_ref_decl.hpp +1 -0
  1495. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/boost/msgpack_variant_decl.hpp +1 -0
  1496. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/check_container_size_decl.hpp +1 -0
  1497. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/cpp11/chrono.hpp +16 -0
  1498. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/cpp17/byte.hpp +16 -0
  1499. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/cpp17/carray_byte.hpp +16 -0
  1500. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/cpp17/optional.hpp +16 -0
  1501. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/cpp17/string_view.hpp +16 -0
  1502. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/cpp17/vector_byte.hpp +16 -0
  1503. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/define_decl.hpp +25 -24
  1504. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/ext_decl.hpp +1 -0
  1505. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/fixint_decl.hpp +1 -0
  1506. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/int_decl.hpp +1 -0
  1507. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/map_decl.hpp +1 -0
  1508. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/msgpack_tuple_decl.hpp +1 -0
  1509. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/nil_decl.hpp +1 -0
  1510. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/raw_decl.hpp +1 -0
  1511. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/size_equal_only_decl.hpp +1 -0
  1512. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/tr1/unordered_map.hpp +2 -2
  1513. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/tr1/unordered_set.hpp +2 -2
  1514. data/ext/enterprise_script_service/msgpack/include/msgpack/adaptor/v4raw_decl.hpp +1 -0
  1515. data/ext/enterprise_script_service/msgpack/include/msgpack/cpp_config_decl.hpp +1 -0
  1516. data/ext/enterprise_script_service/msgpack/include/msgpack/create_object_visitor.hpp +17 -0
  1517. data/ext/enterprise_script_service/msgpack/include/msgpack/create_object_visitor_decl.hpp +16 -0
  1518. data/ext/enterprise_script_service/msgpack/include/msgpack/fbuffer_decl.hpp +1 -0
  1519. data/ext/enterprise_script_service/msgpack/include/msgpack/iterator_decl.hpp +2 -1
  1520. data/ext/enterprise_script_service/msgpack/include/msgpack/meta_decl.hpp +1 -0
  1521. data/ext/enterprise_script_service/msgpack/include/msgpack/null_visitor.hpp +17 -0
  1522. data/ext/enterprise_script_service/msgpack/include/msgpack/null_visitor_decl.hpp +16 -0
  1523. data/ext/enterprise_script_service/msgpack/include/msgpack/object_decl.hpp +1 -0
  1524. data/ext/enterprise_script_service/msgpack/include/msgpack/object_fwd.hpp +1 -0
  1525. data/ext/enterprise_script_service/msgpack/include/msgpack/object_fwd_decl.hpp +1 -0
  1526. data/ext/enterprise_script_service/msgpack/include/msgpack/pack.h +4 -0
  1527. data/ext/enterprise_script_service/msgpack/include/msgpack/pack_decl.hpp +1 -0
  1528. data/ext/enterprise_script_service/msgpack/include/msgpack/pack_template.h +28 -0
  1529. data/ext/enterprise_script_service/msgpack/include/msgpack/parse.hpp +18 -0
  1530. data/ext/enterprise_script_service/msgpack/include/msgpack/parse_decl.hpp +16 -0
  1531. data/ext/enterprise_script_service/msgpack/include/msgpack/parse_return.hpp +1 -0
  1532. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/architecture.h +1 -0
  1533. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/architecture/arm.h +11 -1
  1534. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/architecture/parisc.h +1 -1
  1535. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/architecture/ptx.h +44 -0
  1536. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/compiler.h +1 -0
  1537. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/compiler/intel.h +17 -3
  1538. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/compiler/nvcc.h +60 -0
  1539. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/compiler/visualc.h +15 -1
  1540. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/hardware/simd/arm.h +3 -1
  1541. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/hardware/simd/x86_amd/versions.h +3 -3
  1542. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/language.h +1 -0
  1543. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/language/cuda.h +52 -0
  1544. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/library/c.h +1 -0
  1545. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/library/c/cloudabi.h +53 -0
  1546. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/make.h +8 -0
  1547. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/os/android.h +2 -2
  1548. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/os/bsd/free.h +10 -3
  1549. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/os/bsd/open.h +80 -0
  1550. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/other/endian.h +1 -2
  1551. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/other/workaround.h +87 -0
  1552. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform.h +9 -2
  1553. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform/cloudabi.h +43 -0
  1554. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform/ios.h +58 -0
  1555. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform/mingw.h +4 -4
  1556. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform/mingw32.h +63 -0
  1557. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform/mingw64.h +63 -0
  1558. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform/windows_desktop.h +9 -3
  1559. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform/windows_phone.h +7 -2
  1560. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform/windows_runtime.h +13 -5
  1561. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform/windows_server.h +47 -0
  1562. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform/windows_store.h +11 -4
  1563. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform/windows_system.h +47 -0
  1564. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/platform/windows_uwp.h +60 -0
  1565. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/version.h +1 -1
  1566. data/ext/enterprise_script_service/msgpack/include/msgpack/predef/version_number.h +20 -1
  1567. data/ext/enterprise_script_service/msgpack/include/msgpack/preprocessor/cat.hpp +1 -1
  1568. data/ext/enterprise_script_service/msgpack/include/msgpack/preprocessor/config/config.hpp +13 -11
  1569. data/ext/enterprise_script_service/msgpack/include/msgpack/preprocessor/seq/detail/binary_transform.hpp +5 -6
  1570. data/ext/enterprise_script_service/msgpack/include/msgpack/preprocessor/seq/detail/to_list_msvc.hpp +55 -0
  1571. data/ext/enterprise_script_service/msgpack/include/msgpack/preprocessor/seq/to_list.hpp +12 -0
  1572. data/ext/enterprise_script_service/msgpack/include/msgpack/sbuffer_decl.hpp +1 -0
  1573. data/ext/enterprise_script_service/msgpack/include/msgpack/sysdep.h +31 -26
  1574. data/ext/enterprise_script_service/msgpack/include/msgpack/timestamp.h +58 -0
  1575. data/ext/enterprise_script_service/msgpack/include/msgpack/type.hpp +13 -0
  1576. data/ext/enterprise_script_service/msgpack/include/msgpack/unpack.hpp +1 -1
  1577. data/ext/enterprise_script_service/msgpack/include/msgpack/unpack_decl.hpp +1 -0
  1578. data/ext/enterprise_script_service/msgpack/include/msgpack/unpack_template.h +1 -0
  1579. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/array_ref.hpp +6 -6
  1580. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/boost/fusion.hpp +48 -5
  1581. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/carray.hpp +5 -5
  1582. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/char_ptr.hpp +1 -1
  1583. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp11/array.hpp +1 -1
  1584. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp11/array_char.hpp +8 -1
  1585. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp11/array_unsigned_char.hpp +8 -1
  1586. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp11/chrono.hpp +215 -0
  1587. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp11/forward_list.hpp +1 -1
  1588. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp11/tuple.hpp +1 -1
  1589. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp11/unordered_map.hpp +2 -2
  1590. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp11/unordered_set.hpp +2 -2
  1591. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp17/byte.hpp +74 -0
  1592. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp17/carray_byte.hpp +109 -0
  1593. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp17/optional.hpp +90 -0
  1594. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp17/string_view.hpp +86 -0
  1595. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/cpp17/vector_byte.hpp +119 -0
  1596. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/deque.hpp +1 -1
  1597. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/detail/cpp03_define_array.hpp +1088 -32
  1598. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/detail/cpp03_define_map.hpp +32 -16
  1599. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/detail/cpp03_msgpack_tuple.hpp +32 -32
  1600. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/detail/cpp11_convert_helper.hpp +45 -0
  1601. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/detail/cpp11_define_array.hpp +4 -3
  1602. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/detail/cpp11_define_map.hpp +4 -2
  1603. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple.hpp +1 -1
  1604. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/ext.hpp +3 -3
  1605. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/fixint.hpp +40 -24
  1606. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/int.hpp +55 -33
  1607. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/list.hpp +1 -1
  1608. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/map.hpp +7 -7
  1609. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/pair.hpp +1 -1
  1610. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/set.hpp +2 -2
  1611. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/string.hpp +1 -1
  1612. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/tr1/unordered_map.hpp +2 -2
  1613. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/tr1/unordered_set.hpp +2 -2
  1614. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/vector.hpp +5 -5
  1615. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/vector_bool.hpp +1 -1
  1616. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/vector_char.hpp +9 -9
  1617. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/adaptor/vector_unsigned_char.hpp +9 -9
  1618. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/cpp_config.hpp +4 -0
  1619. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/cpp_config_decl.hpp +6 -0
  1620. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/detail/cpp03_zone.hpp +41 -34
  1621. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/detail/cpp03_zone_decl.hpp +8 -0
  1622. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/detail/cpp11_zone.hpp +25 -19
  1623. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/detail/cpp11_zone_decl.hpp +8 -0
  1624. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/object.hpp +768 -404
  1625. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/object_decl.hpp +8 -1
  1626. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/object_fwd.hpp +1 -1
  1627. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/unpack.hpp +5 -6
  1628. data/ext/enterprise_script_service/msgpack/include/msgpack/v1/vrefbuffer.hpp +15 -3
  1629. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/create_object_visitor.hpp +14 -7
  1630. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/create_object_visitor_decl.hpp +33 -0
  1631. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/null_visitor.hpp +5 -3
  1632. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/null_visitor_decl.hpp +29 -0
  1633. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/object_decl.hpp +4 -0
  1634. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/object_fwd.hpp +1 -1
  1635. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/pack_decl.hpp +1 -0
  1636. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/parse.hpp +41 -23
  1637. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/parse_decl.hpp +79 -0
  1638. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/unpack.hpp +7 -3
  1639. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/unpack_decl.hpp +8 -36
  1640. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/x3_parse.hpp +5 -6
  1641. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/x3_parse_decl.hpp +36 -0
  1642. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/x3_unpack.hpp +13 -12
  1643. data/ext/enterprise_script_service/msgpack/include/msgpack/v2/x3_unpack_decl.hpp +71 -0
  1644. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/adaptor_base.hpp +58 -0
  1645. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/adaptor_base_decl.hpp +52 -0
  1646. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/array_ref_decl.hpp +36 -0
  1647. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/boost/msgpack_variant_decl.hpp +42 -0
  1648. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/check_container_size_decl.hpp +39 -0
  1649. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/define_decl.hpp +23 -0
  1650. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/detail/cpp03_define_array_decl.hpp +31 -0
  1651. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/detail/cpp03_define_map_decl.hpp +31 -0
  1652. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/detail/cpp03_msgpack_tuple_decl.hpp +43 -0
  1653. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/detail/cpp11_define_array_decl.hpp +32 -0
  1654. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/detail/cpp11_define_map_decl.hpp +31 -0
  1655. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/detail/cpp11_msgpack_tuple_decl.hpp +59 -0
  1656. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/ext_decl.hpp +34 -0
  1657. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/fixint_decl.hpp +43 -0
  1658. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/int_decl.hpp +54 -0
  1659. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/map_decl.hpp +33 -0
  1660. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/msgpack_tuple_decl.hpp +21 -0
  1661. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/nil_decl.hpp +42 -0
  1662. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/raw_decl.hpp +33 -0
  1663. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/size_equal_only_decl.hpp +35 -0
  1664. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/adaptor/v4raw_decl.hpp +34 -0
  1665. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/cpp_config_decl.hpp +84 -0
  1666. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/create_object_visitor_decl.hpp +33 -0
  1667. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/detail/cpp03_zone_decl.hpp +31 -0
  1668. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/detail/cpp11_zone_decl.hpp +31 -0
  1669. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/fbuffer_decl.hpp +32 -0
  1670. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/iterator_decl.hpp +33 -0
  1671. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/meta_decl.hpp +50 -0
  1672. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/null_visitor_decl.hpp +29 -0
  1673. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/object_decl.hpp +53 -0
  1674. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/object_fwd.hpp +70 -0
  1675. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/object_fwd_decl.hpp +75 -0
  1676. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/pack_decl.hpp +55 -0
  1677. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/parse.hpp +677 -0
  1678. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/parse_decl.hpp +49 -0
  1679. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/parse_return.hpp +35 -0
  1680. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/sbuffer_decl.hpp +33 -0
  1681. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/unpack.hpp +192 -0
  1682. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/unpack_decl.hpp +304 -0
  1683. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/vrefbuffer_decl.hpp +29 -0
  1684. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/x3_parse_decl.hpp +34 -0
  1685. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/x3_unpack.hpp +97 -0
  1686. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/x3_unpack_decl.hpp +65 -0
  1687. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/zbuffer_decl.hpp +29 -0
  1688. data/ext/enterprise_script_service/msgpack/include/msgpack/v3/zone_decl.hpp +21 -0
  1689. data/ext/enterprise_script_service/msgpack/include/msgpack/version_master.h +1 -1
  1690. data/ext/enterprise_script_service/msgpack/include/msgpack/versioning.hpp +3 -1
  1691. data/ext/enterprise_script_service/msgpack/include/msgpack/vrefbuffer.h +1 -2
  1692. data/ext/enterprise_script_service/msgpack/include/msgpack/vrefbuffer_decl.hpp +1 -0
  1693. data/ext/enterprise_script_service/msgpack/include/msgpack/x3_parse.hpp +15 -0
  1694. data/ext/enterprise_script_service/msgpack/include/msgpack/x3_parse_decl.hpp +16 -0
  1695. data/ext/enterprise_script_service/msgpack/include/msgpack/x3_unpack.hpp +16 -0
  1696. data/ext/enterprise_script_service/msgpack/include/msgpack/x3_unpack_decl.hpp +16 -0
  1697. data/ext/enterprise_script_service/msgpack/include/msgpack/zbuffer_decl.hpp +1 -0
  1698. data/ext/enterprise_script_service/msgpack/include/msgpack/zone_decl.hpp +1 -0
  1699. data/ext/enterprise_script_service/msgpack/makedist.sh +2 -0
  1700. data/ext/enterprise_script_service/msgpack/msgpack-config.cmake.in +23 -0
  1701. data/ext/enterprise_script_service/msgpack/src/objectc.c +1 -1
  1702. data/ext/enterprise_script_service/msgpack/src/unpack.c +8 -8
  1703. data/ext/enterprise_script_service/msgpack/src/vrefbuffer.c +13 -1
  1704. data/ext/enterprise_script_service/msgpack/test/CMakeLists.txt +13 -6
  1705. data/ext/enterprise_script_service/msgpack/test/boost_fusion.cpp +31 -0
  1706. data/ext/enterprise_script_service/msgpack/test/boost_variant.cpp +3 -3
  1707. data/ext/enterprise_script_service/msgpack/test/cases.cpp +7 -0
  1708. data/ext/enterprise_script_service/msgpack/test/fuzz_unpack_pack_fuzzer_cpp11.cpp +8 -0
  1709. data/ext/enterprise_script_service/msgpack/test/json.cpp +1 -1
  1710. data/ext/enterprise_script_service/msgpack/test/msgpack_c.cpp +114 -6
  1711. data/ext/enterprise_script_service/msgpack/test/msgpack_cpp11.cpp +188 -0
  1712. data/ext/enterprise_script_service/msgpack/test/msgpack_cpp17.cpp +333 -0
  1713. data/ext/enterprise_script_service/msgpack/test/msgpack_vref.cpp +11 -0
  1714. data/ext/enterprise_script_service/msgpack/test/msgpack_x3_parse.cpp +9 -3
  1715. data/ext/enterprise_script_service/msgpack/test/object.cpp +11 -2
  1716. data/ext/enterprise_script_service/msgpack/test/object_with_zone.cpp +72 -8
  1717. data/ext/enterprise_script_service/msgpack/test/pack_unpack.cpp +96 -0
  1718. data/ext/enterprise_script_service/msgpack/test/pack_unpack_c.cpp +1 -1
  1719. data/ext/enterprise_script_service/msgpack/test/user_class.cpp +38 -13
  1720. data/ext/enterprise_script_service/msgpack/test/visitor.cpp +350 -6
  1721. data/ext/enterprise_script_service/msgpack/update_version.sh +17 -0
  1722. data/lib/script_core/version.rb +1 -1
  1723. data/lib/tasks/script_core.rake +5 -2
  1724. data/script_core.gemspec +0 -1
  1725. data/spec/dummy/app/controllers/application_controller.rb +18 -0
  1726. data/spec/dummy/app/controllers/fields/choices_controller.rb +50 -0
  1727. data/spec/dummy/app/controllers/forms/formulas/playgrounds_controller.rb +2 -2
  1728. data/spec/dummy/app/controllers/playgrounds_controller.rb +18 -3
  1729. data/spec/dummy/app/controllers/time_zones_controller.rb +14 -0
  1730. data/spec/dummy/app/helpers/fields_helper.rb +0 -4
  1731. data/spec/dummy/app/lib/script_engine.rb +18 -7
  1732. data/spec/dummy/app/models/choice.rb +10 -0
  1733. data/spec/dummy/app/models/concerns/fields/helper.rb +23 -0
  1734. data/spec/dummy/app/models/concerns/fields/validations/acceptance.rb +1 -1
  1735. data/spec/dummy/app/models/concerns/fields/validations/confirmation.rb +1 -1
  1736. data/spec/dummy/app/models/concerns/fields/validations/exclusion.rb +2 -2
  1737. data/spec/dummy/app/models/concerns/fields/validations/format.rb +5 -7
  1738. data/spec/dummy/app/models/concerns/fields/validations/inclusion.rb +2 -2
  1739. data/spec/dummy/app/models/concerns/fields/validations/length.rb +2 -2
  1740. data/spec/dummy/app/models/concerns/fields/validations/numericality.rb +2 -2
  1741. data/spec/dummy/app/models/concerns/fields/validations/presence.rb +1 -1
  1742. data/spec/dummy/app/models/field.rb +8 -8
  1743. data/spec/dummy/app/models/field_options.rb +16 -8
  1744. data/spec/dummy/app/models/fields.rb +4 -0
  1745. data/spec/dummy/app/models/fields/boolean_field.rb +1 -1
  1746. data/spec/dummy/app/models/fields/date_field.rb +24 -0
  1747. data/spec/dummy/app/models/fields/datetime_field.rb +24 -0
  1748. data/spec/dummy/app/models/fields/multiple_nested_form_field.rb +8 -3
  1749. data/spec/dummy/app/models/fields/multiple_select_field.rb +42 -0
  1750. data/spec/dummy/app/models/fields/nested_form_field.rb +6 -5
  1751. data/spec/dummy/app/models/fields/options/date_field.rb +138 -0
  1752. data/spec/dummy/app/models/fields/options/datetime_field.rb +138 -0
  1753. data/spec/dummy/app/models/fields/options/multiple_select_field.rb +7 -0
  1754. data/spec/dummy/app/models/fields/options/select_field.rb +7 -0
  1755. data/spec/dummy/app/models/fields/select_field.rb +25 -0
  1756. data/spec/dummy/app/models/fields/validations/boolean_field.rb +1 -1
  1757. data/spec/dummy/app/models/fields/validations/date_field.rb +7 -0
  1758. data/spec/dummy/app/models/fields/validations/datetime_field.rb +7 -0
  1759. data/spec/dummy/app/models/fields/validations/decimal_field.rb +2 -2
  1760. data/spec/dummy/app/models/fields/validations/integer_field.rb +2 -2
  1761. data/spec/dummy/app/models/fields/validations/multiple_nested_form_field.rb +2 -2
  1762. data/spec/dummy/app/models/fields/validations/multiple_select_field.rb +8 -0
  1763. data/spec/dummy/app/models/fields/validations/nested_form_field.rb +1 -1
  1764. data/spec/dummy/app/models/fields/validations/select_field.rb +7 -0
  1765. data/spec/dummy/app/models/fields/validations/text_field.rb +3 -3
  1766. data/spec/dummy/app/models/metal_form.rb +4 -0
  1767. data/spec/dummy/app/models/non_configurable.rb +4 -0
  1768. data/spec/dummy/app/models/virtual_model.rb +8 -0
  1769. data/spec/dummy/app/presenters/fields/date_field_presenter.rb +53 -0
  1770. data/spec/dummy/app/presenters/fields/datetime_field_presenter.rb +53 -0
  1771. data/spec/dummy/app/presenters/fields/field_presenter.rb +3 -2
  1772. data/spec/dummy/app/presenters/fields/multiple_select_field_presenter.rb +37 -0
  1773. data/spec/dummy/app/presenters/fields/select_field_presenter.rb +26 -0
  1774. data/spec/dummy/app/views/_form_core/field_options/_date_field.html.erb +97 -0
  1775. data/spec/dummy/app/views/_form_core/field_options/_datetime_field.html.erb +97 -0
  1776. data/spec/dummy/app/views/_form_core/field_options/_multiple_select_field.html.erb +12 -0
  1777. data/spec/dummy/app/views/_form_core/field_options/_select_field.html.erb +12 -0
  1778. data/spec/dummy/app/views/_form_core/fields/_date_field.html.erb +9 -0
  1779. data/spec/dummy/app/views/_form_core/fields/_datetime_field.html.erb +9 -0
  1780. data/spec/dummy/app/views/_form_core/fields/_multiple_select_field.html.erb +18 -0
  1781. data/spec/dummy/app/views/_form_core/fields/_select_field.html.erb +17 -0
  1782. data/spec/dummy/app/views/fields/choices/_form.html.erb +34 -0
  1783. data/spec/dummy/app/views/fields/choices/edit.html.erb +6 -0
  1784. data/spec/dummy/app/views/fields/choices/index.html.erb +27 -0
  1785. data/spec/dummy/app/views/fields/choices/new.html.erb +6 -0
  1786. data/spec/dummy/app/views/forms/fields/index.html.erb +4 -1
  1787. data/spec/dummy/app/views/forms/formulas/playgrounds/create.html.erb +1 -1
  1788. data/spec/dummy/app/views/layouts/_nav.html.erb +22 -0
  1789. data/spec/dummy/app/views/nested_forms/fields/index.html.erb +10 -3
  1790. data/spec/dummy/app/views/playgrounds/_form.html.erb +1 -1
  1791. data/spec/dummy/config/application.rb +2 -1
  1792. data/spec/dummy/config/initializers/validates_timeliness.rb +42 -0
  1793. data/spec/dummy/config/routes.rb +3 -0
  1794. data/spec/dummy/db/migrate/20180916202025_create_forms.form_core.rb +1 -0
  1795. data/spec/dummy/db/migrate/20180916202122_create_choices.rb +12 -0
  1796. data/spec/dummy/db/migrate/20180916202123_add_position_to_choices.rb +9 -0
  1797. data/spec/dummy/db/schema.rb +19 -5
  1798. data/spec/dummy/lib/monkey_patches/big_decimal.rb +7 -3
  1799. data/spec/dummy/lib/monkey_patches/date.rb +12 -0
  1800. data/spec/dummy/lib/monkey_patches/time.rb +12 -0
  1801. data/spec/dummy/mruby/engine.gembox +1 -0
  1802. data/spec/dummy/mruby/lib/core_ext.rb +64 -2
  1803. data/spec/dummy/mruby/lib/input.rb +16 -4
  1804. data/spec/dummy/mruby/lib/io.rb +4 -3
  1805. data/spec/dummy/mruby/lib/output.rb +2 -28
  1806. data/spec/dummy/mruby/lib/script_kernel.rb +8 -7
  1807. data/spec/script_core_spec.rb +2 -2
  1808. data/tests/googletest/.clang-format +4 -0
  1809. data/tests/googletest/.gitignore +82 -0
  1810. data/tests/googletest/.travis.yml +68 -29
  1811. data/tests/googletest/BUILD.bazel +179 -0
  1812. data/tests/googletest/CMakeLists.txt +21 -4
  1813. data/tests/googletest/CONTRIBUTING.md +161 -0
  1814. data/tests/googletest/LICENSE +28 -0
  1815. data/tests/googletest/Makefile.am +12 -0
  1816. data/tests/googletest/README.md +28 -41
  1817. data/tests/googletest/WORKSPACE +10 -0
  1818. data/tests/googletest/appveyor.yml +118 -35
  1819. data/tests/googletest/ci/build-linux-autotools.sh +44 -0
  1820. data/tests/googletest/ci/build-linux-bazel.sh +36 -0
  1821. data/tests/googletest/ci/build-platformio.sh +2 -0
  1822. data/tests/googletest/ci/env-linux.sh +41 -0
  1823. data/tests/googletest/ci/env-osx.sh +47 -0
  1824. data/tests/googletest/ci/get-nprocessors.sh +48 -0
  1825. data/tests/googletest/ci/install-linux.sh +49 -0
  1826. data/tests/googletest/ci/install-osx.sh +40 -0
  1827. data/tests/googletest/ci/install-platformio.sh +5 -0
  1828. data/tests/googletest/ci/log-config.sh +51 -0
  1829. data/tests/googletest/ci/travis.sh +44 -0
  1830. data/tests/googletest/configure.ac +16 -0
  1831. data/tests/googletest/googlemock/CMakeLists.txt +78 -55
  1832. data/tests/googletest/googlemock/Makefile.am +6 -8
  1833. data/tests/googletest/googlemock/README.md +33 -73
  1834. data/tests/googletest/googlemock/cmake/gmock.pc.in +11 -0
  1835. data/tests/googletest/googlemock/cmake/gmock_main.pc.in +11 -0
  1836. data/tests/googletest/googlemock/configure.ac +6 -18
  1837. data/tests/googletest/googlemock/docs/CheatSheet.md +126 -99
  1838. data/tests/googletest/googlemock/docs/CookBook.md +271 -286
  1839. data/tests/googletest/googlemock/docs/DesignDoc.md +29 -27
  1840. data/tests/googletest/googlemock/docs/Documentation.md +7 -4
  1841. data/tests/googletest/googlemock/docs/ForDummies.md +41 -33
  1842. data/tests/googletest/googlemock/docs/FrequentlyAskedQuestions.md +28 -29
  1843. data/tests/googletest/googlemock/include/gmock/gmock-actions.h +232 -240
  1844. data/tests/googletest/googlemock/include/gmock/gmock-cardinalities.h +12 -6
  1845. data/tests/googletest/googlemock/include/gmock/gmock-function-mocker.h +218 -0
  1846. data/tests/googletest/googlemock/include/gmock/gmock-generated-actions.h +304 -796
  1847. data/tests/googletest/googlemock/include/gmock/gmock-generated-actions.h.pump +18 -184
  1848. data/tests/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h +330 -673
  1849. data/tests/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +77 -141
  1850. data/tests/googletest/googlemock/include/gmock/gmock-generated-matchers.h +293 -1372
  1851. data/tests/googletest/googlemock/include/gmock/gmock-generated-matchers.h.pump +22 -345
  1852. data/tests/googletest/googlemock/include/gmock/gmock-matchers.h +1382 -1218
  1853. data/tests/googletest/googlemock/include/gmock/gmock-more-actions.h +12 -96
  1854. data/tests/googletest/googlemock/include/gmock/gmock-more-matchers.h +39 -5
  1855. data/tests/googletest/googlemock/include/gmock/gmock-nice-strict.h +215 -0
  1856. data/tests/googletest/googlemock/include/gmock/gmock-spec-builders.h +362 -228
  1857. data/tests/googletest/googlemock/include/gmock/gmock.h +10 -3
  1858. data/tests/googletest/googlemock/include/gmock/internal/custom/README.md +16 -0
  1859. data/tests/googletest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +2 -0
  1860. data/tests/googletest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +3 -1
  1861. data/tests/googletest/googlemock/include/gmock/internal/custom/gmock-matchers.h +5 -8
  1862. data/tests/googletest/googlemock/include/gmock/internal/custom/gmock-port.h +3 -10
  1863. data/tests/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h +114 -54
  1864. data/tests/googletest/googlemock/include/gmock/internal/gmock-port.h +13 -17
  1865. data/tests/googletest/googlemock/include/gmock/internal/gmock-pp.h +317 -0
  1866. data/tests/googletest/googlemock/make/Makefile +23 -7
  1867. data/tests/googletest/googlemock/msvc/2010/gmock.sln +14 -0
  1868. data/tests/googletest/googlemock/msvc/2010/gmock.vcxproj +69 -6
  1869. data/tests/googletest/googlemock/msvc/2010/gmock_config.props +2 -2
  1870. data/tests/googletest/googlemock/msvc/2010/gmock_main.vcxproj +69 -6
  1871. data/tests/googletest/googlemock/msvc/2010/gmock_test.vcxproj +83 -8
  1872. data/tests/googletest/googlemock/msvc/2015/gmock.sln +14 -0
  1873. data/tests/googletest/googlemock/msvc/2015/gmock.vcxproj +63 -2
  1874. data/tests/googletest/googlemock/msvc/2015/gmock_main.vcxproj +63 -2
  1875. data/tests/googletest/googlemock/msvc/2015/gmock_test.vcxproj +76 -3
  1876. data/tests/googletest/googlemock/scripts/fuse_gmock_files.py +1 -1
  1877. data/tests/googletest/googlemock/scripts/generator/README +4 -5
  1878. data/tests/googletest/googlemock/scripts/generator/cpp/ast.py +6 -3
  1879. data/tests/googletest/googlemock/scripts/generator/cpp/gmock_class_test.py +18 -0
  1880. data/tests/googletest/googlemock/scripts/upload.py +4 -4
  1881. data/tests/googletest/googlemock/src/gmock-all.cc +1 -2
  1882. data/tests/googletest/googlemock/src/gmock-cardinalities.cc +7 -8
  1883. data/tests/googletest/googlemock/src/gmock-internal-utils.cc +38 -12
  1884. data/tests/googletest/googlemock/src/gmock-matchers.cc +127 -163
  1885. data/tests/googletest/googlemock/src/gmock-spec-builders.cc +150 -86
  1886. data/tests/googletest/googlemock/src/gmock.cc +41 -11
  1887. data/tests/googletest/googlemock/src/gmock_main.cc +14 -3
  1888. data/tests/googletest/googlemock/test/BUILD.bazel +106 -0
  1889. data/tests/googletest/googlemock/test/gmock-actions_test.cc +370 -328
  1890. data/tests/googletest/googlemock/test/gmock-cardinalities_test.cc +5 -6
  1891. data/tests/googletest/googlemock/test/gmock-function-mocker_nc.cc +16 -0
  1892. data/tests/googletest/googlemock/test/gmock-function-mocker_nc_test.py +43 -0
  1893. data/tests/googletest/googlemock/test/gmock-function-mocker_test.cc +660 -0
  1894. data/tests/googletest/googlemock/test/gmock-generated-actions_test.cc +137 -301
  1895. data/tests/googletest/googlemock/test/gmock-generated-function-mockers_test.cc +80 -43
  1896. data/tests/googletest/googlemock/test/gmock-generated-matchers_test.cc +239 -201
  1897. data/tests/googletest/googlemock/test/gmock-internal-utils_test.cc +126 -68
  1898. data/tests/googletest/googlemock/test/gmock-matchers_test.cc +1811 -674
  1899. data/tests/googletest/googlemock/test/gmock-more-actions_test.cc +162 -171
  1900. data/tests/googletest/googlemock/test/gmock-nice-strict_test.cc +121 -45
  1901. data/tests/googletest/googlemock/test/gmock-port_test.cc +1 -2
  1902. data/tests/googletest/googlemock/test/gmock-pp-string_test.cc +206 -0
  1903. data/tests/googletest/googlemock/test/gmock-pp_test.cc +73 -0
  1904. data/tests/googletest/googlemock/test/gmock-spec-builders_test.cc +152 -23
  1905. data/tests/googletest/googlemock/test/gmock_all_test.cc +1 -3
  1906. data/tests/googletest/googlemock/test/gmock_ex_test.cc +4 -5
  1907. data/tests/googletest/googlemock/test/gmock_leak_test.py +0 -4
  1908. data/tests/googletest/googlemock/test/gmock_leak_test_.cc +1 -2
  1909. data/tests/googletest/googlemock/test/gmock_link2_test.cc +2 -3
  1910. data/tests/googletest/googlemock/test/gmock_link_test.cc +2 -3
  1911. data/tests/googletest/googlemock/test/gmock_link_test.h +45 -24
  1912. data/tests/googletest/googlemock/test/gmock_output_test.py +10 -9
  1913. data/tests/googletest/googlemock/test/gmock_output_test_.cc +21 -3
  1914. data/tests/googletest/googlemock/test/gmock_output_test_golden.txt +8 -1
  1915. data/tests/googletest/googlemock/test/gmock_stress_test.cc +7 -89
  1916. data/tests/googletest/googlemock/test/gmock_test.cc +57 -96
  1917. data/tests/googletest/googlemock/test/gmock_test_utils.py +5 -9
  1918. data/tests/googletest/googletest/CMakeLists.txt +122 -83
  1919. data/tests/googletest/googletest/Makefile.am +103 -75
  1920. data/tests/googletest/googletest/README.md +236 -189
  1921. data/tests/googletest/googletest/cmake/Config.cmake.in +9 -0
  1922. data/tests/googletest/googletest/cmake/gtest.pc.in +10 -0
  1923. data/tests/googletest/googletest/cmake/gtest_main.pc.in +11 -0
  1924. data/tests/googletest/googletest/cmake/internal_utils.cmake +158 -58
  1925. data/tests/googletest/googletest/cmake/libgtest.la.in +21 -0
  1926. data/tests/googletest/googletest/configure.ac +2 -2
  1927. data/tests/googletest/googletest/docs/Pkgconfig.md +146 -0
  1928. data/tests/googletest/googletest/docs/PumpManual.md +5 -5
  1929. data/tests/googletest/googletest/docs/XcodeGuide.md +9 -9
  1930. data/tests/googletest/googletest/docs/advanced.md +2523 -0
  1931. data/tests/googletest/googletest/docs/faq.md +770 -0
  1932. data/tests/googletest/googletest/docs/primer.md +564 -0
  1933. data/tests/googletest/googletest/docs/samples.md +22 -0
  1934. data/tests/googletest/googletest/include/gtest/gtest-death-test.h +60 -11
  1935. data/tests/googletest/googletest/include/gtest/gtest-matchers.h +741 -0
  1936. data/tests/googletest/googletest/include/gtest/gtest-message.h +12 -44
  1937. data/tests/googletest/googletest/include/gtest/gtest-param-test.h +139 -1080
  1938. data/tests/googletest/googletest/include/gtest/gtest-printers.h +202 -268
  1939. data/tests/googletest/googletest/include/gtest/gtest-spi.h +13 -7
  1940. data/tests/googletest/googletest/include/gtest/gtest-test-part.h +21 -16
  1941. data/tests/googletest/googletest/include/gtest/gtest-typed-test.h +157 -84
  1942. data/tests/googletest/googletest/include/gtest/gtest.h +494 -277
  1943. data/tests/googletest/googletest/include/gtest/gtest_pred_impl.h +41 -40
  1944. data/tests/googletest/googletest/include/gtest/gtest_prod.h +10 -7
  1945. data/tests/googletest/googletest/include/gtest/internal/custom/README.md +56 -0
  1946. data/tests/googletest/googletest/include/gtest/internal/custom/gtest-port.h +1 -33
  1947. data/tests/googletest/googletest/include/gtest/internal/custom/gtest-printers.h +2 -2
  1948. data/tests/googletest/googletest/include/gtest/internal/custom/gtest.h +1 -5
  1949. data/tests/googletest/googletest/include/gtest/internal/gtest-death-test-internal.h +80 -95
  1950. data/tests/googletest/googletest/include/gtest/internal/gtest-filepath.h +8 -3
  1951. data/tests/googletest/googletest/include/gtest/internal/gtest-internal.h +415 -231
  1952. data/tests/googletest/googletest/include/gtest/internal/gtest-param-util.h +323 -174
  1953. data/tests/googletest/googletest/include/gtest/internal/gtest-port-arch.h +19 -5
  1954. data/tests/googletest/googletest/include/gtest/internal/gtest-port.h +289 -549
  1955. data/tests/googletest/googletest/include/gtest/internal/gtest-string.h +4 -4
  1956. data/tests/googletest/googletest/include/gtest/internal/gtest-type-util.h +23 -7
  1957. data/tests/googletest/googletest/include/gtest/internal/gtest-type-util.h.pump +24 -7
  1958. data/tests/googletest/googletest/make/Makefile +13 -7
  1959. data/tests/googletest/googletest/msvc/2010/gtest-md.sln +55 -0
  1960. data/tests/googletest/googletest/msvc/2010/gtest-md.vcxproj +149 -0
  1961. data/tests/googletest/googletest/msvc/2010/gtest-md.vcxproj.filters +18 -0
  1962. data/tests/googletest/googletest/msvc/2010/gtest.sln +55 -0
  1963. data/tests/googletest/googletest/msvc/2010/gtest.vcxproj +149 -0
  1964. data/tests/googletest/googletest/msvc/2010/gtest.vcxproj.filters +18 -0
  1965. data/tests/googletest/googletest/msvc/2010/gtest_main-md.vcxproj +154 -0
  1966. data/tests/googletest/googletest/msvc/2010/gtest_main-md.vcxproj.filters +18 -0
  1967. data/tests/googletest/googletest/msvc/2010/gtest_main.vcxproj +162 -0
  1968. data/tests/googletest/googletest/msvc/2010/gtest_main.vcxproj.filters +18 -0
  1969. data/tests/googletest/googletest/msvc/2010/gtest_prod_test-md.vcxproj +199 -0
  1970. data/tests/googletest/googletest/msvc/2010/gtest_prod_test-md.vcxproj.filters +26 -0
  1971. data/tests/googletest/googletest/msvc/2010/gtest_prod_test.vcxproj +191 -0
  1972. data/tests/googletest/googletest/msvc/2010/gtest_prod_test.vcxproj.filters +26 -0
  1973. data/tests/googletest/googletest/msvc/2010/gtest_unittest-md.vcxproj +188 -0
  1974. data/tests/googletest/googletest/msvc/2010/gtest_unittest-md.vcxproj.filters +18 -0
  1975. data/tests/googletest/googletest/msvc/2010/gtest_unittest.vcxproj +180 -0
  1976. data/tests/googletest/googletest/msvc/2010/gtest_unittest.vcxproj.filters +18 -0
  1977. data/tests/googletest/googletest/samples/prime_tables.h +13 -10
  1978. data/tests/googletest/googletest/samples/sample1.cc +1 -3
  1979. data/tests/googletest/googletest/samples/sample1.h +0 -2
  1980. data/tests/googletest/googletest/samples/sample10_unittest.cc +4 -9
  1981. data/tests/googletest/googletest/samples/sample1_unittest.cc +2 -4
  1982. data/tests/googletest/googletest/samples/sample2.cc +1 -3
  1983. data/tests/googletest/googletest/samples/sample2.h +4 -8
  1984. data/tests/googletest/googletest/samples/sample2_unittest.cc +5 -7
  1985. data/tests/googletest/googletest/samples/sample3-inl.h +9 -9
  1986. data/tests/googletest/googletest/samples/sample3_unittest.cc +13 -15
  1987. data/tests/googletest/googletest/samples/sample4.cc +10 -2
  1988. data/tests/googletest/googletest/samples/sample4.h +3 -3
  1989. data/tests/googletest/googletest/samples/sample4_unittest.cc +11 -3
  1990. data/tests/googletest/googletest/samples/sample5_unittest.cc +11 -14
  1991. data/tests/googletest/googletest/samples/sample6_unittest.cc +12 -12
  1992. data/tests/googletest/googletest/samples/sample7_unittest.cc +14 -27
  1993. data/tests/googletest/googletest/samples/sample8_unittest.cc +20 -39
  1994. data/tests/googletest/googletest/samples/sample9_unittest.cc +6 -10
  1995. data/tests/googletest/googletest/scripts/fuse_gtest_files.py +1 -1
  1996. data/tests/googletest/googletest/scripts/gen_gtest_pred_impl.py +10 -10
  1997. data/tests/googletest/googletest/scripts/upload.py +5 -5
  1998. data/tests/googletest/googletest/src/gtest-all.cc +3 -3
  1999. data/tests/googletest/googletest/src/gtest-death-test.cc +417 -121
  2000. data/tests/googletest/googletest/src/gtest-filepath.cc +15 -23
  2001. data/tests/googletest/googletest/src/gtest-internal-inl.h +145 -122
  2002. data/tests/googletest/googletest/src/gtest-matchers.cc +97 -0
  2003. data/tests/googletest/googletest/src/gtest-port.cc +263 -129
  2004. data/tests/googletest/googletest/src/gtest-printers.cc +92 -24
  2005. data/tests/googletest/googletest/src/gtest-test-part.cc +13 -19
  2006. data/tests/googletest/googletest/src/gtest-typed-test.cc +5 -5
  2007. data/tests/googletest/googletest/src/gtest.cc +1469 -742
  2008. data/tests/googletest/googletest/src/gtest_main.cc +12 -3
  2009. data/tests/googletest/googletest/test/BUILD.bazel +518 -0
  2010. data/tests/googletest/googletest/test/googletest-break-on-failure-unittest.py +208 -0
  2011. data/tests/googletest/googletest/test/googletest-break-on-failure-unittest_.cc +86 -0
  2012. data/tests/googletest/googletest/test/googletest-catch-exceptions-test.py +231 -0
  2013. data/tests/googletest/googletest/test/googletest-catch-exceptions-test_.cc +293 -0
  2014. data/tests/googletest/googletest/test/googletest-color-test.py +127 -0
  2015. data/tests/googletest/googletest/test/googletest-color-test_.cc +62 -0
  2016. data/tests/googletest/googletest/test/googletest-death-test-test.cc +1458 -0
  2017. data/tests/googletest/googletest/test/googletest-death-test_ex_test.cc +92 -0
  2018. data/tests/googletest/googletest/test/googletest-env-var-test.py +117 -0
  2019. data/tests/googletest/googletest/test/googletest-env-var-test_.cc +122 -0
  2020. data/tests/googletest/googletest/test/googletest-filepath-test.cc +649 -0
  2021. data/tests/googletest/googletest/test/googletest-filter-unittest.py +639 -0
  2022. data/tests/googletest/googletest/test/googletest-filter-unittest_.cc +137 -0
  2023. data/tests/googletest/googletest/test/googletest-json-outfiles-test.py +185 -0
  2024. data/tests/googletest/googletest/test/googletest-json-output-unittest.py +758 -0
  2025. data/tests/googletest/googletest/test/googletest-list-tests-unittest.py +205 -0
  2026. data/tests/googletest/googletest/test/googletest-list-tests-unittest_.cc +156 -0
  2027. data/tests/googletest/googletest/test/googletest-listener-test.cc +407 -0
  2028. data/tests/googletest/googletest/test/googletest-message-test.cc +158 -0
  2029. data/tests/googletest/googletest/test/googletest-options-test.cc +216 -0
  2030. data/tests/googletest/googletest/test/googletest-output-test-golden-lin.txt +1128 -0
  2031. data/tests/googletest/googletest/test/googletest-output-test.py +346 -0
  2032. data/tests/googletest/googletest/test/googletest-output-test_.cc +1145 -0
  2033. data/tests/googletest/googletest/test/googletest-param-test-invalid-name1-test.py +63 -0
  2034. data/tests/googletest/googletest/test/googletest-param-test-invalid-name1-test_.cc +50 -0
  2035. data/tests/googletest/googletest/test/googletest-param-test-invalid-name2-test.py +62 -0
  2036. data/tests/googletest/googletest/test/googletest-param-test-invalid-name2-test_.cc +55 -0
  2037. data/tests/googletest/googletest/test/googletest-param-test-test.cc +1055 -0
  2038. data/tests/googletest/googletest/test/googletest-param-test-test.h +51 -0
  2039. data/tests/googletest/googletest/test/googletest-param-test2-test.cc +61 -0
  2040. data/tests/googletest/googletest/test/googletest-port-test.cc +1290 -0
  2041. data/tests/googletest/googletest/test/googletest-printers-test.cc +1561 -0
  2042. data/tests/googletest/googletest/test/googletest-shuffle-test.py +323 -0
  2043. data/tests/googletest/googletest/test/googletest-shuffle-test_.cc +101 -0
  2044. data/tests/googletest/googletest/test/googletest-test-part-test.cc +230 -0
  2045. data/tests/googletest/googletest/test/googletest-test2_test.cc +61 -0
  2046. data/tests/googletest/googletest/test/googletest-throw-on-failure-test.py +168 -0
  2047. data/tests/googletest/googletest/test/googletest-throw-on-failure-test_.cc +71 -0
  2048. data/tests/googletest/googletest/test/googletest-uninitialized-test.py +67 -0
  2049. data/tests/googletest/googletest/test/googletest-uninitialized-test_.cc +42 -0
  2050. data/tests/googletest/googletest/test/gtest-typed-test2_test.cc +3 -4
  2051. data/tests/googletest/googletest/test/gtest-typed-test_test.cc +144 -63
  2052. data/tests/googletest/googletest/test/gtest-typed-test_test.h +4 -5
  2053. data/tests/googletest/googletest/test/gtest-unittest-api_test.cc +122 -123
  2054. data/tests/googletest/googletest/test/gtest_all_test.cc +10 -11
  2055. data/tests/googletest/googletest/test/gtest_assert_by_exception_test.cc +116 -0
  2056. data/tests/googletest/googletest/test/gtest_environment_test.cc +3 -7
  2057. data/tests/googletest/googletest/test/gtest_help_test.py +1 -3
  2058. data/tests/googletest/googletest/test/gtest_help_test_.cc +1 -2
  2059. data/tests/googletest/googletest/test/gtest_json_test_utils.py +60 -0
  2060. data/tests/googletest/googletest/test/gtest_list_output_unittest.py +141 -0
  2061. data/tests/googletest/googletest/test/gtest_list_output_unittest_.cc +51 -0
  2062. data/tests/googletest/googletest/test/gtest_main_unittest.cc +3 -4
  2063. data/tests/googletest/googletest/test/gtest_no_test_unittest.cc +0 -2
  2064. data/tests/googletest/googletest/test/gtest_pred_impl_unittest.cc +11 -11
  2065. data/tests/googletest/googletest/test/gtest_premature_exit_test.cc +3 -4
  2066. data/tests/googletest/googletest/test/gtest_prod_test.cc +3 -4
  2067. data/tests/googletest/googletest/test/gtest_repeat_test.cc +8 -28
  2068. data/tests/googletest/googletest/test/gtest_skip_environment_check_output_test.py +54 -0
  2069. data/tests/googletest/googletest/test/gtest_skip_in_environment_setup_test.cc +49 -0
  2070. data/tests/googletest/googletest/test/gtest_skip_test.cc +55 -0
  2071. data/tests/googletest/googletest/test/gtest_sole_header_test.cc +1 -2
  2072. data/tests/googletest/googletest/test/gtest_stress_test.cc +3 -11
  2073. data/tests/googletest/googletest/test/gtest_test_macro_stack_footprint_test.cc +89 -0
  2074. data/tests/googletest/googletest/test/gtest_test_utils.py +15 -22
  2075. data/tests/googletest/googletest/test/gtest_testbridge_test.py +63 -0
  2076. data/tests/googletest/googletest/test/gtest_testbridge_test_.cc +43 -0
  2077. data/tests/googletest/googletest/test/gtest_throw_on_failure_ex_test.cc +2 -4
  2078. data/tests/googletest/googletest/test/gtest_unittest.cc +770 -924
  2079. data/tests/googletest/googletest/test/gtest_xml_outfile1_test_.cc +2 -8
  2080. data/tests/googletest/googletest/test/gtest_xml_outfile2_test_.cc +2 -8
  2081. data/tests/googletest/googletest/test/gtest_xml_outfiles_test.py +14 -11
  2082. data/tests/googletest/googletest/test/gtest_xml_output_unittest.py +132 -51
  2083. data/tests/googletest/googletest/test/gtest_xml_output_unittest_.cc +21 -14
  2084. data/tests/googletest/googletest/test/gtest_xml_test_utils.py +24 -22
  2085. data/tests/googletest/googletest/test/production.cc +2 -3
  2086. data/tests/googletest/googletest/test/production.h +2 -3
  2087. data/tests/googletest/googletest/xcode/Config/DebugProject.xcconfig +1 -1
  2088. data/tests/googletest/googletest/xcode/Config/FrameworkTarget.xcconfig +1 -1
  2089. data/tests/googletest/googletest/xcode/Config/General.xcconfig +3 -3
  2090. data/tests/googletest/googletest/xcode/Config/ReleaseProject.xcconfig +1 -1
  2091. data/tests/googletest/googletest/xcode/Config/StaticLibraryTarget.xcconfig +1 -1
  2092. data/tests/googletest/googletest/xcode/Scripts/versiongenerate.py +4 -4
  2093. data/tests/googletest/googletest/xcode/gtest.xcodeproj/project.pbxproj +51 -16
  2094. data/tests/googletest/library.json +59 -0
  2095. data/tests/googletest/platformio.ini +31 -0
  2096. metadata +1391 -137
  2097. data/ext/enterprise_script_service/libseccomp/README +0 -65
  2098. data/ext/enterprise_script_service/libseccomp/SUBMITTING_PATCHES +0 -123
  2099. data/ext/enterprise_script_service/mruby/MITL +0 -20
  2100. data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-mruby-config/mrbgem.rake +0 -30
  2101. data/ext/enterprise_script_service/mruby/mrbgems/mruby-io/test/gc_filedes.sh +0 -4
  2102. data/ext/enterprise_script_service/mruby/mrbgems/mruby-test/init_mrbtest.c +0 -38
  2103. data/ext/enterprise_script_service/mruby/mrblib/float.rb +0 -9
  2104. data/ext/enterprise_script_service/mruby/src/ext/.gitkeep +0 -0
  2105. data/ext/enterprise_script_service/mruby/test/report.rb +0 -4
  2106. data/spec/dummy/app/models/fields/options/boolean_field.rb +0 -6
  2107. data/spec/dummy/app/models/fields/options/multiple_nested_form_field.rb +0 -6
  2108. data/spec/dummy/app/models/fields/options/nested_form_field.rb +0 -6
  2109. data/tests/googletest/googlemock/CHANGES +0 -126
  2110. data/tests/googletest/googlemock/docs/DevGuide.md +0 -132
  2111. data/tests/googletest/googlemock/docs/v1_5/CheatSheet.md +0 -525
  2112. data/tests/googletest/googlemock/docs/v1_5/CookBook.md +0 -3250
  2113. data/tests/googletest/googlemock/docs/v1_5/Documentation.md +0 -11
  2114. data/tests/googletest/googlemock/docs/v1_5/ForDummies.md +0 -439
  2115. data/tests/googletest/googlemock/docs/v1_5/FrequentlyAskedQuestions.md +0 -624
  2116. data/tests/googletest/googlemock/docs/v1_6/CheatSheet.md +0 -534
  2117. data/tests/googletest/googlemock/docs/v1_6/CookBook.md +0 -3342
  2118. data/tests/googletest/googlemock/docs/v1_6/Documentation.md +0 -12
  2119. data/tests/googletest/googlemock/docs/v1_6/ForDummies.md +0 -439
  2120. data/tests/googletest/googlemock/docs/v1_6/FrequentlyAskedQuestions.md +0 -628
  2121. data/tests/googletest/googlemock/docs/v1_7/CheatSheet.md +0 -556
  2122. data/tests/googletest/googlemock/docs/v1_7/CookBook.md +0 -3432
  2123. data/tests/googletest/googlemock/docs/v1_7/Documentation.md +0 -12
  2124. data/tests/googletest/googlemock/docs/v1_7/ForDummies.md +0 -439
  2125. data/tests/googletest/googlemock/docs/v1_7/FrequentlyAskedQuestions.md +0 -628
  2126. data/tests/googletest/googlemock/include/gmock/gmock-generated-nice-strict.h +0 -397
  2127. data/tests/googletest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +0 -161
  2128. data/tests/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +0 -279
  2129. data/tests/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump +0 -136
  2130. data/tests/googletest/googlemock/test/gmock-generated-internal-utils_test.cc +0 -127
  2131. data/tests/googletest/googletest/.gitignore +0 -2
  2132. data/tests/googletest/googletest/CHANGES +0 -157
  2133. data/tests/googletest/googletest/build-aux/.keep +0 -0
  2134. data/tests/googletest/googletest/docs/AdvancedGuide.md +0 -2182
  2135. data/tests/googletest/googletest/docs/DevGuide.md +0 -126
  2136. data/tests/googletest/googletest/docs/Documentation.md +0 -14
  2137. data/tests/googletest/googletest/docs/FAQ.md +0 -1087
  2138. data/tests/googletest/googletest/docs/Primer.md +0 -502
  2139. data/tests/googletest/googletest/docs/Samples.md +0 -14
  2140. data/tests/googletest/googletest/docs/V1_5_AdvancedGuide.md +0 -2096
  2141. data/tests/googletest/googletest/docs/V1_5_Documentation.md +0 -12
  2142. data/tests/googletest/googletest/docs/V1_5_FAQ.md +0 -886
  2143. data/tests/googletest/googletest/docs/V1_5_Primer.md +0 -497
  2144. data/tests/googletest/googletest/docs/V1_5_PumpManual.md +0 -177
  2145. data/tests/googletest/googletest/docs/V1_5_XcodeGuide.md +0 -93
  2146. data/tests/googletest/googletest/docs/V1_6_AdvancedGuide.md +0 -2178
  2147. data/tests/googletest/googletest/docs/V1_6_Documentation.md +0 -14
  2148. data/tests/googletest/googletest/docs/V1_6_FAQ.md +0 -1038
  2149. data/tests/googletest/googletest/docs/V1_6_Primer.md +0 -501
  2150. data/tests/googletest/googletest/docs/V1_6_PumpManual.md +0 -177
  2151. data/tests/googletest/googletest/docs/V1_6_Samples.md +0 -14
  2152. data/tests/googletest/googletest/docs/V1_6_XcodeGuide.md +0 -93
  2153. data/tests/googletest/googletest/docs/V1_7_AdvancedGuide.md +0 -2181
  2154. data/tests/googletest/googletest/docs/V1_7_Documentation.md +0 -14
  2155. data/tests/googletest/googletest/docs/V1_7_FAQ.md +0 -1082
  2156. data/tests/googletest/googletest/docs/V1_7_Primer.md +0 -501
  2157. data/tests/googletest/googletest/docs/V1_7_PumpManual.md +0 -177
  2158. data/tests/googletest/googletest/docs/V1_7_Samples.md +0 -14
  2159. data/tests/googletest/googletest/docs/V1_7_XcodeGuide.md +0 -93
  2160. data/tests/googletest/googletest/include/gtest/gtest-param-test.h.pump +0 -510
  2161. data/tests/googletest/googletest/include/gtest/internal/gtest-linked_ptr.h +0 -243
  2162. data/tests/googletest/googletest/include/gtest/internal/gtest-param-util-generated.h +0 -5146
  2163. data/tests/googletest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +0 -286
  2164. data/tests/googletest/googletest/include/gtest/internal/gtest-tuple.h +0 -1020
  2165. data/tests/googletest/googletest/include/gtest/internal/gtest-tuple.h.pump +0 -347
  2166. data/tests/googletest/googletest/msvc/gtest-md.sln +0 -45
  2167. data/tests/googletest/googletest/msvc/gtest-md.vcproj +0 -126
  2168. data/tests/googletest/googletest/msvc/gtest.sln +0 -45
  2169. data/tests/googletest/googletest/msvc/gtest.vcproj +0 -126
  2170. data/tests/googletest/googletest/msvc/gtest_main-md.vcproj +0 -129
  2171. data/tests/googletest/googletest/msvc/gtest_main.vcproj +0 -129
  2172. data/tests/googletest/googletest/msvc/gtest_prod_test-md.vcproj +0 -164
  2173. data/tests/googletest/googletest/msvc/gtest_prod_test.vcproj +0 -164
  2174. data/tests/googletest/googletest/msvc/gtest_unittest-md.vcproj +0 -147
  2175. data/tests/googletest/googletest/msvc/gtest_unittest.vcproj +0 -147
  2176. data/tests/googletest/googletest/test/gtest-death-test_ex_test.cc +0 -93
  2177. data/tests/googletest/googletest/test/gtest-death-test_test.cc +0 -1427
  2178. data/tests/googletest/googletest/test/gtest-filepath_test.cc +0 -662
  2179. data/tests/googletest/googletest/test/gtest-linked_ptr_test.cc +0 -154
  2180. data/tests/googletest/googletest/test/gtest-listener_test.cc +0 -311
  2181. data/tests/googletest/googletest/test/gtest-message_test.cc +0 -159
  2182. data/tests/googletest/googletest/test/gtest-options_test.cc +0 -215
  2183. data/tests/googletest/googletest/test/gtest-param-test2_test.cc +0 -65
  2184. data/tests/googletest/googletest/test/gtest-param-test_test.cc +0 -1055
  2185. data/tests/googletest/googletest/test/gtest-param-test_test.h +0 -57
  2186. data/tests/googletest/googletest/test/gtest-port_test.cc +0 -1304
  2187. data/tests/googletest/googletest/test/gtest-printers_test.cc +0 -1635
  2188. data/tests/googletest/googletest/test/gtest-test-part_test.cc +0 -208
  2189. data/tests/googletest/googletest/test/gtest-tuple_test.cc +0 -320
  2190. data/tests/googletest/googletest/test/gtest_break_on_failure_unittest.py +0 -212
  2191. data/tests/googletest/googletest/test/gtest_break_on_failure_unittest_.cc +0 -88
  2192. data/tests/googletest/googletest/test/gtest_catch_exceptions_test.py +0 -237
  2193. data/tests/googletest/googletest/test/gtest_catch_exceptions_test_.cc +0 -311
  2194. data/tests/googletest/googletest/test/gtest_color_test.py +0 -130
  2195. data/tests/googletest/googletest/test/gtest_color_test_.cc +0 -71
  2196. data/tests/googletest/googletest/test/gtest_env_var_test.py +0 -117
  2197. data/tests/googletest/googletest/test/gtest_env_var_test_.cc +0 -126
  2198. data/tests/googletest/googletest/test/gtest_filter_unittest.py +0 -636
  2199. data/tests/googletest/googletest/test/gtest_filter_unittest_.cc +0 -140
  2200. data/tests/googletest/googletest/test/gtest_list_tests_unittest.py +0 -207
  2201. data/tests/googletest/googletest/test/gtest_list_tests_unittest_.cc +0 -157
  2202. data/tests/googletest/googletest/test/gtest_output_test.py +0 -340
  2203. data/tests/googletest/googletest/test/gtest_output_test_.cc +0 -1062
  2204. data/tests/googletest/googletest/test/gtest_output_test_golden_lin.txt +0 -743
  2205. data/tests/googletest/googletest/test/gtest_shuffle_test.py +0 -325
  2206. data/tests/googletest/googletest/test/gtest_shuffle_test_.cc +0 -103
  2207. data/tests/googletest/googletest/test/gtest_throw_on_failure_test.py +0 -171
  2208. data/tests/googletest/googletest/test/gtest_throw_on_failure_test_.cc +0 -72
  2209. data/tests/googletest/googletest/test/gtest_uninitialized_test.py +0 -70
  2210. data/tests/googletest/googletest/test/gtest_uninitialized_test_.cc +0 -43
  2211. data/tests/googletest/travis.sh +0 -15
@@ -1,3342 +0,0 @@
1
-
2
-
3
- You can find recipes for using Google Mock here. If you haven't yet,
4
- please read the [ForDummies](V1_6_ForDummies.md) document first to make sure you understand
5
- the basics.
6
-
7
- **Note:** Google Mock lives in the `testing` name space. For
8
- readability, it is recommended to write `using ::testing::Foo;` once in
9
- your file before using the name `Foo` defined by Google Mock. We omit
10
- such `using` statements in this page for brevity, but you should do it
11
- in your own code.
12
-
13
- # Creating Mock Classes #
14
-
15
- ## Mocking Private or Protected Methods ##
16
-
17
- You must always put a mock method definition (`MOCK_METHOD*`) in a
18
- `public:` section of the mock class, regardless of the method being
19
- mocked being `public`, `protected`, or `private` in the base class.
20
- This allows `ON_CALL` and `EXPECT_CALL` to reference the mock function
21
- from outside of the mock class. (Yes, C++ allows a subclass to change
22
- the access level of a virtual function in the base class.) Example:
23
-
24
- ```
25
- class Foo {
26
- public:
27
- ...
28
- virtual bool Transform(Gadget* g) = 0;
29
-
30
- protected:
31
- virtual void Resume();
32
-
33
- private:
34
- virtual int GetTimeOut();
35
- };
36
-
37
- class MockFoo : public Foo {
38
- public:
39
- ...
40
- MOCK_METHOD1(Transform, bool(Gadget* g));
41
-
42
- // The following must be in the public section, even though the
43
- // methods are protected or private in the base class.
44
- MOCK_METHOD0(Resume, void());
45
- MOCK_METHOD0(GetTimeOut, int());
46
- };
47
- ```
48
-
49
- ## Mocking Overloaded Methods ##
50
-
51
- You can mock overloaded functions as usual. No special attention is required:
52
-
53
- ```
54
- class Foo {
55
- ...
56
-
57
- // Must be virtual as we'll inherit from Foo.
58
- virtual ~Foo();
59
-
60
- // Overloaded on the types and/or numbers of arguments.
61
- virtual int Add(Element x);
62
- virtual int Add(int times, Element x);
63
-
64
- // Overloaded on the const-ness of this object.
65
- virtual Bar& GetBar();
66
- virtual const Bar& GetBar() const;
67
- };
68
-
69
- class MockFoo : public Foo {
70
- ...
71
- MOCK_METHOD1(Add, int(Element x));
72
- MOCK_METHOD2(Add, int(int times, Element x);
73
-
74
- MOCK_METHOD0(GetBar, Bar&());
75
- MOCK_CONST_METHOD0(GetBar, const Bar&());
76
- };
77
- ```
78
-
79
- **Note:** if you don't mock all versions of the overloaded method, the
80
- compiler will give you a warning about some methods in the base class
81
- being hidden. To fix that, use `using` to bring them in scope:
82
-
83
- ```
84
- class MockFoo : public Foo {
85
- ...
86
- using Foo::Add;
87
- MOCK_METHOD1(Add, int(Element x));
88
- // We don't want to mock int Add(int times, Element x);
89
- ...
90
- };
91
- ```
92
-
93
- ## Mocking Class Templates ##
94
-
95
- To mock a class template, append `_T` to the `MOCK_*` macros:
96
-
97
- ```
98
- template <typename Elem>
99
- class StackInterface {
100
- ...
101
- // Must be virtual as we'll inherit from StackInterface.
102
- virtual ~StackInterface();
103
-
104
- virtual int GetSize() const = 0;
105
- virtual void Push(const Elem& x) = 0;
106
- };
107
-
108
- template <typename Elem>
109
- class MockStack : public StackInterface<Elem> {
110
- ...
111
- MOCK_CONST_METHOD0_T(GetSize, int());
112
- MOCK_METHOD1_T(Push, void(const Elem& x));
113
- };
114
- ```
115
-
116
- ## Mocking Nonvirtual Methods ##
117
-
118
- Google Mock can mock non-virtual functions to be used in what we call _hi-perf
119
- dependency injection_.
120
-
121
- In this case, instead of sharing a common base class with the real
122
- class, your mock class will be _unrelated_ to the real class, but
123
- contain methods with the same signatures. The syntax for mocking
124
- non-virtual methods is the _same_ as mocking virtual methods:
125
-
126
- ```
127
- // A simple packet stream class. None of its members is virtual.
128
- class ConcretePacketStream {
129
- public:
130
- void AppendPacket(Packet* new_packet);
131
- const Packet* GetPacket(size_t packet_number) const;
132
- size_t NumberOfPackets() const;
133
- ...
134
- };
135
-
136
- // A mock packet stream class. It inherits from no other, but defines
137
- // GetPacket() and NumberOfPackets().
138
- class MockPacketStream {
139
- public:
140
- MOCK_CONST_METHOD1(GetPacket, const Packet*(size_t packet_number));
141
- MOCK_CONST_METHOD0(NumberOfPackets, size_t());
142
- ...
143
- };
144
- ```
145
-
146
- Note that the mock class doesn't define `AppendPacket()`, unlike the
147
- real class. That's fine as long as the test doesn't need to call it.
148
-
149
- Next, you need a way to say that you want to use
150
- `ConcretePacketStream` in production code, and use `MockPacketStream`
151
- in tests. Since the functions are not virtual and the two classes are
152
- unrelated, you must specify your choice at _compile time_ (as opposed
153
- to run time).
154
-
155
- One way to do it is to templatize your code that needs to use a packet
156
- stream. More specifically, you will give your code a template type
157
- argument for the type of the packet stream. In production, you will
158
- instantiate your template with `ConcretePacketStream` as the type
159
- argument. In tests, you will instantiate the same template with
160
- `MockPacketStream`. For example, you may write:
161
-
162
- ```
163
- template <class PacketStream>
164
- void CreateConnection(PacketStream* stream) { ... }
165
-
166
- template <class PacketStream>
167
- class PacketReader {
168
- public:
169
- void ReadPackets(PacketStream* stream, size_t packet_num);
170
- };
171
- ```
172
-
173
- Then you can use `CreateConnection<ConcretePacketStream>()` and
174
- `PacketReader<ConcretePacketStream>` in production code, and use
175
- `CreateConnection<MockPacketStream>()` and
176
- `PacketReader<MockPacketStream>` in tests.
177
-
178
- ```
179
- MockPacketStream mock_stream;
180
- EXPECT_CALL(mock_stream, ...)...;
181
- .. set more expectations on mock_stream ...
182
- PacketReader<MockPacketStream> reader(&mock_stream);
183
- ... exercise reader ...
184
- ```
185
-
186
- ## Mocking Free Functions ##
187
-
188
- It's possible to use Google Mock to mock a free function (i.e. a
189
- C-style function or a static method). You just need to rewrite your
190
- code to use an interface (abstract class).
191
-
192
- Instead of calling a free function (say, `OpenFile`) directly,
193
- introduce an interface for it and have a concrete subclass that calls
194
- the free function:
195
-
196
- ```
197
- class FileInterface {
198
- public:
199
- ...
200
- virtual bool Open(const char* path, const char* mode) = 0;
201
- };
202
-
203
- class File : public FileInterface {
204
- public:
205
- ...
206
- virtual bool Open(const char* path, const char* mode) {
207
- return OpenFile(path, mode);
208
- }
209
- };
210
- ```
211
-
212
- Your code should talk to `FileInterface` to open a file. Now it's
213
- easy to mock out the function.
214
-
215
- This may seem much hassle, but in practice you often have multiple
216
- related functions that you can put in the same interface, so the
217
- per-function syntactic overhead will be much lower.
218
-
219
- If you are concerned about the performance overhead incurred by
220
- virtual functions, and profiling confirms your concern, you can
221
- combine this with the recipe for [mocking non-virtual methods](#Mocking_Nonvirtual_Methods.md).
222
-
223
- ## Nice Mocks and Strict Mocks ##
224
-
225
- If a mock method has no `EXPECT_CALL` spec but is called, Google Mock
226
- will print a warning about the "uninteresting call". The rationale is:
227
-
228
- * New methods may be added to an interface after a test is written. We shouldn't fail a test just because a method it doesn't know about is called.
229
- * However, this may also mean there's a bug in the test, so Google Mock shouldn't be silent either. If the user believes these calls are harmless, he can add an `EXPECT_CALL()` to suppress the warning.
230
-
231
- However, sometimes you may want to suppress all "uninteresting call"
232
- warnings, while sometimes you may want the opposite, i.e. to treat all
233
- of them as errors. Google Mock lets you make the decision on a
234
- per-mock-object basis.
235
-
236
- Suppose your test uses a mock class `MockFoo`:
237
-
238
- ```
239
- TEST(...) {
240
- MockFoo mock_foo;
241
- EXPECT_CALL(mock_foo, DoThis());
242
- ... code that uses mock_foo ...
243
- }
244
- ```
245
-
246
- If a method of `mock_foo` other than `DoThis()` is called, it will be
247
- reported by Google Mock as a warning. However, if you rewrite your
248
- test to use `NiceMock<MockFoo>` instead, the warning will be gone,
249
- resulting in a cleaner test output:
250
-
251
- ```
252
- using ::testing::NiceMock;
253
-
254
- TEST(...) {
255
- NiceMock<MockFoo> mock_foo;
256
- EXPECT_CALL(mock_foo, DoThis());
257
- ... code that uses mock_foo ...
258
- }
259
- ```
260
-
261
- `NiceMock<MockFoo>` is a subclass of `MockFoo`, so it can be used
262
- wherever `MockFoo` is accepted.
263
-
264
- It also works if `MockFoo`'s constructor takes some arguments, as
265
- `NiceMock<MockFoo>` "inherits" `MockFoo`'s constructors:
266
-
267
- ```
268
- using ::testing::NiceMock;
269
-
270
- TEST(...) {
271
- NiceMock<MockFoo> mock_foo(5, "hi"); // Calls MockFoo(5, "hi").
272
- EXPECT_CALL(mock_foo, DoThis());
273
- ... code that uses mock_foo ...
274
- }
275
- ```
276
-
277
- The usage of `StrictMock` is similar, except that it makes all
278
- uninteresting calls failures:
279
-
280
- ```
281
- using ::testing::StrictMock;
282
-
283
- TEST(...) {
284
- StrictMock<MockFoo> mock_foo;
285
- EXPECT_CALL(mock_foo, DoThis());
286
- ... code that uses mock_foo ...
287
-
288
- // The test will fail if a method of mock_foo other than DoThis()
289
- // is called.
290
- }
291
- ```
292
-
293
- There are some caveats though (I don't like them just as much as the
294
- next guy, but sadly they are side effects of C++'s limitations):
295
-
296
- 1. `NiceMock<MockFoo>` and `StrictMock<MockFoo>` only work for mock methods defined using the `MOCK_METHOD*` family of macros **directly** in the `MockFoo` class. If a mock method is defined in a **base class** of `MockFoo`, the "nice" or "strict" modifier may not affect it, depending on the compiler. In particular, nesting `NiceMock` and `StrictMock` (e.g. `NiceMock<StrictMock<MockFoo> >`) is **not** supported.
297
- 1. The constructors of the base mock (`MockFoo`) cannot have arguments passed by non-const reference, which happens to be banned by the [Google C++ style guide](http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml).
298
- 1. During the constructor or destructor of `MockFoo`, the mock object is _not_ nice or strict. This may cause surprises if the constructor or destructor calls a mock method on `this` object. (This behavior, however, is consistent with C++'s general rule: if a constructor or destructor calls a virtual method of `this` object, that method is treated as non-virtual. In other words, to the base class's constructor or destructor, `this` object behaves like an instance of the base class, not the derived class. This rule is required for safety. Otherwise a base constructor may use members of a derived class before they are initialized, or a base destructor may use members of a derived class after they have been destroyed.)
299
-
300
- Finally, you should be **very cautious** when using this feature, as the
301
- decision you make applies to **all** future changes to the mock
302
- class. If an important change is made in the interface you are mocking
303
- (and thus in the mock class), it could break your tests (if you use
304
- `StrictMock`) or let bugs pass through without a warning (if you use
305
- `NiceMock`). Therefore, try to specify the mock's behavior using
306
- explicit `EXPECT_CALL` first, and only turn to `NiceMock` or
307
- `StrictMock` as the last resort.
308
-
309
- ## Simplifying the Interface without Breaking Existing Code ##
310
-
311
- Sometimes a method has a long list of arguments that is mostly
312
- uninteresting. For example,
313
-
314
- ```
315
- class LogSink {
316
- public:
317
- ...
318
- virtual void send(LogSeverity severity, const char* full_filename,
319
- const char* base_filename, int line,
320
- const struct tm* tm_time,
321
- const char* message, size_t message_len) = 0;
322
- };
323
- ```
324
-
325
- This method's argument list is lengthy and hard to work with (let's
326
- say that the `message` argument is not even 0-terminated). If we mock
327
- it as is, using the mock will be awkward. If, however, we try to
328
- simplify this interface, we'll need to fix all clients depending on
329
- it, which is often infeasible.
330
-
331
- The trick is to re-dispatch the method in the mock class:
332
-
333
- ```
334
- class ScopedMockLog : public LogSink {
335
- public:
336
- ...
337
- virtual void send(LogSeverity severity, const char* full_filename,
338
- const char* base_filename, int line, const tm* tm_time,
339
- const char* message, size_t message_len) {
340
- // We are only interested in the log severity, full file name, and
341
- // log message.
342
- Log(severity, full_filename, std::string(message, message_len));
343
- }
344
-
345
- // Implements the mock method:
346
- //
347
- // void Log(LogSeverity severity,
348
- // const string& file_path,
349
- // const string& message);
350
- MOCK_METHOD3(Log, void(LogSeverity severity, const string& file_path,
351
- const string& message));
352
- };
353
- ```
354
-
355
- By defining a new mock method with a trimmed argument list, we make
356
- the mock class much more user-friendly.
357
-
358
- ## Alternative to Mocking Concrete Classes ##
359
-
360
- Often you may find yourself using classes that don't implement
361
- interfaces. In order to test your code that uses such a class (let's
362
- call it `Concrete`), you may be tempted to make the methods of
363
- `Concrete` virtual and then mock it.
364
-
365
- Try not to do that.
366
-
367
- Making a non-virtual function virtual is a big decision. It creates an
368
- extension point where subclasses can tweak your class' behavior. This
369
- weakens your control on the class because now it's harder to maintain
370
- the class' invariants. You should make a function virtual only when
371
- there is a valid reason for a subclass to override it.
372
-
373
- Mocking concrete classes directly is problematic as it creates a tight
374
- coupling between the class and the tests - any small change in the
375
- class may invalidate your tests and make test maintenance a pain.
376
-
377
- To avoid such problems, many programmers have been practicing "coding
378
- to interfaces": instead of talking to the `Concrete` class, your code
379
- would define an interface and talk to it. Then you implement that
380
- interface as an adaptor on top of `Concrete`. In tests, you can easily
381
- mock that interface to observe how your code is doing.
382
-
383
- This technique incurs some overhead:
384
-
385
- * You pay the cost of virtual function calls (usually not a problem).
386
- * There is more abstraction for the programmers to learn.
387
-
388
- However, it can also bring significant benefits in addition to better
389
- testability:
390
-
391
- * `Concrete`'s API may not fit your problem domain very well, as you may not be the only client it tries to serve. By designing your own interface, you have a chance to tailor it to your need - you may add higher-level functionalities, rename stuff, etc instead of just trimming the class. This allows you to write your code (user of the interface) in a more natural way, which means it will be more readable, more maintainable, and you'll be more productive.
392
- * If `Concrete`'s implementation ever has to change, you don't have to rewrite everywhere it is used. Instead, you can absorb the change in your implementation of the interface, and your other code and tests will be insulated from this change.
393
-
394
- Some people worry that if everyone is practicing this technique, they
395
- will end up writing lots of redundant code. This concern is totally
396
- understandable. However, there are two reasons why it may not be the
397
- case:
398
-
399
- * Different projects may need to use `Concrete` in different ways, so the best interfaces for them will be different. Therefore, each of them will have its own domain-specific interface on top of `Concrete`, and they will not be the same code.
400
- * If enough projects want to use the same interface, they can always share it, just like they have been sharing `Concrete`. You can check in the interface and the adaptor somewhere near `Concrete` (perhaps in a `contrib` sub-directory) and let many projects use it.
401
-
402
- You need to weigh the pros and cons carefully for your particular
403
- problem, but I'd like to assure you that the Java community has been
404
- practicing this for a long time and it's a proven effective technique
405
- applicable in a wide variety of situations. :-)
406
-
407
- ## Delegating Calls to a Fake ##
408
-
409
- Some times you have a non-trivial fake implementation of an
410
- interface. For example:
411
-
412
- ```
413
- class Foo {
414
- public:
415
- virtual ~Foo() {}
416
- virtual char DoThis(int n) = 0;
417
- virtual void DoThat(const char* s, int* p) = 0;
418
- };
419
-
420
- class FakeFoo : public Foo {
421
- public:
422
- virtual char DoThis(int n) {
423
- return (n > 0) ? '+' :
424
- (n < 0) ? '-' : '0';
425
- }
426
-
427
- virtual void DoThat(const char* s, int* p) {
428
- *p = strlen(s);
429
- }
430
- };
431
- ```
432
-
433
- Now you want to mock this interface such that you can set expectations
434
- on it. However, you also want to use `FakeFoo` for the default
435
- behavior, as duplicating it in the mock object is, well, a lot of
436
- work.
437
-
438
- When you define the mock class using Google Mock, you can have it
439
- delegate its default action to a fake class you already have, using
440
- this pattern:
441
-
442
- ```
443
- using ::testing::_;
444
- using ::testing::Invoke;
445
-
446
- class MockFoo : public Foo {
447
- public:
448
- // Normal mock method definitions using Google Mock.
449
- MOCK_METHOD1(DoThis, char(int n));
450
- MOCK_METHOD2(DoThat, void(const char* s, int* p));
451
-
452
- // Delegates the default actions of the methods to a FakeFoo object.
453
- // This must be called *before* the custom ON_CALL() statements.
454
- void DelegateToFake() {
455
- ON_CALL(*this, DoThis(_))
456
- .WillByDefault(Invoke(&fake_, &FakeFoo::DoThis));
457
- ON_CALL(*this, DoThat(_, _))
458
- .WillByDefault(Invoke(&fake_, &FakeFoo::DoThat));
459
- }
460
- private:
461
- FakeFoo fake_; // Keeps an instance of the fake in the mock.
462
- };
463
- ```
464
-
465
- With that, you can use `MockFoo` in your tests as usual. Just remember
466
- that if you don't explicitly set an action in an `ON_CALL()` or
467
- `EXPECT_CALL()`, the fake will be called upon to do it:
468
-
469
- ```
470
- using ::testing::_;
471
-
472
- TEST(AbcTest, Xyz) {
473
- MockFoo foo;
474
- foo.DelegateToFake(); // Enables the fake for delegation.
475
-
476
- // Put your ON_CALL(foo, ...)s here, if any.
477
-
478
- // No action specified, meaning to use the default action.
479
- EXPECT_CALL(foo, DoThis(5));
480
- EXPECT_CALL(foo, DoThat(_, _));
481
-
482
- int n = 0;
483
- EXPECT_EQ('+', foo.DoThis(5)); // FakeFoo::DoThis() is invoked.
484
- foo.DoThat("Hi", &n); // FakeFoo::DoThat() is invoked.
485
- EXPECT_EQ(2, n);
486
- }
487
- ```
488
-
489
- **Some tips:**
490
-
491
- * If you want, you can still override the default action by providing your own `ON_CALL()` or using `.WillOnce()` / `.WillRepeatedly()` in `EXPECT_CALL()`.
492
- * In `DelegateToFake()`, you only need to delegate the methods whose fake implementation you intend to use.
493
- * The general technique discussed here works for overloaded methods, but you'll need to tell the compiler which version you mean. To disambiguate a mock function (the one you specify inside the parentheses of `ON_CALL()`), see the "Selecting Between Overloaded Functions" section on this page; to disambiguate a fake function (the one you place inside `Invoke()`), use a `static_cast` to specify the function's type.
494
- * Having to mix a mock and a fake is often a sign of something gone wrong. Perhaps you haven't got used to the interaction-based way of testing yet. Or perhaps your interface is taking on too many roles and should be split up. Therefore, **don't abuse this**. We would only recommend to do it as an intermediate step when you are refactoring your code.
495
-
496
- Regarding the tip on mixing a mock and a fake, here's an example on
497
- why it may be a bad sign: Suppose you have a class `System` for
498
- low-level system operations. In particular, it does file and I/O
499
- operations. And suppose you want to test how your code uses `System`
500
- to do I/O, and you just want the file operations to work normally. If
501
- you mock out the entire `System` class, you'll have to provide a fake
502
- implementation for the file operation part, which suggests that
503
- `System` is taking on too many roles.
504
-
505
- Instead, you can define a `FileOps` interface and an `IOOps` interface
506
- and split `System`'s functionalities into the two. Then you can mock
507
- `IOOps` without mocking `FileOps`.
508
-
509
- ## Delegating Calls to a Real Object ##
510
-
511
- When using testing doubles (mocks, fakes, stubs, and etc), sometimes
512
- their behaviors will differ from those of the real objects. This
513
- difference could be either intentional (as in simulating an error such
514
- that you can test the error handling code) or unintentional. If your
515
- mocks have different behaviors than the real objects by mistake, you
516
- could end up with code that passes the tests but fails in production.
517
-
518
- You can use the _delegating-to-real_ technique to ensure that your
519
- mock has the same behavior as the real object while retaining the
520
- ability to validate calls. This technique is very similar to the
521
- delegating-to-fake technique, the difference being that we use a real
522
- object instead of a fake. Here's an example:
523
-
524
- ```
525
- using ::testing::_;
526
- using ::testing::AtLeast;
527
- using ::testing::Invoke;
528
-
529
- class MockFoo : public Foo {
530
- public:
531
- MockFoo() {
532
- // By default, all calls are delegated to the real object.
533
- ON_CALL(*this, DoThis())
534
- .WillByDefault(Invoke(&real_, &Foo::DoThis));
535
- ON_CALL(*this, DoThat(_))
536
- .WillByDefault(Invoke(&real_, &Foo::DoThat));
537
- ...
538
- }
539
- MOCK_METHOD0(DoThis, ...);
540
- MOCK_METHOD1(DoThat, ...);
541
- ...
542
- private:
543
- Foo real_;
544
- };
545
- ...
546
-
547
- MockFoo mock;
548
-
549
- EXPECT_CALL(mock, DoThis())
550
- .Times(3);
551
- EXPECT_CALL(mock, DoThat("Hi"))
552
- .Times(AtLeast(1));
553
- ... use mock in test ...
554
- ```
555
-
556
- With this, Google Mock will verify that your code made the right calls
557
- (with the right arguments, in the right order, called the right number
558
- of times, etc), and a real object will answer the calls (so the
559
- behavior will be the same as in production). This gives you the best
560
- of both worlds.
561
-
562
- ## Delegating Calls to a Parent Class ##
563
-
564
- Ideally, you should code to interfaces, whose methods are all pure
565
- virtual. In reality, sometimes you do need to mock a virtual method
566
- that is not pure (i.e, it already has an implementation). For example:
567
-
568
- ```
569
- class Foo {
570
- public:
571
- virtual ~Foo();
572
-
573
- virtual void Pure(int n) = 0;
574
- virtual int Concrete(const char* str) { ... }
575
- };
576
-
577
- class MockFoo : public Foo {
578
- public:
579
- // Mocking a pure method.
580
- MOCK_METHOD1(Pure, void(int n));
581
- // Mocking a concrete method. Foo::Concrete() is shadowed.
582
- MOCK_METHOD1(Concrete, int(const char* str));
583
- };
584
- ```
585
-
586
- Sometimes you may want to call `Foo::Concrete()` instead of
587
- `MockFoo::Concrete()`. Perhaps you want to do it as part of a stub
588
- action, or perhaps your test doesn't need to mock `Concrete()` at all
589
- (but it would be oh-so painful to have to define a new mock class
590
- whenever you don't need to mock one of its methods).
591
-
592
- The trick is to leave a back door in your mock class for accessing the
593
- real methods in the base class:
594
-
595
- ```
596
- class MockFoo : public Foo {
597
- public:
598
- // Mocking a pure method.
599
- MOCK_METHOD1(Pure, void(int n));
600
- // Mocking a concrete method. Foo::Concrete() is shadowed.
601
- MOCK_METHOD1(Concrete, int(const char* str));
602
-
603
- // Use this to call Concrete() defined in Foo.
604
- int FooConcrete(const char* str) { return Foo::Concrete(str); }
605
- };
606
- ```
607
-
608
- Now, you can call `Foo::Concrete()` inside an action by:
609
-
610
- ```
611
- using ::testing::_;
612
- using ::testing::Invoke;
613
- ...
614
- EXPECT_CALL(foo, Concrete(_))
615
- .WillOnce(Invoke(&foo, &MockFoo::FooConcrete));
616
- ```
617
-
618
- or tell the mock object that you don't want to mock `Concrete()`:
619
-
620
- ```
621
- using ::testing::Invoke;
622
- ...
623
- ON_CALL(foo, Concrete(_))
624
- .WillByDefault(Invoke(&foo, &MockFoo::FooConcrete));
625
- ```
626
-
627
- (Why don't we just write `Invoke(&foo, &Foo::Concrete)`? If you do
628
- that, `MockFoo::Concrete()` will be called (and cause an infinite
629
- recursion) since `Foo::Concrete()` is virtual. That's just how C++
630
- works.)
631
-
632
- # Using Matchers #
633
-
634
- ## Matching Argument Values Exactly ##
635
-
636
- You can specify exactly which arguments a mock method is expecting:
637
-
638
- ```
639
- using ::testing::Return;
640
- ...
641
- EXPECT_CALL(foo, DoThis(5))
642
- .WillOnce(Return('a'));
643
- EXPECT_CALL(foo, DoThat("Hello", bar));
644
- ```
645
-
646
- ## Using Simple Matchers ##
647
-
648
- You can use matchers to match arguments that have a certain property:
649
-
650
- ```
651
- using ::testing::Ge;
652
- using ::testing::NotNull;
653
- using ::testing::Return;
654
- ...
655
- EXPECT_CALL(foo, DoThis(Ge(5))) // The argument must be >= 5.
656
- .WillOnce(Return('a'));
657
- EXPECT_CALL(foo, DoThat("Hello", NotNull()));
658
- // The second argument must not be NULL.
659
- ```
660
-
661
- A frequently used matcher is `_`, which matches anything:
662
-
663
- ```
664
- using ::testing::_;
665
- using ::testing::NotNull;
666
- ...
667
- EXPECT_CALL(foo, DoThat(_, NotNull()));
668
- ```
669
-
670
- ## Combining Matchers ##
671
-
672
- You can build complex matchers from existing ones using `AllOf()`,
673
- `AnyOf()`, and `Not()`:
674
-
675
- ```
676
- using ::testing::AllOf;
677
- using ::testing::Gt;
678
- using ::testing::HasSubstr;
679
- using ::testing::Ne;
680
- using ::testing::Not;
681
- ...
682
- // The argument must be > 5 and != 10.
683
- EXPECT_CALL(foo, DoThis(AllOf(Gt(5),
684
- Ne(10))));
685
-
686
- // The first argument must not contain sub-string "blah".
687
- EXPECT_CALL(foo, DoThat(Not(HasSubstr("blah")),
688
- NULL));
689
- ```
690
-
691
- ## Casting Matchers ##
692
-
693
- Google Mock matchers are statically typed, meaning that the compiler
694
- can catch your mistake if you use a matcher of the wrong type (for
695
- example, if you use `Eq(5)` to match a `string` argument). Good for
696
- you!
697
-
698
- Sometimes, however, you know what you're doing and want the compiler
699
- to give you some slack. One example is that you have a matcher for
700
- `long` and the argument you want to match is `int`. While the two
701
- types aren't exactly the same, there is nothing really wrong with
702
- using a `Matcher<long>` to match an `int` - after all, we can first
703
- convert the `int` argument to a `long` before giving it to the
704
- matcher.
705
-
706
- To support this need, Google Mock gives you the
707
- `SafeMatcherCast<T>(m)` function. It casts a matcher `m` to type
708
- `Matcher<T>`. To ensure safety, Google Mock checks that (let `U` be the
709
- type `m` accepts):
710
-
711
- 1. Type `T` can be implicitly cast to type `U`;
712
- 1. When both `T` and `U` are built-in arithmetic types (`bool`, integers, and floating-point numbers), the conversion from `T` to `U` is not lossy (in other words, any value representable by `T` can also be represented by `U`); and
713
- 1. When `U` is a reference, `T` must also be a reference (as the underlying matcher may be interested in the address of the `U` value).
714
-
715
- The code won't compile if any of these conditions isn't met.
716
-
717
- Here's one example:
718
-
719
- ```
720
- using ::testing::SafeMatcherCast;
721
-
722
- // A base class and a child class.
723
- class Base { ... };
724
- class Derived : public Base { ... };
725
-
726
- class MockFoo : public Foo {
727
- public:
728
- MOCK_METHOD1(DoThis, void(Derived* derived));
729
- };
730
- ...
731
-
732
- MockFoo foo;
733
- // m is a Matcher<Base*> we got from somewhere.
734
- EXPECT_CALL(foo, DoThis(SafeMatcherCast<Derived*>(m)));
735
- ```
736
-
737
- If you find `SafeMatcherCast<T>(m)` too limiting, you can use a similar
738
- function `MatcherCast<T>(m)`. The difference is that `MatcherCast` works
739
- as long as you can `static_cast` type `T` to type `U`.
740
-
741
- `MatcherCast` essentially lets you bypass C++'s type system
742
- (`static_cast` isn't always safe as it could throw away information,
743
- for example), so be careful not to misuse/abuse it.
744
-
745
- ## Selecting Between Overloaded Functions ##
746
-
747
- If you expect an overloaded function to be called, the compiler may
748
- need some help on which overloaded version it is.
749
-
750
- To disambiguate functions overloaded on the const-ness of this object,
751
- use the `Const()` argument wrapper.
752
-
753
- ```
754
- using ::testing::ReturnRef;
755
-
756
- class MockFoo : public Foo {
757
- ...
758
- MOCK_METHOD0(GetBar, Bar&());
759
- MOCK_CONST_METHOD0(GetBar, const Bar&());
760
- };
761
- ...
762
-
763
- MockFoo foo;
764
- Bar bar1, bar2;
765
- EXPECT_CALL(foo, GetBar()) // The non-const GetBar().
766
- .WillOnce(ReturnRef(bar1));
767
- EXPECT_CALL(Const(foo), GetBar()) // The const GetBar().
768
- .WillOnce(ReturnRef(bar2));
769
- ```
770
-
771
- (`Const()` is defined by Google Mock and returns a `const` reference
772
- to its argument.)
773
-
774
- To disambiguate overloaded functions with the same number of arguments
775
- but different argument types, you may need to specify the exact type
776
- of a matcher, either by wrapping your matcher in `Matcher<type>()`, or
777
- using a matcher whose type is fixed (`TypedEq<type>`, `An<type>()`,
778
- etc):
779
-
780
- ```
781
- using ::testing::An;
782
- using ::testing::Lt;
783
- using ::testing::Matcher;
784
- using ::testing::TypedEq;
785
-
786
- class MockPrinter : public Printer {
787
- public:
788
- MOCK_METHOD1(Print, void(int n));
789
- MOCK_METHOD1(Print, void(char c));
790
- };
791
-
792
- TEST(PrinterTest, Print) {
793
- MockPrinter printer;
794
-
795
- EXPECT_CALL(printer, Print(An<int>())); // void Print(int);
796
- EXPECT_CALL(printer, Print(Matcher<int>(Lt(5)))); // void Print(int);
797
- EXPECT_CALL(printer, Print(TypedEq<char>('a'))); // void Print(char);
798
-
799
- printer.Print(3);
800
- printer.Print(6);
801
- printer.Print('a');
802
- }
803
- ```
804
-
805
- ## Performing Different Actions Based on the Arguments ##
806
-
807
- When a mock method is called, the _last_ matching expectation that's
808
- still active will be selected (think "newer overrides older"). So, you
809
- can make a method do different things depending on its argument values
810
- like this:
811
-
812
- ```
813
- using ::testing::_;
814
- using ::testing::Lt;
815
- using ::testing::Return;
816
- ...
817
- // The default case.
818
- EXPECT_CALL(foo, DoThis(_))
819
- .WillRepeatedly(Return('b'));
820
-
821
- // The more specific case.
822
- EXPECT_CALL(foo, DoThis(Lt(5)))
823
- .WillRepeatedly(Return('a'));
824
- ```
825
-
826
- Now, if `foo.DoThis()` is called with a value less than 5, `'a'` will
827
- be returned; otherwise `'b'` will be returned.
828
-
829
- ## Matching Multiple Arguments as a Whole ##
830
-
831
- Sometimes it's not enough to match the arguments individually. For
832
- example, we may want to say that the first argument must be less than
833
- the second argument. The `With()` clause allows us to match
834
- all arguments of a mock function as a whole. For example,
835
-
836
- ```
837
- using ::testing::_;
838
- using ::testing::Lt;
839
- using ::testing::Ne;
840
- ...
841
- EXPECT_CALL(foo, InRange(Ne(0), _))
842
- .With(Lt());
843
- ```
844
-
845
- says that the first argument of `InRange()` must not be 0, and must be
846
- less than the second argument.
847
-
848
- The expression inside `With()` must be a matcher of type
849
- `Matcher<tr1::tuple<A1, ..., An> >`, where `A1`, ..., `An` are the
850
- types of the function arguments.
851
-
852
- You can also write `AllArgs(m)` instead of `m` inside `.With()`. The
853
- two forms are equivalent, but `.With(AllArgs(Lt()))` is more readable
854
- than `.With(Lt())`.
855
-
856
- You can use `Args<k1, ..., kn>(m)` to match the `n` selected arguments
857
- (as a tuple) against `m`. For example,
858
-
859
- ```
860
- using ::testing::_;
861
- using ::testing::AllOf;
862
- using ::testing::Args;
863
- using ::testing::Lt;
864
- ...
865
- EXPECT_CALL(foo, Blah(_, _, _))
866
- .With(AllOf(Args<0, 1>(Lt()), Args<1, 2>(Lt())));
867
- ```
868
-
869
- says that `Blah()` will be called with arguments `x`, `y`, and `z` where
870
- `x < y < z`.
871
-
872
- As a convenience and example, Google Mock provides some matchers for
873
- 2-tuples, including the `Lt()` matcher above. See the [CheatSheet](V1_6_CheatSheet.md) for
874
- the complete list.
875
-
876
- Note that if you want to pass the arguments to a predicate of your own
877
- (e.g. `.With(Args<0, 1>(Truly(&MyPredicate)))`), that predicate MUST be
878
- written to take a `tr1::tuple` as its argument; Google Mock will pass the `n`
879
- selected arguments as _one_ single tuple to the predicate.
880
-
881
- ## Using Matchers as Predicates ##
882
-
883
- Have you noticed that a matcher is just a fancy predicate that also
884
- knows how to describe itself? Many existing algorithms take predicates
885
- as arguments (e.g. those defined in STL's `<algorithm>` header), and
886
- it would be a shame if Google Mock matchers are not allowed to
887
- participate.
888
-
889
- Luckily, you can use a matcher where a unary predicate functor is
890
- expected by wrapping it inside the `Matches()` function. For example,
891
-
892
- ```
893
- #include <algorithm>
894
- #include <vector>
895
-
896
- std::vector<int> v;
897
- ...
898
- // How many elements in v are >= 10?
899
- const int count = count_if(v.begin(), v.end(), Matches(Ge(10)));
900
- ```
901
-
902
- Since you can build complex matchers from simpler ones easily using
903
- Google Mock, this gives you a way to conveniently construct composite
904
- predicates (doing the same using STL's `<functional>` header is just
905
- painful). For example, here's a predicate that's satisfied by any
906
- number that is >= 0, <= 100, and != 50:
907
-
908
- ```
909
- Matches(AllOf(Ge(0), Le(100), Ne(50)))
910
- ```
911
-
912
- ## Using Matchers in Google Test Assertions ##
913
-
914
- Since matchers are basically predicates that also know how to describe
915
- themselves, there is a way to take advantage of them in
916
- [Google Test](http://code.google.com/p/googletest/) assertions. It's
917
- called `ASSERT_THAT` and `EXPECT_THAT`:
918
-
919
- ```
920
- ASSERT_THAT(value, matcher); // Asserts that value matches matcher.
921
- EXPECT_THAT(value, matcher); // The non-fatal version.
922
- ```
923
-
924
- For example, in a Google Test test you can write:
925
-
926
- ```
927
- #include "gmock/gmock.h"
928
-
929
- using ::testing::AllOf;
930
- using ::testing::Ge;
931
- using ::testing::Le;
932
- using ::testing::MatchesRegex;
933
- using ::testing::StartsWith;
934
- ...
935
-
936
- EXPECT_THAT(Foo(), StartsWith("Hello"));
937
- EXPECT_THAT(Bar(), MatchesRegex("Line \\d+"));
938
- ASSERT_THAT(Baz(), AllOf(Ge(5), Le(10)));
939
- ```
940
-
941
- which (as you can probably guess) executes `Foo()`, `Bar()`, and
942
- `Baz()`, and verifies that:
943
-
944
- * `Foo()` returns a string that starts with `"Hello"`.
945
- * `Bar()` returns a string that matches regular expression `"Line \\d+"`.
946
- * `Baz()` returns a number in the range [5, 10].
947
-
948
- The nice thing about these macros is that _they read like
949
- English_. They generate informative messages too. For example, if the
950
- first `EXPECT_THAT()` above fails, the message will be something like:
951
-
952
- ```
953
- Value of: Foo()
954
- Actual: "Hi, world!"
955
- Expected: starts with "Hello"
956
- ```
957
-
958
- **Credit:** The idea of `(ASSERT|EXPECT)_THAT` was stolen from the
959
- [Hamcrest](http://code.google.com/p/hamcrest/) project, which adds
960
- `assertThat()` to JUnit.
961
-
962
- ## Using Predicates as Matchers ##
963
-
964
- Google Mock provides a built-in set of matchers. In case you find them
965
- lacking, you can use an arbitray unary predicate function or functor
966
- as a matcher - as long as the predicate accepts a value of the type
967
- you want. You do this by wrapping the predicate inside the `Truly()`
968
- function, for example:
969
-
970
- ```
971
- using ::testing::Truly;
972
-
973
- int IsEven(int n) { return (n % 2) == 0 ? 1 : 0; }
974
- ...
975
-
976
- // Bar() must be called with an even number.
977
- EXPECT_CALL(foo, Bar(Truly(IsEven)));
978
- ```
979
-
980
- Note that the predicate function / functor doesn't have to return
981
- `bool`. It works as long as the return value can be used as the
982
- condition in statement `if (condition) ...`.
983
-
984
- ## Matching Arguments that Are Not Copyable ##
985
-
986
- When you do an `EXPECT_CALL(mock_obj, Foo(bar))`, Google Mock saves
987
- away a copy of `bar`. When `Foo()` is called later, Google Mock
988
- compares the argument to `Foo()` with the saved copy of `bar`. This
989
- way, you don't need to worry about `bar` being modified or destroyed
990
- after the `EXPECT_CALL()` is executed. The same is true when you use
991
- matchers like `Eq(bar)`, `Le(bar)`, and so on.
992
-
993
- But what if `bar` cannot be copied (i.e. has no copy constructor)? You
994
- could define your own matcher function and use it with `Truly()`, as
995
- the previous couple of recipes have shown. Or, you may be able to get
996
- away from it if you can guarantee that `bar` won't be changed after
997
- the `EXPECT_CALL()` is executed. Just tell Google Mock that it should
998
- save a reference to `bar`, instead of a copy of it. Here's how:
999
-
1000
- ```
1001
- using ::testing::Eq;
1002
- using ::testing::ByRef;
1003
- using ::testing::Lt;
1004
- ...
1005
- // Expects that Foo()'s argument == bar.
1006
- EXPECT_CALL(mock_obj, Foo(Eq(ByRef(bar))));
1007
-
1008
- // Expects that Foo()'s argument < bar.
1009
- EXPECT_CALL(mock_obj, Foo(Lt(ByRef(bar))));
1010
- ```
1011
-
1012
- Remember: if you do this, don't change `bar` after the
1013
- `EXPECT_CALL()`, or the result is undefined.
1014
-
1015
- ## Validating a Member of an Object ##
1016
-
1017
- Often a mock function takes a reference to object as an argument. When
1018
- matching the argument, you may not want to compare the entire object
1019
- against a fixed object, as that may be over-specification. Instead,
1020
- you may need to validate a certain member variable or the result of a
1021
- certain getter method of the object. You can do this with `Field()`
1022
- and `Property()`. More specifically,
1023
-
1024
- ```
1025
- Field(&Foo::bar, m)
1026
- ```
1027
-
1028
- is a matcher that matches a `Foo` object whose `bar` member variable
1029
- satisfies matcher `m`.
1030
-
1031
- ```
1032
- Property(&Foo::baz, m)
1033
- ```
1034
-
1035
- is a matcher that matches a `Foo` object whose `baz()` method returns
1036
- a value that satisfies matcher `m`.
1037
-
1038
- For example:
1039
-
1040
- > | `Field(&Foo::number, Ge(3))` | Matches `x` where `x.number >= 3`. |
1041
- |:-----------------------------|:-----------------------------------|
1042
- > | `Property(&Foo::name, StartsWith("John "))` | Matches `x` where `x.name()` starts with `"John "`. |
1043
-
1044
- Note that in `Property(&Foo::baz, ...)`, method `baz()` must take no
1045
- argument and be declared as `const`.
1046
-
1047
- BTW, `Field()` and `Property()` can also match plain pointers to
1048
- objects. For instance,
1049
-
1050
- ```
1051
- Field(&Foo::number, Ge(3))
1052
- ```
1053
-
1054
- matches a plain pointer `p` where `p->number >= 3`. If `p` is `NULL`,
1055
- the match will always fail regardless of the inner matcher.
1056
-
1057
- What if you want to validate more than one members at the same time?
1058
- Remember that there is `AllOf()`.
1059
-
1060
- ## Validating the Value Pointed to by a Pointer Argument ##
1061
-
1062
- C++ functions often take pointers as arguments. You can use matchers
1063
- like `NULL`, `NotNull()`, and other comparison matchers to match a
1064
- pointer, but what if you want to make sure the value _pointed to_ by
1065
- the pointer, instead of the pointer itself, has a certain property?
1066
- Well, you can use the `Pointee(m)` matcher.
1067
-
1068
- `Pointee(m)` matches a pointer iff `m` matches the value the pointer
1069
- points to. For example:
1070
-
1071
- ```
1072
- using ::testing::Ge;
1073
- using ::testing::Pointee;
1074
- ...
1075
- EXPECT_CALL(foo, Bar(Pointee(Ge(3))));
1076
- ```
1077
-
1078
- expects `foo.Bar()` to be called with a pointer that points to a value
1079
- greater than or equal to 3.
1080
-
1081
- One nice thing about `Pointee()` is that it treats a `NULL` pointer as
1082
- a match failure, so you can write `Pointee(m)` instead of
1083
-
1084
- ```
1085
- AllOf(NotNull(), Pointee(m))
1086
- ```
1087
-
1088
- without worrying that a `NULL` pointer will crash your test.
1089
-
1090
- Also, did we tell you that `Pointee()` works with both raw pointers
1091
- **and** smart pointers (`linked_ptr`, `shared_ptr`, `scoped_ptr`, and
1092
- etc)?
1093
-
1094
- What if you have a pointer to pointer? You guessed it - you can use
1095
- nested `Pointee()` to probe deeper inside the value. For example,
1096
- `Pointee(Pointee(Lt(3)))` matches a pointer that points to a pointer
1097
- that points to a number less than 3 (what a mouthful...).
1098
-
1099
- ## Testing a Certain Property of an Object ##
1100
-
1101
- Sometimes you want to specify that an object argument has a certain
1102
- property, but there is no existing matcher that does this. If you want
1103
- good error messages, you should define a matcher. If you want to do it
1104
- quick and dirty, you could get away with writing an ordinary function.
1105
-
1106
- Let's say you have a mock function that takes an object of type `Foo`,
1107
- which has an `int bar()` method and an `int baz()` method, and you
1108
- want to constrain that the argument's `bar()` value plus its `baz()`
1109
- value is a given number. Here's how you can define a matcher to do it:
1110
-
1111
- ```
1112
- using ::testing::MatcherInterface;
1113
- using ::testing::MatchResultListener;
1114
-
1115
- class BarPlusBazEqMatcher : public MatcherInterface<const Foo&> {
1116
- public:
1117
- explicit BarPlusBazEqMatcher(int expected_sum)
1118
- : expected_sum_(expected_sum) {}
1119
-
1120
- virtual bool MatchAndExplain(const Foo& foo,
1121
- MatchResultListener* listener) const {
1122
- return (foo.bar() + foo.baz()) == expected_sum_;
1123
- }
1124
-
1125
- virtual void DescribeTo(::std::ostream* os) const {
1126
- *os << "bar() + baz() equals " << expected_sum_;
1127
- }
1128
-
1129
- virtual void DescribeNegationTo(::std::ostream* os) const {
1130
- *os << "bar() + baz() does not equal " << expected_sum_;
1131
- }
1132
- private:
1133
- const int expected_sum_;
1134
- };
1135
-
1136
- inline Matcher<const Foo&> BarPlusBazEq(int expected_sum) {
1137
- return MakeMatcher(new BarPlusBazEqMatcher(expected_sum));
1138
- }
1139
-
1140
- ...
1141
-
1142
- EXPECT_CALL(..., DoThis(BarPlusBazEq(5)))...;
1143
- ```
1144
-
1145
- ## Matching Containers ##
1146
-
1147
- Sometimes an STL container (e.g. list, vector, map, ...) is passed to
1148
- a mock function and you may want to validate it. Since most STL
1149
- containers support the `==` operator, you can write
1150
- `Eq(expected_container)` or simply `expected_container` to match a
1151
- container exactly.
1152
-
1153
- Sometimes, though, you may want to be more flexible (for example, the
1154
- first element must be an exact match, but the second element can be
1155
- any positive number, and so on). Also, containers used in tests often
1156
- have a small number of elements, and having to define the expected
1157
- container out-of-line is a bit of a hassle.
1158
-
1159
- You can use the `ElementsAre()` matcher in such cases:
1160
-
1161
- ```
1162
- using ::testing::_;
1163
- using ::testing::ElementsAre;
1164
- using ::testing::Gt;
1165
- ...
1166
-
1167
- MOCK_METHOD1(Foo, void(const vector<int>& numbers));
1168
- ...
1169
-
1170
- EXPECT_CALL(mock, Foo(ElementsAre(1, Gt(0), _, 5)));
1171
- ```
1172
-
1173
- The above matcher says that the container must have 4 elements, which
1174
- must be 1, greater than 0, anything, and 5 respectively.
1175
-
1176
- `ElementsAre()` is overloaded to take 0 to 10 arguments. If more are
1177
- needed, you can place them in a C-style array and use
1178
- `ElementsAreArray()` instead:
1179
-
1180
- ```
1181
- using ::testing::ElementsAreArray;
1182
- ...
1183
-
1184
- // ElementsAreArray accepts an array of element values.
1185
- const int expected_vector1[] = { 1, 5, 2, 4, ... };
1186
- EXPECT_CALL(mock, Foo(ElementsAreArray(expected_vector1)));
1187
-
1188
- // Or, an array of element matchers.
1189
- Matcher<int> expected_vector2 = { 1, Gt(2), _, 3, ... };
1190
- EXPECT_CALL(mock, Foo(ElementsAreArray(expected_vector2)));
1191
- ```
1192
-
1193
- In case the array needs to be dynamically created (and therefore the
1194
- array size cannot be inferred by the compiler), you can give
1195
- `ElementsAreArray()` an additional argument to specify the array size:
1196
-
1197
- ```
1198
- using ::testing::ElementsAreArray;
1199
- ...
1200
- int* const expected_vector3 = new int[count];
1201
- ... fill expected_vector3 with values ...
1202
- EXPECT_CALL(mock, Foo(ElementsAreArray(expected_vector3, count)));
1203
- ```
1204
-
1205
- **Tips:**
1206
-
1207
- * `ElementAre*()` works with _any_ container that implements the STL iterator concept (i.e. it has a `const_iterator` type and supports `begin()/end()`) and supports `size()`, not just the ones defined in STL. It will even work with container types yet to be written - as long as they follows the above pattern.
1208
- * You can use nested `ElementAre*()` to match nested (multi-dimensional) containers.
1209
- * If the container is passed by pointer instead of by reference, just write `Pointee(ElementsAre*(...))`.
1210
- * The order of elements _matters_ for `ElementsAre*()`. Therefore don't use it with containers whose element order is undefined (e.g. `hash_map`).
1211
-
1212
- ## Sharing Matchers ##
1213
-
1214
- Under the hood, a Google Mock matcher object consists of a pointer to
1215
- a ref-counted implementation object. Copying matchers is allowed and
1216
- very efficient, as only the pointer is copied. When the last matcher
1217
- that references the implementation object dies, the implementation
1218
- object will be deleted.
1219
-
1220
- Therefore, if you have some complex matcher that you want to use again
1221
- and again, there is no need to build it everytime. Just assign it to a
1222
- matcher variable and use that variable repeatedly! For example,
1223
-
1224
- ```
1225
- Matcher<int> in_range = AllOf(Gt(5), Le(10));
1226
- ... use in_range as a matcher in multiple EXPECT_CALLs ...
1227
- ```
1228
-
1229
- # Setting Expectations #
1230
-
1231
- ## Ignoring Uninteresting Calls ##
1232
-
1233
- If you are not interested in how a mock method is called, just don't
1234
- say anything about it. In this case, if the method is ever called,
1235
- Google Mock will perform its default action to allow the test program
1236
- to continue. If you are not happy with the default action taken by
1237
- Google Mock, you can override it using `DefaultValue<T>::Set()`
1238
- (described later in this document) or `ON_CALL()`.
1239
-
1240
- Please note that once you expressed interest in a particular mock
1241
- method (via `EXPECT_CALL()`), all invocations to it must match some
1242
- expectation. If this function is called but the arguments don't match
1243
- any `EXPECT_CALL()` statement, it will be an error.
1244
-
1245
- ## Disallowing Unexpected Calls ##
1246
-
1247
- If a mock method shouldn't be called at all, explicitly say so:
1248
-
1249
- ```
1250
- using ::testing::_;
1251
- ...
1252
- EXPECT_CALL(foo, Bar(_))
1253
- .Times(0);
1254
- ```
1255
-
1256
- If some calls to the method are allowed, but the rest are not, just
1257
- list all the expected calls:
1258
-
1259
- ```
1260
- using ::testing::AnyNumber;
1261
- using ::testing::Gt;
1262
- ...
1263
- EXPECT_CALL(foo, Bar(5));
1264
- EXPECT_CALL(foo, Bar(Gt(10)))
1265
- .Times(AnyNumber());
1266
- ```
1267
-
1268
- A call to `foo.Bar()` that doesn't match any of the `EXPECT_CALL()`
1269
- statements will be an error.
1270
-
1271
- ## Expecting Ordered Calls ##
1272
-
1273
- Although an `EXPECT_CALL()` statement defined earlier takes precedence
1274
- when Google Mock tries to match a function call with an expectation,
1275
- by default calls don't have to happen in the order `EXPECT_CALL()`
1276
- statements are written. For example, if the arguments match the
1277
- matchers in the third `EXPECT_CALL()`, but not those in the first two,
1278
- then the third expectation will be used.
1279
-
1280
- If you would rather have all calls occur in the order of the
1281
- expectations, put the `EXPECT_CALL()` statements in a block where you
1282
- define a variable of type `InSequence`:
1283
-
1284
- ```
1285
- using ::testing::_;
1286
- using ::testing::InSequence;
1287
-
1288
- {
1289
- InSequence s;
1290
-
1291
- EXPECT_CALL(foo, DoThis(5));
1292
- EXPECT_CALL(bar, DoThat(_))
1293
- .Times(2);
1294
- EXPECT_CALL(foo, DoThis(6));
1295
- }
1296
- ```
1297
-
1298
- In this example, we expect a call to `foo.DoThis(5)`, followed by two
1299
- calls to `bar.DoThat()` where the argument can be anything, which are
1300
- in turn followed by a call to `foo.DoThis(6)`. If a call occurred
1301
- out-of-order, Google Mock will report an error.
1302
-
1303
- ## Expecting Partially Ordered Calls ##
1304
-
1305
- Sometimes requiring everything to occur in a predetermined order can
1306
- lead to brittle tests. For example, we may care about `A` occurring
1307
- before both `B` and `C`, but aren't interested in the relative order
1308
- of `B` and `C`. In this case, the test should reflect our real intent,
1309
- instead of being overly constraining.
1310
-
1311
- Google Mock allows you to impose an arbitrary DAG (directed acyclic
1312
- graph) on the calls. One way to express the DAG is to use the
1313
- [After](http://code.google.com/p/googlemock/wiki/V1_6_CheatSheet#The_After_Clause) clause of `EXPECT_CALL`.
1314
-
1315
- Another way is via the `InSequence()` clause (not the same as the
1316
- `InSequence` class), which we borrowed from jMock 2. It's less
1317
- flexible than `After()`, but more convenient when you have long chains
1318
- of sequential calls, as it doesn't require you to come up with
1319
- different names for the expectations in the chains. Here's how it
1320
- works:
1321
-
1322
- If we view `EXPECT_CALL()` statements as nodes in a graph, and add an
1323
- edge from node A to node B wherever A must occur before B, we can get
1324
- a DAG. We use the term "sequence" to mean a directed path in this
1325
- DAG. Now, if we decompose the DAG into sequences, we just need to know
1326
- which sequences each `EXPECT_CALL()` belongs to in order to be able to
1327
- reconstruct the orginal DAG.
1328
-
1329
- So, to specify the partial order on the expectations we need to do two
1330
- things: first to define some `Sequence` objects, and then for each
1331
- `EXPECT_CALL()` say which `Sequence` objects it is part
1332
- of. Expectations in the same sequence must occur in the order they are
1333
- written. For example,
1334
-
1335
- ```
1336
- using ::testing::Sequence;
1337
-
1338
- Sequence s1, s2;
1339
-
1340
- EXPECT_CALL(foo, A())
1341
- .InSequence(s1, s2);
1342
- EXPECT_CALL(bar, B())
1343
- .InSequence(s1);
1344
- EXPECT_CALL(bar, C())
1345
- .InSequence(s2);
1346
- EXPECT_CALL(foo, D())
1347
- .InSequence(s2);
1348
- ```
1349
-
1350
- specifies the following DAG (where `s1` is `A -> B`, and `s2` is `A ->
1351
- C -> D`):
1352
-
1353
- ```
1354
- +---> B
1355
- |
1356
- A ---|
1357
- |
1358
- +---> C ---> D
1359
- ```
1360
-
1361
- This means that A must occur before B and C, and C must occur before
1362
- D. There's no restriction about the order other than these.
1363
-
1364
- ## Controlling When an Expectation Retires ##
1365
-
1366
- When a mock method is called, Google Mock only consider expectations
1367
- that are still active. An expectation is active when created, and
1368
- becomes inactive (aka _retires_) when a call that has to occur later
1369
- has occurred. For example, in
1370
-
1371
- ```
1372
- using ::testing::_;
1373
- using ::testing::Sequence;
1374
-
1375
- Sequence s1, s2;
1376
-
1377
- EXPECT_CALL(log, Log(WARNING, _, "File too large.")) // #1
1378
- .Times(AnyNumber())
1379
- .InSequence(s1, s2);
1380
- EXPECT_CALL(log, Log(WARNING, _, "Data set is empty.")) // #2
1381
- .InSequence(s1);
1382
- EXPECT_CALL(log, Log(WARNING, _, "User not found.")) // #3
1383
- .InSequence(s2);
1384
- ```
1385
-
1386
- as soon as either #2 or #3 is matched, #1 will retire. If a warning
1387
- `"File too large."` is logged after this, it will be an error.
1388
-
1389
- Note that an expectation doesn't retire automatically when it's
1390
- saturated. For example,
1391
-
1392
- ```
1393
- using ::testing::_;
1394
- ...
1395
- EXPECT_CALL(log, Log(WARNING, _, _)); // #1
1396
- EXPECT_CALL(log, Log(WARNING, _, "File too large.")); // #2
1397
- ```
1398
-
1399
- says that there will be exactly one warning with the message `"File
1400
- too large."`. If the second warning contains this message too, #2 will
1401
- match again and result in an upper-bound-violated error.
1402
-
1403
- If this is not what you want, you can ask an expectation to retire as
1404
- soon as it becomes saturated:
1405
-
1406
- ```
1407
- using ::testing::_;
1408
- ...
1409
- EXPECT_CALL(log, Log(WARNING, _, _)); // #1
1410
- EXPECT_CALL(log, Log(WARNING, _, "File too large.")) // #2
1411
- .RetiresOnSaturation();
1412
- ```
1413
-
1414
- Here #2 can be used only once, so if you have two warnings with the
1415
- message `"File too large."`, the first will match #2 and the second
1416
- will match #1 - there will be no error.
1417
-
1418
- # Using Actions #
1419
-
1420
- ## Returning References from Mock Methods ##
1421
-
1422
- If a mock function's return type is a reference, you need to use
1423
- `ReturnRef()` instead of `Return()` to return a result:
1424
-
1425
- ```
1426
- using ::testing::ReturnRef;
1427
-
1428
- class MockFoo : public Foo {
1429
- public:
1430
- MOCK_METHOD0(GetBar, Bar&());
1431
- };
1432
- ...
1433
-
1434
- MockFoo foo;
1435
- Bar bar;
1436
- EXPECT_CALL(foo, GetBar())
1437
- .WillOnce(ReturnRef(bar));
1438
- ```
1439
-
1440
- ## Returning Live Values from Mock Methods ##
1441
-
1442
- The `Return(x)` action saves a copy of `x` when the action is
1443
- _created_, and always returns the same value whenever it's
1444
- executed. Sometimes you may want to instead return the _live_ value of
1445
- `x` (i.e. its value at the time when the action is _executed_.).
1446
-
1447
- If the mock function's return type is a reference, you can do it using
1448
- `ReturnRef(x)`, as shown in the previous recipe ("Returning References
1449
- from Mock Methods"). However, Google Mock doesn't let you use
1450
- `ReturnRef()` in a mock function whose return type is not a reference,
1451
- as doing that usually indicates a user error. So, what shall you do?
1452
-
1453
- You may be tempted to try `ByRef()`:
1454
-
1455
- ```
1456
- using testing::ByRef;
1457
- using testing::Return;
1458
-
1459
- class MockFoo : public Foo {
1460
- public:
1461
- MOCK_METHOD0(GetValue, int());
1462
- };
1463
- ...
1464
- int x = 0;
1465
- MockFoo foo;
1466
- EXPECT_CALL(foo, GetValue())
1467
- .WillRepeatedly(Return(ByRef(x)));
1468
- x = 42;
1469
- EXPECT_EQ(42, foo.GetValue());
1470
- ```
1471
-
1472
- Unfortunately, it doesn't work here. The above code will fail with error:
1473
-
1474
- ```
1475
- Value of: foo.GetValue()
1476
- Actual: 0
1477
- Expected: 42
1478
- ```
1479
-
1480
- The reason is that `Return(value)` converts `value` to the actual
1481
- return type of the mock function at the time when the action is
1482
- _created_, not when it is _executed_. (This behavior was chosen for
1483
- the action to be safe when `value` is a proxy object that references
1484
- some temporary objects.) As a result, `ByRef(x)` is converted to an
1485
- `int` value (instead of a `const int&`) when the expectation is set,
1486
- and `Return(ByRef(x))` will always return 0.
1487
-
1488
- `ReturnPointee(pointer)` was provided to solve this problem
1489
- specifically. It returns the value pointed to by `pointer` at the time
1490
- the action is _executed_:
1491
-
1492
- ```
1493
- using testing::ReturnPointee;
1494
- ...
1495
- int x = 0;
1496
- MockFoo foo;
1497
- EXPECT_CALL(foo, GetValue())
1498
- .WillRepeatedly(ReturnPointee(&x)); // Note the & here.
1499
- x = 42;
1500
- EXPECT_EQ(42, foo.GetValue()); // This will succeed now.
1501
- ```
1502
-
1503
- ## Combining Actions ##
1504
-
1505
- Want to do more than one thing when a function is called? That's
1506
- fine. `DoAll()` allow you to do sequence of actions every time. Only
1507
- the return value of the last action in the sequence will be used.
1508
-
1509
- ```
1510
- using ::testing::DoAll;
1511
-
1512
- class MockFoo : public Foo {
1513
- public:
1514
- MOCK_METHOD1(Bar, bool(int n));
1515
- };
1516
- ...
1517
-
1518
- EXPECT_CALL(foo, Bar(_))
1519
- .WillOnce(DoAll(action_1,
1520
- action_2,
1521
- ...
1522
- action_n));
1523
- ```
1524
-
1525
- ## Mocking Side Effects ##
1526
-
1527
- Sometimes a method exhibits its effect not via returning a value but
1528
- via side effects. For example, it may change some global state or
1529
- modify an output argument. To mock side effects, in general you can
1530
- define your own action by implementing `::testing::ActionInterface`.
1531
-
1532
- If all you need to do is to change an output argument, the built-in
1533
- `SetArgPointee()` action is convenient:
1534
-
1535
- ```
1536
- using ::testing::SetArgPointee;
1537
-
1538
- class MockMutator : public Mutator {
1539
- public:
1540
- MOCK_METHOD2(Mutate, void(bool mutate, int* value));
1541
- ...
1542
- };
1543
- ...
1544
-
1545
- MockMutator mutator;
1546
- EXPECT_CALL(mutator, Mutate(true, _))
1547
- .WillOnce(SetArgPointee<1>(5));
1548
- ```
1549
-
1550
- In this example, when `mutator.Mutate()` is called, we will assign 5
1551
- to the `int` variable pointed to by argument #1
1552
- (0-based).
1553
-
1554
- `SetArgPointee()` conveniently makes an internal copy of the
1555
- value you pass to it, removing the need to keep the value in scope and
1556
- alive. The implication however is that the value must have a copy
1557
- constructor and assignment operator.
1558
-
1559
- If the mock method also needs to return a value as well, you can chain
1560
- `SetArgPointee()` with `Return()` using `DoAll()`:
1561
-
1562
- ```
1563
- using ::testing::_;
1564
- using ::testing::Return;
1565
- using ::testing::SetArgPointee;
1566
-
1567
- class MockMutator : public Mutator {
1568
- public:
1569
- ...
1570
- MOCK_METHOD1(MutateInt, bool(int* value));
1571
- };
1572
- ...
1573
-
1574
- MockMutator mutator;
1575
- EXPECT_CALL(mutator, MutateInt(_))
1576
- .WillOnce(DoAll(SetArgPointee<0>(5),
1577
- Return(true)));
1578
- ```
1579
-
1580
- If the output argument is an array, use the
1581
- `SetArrayArgument<N>(first, last)` action instead. It copies the
1582
- elements in source range `[first, last)` to the array pointed to by
1583
- the `N`-th (0-based) argument:
1584
-
1585
- ```
1586
- using ::testing::NotNull;
1587
- using ::testing::SetArrayArgument;
1588
-
1589
- class MockArrayMutator : public ArrayMutator {
1590
- public:
1591
- MOCK_METHOD2(Mutate, void(int* values, int num_values));
1592
- ...
1593
- };
1594
- ...
1595
-
1596
- MockArrayMutator mutator;
1597
- int values[5] = { 1, 2, 3, 4, 5 };
1598
- EXPECT_CALL(mutator, Mutate(NotNull(), 5))
1599
- .WillOnce(SetArrayArgument<0>(values, values + 5));
1600
- ```
1601
-
1602
- This also works when the argument is an output iterator:
1603
-
1604
- ```
1605
- using ::testing::_;
1606
- using ::testing::SeArrayArgument;
1607
-
1608
- class MockRolodex : public Rolodex {
1609
- public:
1610
- MOCK_METHOD1(GetNames, void(std::back_insert_iterator<vector<string> >));
1611
- ...
1612
- };
1613
- ...
1614
-
1615
- MockRolodex rolodex;
1616
- vector<string> names;
1617
- names.push_back("George");
1618
- names.push_back("John");
1619
- names.push_back("Thomas");
1620
- EXPECT_CALL(rolodex, GetNames(_))
1621
- .WillOnce(SetArrayArgument<0>(names.begin(), names.end()));
1622
- ```
1623
-
1624
- ## Changing a Mock Object's Behavior Based on the State ##
1625
-
1626
- If you expect a call to change the behavior of a mock object, you can use `::testing::InSequence` to specify different behaviors before and after the call:
1627
-
1628
- ```
1629
- using ::testing::InSequence;
1630
- using ::testing::Return;
1631
-
1632
- ...
1633
- {
1634
- InSequence seq;
1635
- EXPECT_CALL(my_mock, IsDirty())
1636
- .WillRepeatedly(Return(true));
1637
- EXPECT_CALL(my_mock, Flush());
1638
- EXPECT_CALL(my_mock, IsDirty())
1639
- .WillRepeatedly(Return(false));
1640
- }
1641
- my_mock.FlushIfDirty();
1642
- ```
1643
-
1644
- This makes `my_mock.IsDirty()` return `true` before `my_mock.Flush()` is called and return `false` afterwards.
1645
-
1646
- If the behavior change is more complex, you can store the effects in a variable and make a mock method get its return value from that variable:
1647
-
1648
- ```
1649
- using ::testing::_;
1650
- using ::testing::SaveArg;
1651
- using ::testing::Return;
1652
-
1653
- ACTION_P(ReturnPointee, p) { return *p; }
1654
- ...
1655
- int previous_value = 0;
1656
- EXPECT_CALL(my_mock, GetPrevValue())
1657
- .WillRepeatedly(ReturnPointee(&previous_value));
1658
- EXPECT_CALL(my_mock, UpdateValue(_))
1659
- .WillRepeatedly(SaveArg<0>(&previous_value));
1660
- my_mock.DoSomethingToUpdateValue();
1661
- ```
1662
-
1663
- Here `my_mock.GetPrevValue()` will always return the argument of the last `UpdateValue()` call.
1664
-
1665
- ## Setting the Default Value for a Return Type ##
1666
-
1667
- If a mock method's return type is a built-in C++ type or pointer, by
1668
- default it will return 0 when invoked. You only need to specify an
1669
- action if this default value doesn't work for you.
1670
-
1671
- Sometimes, you may want to change this default value, or you may want
1672
- to specify a default value for types Google Mock doesn't know
1673
- about. You can do this using the `::testing::DefaultValue` class
1674
- template:
1675
-
1676
- ```
1677
- class MockFoo : public Foo {
1678
- public:
1679
- MOCK_METHOD0(CalculateBar, Bar());
1680
- };
1681
- ...
1682
-
1683
- Bar default_bar;
1684
- // Sets the default return value for type Bar.
1685
- DefaultValue<Bar>::Set(default_bar);
1686
-
1687
- MockFoo foo;
1688
-
1689
- // We don't need to specify an action here, as the default
1690
- // return value works for us.
1691
- EXPECT_CALL(foo, CalculateBar());
1692
-
1693
- foo.CalculateBar(); // This should return default_bar.
1694
-
1695
- // Unsets the default return value.
1696
- DefaultValue<Bar>::Clear();
1697
- ```
1698
-
1699
- Please note that changing the default value for a type can make you
1700
- tests hard to understand. We recommend you to use this feature
1701
- judiciously. For example, you may want to make sure the `Set()` and
1702
- `Clear()` calls are right next to the code that uses your mock.
1703
-
1704
- ## Setting the Default Actions for a Mock Method ##
1705
-
1706
- You've learned how to change the default value of a given
1707
- type. However, this may be too coarse for your purpose: perhaps you
1708
- have two mock methods with the same return type and you want them to
1709
- have different behaviors. The `ON_CALL()` macro allows you to
1710
- customize your mock's behavior at the method level:
1711
-
1712
- ```
1713
- using ::testing::_;
1714
- using ::testing::AnyNumber;
1715
- using ::testing::Gt;
1716
- using ::testing::Return;
1717
- ...
1718
- ON_CALL(foo, Sign(_))
1719
- .WillByDefault(Return(-1));
1720
- ON_CALL(foo, Sign(0))
1721
- .WillByDefault(Return(0));
1722
- ON_CALL(foo, Sign(Gt(0)))
1723
- .WillByDefault(Return(1));
1724
-
1725
- EXPECT_CALL(foo, Sign(_))
1726
- .Times(AnyNumber());
1727
-
1728
- foo.Sign(5); // This should return 1.
1729
- foo.Sign(-9); // This should return -1.
1730
- foo.Sign(0); // This should return 0.
1731
- ```
1732
-
1733
- As you may have guessed, when there are more than one `ON_CALL()`
1734
- statements, the news order take precedence over the older ones. In
1735
- other words, the **last** one that matches the function arguments will
1736
- be used. This matching order allows you to set up the common behavior
1737
- in a mock object's constructor or the test fixture's set-up phase and
1738
- specialize the mock's behavior later.
1739
-
1740
- ## Using Functions/Methods/Functors as Actions ##
1741
-
1742
- If the built-in actions don't suit you, you can easily use an existing
1743
- function, method, or functor as an action:
1744
-
1745
- ```
1746
- using ::testing::_;
1747
- using ::testing::Invoke;
1748
-
1749
- class MockFoo : public Foo {
1750
- public:
1751
- MOCK_METHOD2(Sum, int(int x, int y));
1752
- MOCK_METHOD1(ComplexJob, bool(int x));
1753
- };
1754
-
1755
- int CalculateSum(int x, int y) { return x + y; }
1756
-
1757
- class Helper {
1758
- public:
1759
- bool ComplexJob(int x);
1760
- };
1761
- ...
1762
-
1763
- MockFoo foo;
1764
- Helper helper;
1765
- EXPECT_CALL(foo, Sum(_, _))
1766
- .WillOnce(Invoke(CalculateSum));
1767
- EXPECT_CALL(foo, ComplexJob(_))
1768
- .WillOnce(Invoke(&helper, &Helper::ComplexJob));
1769
-
1770
- foo.Sum(5, 6); // Invokes CalculateSum(5, 6).
1771
- foo.ComplexJob(10); // Invokes helper.ComplexJob(10);
1772
- ```
1773
-
1774
- The only requirement is that the type of the function, etc must be
1775
- _compatible_ with the signature of the mock function, meaning that the
1776
- latter's arguments can be implicitly converted to the corresponding
1777
- arguments of the former, and the former's return type can be
1778
- implicitly converted to that of the latter. So, you can invoke
1779
- something whose type is _not_ exactly the same as the mock function,
1780
- as long as it's safe to do so - nice, huh?
1781
-
1782
- ## Invoking a Function/Method/Functor Without Arguments ##
1783
-
1784
- `Invoke()` is very useful for doing actions that are more complex. It
1785
- passes the mock function's arguments to the function or functor being
1786
- invoked such that the callee has the full context of the call to work
1787
- with. If the invoked function is not interested in some or all of the
1788
- arguments, it can simply ignore them.
1789
-
1790
- Yet, a common pattern is that a test author wants to invoke a function
1791
- without the arguments of the mock function. `Invoke()` allows her to
1792
- do that using a wrapper function that throws away the arguments before
1793
- invoking an underlining nullary function. Needless to say, this can be
1794
- tedious and obscures the intent of the test.
1795
-
1796
- `InvokeWithoutArgs()` solves this problem. It's like `Invoke()` except
1797
- that it doesn't pass the mock function's arguments to the
1798
- callee. Here's an example:
1799
-
1800
- ```
1801
- using ::testing::_;
1802
- using ::testing::InvokeWithoutArgs;
1803
-
1804
- class MockFoo : public Foo {
1805
- public:
1806
- MOCK_METHOD1(ComplexJob, bool(int n));
1807
- };
1808
-
1809
- bool Job1() { ... }
1810
- ...
1811
-
1812
- MockFoo foo;
1813
- EXPECT_CALL(foo, ComplexJob(_))
1814
- .WillOnce(InvokeWithoutArgs(Job1));
1815
-
1816
- foo.ComplexJob(10); // Invokes Job1().
1817
- ```
1818
-
1819
- ## Invoking an Argument of the Mock Function ##
1820
-
1821
- Sometimes a mock function will receive a function pointer or a functor
1822
- (in other words, a "callable") as an argument, e.g.
1823
-
1824
- ```
1825
- class MockFoo : public Foo {
1826
- public:
1827
- MOCK_METHOD2(DoThis, bool(int n, bool (*fp)(int)));
1828
- };
1829
- ```
1830
-
1831
- and you may want to invoke this callable argument:
1832
-
1833
- ```
1834
- using ::testing::_;
1835
- ...
1836
- MockFoo foo;
1837
- EXPECT_CALL(foo, DoThis(_, _))
1838
- .WillOnce(...);
1839
- // Will execute (*fp)(5), where fp is the
1840
- // second argument DoThis() receives.
1841
- ```
1842
-
1843
- Arghh, you need to refer to a mock function argument but C++ has no
1844
- lambda (yet), so you have to define your own action. :-( Or do you
1845
- really?
1846
-
1847
- Well, Google Mock has an action to solve _exactly_ this problem:
1848
-
1849
- ```
1850
- InvokeArgument<N>(arg_1, arg_2, ..., arg_m)
1851
- ```
1852
-
1853
- will invoke the `N`-th (0-based) argument the mock function receives,
1854
- with `arg_1`, `arg_2`, ..., and `arg_m`. No matter if the argument is
1855
- a function pointer or a functor, Google Mock handles them both.
1856
-
1857
- With that, you could write:
1858
-
1859
- ```
1860
- using ::testing::_;
1861
- using ::testing::InvokeArgument;
1862
- ...
1863
- EXPECT_CALL(foo, DoThis(_, _))
1864
- .WillOnce(InvokeArgument<1>(5));
1865
- // Will execute (*fp)(5), where fp is the
1866
- // second argument DoThis() receives.
1867
- ```
1868
-
1869
- What if the callable takes an argument by reference? No problem - just
1870
- wrap it inside `ByRef()`:
1871
-
1872
- ```
1873
- ...
1874
- MOCK_METHOD1(Bar, bool(bool (*fp)(int, const Helper&)));
1875
- ...
1876
- using ::testing::_;
1877
- using ::testing::ByRef;
1878
- using ::testing::InvokeArgument;
1879
- ...
1880
-
1881
- MockFoo foo;
1882
- Helper helper;
1883
- ...
1884
- EXPECT_CALL(foo, Bar(_))
1885
- .WillOnce(InvokeArgument<0>(5, ByRef(helper)));
1886
- // ByRef(helper) guarantees that a reference to helper, not a copy of it,
1887
- // will be passed to the callable.
1888
- ```
1889
-
1890
- What if the callable takes an argument by reference and we do **not**
1891
- wrap the argument in `ByRef()`? Then `InvokeArgument()` will _make a
1892
- copy_ of the argument, and pass a _reference to the copy_, instead of
1893
- a reference to the original value, to the callable. This is especially
1894
- handy when the argument is a temporary value:
1895
-
1896
- ```
1897
- ...
1898
- MOCK_METHOD1(DoThat, bool(bool (*f)(const double& x, const string& s)));
1899
- ...
1900
- using ::testing::_;
1901
- using ::testing::InvokeArgument;
1902
- ...
1903
-
1904
- MockFoo foo;
1905
- ...
1906
- EXPECT_CALL(foo, DoThat(_))
1907
- .WillOnce(InvokeArgument<0>(5.0, string("Hi")));
1908
- // Will execute (*f)(5.0, string("Hi")), where f is the function pointer
1909
- // DoThat() receives. Note that the values 5.0 and string("Hi") are
1910
- // temporary and dead once the EXPECT_CALL() statement finishes. Yet
1911
- // it's fine to perform this action later, since a copy of the values
1912
- // are kept inside the InvokeArgument action.
1913
- ```
1914
-
1915
- ## Ignoring an Action's Result ##
1916
-
1917
- Sometimes you have an action that returns _something_, but you need an
1918
- action that returns `void` (perhaps you want to use it in a mock
1919
- function that returns `void`, or perhaps it needs to be used in
1920
- `DoAll()` and it's not the last in the list). `IgnoreResult()` lets
1921
- you do that. For example:
1922
-
1923
- ```
1924
- using ::testing::_;
1925
- using ::testing::Invoke;
1926
- using ::testing::Return;
1927
-
1928
- int Process(const MyData& data);
1929
- string DoSomething();
1930
-
1931
- class MockFoo : public Foo {
1932
- public:
1933
- MOCK_METHOD1(Abc, void(const MyData& data));
1934
- MOCK_METHOD0(Xyz, bool());
1935
- };
1936
- ...
1937
-
1938
- MockFoo foo;
1939
- EXPECT_CALL(foo, Abc(_))
1940
- // .WillOnce(Invoke(Process));
1941
- // The above line won't compile as Process() returns int but Abc() needs
1942
- // to return void.
1943
- .WillOnce(IgnoreResult(Invoke(Process)));
1944
-
1945
- EXPECT_CALL(foo, Xyz())
1946
- .WillOnce(DoAll(IgnoreResult(Invoke(DoSomething)),
1947
- // Ignores the string DoSomething() returns.
1948
- Return(true)));
1949
- ```
1950
-
1951
- Note that you **cannot** use `IgnoreResult()` on an action that already
1952
- returns `void`. Doing so will lead to ugly compiler errors.
1953
-
1954
- ## Selecting an Action's Arguments ##
1955
-
1956
- Say you have a mock function `Foo()` that takes seven arguments, and
1957
- you have a custom action that you want to invoke when `Foo()` is
1958
- called. Trouble is, the custom action only wants three arguments:
1959
-
1960
- ```
1961
- using ::testing::_;
1962
- using ::testing::Invoke;
1963
- ...
1964
- MOCK_METHOD7(Foo, bool(bool visible, const string& name, int x, int y,
1965
- const map<pair<int, int>, double>& weight,
1966
- double min_weight, double max_wight));
1967
- ...
1968
-
1969
- bool IsVisibleInQuadrant1(bool visible, int x, int y) {
1970
- return visible && x >= 0 && y >= 0;
1971
- }
1972
- ...
1973
-
1974
- EXPECT_CALL(mock, Foo(_, _, _, _, _, _, _))
1975
- .WillOnce(Invoke(IsVisibleInQuadrant1)); // Uh, won't compile. :-(
1976
- ```
1977
-
1978
- To please the compiler God, you can to define an "adaptor" that has
1979
- the same signature as `Foo()` and calls the custom action with the
1980
- right arguments:
1981
-
1982
- ```
1983
- using ::testing::_;
1984
- using ::testing::Invoke;
1985
-
1986
- bool MyIsVisibleInQuadrant1(bool visible, const string& name, int x, int y,
1987
- const map<pair<int, int>, double>& weight,
1988
- double min_weight, double max_wight) {
1989
- return IsVisibleInQuadrant1(visible, x, y);
1990
- }
1991
- ...
1992
-
1993
- EXPECT_CALL(mock, Foo(_, _, _, _, _, _, _))
1994
- .WillOnce(Invoke(MyIsVisibleInQuadrant1)); // Now it works.
1995
- ```
1996
-
1997
- But isn't this awkward?
1998
-
1999
- Google Mock provides a generic _action adaptor_, so you can spend your
2000
- time minding more important business than writing your own
2001
- adaptors. Here's the syntax:
2002
-
2003
- ```
2004
- WithArgs<N1, N2, ..., Nk>(action)
2005
- ```
2006
-
2007
- creates an action that passes the arguments of the mock function at
2008
- the given indices (0-based) to the inner `action` and performs
2009
- it. Using `WithArgs`, our original example can be written as:
2010
-
2011
- ```
2012
- using ::testing::_;
2013
- using ::testing::Invoke;
2014
- using ::testing::WithArgs;
2015
- ...
2016
- EXPECT_CALL(mock, Foo(_, _, _, _, _, _, _))
2017
- .WillOnce(WithArgs<0, 2, 3>(Invoke(IsVisibleInQuadrant1)));
2018
- // No need to define your own adaptor.
2019
- ```
2020
-
2021
- For better readability, Google Mock also gives you:
2022
-
2023
- * `WithoutArgs(action)` when the inner `action` takes _no_ argument, and
2024
- * `WithArg<N>(action)` (no `s` after `Arg`) when the inner `action` takes _one_ argument.
2025
-
2026
- As you may have realized, `InvokeWithoutArgs(...)` is just syntactic
2027
- sugar for `WithoutArgs(Inovke(...))`.
2028
-
2029
- Here are more tips:
2030
-
2031
- * The inner action used in `WithArgs` and friends does not have to be `Invoke()` -- it can be anything.
2032
- * You can repeat an argument in the argument list if necessary, e.g. `WithArgs<2, 3, 3, 5>(...)`.
2033
- * You can change the order of the arguments, e.g. `WithArgs<3, 2, 1>(...)`.
2034
- * The types of the selected arguments do _not_ have to match the signature of the inner action exactly. It works as long as they can be implicitly converted to the corresponding arguments of the inner action. For example, if the 4-th argument of the mock function is an `int` and `my_action` takes a `double`, `WithArg<4>(my_action)` will work.
2035
-
2036
- ## Ignoring Arguments in Action Functions ##
2037
-
2038
- The selecting-an-action's-arguments recipe showed us one way to make a
2039
- mock function and an action with incompatible argument lists fit
2040
- together. The downside is that wrapping the action in
2041
- `WithArgs<...>()` can get tedious for people writing the tests.
2042
-
2043
- If you are defining a function, method, or functor to be used with
2044
- `Invoke*()`, and you are not interested in some of its arguments, an
2045
- alternative to `WithArgs` is to declare the uninteresting arguments as
2046
- `Unused`. This makes the definition less cluttered and less fragile in
2047
- case the types of the uninteresting arguments change. It could also
2048
- increase the chance the action function can be reused. For example,
2049
- given
2050
-
2051
- ```
2052
- MOCK_METHOD3(Foo, double(const string& label, double x, double y));
2053
- MOCK_METHOD3(Bar, double(int index, double x, double y));
2054
- ```
2055
-
2056
- instead of
2057
-
2058
- ```
2059
- using ::testing::_;
2060
- using ::testing::Invoke;
2061
-
2062
- double DistanceToOriginWithLabel(const string& label, double x, double y) {
2063
- return sqrt(x*x + y*y);
2064
- }
2065
-
2066
- double DistanceToOriginWithIndex(int index, double x, double y) {
2067
- return sqrt(x*x + y*y);
2068
- }
2069
- ...
2070
-
2071
- EXEPCT_CALL(mock, Foo("abc", _, _))
2072
- .WillOnce(Invoke(DistanceToOriginWithLabel));
2073
- EXEPCT_CALL(mock, Bar(5, _, _))
2074
- .WillOnce(Invoke(DistanceToOriginWithIndex));
2075
- ```
2076
-
2077
- you could write
2078
-
2079
- ```
2080
- using ::testing::_;
2081
- using ::testing::Invoke;
2082
- using ::testing::Unused;
2083
-
2084
- double DistanceToOrigin(Unused, double x, double y) {
2085
- return sqrt(x*x + y*y);
2086
- }
2087
- ...
2088
-
2089
- EXEPCT_CALL(mock, Foo("abc", _, _))
2090
- .WillOnce(Invoke(DistanceToOrigin));
2091
- EXEPCT_CALL(mock, Bar(5, _, _))
2092
- .WillOnce(Invoke(DistanceToOrigin));
2093
- ```
2094
-
2095
- ## Sharing Actions ##
2096
-
2097
- Just like matchers, a Google Mock action object consists of a pointer
2098
- to a ref-counted implementation object. Therefore copying actions is
2099
- also allowed and very efficient. When the last action that references
2100
- the implementation object dies, the implementation object will be
2101
- deleted.
2102
-
2103
- If you have some complex action that you want to use again and again,
2104
- you may not have to build it from scratch everytime. If the action
2105
- doesn't have an internal state (i.e. if it always does the same thing
2106
- no matter how many times it has been called), you can assign it to an
2107
- action variable and use that variable repeatedly. For example:
2108
-
2109
- ```
2110
- Action<bool(int*)> set_flag = DoAll(SetArgPointee<0>(5),
2111
- Return(true));
2112
- ... use set_flag in .WillOnce() and .WillRepeatedly() ...
2113
- ```
2114
-
2115
- However, if the action has its own state, you may be surprised if you
2116
- share the action object. Suppose you have an action factory
2117
- `IncrementCounter(init)` which creates an action that increments and
2118
- returns a counter whose initial value is `init`, using two actions
2119
- created from the same expression and using a shared action will
2120
- exihibit different behaviors. Example:
2121
-
2122
- ```
2123
- EXPECT_CALL(foo, DoThis())
2124
- .WillRepeatedly(IncrementCounter(0));
2125
- EXPECT_CALL(foo, DoThat())
2126
- .WillRepeatedly(IncrementCounter(0));
2127
- foo.DoThis(); // Returns 1.
2128
- foo.DoThis(); // Returns 2.
2129
- foo.DoThat(); // Returns 1 - Blah() uses a different
2130
- // counter than Bar()'s.
2131
- ```
2132
-
2133
- versus
2134
-
2135
- ```
2136
- Action<int()> increment = IncrementCounter(0);
2137
-
2138
- EXPECT_CALL(foo, DoThis())
2139
- .WillRepeatedly(increment);
2140
- EXPECT_CALL(foo, DoThat())
2141
- .WillRepeatedly(increment);
2142
- foo.DoThis(); // Returns 1.
2143
- foo.DoThis(); // Returns 2.
2144
- foo.DoThat(); // Returns 3 - the counter is shared.
2145
- ```
2146
-
2147
- # Misc Recipes on Using Google Mock #
2148
-
2149
- ## Making the Compilation Faster ##
2150
-
2151
- Believe it or not, the _vast majority_ of the time spent on compiling
2152
- a mock class is in generating its constructor and destructor, as they
2153
- perform non-trivial tasks (e.g. verification of the
2154
- expectations). What's more, mock methods with different signatures
2155
- have different types and thus their constructors/destructors need to
2156
- be generated by the compiler separately. As a result, if you mock many
2157
- different types of methods, compiling your mock class can get really
2158
- slow.
2159
-
2160
- If you are experiencing slow compilation, you can move the definition
2161
- of your mock class' constructor and destructor out of the class body
2162
- and into a `.cpp` file. This way, even if you `#include` your mock
2163
- class in N files, the compiler only needs to generate its constructor
2164
- and destructor once, resulting in a much faster compilation.
2165
-
2166
- Let's illustrate the idea using an example. Here's the definition of a
2167
- mock class before applying this recipe:
2168
-
2169
- ```
2170
- // File mock_foo.h.
2171
- ...
2172
- class MockFoo : public Foo {
2173
- public:
2174
- // Since we don't declare the constructor or the destructor,
2175
- // the compiler will generate them in every translation unit
2176
- // where this mock class is used.
2177
-
2178
- MOCK_METHOD0(DoThis, int());
2179
- MOCK_METHOD1(DoThat, bool(const char* str));
2180
- ... more mock methods ...
2181
- };
2182
- ```
2183
-
2184
- After the change, it would look like:
2185
-
2186
- ```
2187
- // File mock_foo.h.
2188
- ...
2189
- class MockFoo : public Foo {
2190
- public:
2191
- // The constructor and destructor are declared, but not defined, here.
2192
- MockFoo();
2193
- virtual ~MockFoo();
2194
-
2195
- MOCK_METHOD0(DoThis, int());
2196
- MOCK_METHOD1(DoThat, bool(const char* str));
2197
- ... more mock methods ...
2198
- };
2199
- ```
2200
- and
2201
- ```
2202
- // File mock_foo.cpp.
2203
- #include "path/to/mock_foo.h"
2204
-
2205
- // The definitions may appear trivial, but the functions actually do a
2206
- // lot of things through the constructors/destructors of the member
2207
- // variables used to implement the mock methods.
2208
- MockFoo::MockFoo() {}
2209
- MockFoo::~MockFoo() {}
2210
- ```
2211
-
2212
- ## Forcing a Verification ##
2213
-
2214
- When it's being destoyed, your friendly mock object will automatically
2215
- verify that all expectations on it have been satisfied, and will
2216
- generate [Google Test](http://code.google.com/p/googletest/) failures
2217
- if not. This is convenient as it leaves you with one less thing to
2218
- worry about. That is, unless you are not sure if your mock object will
2219
- be destoyed.
2220
-
2221
- How could it be that your mock object won't eventually be destroyed?
2222
- Well, it might be created on the heap and owned by the code you are
2223
- testing. Suppose there's a bug in that code and it doesn't delete the
2224
- mock object properly - you could end up with a passing test when
2225
- there's actually a bug.
2226
-
2227
- Using a heap checker is a good idea and can alleviate the concern, but
2228
- its implementation may not be 100% reliable. So, sometimes you do want
2229
- to _force_ Google Mock to verify a mock object before it is
2230
- (hopefully) destructed. You can do this with
2231
- `Mock::VerifyAndClearExpectations(&mock_object)`:
2232
-
2233
- ```
2234
- TEST(MyServerTest, ProcessesRequest) {
2235
- using ::testing::Mock;
2236
-
2237
- MockFoo* const foo = new MockFoo;
2238
- EXPECT_CALL(*foo, ...)...;
2239
- // ... other expectations ...
2240
-
2241
- // server now owns foo.
2242
- MyServer server(foo);
2243
- server.ProcessRequest(...);
2244
-
2245
- // In case that server's destructor will forget to delete foo,
2246
- // this will verify the expectations anyway.
2247
- Mock::VerifyAndClearExpectations(foo);
2248
- } // server is destroyed when it goes out of scope here.
2249
- ```
2250
-
2251
- **Tip:** The `Mock::VerifyAndClearExpectations()` function returns a
2252
- `bool` to indicate whether the verification was successful (`true` for
2253
- yes), so you can wrap that function call inside a `ASSERT_TRUE()` if
2254
- there is no point going further when the verification has failed.
2255
-
2256
- ## Using Check Points ##
2257
-
2258
- Sometimes you may want to "reset" a mock object at various check
2259
- points in your test: at each check point, you verify that all existing
2260
- expectations on the mock object have been satisfied, and then you set
2261
- some new expectations on it as if it's newly created. This allows you
2262
- to work with a mock object in "phases" whose sizes are each
2263
- manageable.
2264
-
2265
- One such scenario is that in your test's `SetUp()` function, you may
2266
- want to put the object you are testing into a certain state, with the
2267
- help from a mock object. Once in the desired state, you want to clear
2268
- all expectations on the mock, such that in the `TEST_F` body you can
2269
- set fresh expectations on it.
2270
-
2271
- As you may have figured out, the `Mock::VerifyAndClearExpectations()`
2272
- function we saw in the previous recipe can help you here. Or, if you
2273
- are using `ON_CALL()` to set default actions on the mock object and
2274
- want to clear the default actions as well, use
2275
- `Mock::VerifyAndClear(&mock_object)` instead. This function does what
2276
- `Mock::VerifyAndClearExpectations(&mock_object)` does and returns the
2277
- same `bool`, **plus** it clears the `ON_CALL()` statements on
2278
- `mock_object` too.
2279
-
2280
- Another trick you can use to achieve the same effect is to put the
2281
- expectations in sequences and insert calls to a dummy "check-point"
2282
- function at specific places. Then you can verify that the mock
2283
- function calls do happen at the right time. For example, if you are
2284
- exercising code:
2285
-
2286
- ```
2287
- Foo(1);
2288
- Foo(2);
2289
- Foo(3);
2290
- ```
2291
-
2292
- and want to verify that `Foo(1)` and `Foo(3)` both invoke
2293
- `mock.Bar("a")`, but `Foo(2)` doesn't invoke anything. You can write:
2294
-
2295
- ```
2296
- using ::testing::MockFunction;
2297
-
2298
- TEST(FooTest, InvokesBarCorrectly) {
2299
- MyMock mock;
2300
- // Class MockFunction<F> has exactly one mock method. It is named
2301
- // Call() and has type F.
2302
- MockFunction<void(string check_point_name)> check;
2303
- {
2304
- InSequence s;
2305
-
2306
- EXPECT_CALL(mock, Bar("a"));
2307
- EXPECT_CALL(check, Call("1"));
2308
- EXPECT_CALL(check, Call("2"));
2309
- EXPECT_CALL(mock, Bar("a"));
2310
- }
2311
- Foo(1);
2312
- check.Call("1");
2313
- Foo(2);
2314
- check.Call("2");
2315
- Foo(3);
2316
- }
2317
- ```
2318
-
2319
- The expectation spec says that the first `Bar("a")` must happen before
2320
- check point "1", the second `Bar("a")` must happen after check point "2",
2321
- and nothing should happen between the two check points. The explicit
2322
- check points make it easy to tell which `Bar("a")` is called by which
2323
- call to `Foo()`.
2324
-
2325
- ## Mocking Destructors ##
2326
-
2327
- Sometimes you want to make sure a mock object is destructed at the
2328
- right time, e.g. after `bar->A()` is called but before `bar->B()` is
2329
- called. We already know that you can specify constraints on the order
2330
- of mock function calls, so all we need to do is to mock the destructor
2331
- of the mock function.
2332
-
2333
- This sounds simple, except for one problem: a destructor is a special
2334
- function with special syntax and special semantics, and the
2335
- `MOCK_METHOD0` macro doesn't work for it:
2336
-
2337
- ```
2338
- MOCK_METHOD0(~MockFoo, void()); // Won't compile!
2339
- ```
2340
-
2341
- The good news is that you can use a simple pattern to achieve the same
2342
- effect. First, add a mock function `Die()` to your mock class and call
2343
- it in the destructor, like this:
2344
-
2345
- ```
2346
- class MockFoo : public Foo {
2347
- ...
2348
- // Add the following two lines to the mock class.
2349
- MOCK_METHOD0(Die, void());
2350
- virtual ~MockFoo() { Die(); }
2351
- };
2352
- ```
2353
-
2354
- (If the name `Die()` clashes with an existing symbol, choose another
2355
- name.) Now, we have translated the problem of testing when a `MockFoo`
2356
- object dies to testing when its `Die()` method is called:
2357
-
2358
- ```
2359
- MockFoo* foo = new MockFoo;
2360
- MockBar* bar = new MockBar;
2361
- ...
2362
- {
2363
- InSequence s;
2364
-
2365
- // Expects *foo to die after bar->A() and before bar->B().
2366
- EXPECT_CALL(*bar, A());
2367
- EXPECT_CALL(*foo, Die());
2368
- EXPECT_CALL(*bar, B());
2369
- }
2370
- ```
2371
-
2372
- And that's that.
2373
-
2374
- ## Using Google Mock and Threads ##
2375
-
2376
- **IMPORTANT NOTE:** What we describe in this recipe is **ONLY** true on
2377
- platforms where Google Mock is thread-safe. Currently these are only
2378
- platforms that support the pthreads library (this includes Linux and Mac).
2379
- To make it thread-safe on other platforms we only need to implement
2380
- some synchronization operations in `"gtest/internal/gtest-port.h"`.
2381
-
2382
- In a **unit** test, it's best if you could isolate and test a piece of
2383
- code in a single-threaded context. That avoids race conditions and
2384
- dead locks, and makes debugging your test much easier.
2385
-
2386
- Yet many programs are multi-threaded, and sometimes to test something
2387
- we need to pound on it from more than one thread. Google Mock works
2388
- for this purpose too.
2389
-
2390
- Remember the steps for using a mock:
2391
-
2392
- 1. Create a mock object `foo`.
2393
- 1. Set its default actions and expectations using `ON_CALL()` and `EXPECT_CALL()`.
2394
- 1. The code under test calls methods of `foo`.
2395
- 1. Optionally, verify and reset the mock.
2396
- 1. Destroy the mock yourself, or let the code under test destroy it. The destructor will automatically verify it.
2397
-
2398
- If you follow the following simple rules, your mocks and threads can
2399
- live happily togeter:
2400
-
2401
- * Execute your _test code_ (as opposed to the code being tested) in _one_ thread. This makes your test easy to follow.
2402
- * Obviously, you can do step #1 without locking.
2403
- * When doing step #2 and #5, make sure no other thread is accessing `foo`. Obvious too, huh?
2404
- * #3 and #4 can be done either in one thread or in multiple threads - anyway you want. Google Mock takes care of the locking, so you don't have to do any - unless required by your test logic.
2405
-
2406
- If you violate the rules (for example, if you set expectations on a
2407
- mock while another thread is calling its methods), you get undefined
2408
- behavior. That's not fun, so don't do it.
2409
-
2410
- Google Mock guarantees that the action for a mock function is done in
2411
- the same thread that called the mock function. For example, in
2412
-
2413
- ```
2414
- EXPECT_CALL(mock, Foo(1))
2415
- .WillOnce(action1);
2416
- EXPECT_CALL(mock, Foo(2))
2417
- .WillOnce(action2);
2418
- ```
2419
-
2420
- if `Foo(1)` is called in thread 1 and `Foo(2)` is called in thread 2,
2421
- Google Mock will execute `action1` in thread 1 and `action2` in thread
2422
- 2.
2423
-
2424
- Google Mock does _not_ impose a sequence on actions performed in
2425
- different threads (doing so may create deadlocks as the actions may
2426
- need to cooperate). This means that the execution of `action1` and
2427
- `action2` in the above example _may_ interleave. If this is a problem,
2428
- you should add proper synchronization logic to `action1` and `action2`
2429
- to make the test thread-safe.
2430
-
2431
-
2432
- Also, remember that `DefaultValue<T>` is a global resource that
2433
- potentially affects _all_ living mock objects in your
2434
- program. Naturally, you won't want to mess with it from multiple
2435
- threads or when there still are mocks in action.
2436
-
2437
- ## Controlling How Much Information Google Mock Prints ##
2438
-
2439
- When Google Mock sees something that has the potential of being an
2440
- error (e.g. a mock function with no expectation is called, a.k.a. an
2441
- uninteresting call, which is allowed but perhaps you forgot to
2442
- explicitly ban the call), it prints some warning messages, including
2443
- the arguments of the function and the return value. Hopefully this
2444
- will remind you to take a look and see if there is indeed a problem.
2445
-
2446
- Sometimes you are confident that your tests are correct and may not
2447
- appreciate such friendly messages. Some other times, you are debugging
2448
- your tests or learning about the behavior of the code you are testing,
2449
- and wish you could observe every mock call that happens (including
2450
- argument values and the return value). Clearly, one size doesn't fit
2451
- all.
2452
-
2453
- You can control how much Google Mock tells you using the
2454
- `--gmock_verbose=LEVEL` command-line flag, where `LEVEL` is a string
2455
- with three possible values:
2456
-
2457
- * `info`: Google Mock will print all informational messages, warnings, and errors (most verbose). At this setting, Google Mock will also log any calls to the `ON_CALL/EXPECT_CALL` macros.
2458
- * `warning`: Google Mock will print both warnings and errors (less verbose). This is the default.
2459
- * `error`: Google Mock will print errors only (least verbose).
2460
-
2461
- Alternatively, you can adjust the value of that flag from within your
2462
- tests like so:
2463
-
2464
- ```
2465
- ::testing::FLAGS_gmock_verbose = "error";
2466
- ```
2467
-
2468
- Now, judiciously use the right flag to enable Google Mock serve you better!
2469
-
2470
- ## Running Tests in Emacs ##
2471
-
2472
- If you build and run your tests in Emacs, the source file locations of
2473
- Google Mock and [Google Test](http://code.google.com/p/googletest/)
2474
- errors will be highlighted. Just press `<Enter>` on one of them and
2475
- you'll be taken to the offending line. Or, you can just type `C-x ``
2476
- to jump to the next error.
2477
-
2478
- To make it even easier, you can add the following lines to your
2479
- `~/.emacs` file:
2480
-
2481
- ```
2482
- (global-set-key "\M-m" 'compile) ; m is for make
2483
- (global-set-key [M-down] 'next-error)
2484
- (global-set-key [M-up] '(lambda () (interactive) (next-error -1)))
2485
- ```
2486
-
2487
- Then you can type `M-m` to start a build, or `M-up`/`M-down` to move
2488
- back and forth between errors.
2489
-
2490
- ## Fusing Google Mock Source Files ##
2491
-
2492
- Google Mock's implementation consists of dozens of files (excluding
2493
- its own tests). Sometimes you may want them to be packaged up in
2494
- fewer files instead, such that you can easily copy them to a new
2495
- machine and start hacking there. For this we provide an experimental
2496
- Python script `fuse_gmock_files.py` in the `scripts/` directory
2497
- (starting with release 1.2.0). Assuming you have Python 2.4 or above
2498
- installed on your machine, just go to that directory and run
2499
- ```
2500
- python fuse_gmock_files.py OUTPUT_DIR
2501
- ```
2502
-
2503
- and you should see an `OUTPUT_DIR` directory being created with files
2504
- `gtest/gtest.h`, `gmock/gmock.h`, and `gmock-gtest-all.cc` in it.
2505
- These three files contain everything you need to use Google Mock (and
2506
- Google Test). Just copy them to anywhere you want and you are ready
2507
- to write tests and use mocks. You can use the
2508
- [scrpts/test/Makefile](http://code.google.com/p/googlemock/source/browse/trunk/scripts/test/Makefile) file as an example on how to compile your tests
2509
- against them.
2510
-
2511
- # Extending Google Mock #
2512
-
2513
- ## Writing New Matchers Quickly ##
2514
-
2515
- The `MATCHER*` family of macros can be used to define custom matchers
2516
- easily. The syntax:
2517
-
2518
- ```
2519
- MATCHER(name, description_string_expression) { statements; }
2520
- ```
2521
-
2522
- will define a matcher with the given name that executes the
2523
- statements, which must return a `bool` to indicate if the match
2524
- succeeds. Inside the statements, you can refer to the value being
2525
- matched by `arg`, and refer to its type by `arg_type`.
2526
-
2527
- The description string is a `string`-typed expression that documents
2528
- what the matcher does, and is used to generate the failure message
2529
- when the match fails. It can (and should) reference the special
2530
- `bool` variable `negation`, and should evaluate to the description of
2531
- the matcher when `negation` is `false`, or that of the matcher's
2532
- negation when `negation` is `true`.
2533
-
2534
- For convenience, we allow the description string to be empty (`""`),
2535
- in which case Google Mock will use the sequence of words in the
2536
- matcher name as the description.
2537
-
2538
- For example:
2539
- ```
2540
- MATCHER(IsDivisibleBy7, "") { return (arg % 7) == 0; }
2541
- ```
2542
- allows you to write
2543
- ```
2544
- // Expects mock_foo.Bar(n) to be called where n is divisible by 7.
2545
- EXPECT_CALL(mock_foo, Bar(IsDivisibleBy7()));
2546
- ```
2547
- or,
2548
- ```
2549
- using ::testing::Not;
2550
- ...
2551
- EXPECT_THAT(some_expression, IsDivisibleBy7());
2552
- EXPECT_THAT(some_other_expression, Not(IsDivisibleBy7()));
2553
- ```
2554
- If the above assertions fail, they will print something like:
2555
- ```
2556
- Value of: some_expression
2557
- Expected: is divisible by 7
2558
- Actual: 27
2559
- ...
2560
- Value of: some_other_expression
2561
- Expected: not (is divisible by 7)
2562
- Actual: 21
2563
- ```
2564
- where the descriptions `"is divisible by 7"` and `"not (is divisible
2565
- by 7)"` are automatically calculated from the matcher name
2566
- `IsDivisibleBy7`.
2567
-
2568
- As you may have noticed, the auto-generated descriptions (especially
2569
- those for the negation) may not be so great. You can always override
2570
- them with a string expression of your own:
2571
- ```
2572
- MATCHER(IsDivisibleBy7, std::string(negation ? "isn't" : "is") +
2573
- " divisible by 7") {
2574
- return (arg % 7) == 0;
2575
- }
2576
- ```
2577
-
2578
- Optionally, you can stream additional information to a hidden argument
2579
- named `result_listener` to explain the match result. For example, a
2580
- better definition of `IsDivisibleBy7` is:
2581
- ```
2582
- MATCHER(IsDivisibleBy7, "") {
2583
- if ((arg % 7) == 0)
2584
- return true;
2585
-
2586
- *result_listener << "the remainder is " << (arg % 7);
2587
- return false;
2588
- }
2589
- ```
2590
-
2591
- With this definition, the above assertion will give a better message:
2592
- ```
2593
- Value of: some_expression
2594
- Expected: is divisible by 7
2595
- Actual: 27 (the remainder is 6)
2596
- ```
2597
-
2598
- You should let `MatchAndExplain()` print _any additional information_
2599
- that can help a user understand the match result. Note that it should
2600
- explain why the match succeeds in case of a success (unless it's
2601
- obvious) - this is useful when the matcher is used inside
2602
- `Not()`. There is no need to print the argument value itself, as
2603
- Google Mock already prints it for you.
2604
-
2605
- **Notes:**
2606
-
2607
- 1. The type of the value being matched (`arg_type`) is determined by the context in which you use the matcher and is supplied to you by the compiler, so you don't need to worry about declaring it (nor can you). This allows the matcher to be polymorphic. For example, `IsDivisibleBy7()` can be used to match any type where the value of `(arg % 7) == 0` can be implicitly converted to a `bool`. In the `Bar(IsDivisibleBy7())` example above, if method `Bar()` takes an `int`, `arg_type` will be `int`; if it takes an `unsigned long`, `arg_type` will be `unsigned long`; and so on.
2608
- 1. Google Mock doesn't guarantee when or how many times a matcher will be invoked. Therefore the matcher logic must be _purely functional_ (i.e. it cannot have any side effect, and the result must not depend on anything other than the value being matched and the matcher parameters). This requirement must be satisfied no matter how you define the matcher (e.g. using one of the methods described in the following recipes). In particular, a matcher can never call a mock function, as that will affect the state of the mock object and Google Mock.
2609
-
2610
- ## Writing New Parameterized Matchers Quickly ##
2611
-
2612
- Sometimes you'll want to define a matcher that has parameters. For that you
2613
- can use the macro:
2614
- ```
2615
- MATCHER_P(name, param_name, description_string) { statements; }
2616
- ```
2617
- where the description string can be either `""` or a string expression
2618
- that references `negation` and `param_name`.
2619
-
2620
- For example:
2621
- ```
2622
- MATCHER_P(HasAbsoluteValue, value, "") { return abs(arg) == value; }
2623
- ```
2624
- will allow you to write:
2625
- ```
2626
- EXPECT_THAT(Blah("a"), HasAbsoluteValue(n));
2627
- ```
2628
- which may lead to this message (assuming `n` is 10):
2629
- ```
2630
- Value of: Blah("a")
2631
- Expected: has absolute value 10
2632
- Actual: -9
2633
- ```
2634
-
2635
- Note that both the matcher description and its parameter are
2636
- printed, making the message human-friendly.
2637
-
2638
- In the matcher definition body, you can write `foo_type` to
2639
- reference the type of a parameter named `foo`. For example, in the
2640
- body of `MATCHER_P(HasAbsoluteValue, value)` above, you can write
2641
- `value_type` to refer to the type of `value`.
2642
-
2643
- Google Mock also provides `MATCHER_P2`, `MATCHER_P3`, ..., up to
2644
- `MATCHER_P10` to support multi-parameter matchers:
2645
- ```
2646
- MATCHER_Pk(name, param_1, ..., param_k, description_string) { statements; }
2647
- ```
2648
-
2649
- Please note that the custom description string is for a particular
2650
- **instance** of the matcher, where the parameters have been bound to
2651
- actual values. Therefore usually you'll want the parameter values to
2652
- be part of the description. Google Mock lets you do that by
2653
- referencing the matcher parameters in the description string
2654
- expression.
2655
-
2656
- For example,
2657
- ```
2658
- using ::testing::PrintToString;
2659
- MATCHER_P2(InClosedRange, low, hi,
2660
- std::string(negation ? "isn't" : "is") + " in range [" +
2661
- PrintToString(low) + ", " + PrintToString(hi) + "]") {
2662
- return low <= arg && arg <= hi;
2663
- }
2664
- ...
2665
- EXPECT_THAT(3, InClosedRange(4, 6));
2666
- ```
2667
- would generate a failure that contains the message:
2668
- ```
2669
- Expected: is in range [4, 6]
2670
- ```
2671
-
2672
- If you specify `""` as the description, the failure message will
2673
- contain the sequence of words in the matcher name followed by the
2674
- parameter values printed as a tuple. For example,
2675
- ```
2676
- MATCHER_P2(InClosedRange, low, hi, "") { ... }
2677
- ...
2678
- EXPECT_THAT(3, InClosedRange(4, 6));
2679
- ```
2680
- would generate a failure that contains the text:
2681
- ```
2682
- Expected: in closed range (4, 6)
2683
- ```
2684
-
2685
- For the purpose of typing, you can view
2686
- ```
2687
- MATCHER_Pk(Foo, p1, ..., pk, description_string) { ... }
2688
- ```
2689
- as shorthand for
2690
- ```
2691
- template <typename p1_type, ..., typename pk_type>
2692
- FooMatcherPk<p1_type, ..., pk_type>
2693
- Foo(p1_type p1, ..., pk_type pk) { ... }
2694
- ```
2695
-
2696
- When you write `Foo(v1, ..., vk)`, the compiler infers the types of
2697
- the parameters `v1`, ..., and `vk` for you. If you are not happy with
2698
- the result of the type inference, you can specify the types by
2699
- explicitly instantiating the template, as in `Foo<long, bool>(5, false)`.
2700
- As said earlier, you don't get to (or need to) specify
2701
- `arg_type` as that's determined by the context in which the matcher
2702
- is used.
2703
-
2704
- You can assign the result of expression `Foo(p1, ..., pk)` to a
2705
- variable of type `FooMatcherPk<p1_type, ..., pk_type>`. This can be
2706
- useful when composing matchers. Matchers that don't have a parameter
2707
- or have only one parameter have special types: you can assign `Foo()`
2708
- to a `FooMatcher`-typed variable, and assign `Foo(p)` to a
2709
- `FooMatcherP<p_type>`-typed variable.
2710
-
2711
- While you can instantiate a matcher template with reference types,
2712
- passing the parameters by pointer usually makes your code more
2713
- readable. If, however, you still want to pass a parameter by
2714
- reference, be aware that in the failure message generated by the
2715
- matcher you will see the value of the referenced object but not its
2716
- address.
2717
-
2718
- You can overload matchers with different numbers of parameters:
2719
- ```
2720
- MATCHER_P(Blah, a, description_string_1) { ... }
2721
- MATCHER_P2(Blah, a, b, description_string_2) { ... }
2722
- ```
2723
-
2724
- While it's tempting to always use the `MATCHER*` macros when defining
2725
- a new matcher, you should also consider implementing
2726
- `MatcherInterface` or using `MakePolymorphicMatcher()` instead (see
2727
- the recipes that follow), especially if you need to use the matcher a
2728
- lot. While these approaches require more work, they give you more
2729
- control on the types of the value being matched and the matcher
2730
- parameters, which in general leads to better compiler error messages
2731
- that pay off in the long run. They also allow overloading matchers
2732
- based on parameter types (as opposed to just based on the number of
2733
- parameters).
2734
-
2735
- ## Writing New Monomorphic Matchers ##
2736
-
2737
- A matcher of argument type `T` implements
2738
- `::testing::MatcherInterface<T>` and does two things: it tests whether a
2739
- value of type `T` matches the matcher, and can describe what kind of
2740
- values it matches. The latter ability is used for generating readable
2741
- error messages when expectations are violated.
2742
-
2743
- The interface looks like this:
2744
-
2745
- ```
2746
- class MatchResultListener {
2747
- public:
2748
- ...
2749
- // Streams x to the underlying ostream; does nothing if the ostream
2750
- // is NULL.
2751
- template <typename T>
2752
- MatchResultListener& operator<<(const T& x);
2753
-
2754
- // Returns the underlying ostream.
2755
- ::std::ostream* stream();
2756
- };
2757
-
2758
- template <typename T>
2759
- class MatcherInterface {
2760
- public:
2761
- virtual ~MatcherInterface();
2762
-
2763
- // Returns true iff the matcher matches x; also explains the match
2764
- // result to 'listener'.
2765
- virtual bool MatchAndExplain(T x, MatchResultListener* listener) const = 0;
2766
-
2767
- // Describes this matcher to an ostream.
2768
- virtual void DescribeTo(::std::ostream* os) const = 0;
2769
-
2770
- // Describes the negation of this matcher to an ostream.
2771
- virtual void DescribeNegationTo(::std::ostream* os) const;
2772
- };
2773
- ```
2774
-
2775
- If you need a custom matcher but `Truly()` is not a good option (for
2776
- example, you may not be happy with the way `Truly(predicate)`
2777
- describes itself, or you may want your matcher to be polymorphic as
2778
- `Eq(value)` is), you can define a matcher to do whatever you want in
2779
- two steps: first implement the matcher interface, and then define a
2780
- factory function to create a matcher instance. The second step is not
2781
- strictly needed but it makes the syntax of using the matcher nicer.
2782
-
2783
- For example, you can define a matcher to test whether an `int` is
2784
- divisible by 7 and then use it like this:
2785
- ```
2786
- using ::testing::MakeMatcher;
2787
- using ::testing::Matcher;
2788
- using ::testing::MatcherInterface;
2789
- using ::testing::MatchResultListener;
2790
-
2791
- class DivisibleBy7Matcher : public MatcherInterface<int> {
2792
- public:
2793
- virtual bool MatchAndExplain(int n, MatchResultListener* listener) const {
2794
- return (n % 7) == 0;
2795
- }
2796
-
2797
- virtual void DescribeTo(::std::ostream* os) const {
2798
- *os << "is divisible by 7";
2799
- }
2800
-
2801
- virtual void DescribeNegationTo(::std::ostream* os) const {
2802
- *os << "is not divisible by 7";
2803
- }
2804
- };
2805
-
2806
- inline Matcher<int> DivisibleBy7() {
2807
- return MakeMatcher(new DivisibleBy7Matcher);
2808
- }
2809
- ...
2810
-
2811
- EXPECT_CALL(foo, Bar(DivisibleBy7()));
2812
- ```
2813
-
2814
- You may improve the matcher message by streaming additional
2815
- information to the `listener` argument in `MatchAndExplain()`:
2816
-
2817
- ```
2818
- class DivisibleBy7Matcher : public MatcherInterface<int> {
2819
- public:
2820
- virtual bool MatchAndExplain(int n,
2821
- MatchResultListener* listener) const {
2822
- const int remainder = n % 7;
2823
- if (remainder != 0) {
2824
- *listener << "the remainder is " << remainder;
2825
- }
2826
- return remainder == 0;
2827
- }
2828
- ...
2829
- };
2830
- ```
2831
-
2832
- Then, `EXPECT_THAT(x, DivisibleBy7());` may general a message like this:
2833
- ```
2834
- Value of: x
2835
- Expected: is divisible by 7
2836
- Actual: 23 (the remainder is 2)
2837
- ```
2838
-
2839
- ## Writing New Polymorphic Matchers ##
2840
-
2841
- You've learned how to write your own matchers in the previous
2842
- recipe. Just one problem: a matcher created using `MakeMatcher()` only
2843
- works for one particular type of arguments. If you want a
2844
- _polymorphic_ matcher that works with arguments of several types (for
2845
- instance, `Eq(x)` can be used to match a `value` as long as `value` ==
2846
- `x` compiles -- `value` and `x` don't have to share the same type),
2847
- you can learn the trick from `"gmock/gmock-matchers.h"` but it's a bit
2848
- involved.
2849
-
2850
- Fortunately, most of the time you can define a polymorphic matcher
2851
- easily with the help of `MakePolymorphicMatcher()`. Here's how you can
2852
- define `NotNull()` as an example:
2853
-
2854
- ```
2855
- using ::testing::MakePolymorphicMatcher;
2856
- using ::testing::MatchResultListener;
2857
- using ::testing::NotNull;
2858
- using ::testing::PolymorphicMatcher;
2859
-
2860
- class NotNullMatcher {
2861
- public:
2862
- // To implement a polymorphic matcher, first define a COPYABLE class
2863
- // that has three members MatchAndExplain(), DescribeTo(), and
2864
- // DescribeNegationTo(), like the following.
2865
-
2866
- // In this example, we want to use NotNull() with any pointer, so
2867
- // MatchAndExplain() accepts a pointer of any type as its first argument.
2868
- // In general, you can define MatchAndExplain() as an ordinary method or
2869
- // a method template, or even overload it.
2870
- template <typename T>
2871
- bool MatchAndExplain(T* p,
2872
- MatchResultListener* /* listener */) const {
2873
- return p != NULL;
2874
- }
2875
-
2876
- // Describes the property of a value matching this matcher.
2877
- void DescribeTo(::std::ostream* os) const { *os << "is not NULL"; }
2878
-
2879
- // Describes the property of a value NOT matching this matcher.
2880
- void DescribeNegationTo(::std::ostream* os) const { *os << "is NULL"; }
2881
- };
2882
-
2883
- // To construct a polymorphic matcher, pass an instance of the class
2884
- // to MakePolymorphicMatcher(). Note the return type.
2885
- inline PolymorphicMatcher<NotNullMatcher> NotNull() {
2886
- return MakePolymorphicMatcher(NotNullMatcher());
2887
- }
2888
- ...
2889
-
2890
- EXPECT_CALL(foo, Bar(NotNull())); // The argument must be a non-NULL pointer.
2891
- ```
2892
-
2893
- **Note:** Your polymorphic matcher class does **not** need to inherit from
2894
- `MatcherInterface` or any other class, and its methods do **not** need
2895
- to be virtual.
2896
-
2897
- Like in a monomorphic matcher, you may explain the match result by
2898
- streaming additional information to the `listener` argument in
2899
- `MatchAndExplain()`.
2900
-
2901
- ## Writing New Cardinalities ##
2902
-
2903
- A cardinality is used in `Times()` to tell Google Mock how many times
2904
- you expect a call to occur. It doesn't have to be exact. For example,
2905
- you can say `AtLeast(5)` or `Between(2, 4)`.
2906
-
2907
- If the built-in set of cardinalities doesn't suit you, you are free to
2908
- define your own by implementing the following interface (in namespace
2909
- `testing`):
2910
-
2911
- ```
2912
- class CardinalityInterface {
2913
- public:
2914
- virtual ~CardinalityInterface();
2915
-
2916
- // Returns true iff call_count calls will satisfy this cardinality.
2917
- virtual bool IsSatisfiedByCallCount(int call_count) const = 0;
2918
-
2919
- // Returns true iff call_count calls will saturate this cardinality.
2920
- virtual bool IsSaturatedByCallCount(int call_count) const = 0;
2921
-
2922
- // Describes self to an ostream.
2923
- virtual void DescribeTo(::std::ostream* os) const = 0;
2924
- };
2925
- ```
2926
-
2927
- For example, to specify that a call must occur even number of times,
2928
- you can write
2929
-
2930
- ```
2931
- using ::testing::Cardinality;
2932
- using ::testing::CardinalityInterface;
2933
- using ::testing::MakeCardinality;
2934
-
2935
- class EvenNumberCardinality : public CardinalityInterface {
2936
- public:
2937
- virtual bool IsSatisfiedByCallCount(int call_count) const {
2938
- return (call_count % 2) == 0;
2939
- }
2940
-
2941
- virtual bool IsSaturatedByCallCount(int call_count) const {
2942
- return false;
2943
- }
2944
-
2945
- virtual void DescribeTo(::std::ostream* os) const {
2946
- *os << "called even number of times";
2947
- }
2948
- };
2949
-
2950
- Cardinality EvenNumber() {
2951
- return MakeCardinality(new EvenNumberCardinality);
2952
- }
2953
- ...
2954
-
2955
- EXPECT_CALL(foo, Bar(3))
2956
- .Times(EvenNumber());
2957
- ```
2958
-
2959
- ## Writing New Actions Quickly ##
2960
-
2961
- If the built-in actions don't work for you, and you find it
2962
- inconvenient to use `Invoke()`, you can use a macro from the `ACTION*`
2963
- family to quickly define a new action that can be used in your code as
2964
- if it's a built-in action.
2965
-
2966
- By writing
2967
- ```
2968
- ACTION(name) { statements; }
2969
- ```
2970
- in a namespace scope (i.e. not inside a class or function), you will
2971
- define an action with the given name that executes the statements.
2972
- The value returned by `statements` will be used as the return value of
2973
- the action. Inside the statements, you can refer to the K-th
2974
- (0-based) argument of the mock function as `argK`. For example:
2975
- ```
2976
- ACTION(IncrementArg1) { return ++(*arg1); }
2977
- ```
2978
- allows you to write
2979
- ```
2980
- ... WillOnce(IncrementArg1());
2981
- ```
2982
-
2983
- Note that you don't need to specify the types of the mock function
2984
- arguments. Rest assured that your code is type-safe though:
2985
- you'll get a compiler error if `*arg1` doesn't support the `++`
2986
- operator, or if the type of `++(*arg1)` isn't compatible with the mock
2987
- function's return type.
2988
-
2989
- Another example:
2990
- ```
2991
- ACTION(Foo) {
2992
- (*arg2)(5);
2993
- Blah();
2994
- *arg1 = 0;
2995
- return arg0;
2996
- }
2997
- ```
2998
- defines an action `Foo()` that invokes argument #2 (a function pointer)
2999
- with 5, calls function `Blah()`, sets the value pointed to by argument
3000
- #1 to 0, and returns argument #0.
3001
-
3002
- For more convenience and flexibility, you can also use the following
3003
- pre-defined symbols in the body of `ACTION`:
3004
-
3005
- | `argK_type` | The type of the K-th (0-based) argument of the mock function |
3006
- |:------------|:-------------------------------------------------------------|
3007
- | `args` | All arguments of the mock function as a tuple |
3008
- | `args_type` | The type of all arguments of the mock function as a tuple |
3009
- | `return_type` | The return type of the mock function |
3010
- | `function_type` | The type of the mock function |
3011
-
3012
- For example, when using an `ACTION` as a stub action for mock function:
3013
- ```
3014
- int DoSomething(bool flag, int* ptr);
3015
- ```
3016
- we have:
3017
- | **Pre-defined Symbol** | **Is Bound To** |
3018
- |:-----------------------|:----------------|
3019
- | `arg0` | the value of `flag` |
3020
- | `arg0_type` | the type `bool` |
3021
- | `arg1` | the value of `ptr` |
3022
- | `arg1_type` | the type `int*` |
3023
- | `args` | the tuple `(flag, ptr)` |
3024
- | `args_type` | the type `std::tr1::tuple<bool, int*>` |
3025
- | `return_type` | the type `int` |
3026
- | `function_type` | the type `int(bool, int*)` |
3027
-
3028
- ## Writing New Parameterized Actions Quickly ##
3029
-
3030
- Sometimes you'll want to parameterize an action you define. For that
3031
- we have another macro
3032
- ```
3033
- ACTION_P(name, param) { statements; }
3034
- ```
3035
-
3036
- For example,
3037
- ```
3038
- ACTION_P(Add, n) { return arg0 + n; }
3039
- ```
3040
- will allow you to write
3041
- ```
3042
- // Returns argument #0 + 5.
3043
- ... WillOnce(Add(5));
3044
- ```
3045
-
3046
- For convenience, we use the term _arguments_ for the values used to
3047
- invoke the mock function, and the term _parameters_ for the values
3048
- used to instantiate an action.
3049
-
3050
- Note that you don't need to provide the type of the parameter either.
3051
- Suppose the parameter is named `param`, you can also use the
3052
- Google-Mock-defined symbol `param_type` to refer to the type of the
3053
- parameter as inferred by the compiler. For example, in the body of
3054
- `ACTION_P(Add, n)` above, you can write `n_type` for the type of `n`.
3055
-
3056
- Google Mock also provides `ACTION_P2`, `ACTION_P3`, and etc to support
3057
- multi-parameter actions. For example,
3058
- ```
3059
- ACTION_P2(ReturnDistanceTo, x, y) {
3060
- double dx = arg0 - x;
3061
- double dy = arg1 - y;
3062
- return sqrt(dx*dx + dy*dy);
3063
- }
3064
- ```
3065
- lets you write
3066
- ```
3067
- ... WillOnce(ReturnDistanceTo(5.0, 26.5));
3068
- ```
3069
-
3070
- You can view `ACTION` as a degenerated parameterized action where the
3071
- number of parameters is 0.
3072
-
3073
- You can also easily define actions overloaded on the number of parameters:
3074
- ```
3075
- ACTION_P(Plus, a) { ... }
3076
- ACTION_P2(Plus, a, b) { ... }
3077
- ```
3078
-
3079
- ## Restricting the Type of an Argument or Parameter in an ACTION ##
3080
-
3081
- For maximum brevity and reusability, the `ACTION*` macros don't ask
3082
- you to provide the types of the mock function arguments and the action
3083
- parameters. Instead, we let the compiler infer the types for us.
3084
-
3085
- Sometimes, however, we may want to be more explicit about the types.
3086
- There are several tricks to do that. For example:
3087
- ```
3088
- ACTION(Foo) {
3089
- // Makes sure arg0 can be converted to int.
3090
- int n = arg0;
3091
- ... use n instead of arg0 here ...
3092
- }
3093
-
3094
- ACTION_P(Bar, param) {
3095
- // Makes sure the type of arg1 is const char*.
3096
- ::testing::StaticAssertTypeEq<const char*, arg1_type>();
3097
-
3098
- // Makes sure param can be converted to bool.
3099
- bool flag = param;
3100
- }
3101
- ```
3102
- where `StaticAssertTypeEq` is a compile-time assertion in Google Test
3103
- that verifies two types are the same.
3104
-
3105
- ## Writing New Action Templates Quickly ##
3106
-
3107
- Sometimes you want to give an action explicit template parameters that
3108
- cannot be inferred from its value parameters. `ACTION_TEMPLATE()`
3109
- supports that and can be viewed as an extension to `ACTION()` and
3110
- `ACTION_P*()`.
3111
-
3112
- The syntax:
3113
- ```
3114
- ACTION_TEMPLATE(ActionName,
3115
- HAS_m_TEMPLATE_PARAMS(kind1, name1, ..., kind_m, name_m),
3116
- AND_n_VALUE_PARAMS(p1, ..., p_n)) { statements; }
3117
- ```
3118
-
3119
- defines an action template that takes _m_ explicit template parameters
3120
- and _n_ value parameters, where _m_ is between 1 and 10, and _n_ is
3121
- between 0 and 10. `name_i` is the name of the i-th template
3122
- parameter, and `kind_i` specifies whether it's a `typename`, an
3123
- integral constant, or a template. `p_i` is the name of the i-th value
3124
- parameter.
3125
-
3126
- Example:
3127
- ```
3128
- // DuplicateArg<k, T>(output) converts the k-th argument of the mock
3129
- // function to type T and copies it to *output.
3130
- ACTION_TEMPLATE(DuplicateArg,
3131
- // Note the comma between int and k:
3132
- HAS_2_TEMPLATE_PARAMS(int, k, typename, T),
3133
- AND_1_VALUE_PARAMS(output)) {
3134
- *output = T(std::tr1::get<k>(args));
3135
- }
3136
- ```
3137
-
3138
- To create an instance of an action template, write:
3139
- ```
3140
- ActionName<t1, ..., t_m>(v1, ..., v_n)
3141
- ```
3142
- where the `t`s are the template arguments and the
3143
- `v`s are the value arguments. The value argument
3144
- types are inferred by the compiler. For example:
3145
- ```
3146
- using ::testing::_;
3147
- ...
3148
- int n;
3149
- EXPECT_CALL(mock, Foo(_, _))
3150
- .WillOnce(DuplicateArg<1, unsigned char>(&n));
3151
- ```
3152
-
3153
- If you want to explicitly specify the value argument types, you can
3154
- provide additional template arguments:
3155
- ```
3156
- ActionName<t1, ..., t_m, u1, ..., u_k>(v1, ..., v_n)
3157
- ```
3158
- where `u_i` is the desired type of `v_i`.
3159
-
3160
- `ACTION_TEMPLATE` and `ACTION`/`ACTION_P*` can be overloaded on the
3161
- number of value parameters, but not on the number of template
3162
- parameters. Without the restriction, the meaning of the following is
3163
- unclear:
3164
-
3165
- ```
3166
- OverloadedAction<int, bool>(x);
3167
- ```
3168
-
3169
- Are we using a single-template-parameter action where `bool` refers to
3170
- the type of `x`, or a two-template-parameter action where the compiler
3171
- is asked to infer the type of `x`?
3172
-
3173
- ## Using the ACTION Object's Type ##
3174
-
3175
- If you are writing a function that returns an `ACTION` object, you'll
3176
- need to know its type. The type depends on the macro used to define
3177
- the action and the parameter types. The rule is relatively simple:
3178
- | **Given Definition** | **Expression** | **Has Type** |
3179
- |:---------------------|:---------------|:-------------|
3180
- | `ACTION(Foo)` | `Foo()` | `FooAction` |
3181
- | `ACTION_TEMPLATE(Foo, HAS_m_TEMPLATE_PARAMS(...), AND_0_VALUE_PARAMS())` | `Foo<t1, ..., t_m>()` | `FooAction<t1, ..., t_m>` |
3182
- | `ACTION_P(Bar, param)` | `Bar(int_value)` | `BarActionP<int>` |
3183
- | `ACTION_TEMPLATE(Bar, HAS_m_TEMPLATE_PARAMS(...), AND_1_VALUE_PARAMS(p1))` | `Bar<t1, ..., t_m>(int_value)` | `FooActionP<t1, ..., t_m, int>` |
3184
- | `ACTION_P2(Baz, p1, p2)` | `Baz(bool_value, int_value)` | `BazActionP2<bool, int>` |
3185
- | `ACTION_TEMPLATE(Baz, HAS_m_TEMPLATE_PARAMS(...), AND_2_VALUE_PARAMS(p1, p2))` | `Baz<t1, ..., t_m>(bool_value, int_value)` | `FooActionP2<t1, ..., t_m, bool, int>` |
3186
- | ... | ... | ... |
3187
-
3188
- Note that we have to pick different suffixes (`Action`, `ActionP`,
3189
- `ActionP2`, and etc) for actions with different numbers of value
3190
- parameters, or the action definitions cannot be overloaded on the
3191
- number of them.
3192
-
3193
- ## Writing New Monomorphic Actions ##
3194
-
3195
- While the `ACTION*` macros are very convenient, sometimes they are
3196
- inappropriate. For example, despite the tricks shown in the previous
3197
- recipes, they don't let you directly specify the types of the mock
3198
- function arguments and the action parameters, which in general leads
3199
- to unoptimized compiler error messages that can baffle unfamiliar
3200
- users. They also don't allow overloading actions based on parameter
3201
- types without jumping through some hoops.
3202
-
3203
- An alternative to the `ACTION*` macros is to implement
3204
- `::testing::ActionInterface<F>`, where `F` is the type of the mock
3205
- function in which the action will be used. For example:
3206
-
3207
- ```
3208
- template <typename F>class ActionInterface {
3209
- public:
3210
- virtual ~ActionInterface();
3211
-
3212
- // Performs the action. Result is the return type of function type
3213
- // F, and ArgumentTuple is the tuple of arguments of F.
3214
- //
3215
- // For example, if F is int(bool, const string&), then Result would
3216
- // be int, and ArgumentTuple would be tr1::tuple<bool, const string&>.
3217
- virtual Result Perform(const ArgumentTuple& args) = 0;
3218
- };
3219
-
3220
- using ::testing::_;
3221
- using ::testing::Action;
3222
- using ::testing::ActionInterface;
3223
- using ::testing::MakeAction;
3224
-
3225
- typedef int IncrementMethod(int*);
3226
-
3227
- class IncrementArgumentAction : public ActionInterface<IncrementMethod> {
3228
- public:
3229
- virtual int Perform(const tr1::tuple<int*>& args) {
3230
- int* p = tr1::get<0>(args); // Grabs the first argument.
3231
- return *p++;
3232
- }
3233
- };
3234
-
3235
- Action<IncrementMethod> IncrementArgument() {
3236
- return MakeAction(new IncrementArgumentAction);
3237
- }
3238
- ...
3239
-
3240
- EXPECT_CALL(foo, Baz(_))
3241
- .WillOnce(IncrementArgument());
3242
-
3243
- int n = 5;
3244
- foo.Baz(&n); // Should return 5 and change n to 6.
3245
- ```
3246
-
3247
- ## Writing New Polymorphic Actions ##
3248
-
3249
- The previous recipe showed you how to define your own action. This is
3250
- all good, except that you need to know the type of the function in
3251
- which the action will be used. Sometimes that can be a problem. For
3252
- example, if you want to use the action in functions with _different_
3253
- types (e.g. like `Return()` and `SetArgPointee()`).
3254
-
3255
- If an action can be used in several types of mock functions, we say
3256
- it's _polymorphic_. The `MakePolymorphicAction()` function template
3257
- makes it easy to define such an action:
3258
-
3259
- ```
3260
- namespace testing {
3261
-
3262
- template <typename Impl>
3263
- PolymorphicAction<Impl> MakePolymorphicAction(const Impl& impl);
3264
-
3265
- } // namespace testing
3266
- ```
3267
-
3268
- As an example, let's define an action that returns the second argument
3269
- in the mock function's argument list. The first step is to define an
3270
- implementation class:
3271
-
3272
- ```
3273
- class ReturnSecondArgumentAction {
3274
- public:
3275
- template <typename Result, typename ArgumentTuple>
3276
- Result Perform(const ArgumentTuple& args) const {
3277
- // To get the i-th (0-based) argument, use tr1::get<i>(args).
3278
- return tr1::get<1>(args);
3279
- }
3280
- };
3281
- ```
3282
-
3283
- This implementation class does _not_ need to inherit from any
3284
- particular class. What matters is that it must have a `Perform()`
3285
- method template. This method template takes the mock function's
3286
- arguments as a tuple in a **single** argument, and returns the result of
3287
- the action. It can be either `const` or not, but must be invokable
3288
- with exactly one template argument, which is the result type. In other
3289
- words, you must be able to call `Perform<R>(args)` where `R` is the
3290
- mock function's return type and `args` is its arguments in a tuple.
3291
-
3292
- Next, we use `MakePolymorphicAction()` to turn an instance of the
3293
- implementation class into the polymorphic action we need. It will be
3294
- convenient to have a wrapper for this:
3295
-
3296
- ```
3297
- using ::testing::MakePolymorphicAction;
3298
- using ::testing::PolymorphicAction;
3299
-
3300
- PolymorphicAction<ReturnSecondArgumentAction> ReturnSecondArgument() {
3301
- return MakePolymorphicAction(ReturnSecondArgumentAction());
3302
- }
3303
- ```
3304
-
3305
- Now, you can use this polymorphic action the same way you use the
3306
- built-in ones:
3307
-
3308
- ```
3309
- using ::testing::_;
3310
-
3311
- class MockFoo : public Foo {
3312
- public:
3313
- MOCK_METHOD2(DoThis, int(bool flag, int n));
3314
- MOCK_METHOD3(DoThat, string(int x, const char* str1, const char* str2));
3315
- };
3316
- ...
3317
-
3318
- MockFoo foo;
3319
- EXPECT_CALL(foo, DoThis(_, _))
3320
- .WillOnce(ReturnSecondArgument());
3321
- EXPECT_CALL(foo, DoThat(_, _, _))
3322
- .WillOnce(ReturnSecondArgument());
3323
- ...
3324
- foo.DoThis(true, 5); // Will return 5.
3325
- foo.DoThat(1, "Hi", "Bye"); // Will return "Hi".
3326
- ```
3327
-
3328
- ## Teaching Google Mock How to Print Your Values ##
3329
-
3330
- When an uninteresting or unexpected call occurs, Google Mock prints the
3331
- argument values and the stack trace to help you debug. Assertion
3332
- macros like `EXPECT_THAT` and `EXPECT_EQ` also print the values in
3333
- question when the assertion fails. Google Mock and Google Test do this using
3334
- Google Test's user-extensible value printer.
3335
-
3336
- This printer knows how to print built-in C++ types, native arrays, STL
3337
- containers, and any type that supports the `<<` operator. For other
3338
- types, it prints the raw bytes in the value and hopes that you the
3339
- user can figure it out.
3340
- [Google Test's advanced guide](http://code.google.com/p/googletest/wiki/V1_6_AdvancedGuide#Teaching_Google_Test_How_to_Print_Your_Values)
3341
- explains how to extend the printer to do a better job at
3342
- printing your particular type than to dump the bytes.