couchbase 4.2.2 → 4.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1670) hide show
  1. package/deps/couchbase-cxx-client/.github/workflows/sanitizers.yml +20 -12
  2. package/deps/couchbase-cxx-client/.github/workflows/tests.yml +5 -3
  3. package/deps/couchbase-cxx-client/.idea/vcs.xml +2 -0
  4. package/deps/couchbase-cxx-client/CMakeLists.txt +67 -8
  5. package/deps/couchbase-cxx-client/README.md +1 -0
  6. package/deps/couchbase-cxx-client/bin/build-tests +3 -0
  7. package/deps/couchbase-cxx-client/bin/build-tests.rb +9 -0
  8. package/deps/couchbase-cxx-client/bin/create-search-index +164 -0
  9. package/deps/couchbase-cxx-client/bin/init-cluster +84 -12
  10. package/deps/couchbase-cxx-client/bin/run-unit-tests +62 -6
  11. package/deps/couchbase-cxx-client/bin/travel-sample-index-v6.json +184 -0
  12. package/deps/couchbase-cxx-client/bin/travel-sample-index.json +188 -0
  13. package/deps/couchbase-cxx-client/cmake/CompilerWarnings.cmake +12 -4
  14. package/deps/couchbase-cxx-client/cmake/Documentation.cmake +4 -4
  15. package/deps/couchbase-cxx-client/cmake/OpenSSL.cmake +147 -7
  16. package/deps/couchbase-cxx-client/cmake/Testing.cmake +12 -4
  17. package/deps/couchbase-cxx-client/cmake/ThirdPartyDependencies.cmake +4 -0
  18. package/deps/couchbase-cxx-client/cmake/VersionInfo.cmake +39 -3
  19. package/deps/couchbase-cxx-client/cmake/build_config.hxx.in +3 -0
  20. package/deps/couchbase-cxx-client/cmake/test_openssl.cxx +7 -0
  21. package/deps/couchbase-cxx-client/core/bucket.cxx +183 -151
  22. package/deps/couchbase-cxx-client/core/bucket.hxx +23 -1
  23. package/deps/couchbase-cxx-client/core/cluster.hxx +18 -1
  24. package/deps/couchbase-cxx-client/core/cluster_options.cxx +2 -2
  25. package/deps/couchbase-cxx-client/core/cluster_options.hxx +4 -7
  26. package/deps/couchbase-cxx-client/core/cluster_options_fwd.hxx +26 -0
  27. package/deps/couchbase-cxx-client/core/config_profile.hxx +2 -65
  28. package/deps/couchbase-cxx-client/core/config_profiles.cxx +79 -0
  29. package/deps/couchbase-cxx-client/core/config_profiles.hxx +56 -0
  30. package/deps/couchbase-cxx-client/core/crypto/CMakeLists.txt +5 -1
  31. package/deps/couchbase-cxx-client/core/error_context/analytics.hxx +2 -1
  32. package/deps/couchbase-cxx-client/core/error_context/http.hxx +2 -1
  33. package/deps/couchbase-cxx-client/core/error_context/key_value.cxx +2 -1
  34. package/deps/couchbase-cxx-client/core/error_context/key_value.hxx +10 -12
  35. package/deps/couchbase-cxx-client/core/error_context/query.hxx +2 -1
  36. package/deps/couchbase-cxx-client/core/error_context/search.hxx +3 -2
  37. package/deps/couchbase-cxx-client/core/error_context/view.hxx +2 -1
  38. package/deps/couchbase-cxx-client/core/impl/analytics.cxx +237 -0
  39. package/deps/couchbase-cxx-client/core/impl/boolean_field_query.cxx +40 -0
  40. package/deps/couchbase-cxx-client/core/impl/boolean_query.cxx +62 -0
  41. package/deps/couchbase-cxx-client/core/impl/cluster.cxx +2 -1
  42. package/deps/couchbase-cxx-client/core/impl/collection_query_index_manager.cxx +3 -3
  43. package/deps/couchbase-cxx-client/core/impl/conjunction_query.cxx +51 -0
  44. package/deps/couchbase-cxx-client/core/impl/date_range.cxx +89 -0
  45. package/deps/couchbase-cxx-client/core/impl/date_range_facet.cxx +54 -0
  46. package/deps/couchbase-cxx-client/core/impl/date_range_facet_result.cxx +64 -0
  47. package/deps/couchbase-cxx-client/core/impl/date_range_query.cxx +125 -0
  48. package/deps/couchbase-cxx-client/core/impl/disjunction_query.cxx +51 -0
  49. package/deps/couchbase-cxx-client/core/impl/dns_srv_tracker.cxx +5 -3
  50. package/deps/couchbase-cxx-client/core/impl/encoded_search_facet.hxx +29 -0
  51. package/deps/couchbase-cxx-client/core/impl/encoded_search_query.hxx +29 -0
  52. package/deps/couchbase-cxx-client/core/impl/encoded_search_sort.hxx +29 -0
  53. package/deps/couchbase-cxx-client/core/impl/geo_bounding_box_query.cxx +46 -0
  54. package/deps/couchbase-cxx-client/core/impl/geo_distance_query.cxx +43 -0
  55. package/deps/couchbase-cxx-client/core/impl/geo_polygon_query.cxx +46 -0
  56. package/deps/couchbase-cxx-client/core/impl/get_all_query_indexes.cxx +3 -3
  57. package/deps/couchbase-cxx-client/core/impl/internal_date_range_facet_result.cxx +80 -0
  58. package/deps/couchbase-cxx-client/core/impl/internal_date_range_facet_result.hxx +48 -0
  59. package/deps/couchbase-cxx-client/core/impl/internal_numeric_range_facet_result.cxx +80 -0
  60. package/deps/couchbase-cxx-client/core/impl/internal_numeric_range_facet_result.hxx +48 -0
  61. package/deps/couchbase-cxx-client/core/impl/internal_search_error_context.cxx +141 -0
  62. package/deps/couchbase-cxx-client/core/impl/internal_search_error_context.hxx +61 -0
  63. package/deps/couchbase-cxx-client/core/impl/internal_search_meta_data.cxx +60 -0
  64. package/deps/couchbase-cxx-client/core/impl/internal_search_meta_data.hxx +41 -0
  65. package/deps/couchbase-cxx-client/core/impl/internal_search_result.cxx +84 -0
  66. package/deps/couchbase-cxx-client/core/impl/internal_search_result.hxx +43 -0
  67. package/deps/couchbase-cxx-client/core/impl/internal_search_row.cxx +82 -0
  68. package/deps/couchbase-cxx-client/core/impl/internal_search_row.hxx +56 -0
  69. package/deps/couchbase-cxx-client/core/impl/internal_search_row_location.hxx +32 -0
  70. package/deps/couchbase-cxx-client/core/impl/internal_search_row_locations.cxx +137 -0
  71. package/deps/couchbase-cxx-client/core/impl/internal_search_row_locations.hxx +45 -0
  72. package/deps/couchbase-cxx-client/core/impl/internal_term_facet_result.cxx +80 -0
  73. package/deps/couchbase-cxx-client/core/impl/internal_term_facet_result.hxx +48 -0
  74. package/deps/couchbase-cxx-client/core/impl/key_value_error_context.cxx +98 -0
  75. package/deps/couchbase-cxx-client/core/impl/match_all_query.cxx +35 -0
  76. package/deps/couchbase-cxx-client/core/impl/match_none_query.cxx +35 -0
  77. package/deps/couchbase-cxx-client/core/impl/match_phrase_query.cxx +43 -0
  78. package/deps/couchbase-cxx-client/core/impl/match_query.cxx +59 -0
  79. package/deps/couchbase-cxx-client/core/impl/numeric_range.cxx +49 -0
  80. package/deps/couchbase-cxx-client/core/impl/numeric_range_facet.cxx +54 -0
  81. package/deps/couchbase-cxx-client/core/impl/numeric_range_facet_result.cxx +64 -0
  82. package/deps/couchbase-cxx-client/core/impl/numeric_range_query.cxx +56 -0
  83. package/deps/couchbase-cxx-client/core/impl/phrase_query.cxx +42 -0
  84. package/deps/couchbase-cxx-client/core/impl/prefix_query.cxx +40 -0
  85. package/deps/couchbase-cxx-client/core/impl/query.cxx +19 -17
  86. package/deps/couchbase-cxx-client/core/impl/query_error_context.cxx +75 -0
  87. package/deps/couchbase-cxx-client/core/impl/query_string_query.cxx +37 -0
  88. package/deps/couchbase-cxx-client/core/impl/regexp_query.cxx +40 -0
  89. package/deps/couchbase-cxx-client/core/impl/search.cxx +191 -0
  90. package/deps/couchbase-cxx-client/core/impl/search_error_context.cxx +147 -0
  91. package/deps/couchbase-cxx-client/core/impl/search_meta_data.cxx +46 -0
  92. package/deps/couchbase-cxx-client/core/impl/search_result.cxx +66 -0
  93. package/deps/couchbase-cxx-client/core/impl/search_row.cxx +74 -0
  94. package/deps/couchbase-cxx-client/core/impl/search_row_location.cxx +64 -0
  95. package/deps/couchbase-cxx-client/core/impl/search_row_locations.cxx +66 -0
  96. package/deps/couchbase-cxx-client/core/impl/search_sort_field.cxx +104 -0
  97. package/deps/couchbase-cxx-client/core/impl/search_sort_id.cxx +43 -0
  98. package/deps/couchbase-cxx-client/core/impl/search_sort_score.cxx +43 -0
  99. package/deps/couchbase-cxx-client/core/impl/subdoc/lookup_in_macro.cxx +1 -0
  100. package/deps/couchbase-cxx-client/core/impl/subdoc/mutate_in_macro.cxx +1 -0
  101. package/deps/couchbase-cxx-client/core/impl/term_facet.cxx +36 -0
  102. package/deps/couchbase-cxx-client/core/impl/term_facet_result.cxx +64 -0
  103. package/deps/couchbase-cxx-client/core/impl/term_query.cxx +56 -0
  104. package/deps/couchbase-cxx-client/core/impl/term_range_query.cxx +57 -0
  105. package/deps/couchbase-cxx-client/core/impl/transaction_get_result.cxx +54 -0
  106. package/deps/couchbase-cxx-client/core/impl/wildcard_query.cxx +40 -0
  107. package/deps/couchbase-cxx-client/core/io/dns_client.cxx +225 -0
  108. package/deps/couchbase-cxx-client/core/io/dns_client.hxx +19 -188
  109. package/deps/couchbase-cxx-client/core/io/http_context.hxx +1 -1
  110. package/deps/couchbase-cxx-client/core/io/http_session.hxx +10 -0
  111. package/deps/couchbase-cxx-client/core/io/http_session_manager.hxx +5 -3
  112. package/deps/couchbase-cxx-client/core/io/mcbp_command.hxx +9 -2
  113. package/deps/couchbase-cxx-client/core/io/mcbp_session.cxx +79 -35
  114. package/deps/couchbase-cxx-client/core/io/mcbp_session.hxx +4 -3
  115. package/deps/couchbase-cxx-client/core/io/retry_orchestrator.hxx +3 -2
  116. package/deps/couchbase-cxx-client/core/json_string.hxx +5 -0
  117. package/deps/couchbase-cxx-client/core/meta/CMakeLists.txt +7 -5
  118. package/deps/couchbase-cxx-client/core/meta/version.cxx +37 -4
  119. package/deps/couchbase-cxx-client/core/mozilla_ca_bundle.hxx +39 -0
  120. package/deps/couchbase-cxx-client/core/operations/document_analytics.cxx +1 -0
  121. package/deps/couchbase-cxx-client/core/operations/document_analytics.hxx +1 -0
  122. package/deps/couchbase-cxx-client/core/operations/document_append.hxx +1 -1
  123. package/deps/couchbase-cxx-client/core/operations/document_decrement.hxx +1 -1
  124. package/deps/couchbase-cxx-client/core/operations/document_exists.hxx +1 -1
  125. package/deps/couchbase-cxx-client/core/operations/document_get.hxx +1 -1
  126. package/deps/couchbase-cxx-client/core/operations/document_get_and_lock.hxx +1 -1
  127. package/deps/couchbase-cxx-client/core/operations/document_get_and_touch.hxx +1 -1
  128. package/deps/couchbase-cxx-client/core/operations/document_get_projected.hxx +1 -1
  129. package/deps/couchbase-cxx-client/core/operations/document_increment.hxx +1 -1
  130. package/deps/couchbase-cxx-client/core/operations/document_insert.hxx +1 -1
  131. package/deps/couchbase-cxx-client/core/operations/document_lookup_in.hxx +1 -1
  132. package/deps/couchbase-cxx-client/core/operations/document_mutate_in.hxx +1 -1
  133. package/deps/couchbase-cxx-client/core/operations/document_prepend.hxx +1 -1
  134. package/deps/couchbase-cxx-client/core/operations/document_query.cxx +2 -0
  135. package/deps/couchbase-cxx-client/core/operations/document_query.hxx +6 -0
  136. package/deps/couchbase-cxx-client/core/operations/document_remove.hxx +1 -1
  137. package/deps/couchbase-cxx-client/core/operations/document_replace.hxx +1 -1
  138. package/deps/couchbase-cxx-client/core/operations/document_search.cxx +9 -3
  139. package/deps/couchbase-cxx-client/core/operations/document_search.hxx +2 -2
  140. package/deps/couchbase-cxx-client/core/operations/document_touch.hxx +1 -1
  141. package/deps/couchbase-cxx-client/core/operations/document_unlock.hxx +1 -1
  142. package/deps/couchbase-cxx-client/core/operations/document_upsert.hxx +1 -1
  143. package/deps/couchbase-cxx-client/core/operations/document_view.hxx +1 -0
  144. package/deps/couchbase-cxx-client/core/operations/management/analytics_problem.hxx +2 -1
  145. package/deps/couchbase-cxx-client/core/operations/management/eventing_problem.hxx +2 -1
  146. package/deps/couchbase-cxx-client/core/platform/base64.cc +2 -1
  147. package/deps/couchbase-cxx-client/core/protocol/client_opcode.hxx +1 -0
  148. package/deps/couchbase-cxx-client/core/protocol/client_request.hxx +11 -2
  149. package/deps/couchbase-cxx-client/core/protocol/client_response.hxx +1 -0
  150. package/deps/couchbase-cxx-client/core/protocol/cmd_info.hxx +2 -1
  151. package/deps/couchbase-cxx-client/core/public_fwd.hxx +21 -0
  152. package/deps/couchbase-cxx-client/core/tls_verify_mode.hxx +26 -0
  153. package/deps/couchbase-cxx-client/core/topology/configuration.cxx +15 -2
  154. package/deps/couchbase-cxx-client/core/topology/configuration.hxx +5 -1
  155. package/deps/couchbase-cxx-client/core/transactions/active_transaction_record.hxx +2 -2
  156. package/deps/couchbase-cxx-client/core/transactions/atr_cleanup_entry.cxx +1 -0
  157. package/deps/couchbase-cxx-client/core/transactions/atr_ids.cxx +1 -1
  158. package/deps/couchbase-cxx-client/core/transactions/attempt_context_impl.cxx +78 -44
  159. package/deps/couchbase-cxx-client/core/transactions/attempt_context_impl.hxx +90 -59
  160. package/deps/couchbase-cxx-client/core/transactions/attempt_context_testing_hooks.cxx +93 -0
  161. package/deps/couchbase-cxx-client/core/transactions/attempt_context_testing_hooks.hxx +48 -75
  162. package/deps/couchbase-cxx-client/core/transactions/cleanup_testing_hooks.cxx +52 -0
  163. package/deps/couchbase-cxx-client/core/transactions/cleanup_testing_hooks.hxx +17 -31
  164. package/deps/couchbase-cxx-client/core/transactions/exceptions.cxx +0 -1
  165. package/deps/couchbase-cxx-client/core/transactions/exceptions.hxx +14 -11
  166. package/deps/couchbase-cxx-client/core/transactions/forward_compat.hxx +2 -2
  167. package/deps/couchbase-cxx-client/core/transactions/internal/transaction_context.hxx +14 -14
  168. package/deps/couchbase-cxx-client/core/transactions/internal/transaction_fields.hxx +1 -0
  169. package/deps/couchbase-cxx-client/core/transactions/internal/transactions_cleanup.hxx +7 -1
  170. package/deps/couchbase-cxx-client/core/transactions/staged_mutation.cxx +1 -1
  171. package/deps/couchbase-cxx-client/core/transactions/staged_mutation.hxx +12 -2
  172. package/deps/couchbase-cxx-client/core/transactions/transaction_context.cxx +9 -11
  173. package/deps/couchbase-cxx-client/core/transactions/transaction_get_result.cxx +41 -31
  174. package/deps/couchbase-cxx-client/core/transactions/transaction_get_result.hxx +69 -21
  175. package/deps/couchbase-cxx-client/core/transactions/transaction_links.hxx +13 -1
  176. package/deps/couchbase-cxx-client/core/transactions/transactions.cxx +5 -4
  177. package/deps/couchbase-cxx-client/core/transactions/transactions_cleanup.cxx +144 -155
  178. package/deps/couchbase-cxx-client/core/transactions/waitable_op_list.hxx +1 -0
  179. package/deps/couchbase-cxx-client/core/transactions.hxx +1 -1
  180. package/deps/couchbase-cxx-client/core/utils/connection_string.cxx +81 -46
  181. package/deps/couchbase-cxx-client/core/utils/connection_string.hxx +4 -3
  182. package/deps/couchbase-cxx-client/core/utils/crc32.hxx +3 -2
  183. package/deps/couchbase-cxx-client/core/utils/json.cxx +4 -1
  184. package/deps/couchbase-cxx-client/core/utils/json_streaming_lexer.hxx +2 -1
  185. package/deps/couchbase-cxx-client/core/utils/url_codec.cxx +2 -1
  186. package/deps/couchbase-cxx-client/couchbase/analytics_error_context.hxx +143 -0
  187. package/deps/couchbase-cxx-client/couchbase/analytics_meta_data.hxx +155 -0
  188. package/deps/couchbase-cxx-client/couchbase/analytics_metrics.hxx +163 -0
  189. package/deps/couchbase-cxx-client/couchbase/analytics_options.hxx +359 -0
  190. package/deps/couchbase-cxx-client/couchbase/analytics_result.hxx +102 -0
  191. package/deps/couchbase-cxx-client/couchbase/analytics_scan_consistency.hxx +46 -0
  192. package/deps/couchbase-cxx-client/couchbase/analytics_status.hxx +41 -0
  193. package/deps/couchbase-cxx-client/couchbase/analytics_warning.hxx +85 -0
  194. package/deps/couchbase-cxx-client/couchbase/behavior_options.hxx +10 -1
  195. package/deps/couchbase-cxx-client/couchbase/boolean_field_query.hxx +77 -0
  196. package/deps/couchbase-cxx-client/couchbase/boolean_query.hxx +223 -0
  197. package/deps/couchbase-cxx-client/couchbase/cluster.hxx +77 -3
  198. package/deps/couchbase-cxx-client/couchbase/cluster_options.hxx +10 -10
  199. package/deps/couchbase-cxx-client/couchbase/collection.hxx +22 -17
  200. package/deps/couchbase-cxx-client/couchbase/collection_query_index_manager.hxx +1 -1
  201. package/deps/couchbase-cxx-client/couchbase/common_options.hxx +1 -1
  202. package/deps/couchbase-cxx-client/couchbase/configuration_profile.hxx +1 -1
  203. package/deps/couchbase-cxx-client/couchbase/configuration_profiles_registry.hxx +0 -1
  204. package/deps/couchbase-cxx-client/couchbase/conjunction_query.hxx +88 -0
  205. package/deps/couchbase-cxx-client/couchbase/create_primary_query_index_options.hxx +1 -1
  206. package/deps/couchbase-cxx-client/couchbase/date_range.hxx +69 -0
  207. package/deps/couchbase-cxx-client/couchbase/date_range_facet.hxx +56 -0
  208. package/deps/couchbase-cxx-client/couchbase/date_range_facet_result.hxx +55 -0
  209. package/deps/couchbase-cxx-client/couchbase/date_range_query.hxx +265 -0
  210. package/deps/couchbase-cxx-client/couchbase/disjunction_query.hxx +109 -0
  211. package/deps/couchbase-cxx-client/couchbase/doc_id_query.hxx +111 -0
  212. package/deps/couchbase-cxx-client/couchbase/drop_primary_query_index_options.hxx +1 -1
  213. package/deps/couchbase-cxx-client/couchbase/drop_query_index_options.hxx +1 -1
  214. package/deps/couchbase-cxx-client/couchbase/error_context.hxx +17 -8
  215. package/deps/couchbase-cxx-client/couchbase/fmt/analytics_scan_consistency.hxx +52 -0
  216. package/deps/couchbase-cxx-client/couchbase/fmt/analytics_status.hxx +76 -0
  217. package/deps/couchbase-cxx-client/couchbase/fmt/cas.hxx +12 -0
  218. package/deps/couchbase-cxx-client/couchbase/fmt/durability_level.hxx +6 -0
  219. package/deps/couchbase-cxx-client/couchbase/fmt/key_value_error_map_attribute.hxx +94 -0
  220. package/deps/couchbase-cxx-client/couchbase/fmt/key_value_extended_error_info.hxx +6 -0
  221. package/deps/couchbase-cxx-client/couchbase/fmt/key_value_status_code.hxx +6 -0
  222. package/deps/couchbase-cxx-client/couchbase/fmt/mutation_token.hxx +6 -0
  223. package/deps/couchbase-cxx-client/couchbase/fmt/query_scan_consistency.hxx +6 -0
  224. package/deps/couchbase-cxx-client/couchbase/fmt/query_status.hxx +6 -0
  225. package/deps/couchbase-cxx-client/couchbase/fmt/retry_reason.hxx +6 -0
  226. package/deps/couchbase-cxx-client/couchbase/fmt/search_scan_consistency.hxx +49 -0
  227. package/deps/couchbase-cxx-client/couchbase/fmt/tls_verify_mode.hxx +6 -0
  228. package/deps/couchbase-cxx-client/couchbase/geo_bounding_box_query.hxx +107 -0
  229. package/deps/couchbase-cxx-client/couchbase/geo_distance_query.hxx +109 -0
  230. package/deps/couchbase-cxx-client/couchbase/geo_point.hxx +32 -0
  231. package/deps/couchbase-cxx-client/couchbase/geo_polygon_query.hxx +85 -0
  232. package/deps/couchbase-cxx-client/couchbase/get_all_query_indexes_options.hxx +5 -4
  233. package/deps/couchbase-cxx-client/couchbase/highlight_style.hxx +45 -0
  234. package/deps/couchbase-cxx-client/couchbase/key_value_error_context.hxx +7 -2
  235. package/deps/couchbase-cxx-client/couchbase/manager_error_context.hxx +1 -1
  236. package/deps/couchbase-cxx-client/couchbase/match_all_query.hxx +43 -0
  237. package/deps/couchbase-cxx-client/couchbase/match_none_query.hxx +43 -0
  238. package/deps/couchbase-cxx-client/couchbase/match_operator.hxx +45 -0
  239. package/deps/couchbase-cxx-client/couchbase/match_phrase_query.hxx +108 -0
  240. package/deps/couchbase-cxx-client/couchbase/match_query.hxx +163 -0
  241. package/deps/couchbase-cxx-client/couchbase/numeric_range.hxx +58 -0
  242. package/deps/couchbase-cxx-client/couchbase/numeric_range_facet.hxx +56 -0
  243. package/deps/couchbase-cxx-client/couchbase/numeric_range_facet_result.hxx +55 -0
  244. package/deps/couchbase-cxx-client/couchbase/numeric_range_query.hxx +143 -0
  245. package/deps/couchbase-cxx-client/couchbase/phrase_query.hxx +93 -0
  246. package/deps/couchbase-cxx-client/couchbase/prefix_query.hxx +82 -0
  247. package/deps/couchbase-cxx-client/couchbase/query_error_context.hxx +3 -1
  248. package/deps/couchbase-cxx-client/couchbase/query_index_manager.hxx +4 -2
  249. package/deps/couchbase-cxx-client/couchbase/query_options.hxx +0 -1
  250. package/deps/couchbase-cxx-client/couchbase/query_string_query.hxx +72 -0
  251. package/deps/couchbase-cxx-client/couchbase/regexp_query.hxx +82 -0
  252. package/deps/couchbase-cxx-client/couchbase/scope.hxx +74 -1
  253. package/deps/couchbase-cxx-client/couchbase/search_date_range.hxx +68 -0
  254. package/deps/couchbase-cxx-client/couchbase/search_error_context.hxx +138 -0
  255. package/deps/couchbase-cxx-client/couchbase/search_facet.hxx +60 -0
  256. package/deps/couchbase-cxx-client/couchbase/search_facet_result.hxx +50 -0
  257. package/deps/couchbase-cxx-client/couchbase/search_meta_data.hxx +85 -0
  258. package/deps/couchbase-cxx-client/couchbase/search_metrics.hxx +127 -0
  259. package/deps/couchbase-cxx-client/couchbase/search_numeric_range.hxx +69 -0
  260. package/deps/couchbase-cxx-client/couchbase/search_options.hxx +509 -0
  261. package/deps/couchbase-cxx-client/couchbase/search_query.hxx +69 -0
  262. package/deps/couchbase-cxx-client/couchbase/search_result.hxx +77 -0
  263. package/deps/couchbase-cxx-client/couchbase/search_row.hxx +104 -0
  264. package/deps/couchbase-cxx-client/couchbase/search_row_location.hxx +55 -0
  265. package/deps/couchbase-cxx-client/couchbase/search_row_locations.hxx +86 -0
  266. package/deps/couchbase-cxx-client/couchbase/search_scan_consistency.hxx +34 -0
  267. package/deps/couchbase-cxx-client/couchbase/search_sort.hxx +58 -0
  268. package/deps/couchbase-cxx-client/couchbase/search_sort_field.hxx +117 -0
  269. package/deps/couchbase-cxx-client/couchbase/search_sort_field_missing.hxx +26 -0
  270. package/deps/couchbase-cxx-client/couchbase/search_sort_field_mode.hxx +27 -0
  271. package/deps/couchbase-cxx-client/couchbase/search_sort_field_type.hxx +28 -0
  272. package/deps/couchbase-cxx-client/couchbase/search_sort_id.hxx +60 -0
  273. package/deps/couchbase-cxx-client/couchbase/search_sort_score.hxx +60 -0
  274. package/deps/couchbase-cxx-client/couchbase/search_term_range.hxx +51 -0
  275. package/deps/couchbase-cxx-client/couchbase/security_options.hxx +3 -0
  276. package/deps/couchbase-cxx-client/couchbase/subdoc/array_add_unique.hxx +2 -0
  277. package/deps/couchbase-cxx-client/couchbase/subdoc/array_append.hxx +2 -0
  278. package/deps/couchbase-cxx-client/couchbase/subdoc/array_insert.hxx +2 -0
  279. package/deps/couchbase-cxx-client/couchbase/subdoc/array_prepend.hxx +2 -0
  280. package/deps/couchbase-cxx-client/couchbase/subdoc/count.hxx +2 -0
  281. package/deps/couchbase-cxx-client/couchbase/subdoc/counter.hxx +2 -0
  282. package/deps/couchbase-cxx-client/couchbase/subdoc/exists.hxx +2 -0
  283. package/deps/couchbase-cxx-client/couchbase/subdoc/get.hxx +2 -0
  284. package/deps/couchbase-cxx-client/couchbase/subdoc/insert.hxx +2 -0
  285. package/deps/couchbase-cxx-client/couchbase/subdoc/remove.hxx +2 -0
  286. package/deps/couchbase-cxx-client/couchbase/subdoc/replace.hxx +3 -1
  287. package/deps/couchbase-cxx-client/couchbase/subdoc/upsert.hxx +2 -0
  288. package/deps/couchbase-cxx-client/couchbase/subdocument_error_context.hxx +4 -2
  289. package/deps/couchbase-cxx-client/couchbase/term_facet.hxx +48 -0
  290. package/deps/couchbase-cxx-client/couchbase/term_facet_result.hxx +55 -0
  291. package/deps/couchbase-cxx-client/couchbase/term_query.hxx +151 -0
  292. package/deps/couchbase-cxx-client/couchbase/term_range_query.hxx +142 -0
  293. package/deps/couchbase-cxx-client/couchbase/tracing/request_span.hxx +63 -0
  294. package/deps/couchbase-cxx-client/couchbase/tracing/request_tracer.hxx +2 -40
  295. package/deps/couchbase-cxx-client/couchbase/transaction_op_error_context.hxx +4 -4
  296. package/deps/couchbase-cxx-client/couchbase/transactions/async_attempt_context.hxx +93 -14
  297. package/deps/couchbase-cxx-client/couchbase/transactions/attempt_context.hxx +88 -15
  298. package/deps/couchbase-cxx-client/couchbase/transactions/transaction_get_result.hxx +55 -35
  299. package/deps/couchbase-cxx-client/couchbase/transactions/transaction_keyspace.hxx +11 -1
  300. package/deps/couchbase-cxx-client/couchbase/transactions/transaction_options.hxx +79 -8
  301. package/deps/couchbase-cxx-client/couchbase/transactions/transaction_query_options.hxx +128 -15
  302. package/deps/couchbase-cxx-client/couchbase/transactions/transaction_query_result.hxx +6 -21
  303. package/deps/couchbase-cxx-client/couchbase/transactions/transaction_result.hxx +1 -2
  304. package/deps/couchbase-cxx-client/couchbase/transactions/transactions_cleanup_config.hxx +5 -3
  305. package/deps/couchbase-cxx-client/couchbase/transactions/transactions_config.hxx +9 -5
  306. package/deps/couchbase-cxx-client/couchbase/transactions/transactions_query_config.hxx +6 -3
  307. package/deps/couchbase-cxx-client/couchbase/transactions.hxx +37 -3
  308. package/deps/couchbase-cxx-client/couchbase/wildcard_query.hxx +83 -0
  309. package/deps/couchbase-cxx-client/docs/Doxyfile.in +325 -224
  310. package/deps/couchbase-cxx-client/docs/cbc-analytics.md +171 -0
  311. package/deps/couchbase-cxx-client/docs/cbc-get.md +161 -0
  312. package/deps/couchbase-cxx-client/docs/cbc-pillowfight.md +168 -0
  313. package/deps/couchbase-cxx-client/docs/cbc-query.md +179 -0
  314. package/deps/couchbase-cxx-client/docs/cbc.md +46 -0
  315. package/deps/couchbase-cxx-client/docs/cli.hxx +33 -0
  316. package/deps/couchbase-cxx-client/docs/doxygen-awesome.css +474 -89
  317. package/deps/couchbase-cxx-client/docs/mainpage.hxx +46 -8
  318. package/deps/couchbase-cxx-client/docs/stability.hxx +15 -0
  319. package/deps/couchbase-cxx-client/examples/async_game_server.cxx +56 -54
  320. package/deps/couchbase-cxx-client/examples/distributed_mutex.cxx +2 -0
  321. package/deps/couchbase-cxx-client/examples/game_server.cxx +9 -10
  322. package/deps/couchbase-cxx-client/test/CMakeLists.txt +10 -7
  323. package/deps/couchbase-cxx-client/test/benchmark_helper_integration.hxx +2 -2
  324. package/deps/couchbase-cxx-client/test/data/search_beers_dataset.json +70 -0
  325. package/deps/couchbase-cxx-client/test/data/search_beers_index_params.json +108 -0
  326. package/deps/couchbase-cxx-client/test/test_helper.hxx +6 -6
  327. package/deps/couchbase-cxx-client/test/test_integration_analytics.cxx +314 -16
  328. package/deps/couchbase-cxx-client/test/test_integration_collections.cxx +7 -3
  329. package/deps/couchbase-cxx-client/test/test_integration_connect.cxx +7 -3
  330. package/deps/couchbase-cxx-client/test/test_integration_crud.cxx +19 -2
  331. package/deps/couchbase-cxx-client/test/test_integration_diagnostics.cxx +11 -5
  332. package/deps/couchbase-cxx-client/test/test_integration_durability.cxx +12 -7
  333. package/deps/couchbase-cxx-client/test/test_integration_examples.cxx +454 -0
  334. package/deps/couchbase-cxx-client/test/test_integration_management.cxx +162 -94
  335. package/deps/couchbase-cxx-client/test/test_integration_query.cxx +68 -10
  336. package/deps/couchbase-cxx-client/test/test_integration_range_scan.cxx +12 -12
  337. package/deps/couchbase-cxx-client/test/test_integration_read_replica.cxx +48 -11
  338. package/deps/couchbase-cxx-client/test/test_integration_search.cxx +621 -0
  339. package/deps/couchbase-cxx-client/test/test_integration_subdoc.cxx +62 -11
  340. package/deps/couchbase-cxx-client/test/test_integration_tracer.cxx +5 -0
  341. package/deps/couchbase-cxx-client/test/test_integration_transcoders.cxx +13 -5
  342. package/deps/couchbase-cxx-client/test/test_transaction_context.cxx +550 -0
  343. package/deps/couchbase-cxx-client/test/test_transaction_examples.cxx +195 -0
  344. package/deps/couchbase-cxx-client/test/test_transaction_public_async_api.cxx +393 -0
  345. package/deps/couchbase-cxx-client/test/test_transaction_public_blocking_api.cxx +653 -0
  346. package/deps/couchbase-cxx-client/test/test_transaction_simple.cxx +984 -0
  347. package/deps/couchbase-cxx-client/test/test_transaction_simple_async.cxx +970 -0
  348. package/deps/couchbase-cxx-client/test/test_unit_config_profiles.cxx +13 -13
  349. package/deps/couchbase-cxx-client/test/test_unit_connection_string.cxx +64 -0
  350. package/deps/couchbase-cxx-client/test/test_unit_json_transcoder.cxx +4 -0
  351. package/deps/couchbase-cxx-client/test/test_unit_search.cxx +427 -0
  352. package/deps/couchbase-cxx-client/test/test_unit_transaction_utils.cxx +113 -0
  353. package/deps/couchbase-cxx-client/test/test_unit_utils.cxx +8 -4
  354. package/deps/couchbase-cxx-client/test/utils/CMakeLists.txt +13 -9
  355. package/deps/couchbase-cxx-client/test/utils/integration_shortcuts.hxx +3 -3
  356. package/deps/couchbase-cxx-client/test/utils/integration_test_guard.cxx +20 -9
  357. package/deps/couchbase-cxx-client/test/utils/logger.cxx +3 -1
  358. package/deps/couchbase-cxx-client/test/utils/server_version.hxx +39 -13
  359. package/deps/couchbase-cxx-client/test/utils/test_context.cxx +8 -0
  360. package/deps/couchbase-cxx-client/test/utils/test_data.cxx +41 -0
  361. package/deps/couchbase-cxx-client/test/utils/test_data.hxx +29 -0
  362. package/deps/couchbase-cxx-client/test/utils/wait_until.cxx +61 -0
  363. package/deps/couchbase-cxx-client/test/utils/wait_until.hxx +8 -1
  364. package/deps/couchbase-cxx-client/third_party/catch2/.bazelrc +10 -0
  365. package/deps/couchbase-cxx-client/third_party/catch2/.conan/build.py +4 -4
  366. package/deps/couchbase-cxx-client/third_party/catch2/.conan/test_package/CMakeLists.txt +5 -4
  367. package/deps/couchbase-cxx-client/third_party/catch2/.conan/test_package/conanfile.py +3 -2
  368. package/deps/couchbase-cxx-client/third_party/catch2/.conan/test_package/test_package.cpp +1 -3
  369. package/deps/couchbase-cxx-client/third_party/catch2/.github/FUNDING.yml +1 -0
  370. package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/linux-bazel-builds.yml +24 -0
  371. package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/linux-meson-builds.yml +43 -0
  372. package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/linux-other-builds.yml +104 -0
  373. package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/linux-simple-builds.yml +122 -0
  374. package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/mac-builds.yml +52 -0
  375. package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/validate-header-guards.yml +36 -0
  376. package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/windows-simple-builds.yml +37 -0
  377. package/deps/couchbase-cxx-client/third_party/catch2/BUILD.bazel +83 -8
  378. package/deps/couchbase-cxx-client/third_party/catch2/CMake/CatchConfigOptions.cmake +79 -0
  379. package/deps/couchbase-cxx-client/third_party/catch2/CMake/CatchMiscFunctions.cmake +120 -0
  380. package/deps/couchbase-cxx-client/third_party/catch2/CMake/catch2-with-main.pc.in +10 -0
  381. package/deps/couchbase-cxx-client/third_party/catch2/CMake/catch2.pc.in +5 -1
  382. package/deps/couchbase-cxx-client/third_party/catch2/CMakeLists.txt +98 -152
  383. package/deps/couchbase-cxx-client/third_party/catch2/CMakePresets.json +25 -0
  384. package/deps/couchbase-cxx-client/third_party/catch2/Doxyfile +2484 -0
  385. package/deps/couchbase-cxx-client/third_party/catch2/README.md +83 -17
  386. package/deps/couchbase-cxx-client/third_party/catch2/SECURITY.md +19 -0
  387. package/deps/couchbase-cxx-client/third_party/catch2/WORKSPACE.bazel +16 -0
  388. package/deps/couchbase-cxx-client/third_party/catch2/appveyor.yml +55 -73
  389. package/deps/couchbase-cxx-client/third_party/catch2/codecov.yml +3 -6
  390. package/deps/couchbase-cxx-client/third_party/catch2/conanfile.py +44 -14
  391. package/deps/couchbase-cxx-client/third_party/catch2/data/artwork/catch2-logo-small-with-background.png +0 -0
  392. package/deps/couchbase-cxx-client/third_party/catch2/docs/Readme.md +18 -16
  393. package/deps/couchbase-cxx-client/third_party/catch2/docs/assertions.md +45 -64
  394. package/deps/couchbase-cxx-client/third_party/catch2/docs/benchmarks.md +3 -6
  395. package/deps/couchbase-cxx-client/third_party/catch2/docs/ci-and-misc.md +27 -29
  396. package/deps/couchbase-cxx-client/third_party/catch2/docs/cmake-integration.md +157 -35
  397. package/deps/couchbase-cxx-client/third_party/catch2/docs/command-line.md +232 -65
  398. package/deps/couchbase-cxx-client/third_party/catch2/docs/commercial-users.md +14 -13
  399. package/deps/couchbase-cxx-client/third_party/catch2/docs/comparing-floating-point-numbers.md +192 -0
  400. package/deps/couchbase-cxx-client/third_party/catch2/docs/configuration.md +48 -54
  401. package/deps/couchbase-cxx-client/third_party/catch2/docs/contributing.md +150 -38
  402. package/deps/couchbase-cxx-client/third_party/catch2/docs/deprecations.md +14 -118
  403. package/deps/couchbase-cxx-client/third_party/catch2/docs/event-listeners.md +31 -62
  404. package/deps/couchbase-cxx-client/third_party/catch2/docs/faq.md +94 -0
  405. package/deps/couchbase-cxx-client/third_party/catch2/docs/generators.md +14 -10
  406. package/deps/couchbase-cxx-client/third_party/catch2/docs/limitations.md +34 -36
  407. package/deps/couchbase-cxx-client/third_party/catch2/docs/list-of-examples.md +0 -3
  408. package/deps/couchbase-cxx-client/third_party/catch2/docs/logging.md +2 -2
  409. package/deps/couchbase-cxx-client/third_party/catch2/docs/matchers.md +355 -122
  410. package/deps/couchbase-cxx-client/third_party/catch2/docs/migrate-v2-to-v3.md +98 -0
  411. package/deps/couchbase-cxx-client/third_party/catch2/docs/opensource-users.md +43 -13
  412. package/deps/couchbase-cxx-client/third_party/catch2/docs/other-macros.md +19 -18
  413. package/deps/couchbase-cxx-client/third_party/catch2/docs/own-main.md +50 -49
  414. package/deps/couchbase-cxx-client/third_party/catch2/docs/release-notes.md +375 -6
  415. package/deps/couchbase-cxx-client/third_party/catch2/docs/release-process.md +9 -16
  416. package/deps/couchbase-cxx-client/third_party/catch2/docs/reporter-events.md +175 -0
  417. package/deps/couchbase-cxx-client/third_party/catch2/docs/reporters.md +191 -25
  418. package/deps/couchbase-cxx-client/third_party/catch2/docs/skipping-passing-failing.md +129 -0
  419. package/deps/couchbase-cxx-client/third_party/catch2/docs/test-cases-and-sections.md +91 -20
  420. package/deps/couchbase-cxx-client/third_party/catch2/docs/test-fixtures.md +28 -9
  421. package/deps/couchbase-cxx-client/third_party/catch2/docs/tostring.md +3 -3
  422. package/deps/couchbase-cxx-client/third_party/catch2/docs/tutorial.md +87 -139
  423. package/deps/couchbase-cxx-client/third_party/catch2/docs/usage-tips.md +100 -0
  424. package/deps/couchbase-cxx-client/third_party/catch2/docs/why-catch.md +24 -11
  425. package/deps/couchbase-cxx-client/third_party/catch2/examples/010-TestCase.cpp +4 -7
  426. package/deps/couchbase-cxx-client/third_party/catch2/examples/020-TestCase-1.cpp +3 -9
  427. package/deps/couchbase-cxx-client/third_party/catch2/examples/020-TestCase-2.cpp +2 -2
  428. package/deps/couchbase-cxx-client/third_party/catch2/examples/030-Asn-Require-Check.cpp +5 -5
  429. package/deps/couchbase-cxx-client/third_party/catch2/examples/100-Fix-Section.cpp +5 -4
  430. package/deps/couchbase-cxx-client/third_party/catch2/examples/110-Fix-ClassFixture.cpp +7 -4
  431. package/deps/couchbase-cxx-client/third_party/catch2/examples/120-Bdd-ScenarioGivenWhenThen.cpp +4 -4
  432. package/deps/couchbase-cxx-client/third_party/catch2/examples/210-Evt-EventListeners.cpp +51 -44
  433. package/deps/couchbase-cxx-client/third_party/catch2/examples/231-Cfg-OutputStreams.cpp +3 -4
  434. package/deps/couchbase-cxx-client/third_party/catch2/examples/300-Gen-OwnGenerator.cpp +13 -3
  435. package/deps/couchbase-cxx-client/third_party/catch2/examples/301-Gen-MapTypeConversion.cpp +9 -7
  436. package/deps/couchbase-cxx-client/third_party/catch2/examples/302-Gen-Table.cpp +4 -3
  437. package/deps/couchbase-cxx-client/third_party/catch2/examples/310-Gen-VariablesInGenerators.cpp +3 -1
  438. package/deps/couchbase-cxx-client/third_party/catch2/examples/311-Gen-CustomCapture.cpp +3 -1
  439. package/deps/couchbase-cxx-client/third_party/catch2/examples/CMakeLists.txt +29 -126
  440. package/deps/couchbase-cxx-client/third_party/catch2/extras/Catch.cmake +279 -0
  441. package/deps/couchbase-cxx-client/third_party/catch2/extras/CatchAddTests.cmake +187 -0
  442. package/deps/couchbase-cxx-client/third_party/catch2/extras/CatchShardTests.cmake +74 -0
  443. package/deps/couchbase-cxx-client/third_party/catch2/extras/CatchShardTestsImpl.cmake +52 -0
  444. package/deps/couchbase-cxx-client/third_party/catch2/extras/catch_amalgamated.cpp +10655 -0
  445. package/deps/couchbase-cxx-client/third_party/catch2/extras/catch_amalgamated.hpp +12972 -0
  446. package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/CMakeLists.txt +20 -0
  447. package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/NullOStream.cpp +10 -0
  448. package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/NullOStream.h +20 -0
  449. package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/build_fuzzers.sh +33 -0
  450. package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/fuzz_TestSpecParser.cpp +16 -0
  451. package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/fuzz_XmlWriter.cpp +16 -0
  452. package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/fuzz_textflow.cpp +47 -0
  453. package/deps/couchbase-cxx-client/third_party/catch2/mdsnippets.json +9 -0
  454. package/deps/couchbase-cxx-client/third_party/catch2/meson.build +17 -0
  455. package/deps/couchbase-cxx-client/third_party/catch2/src/CMakeLists.txt +510 -0
  456. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_benchmark.hpp +147 -0
  457. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_benchmark_all.hpp +46 -0
  458. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_chronometer.cpp +17 -0
  459. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_chronometer.hpp +74 -0
  460. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_clock.hpp +39 -0
  461. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_constructor.hpp +82 -0
  462. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_environment.hpp +37 -0
  463. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_estimate.hpp +30 -0
  464. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_execution_plan.hpp +58 -0
  465. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_optimizer.hpp +78 -0
  466. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_outlier_classification.hpp +29 -0
  467. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_sample_analysis.hpp +49 -0
  468. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_analyse.hpp +79 -0
  469. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_benchmark_function.cpp +17 -0
  470. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_benchmark_function.hpp +107 -0
  471. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_benchmark_stats.hpp +64 -0
  472. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp +23 -0
  473. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_complete_invoke.hpp +58 -0
  474. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_estimate_clock.hpp +121 -0
  475. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_measure.hpp +32 -0
  476. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_repeat.hpp +36 -0
  477. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_run_for_at_least.cpp +31 -0
  478. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_run_for_at_least.hpp +65 -0
  479. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_stats.cpp +257 -0
  480. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_stats.hpp +144 -0
  481. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_timing.hpp +31 -0
  482. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_all.hpp +127 -0
  483. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_approx.cpp +85 -0
  484. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_approx.hpp +128 -0
  485. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_assertion_info.hpp +28 -0
  486. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_assertion_result.cpp +105 -0
  487. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_assertion_result.hpp +60 -0
  488. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_config.cpp +247 -0
  489. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_config.hpp +153 -0
  490. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_get_random_seed.cpp +18 -0
  491. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_get_random_seed.hpp +18 -0
  492. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_message.cpp +116 -0
  493. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_message.hpp +148 -0
  494. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_registry_hub.cpp +105 -0
  495. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_section_info.hpp +42 -0
  496. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_session.cpp +363 -0
  497. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_session.hpp +62 -0
  498. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tag_alias.hpp +29 -0
  499. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tag_alias_autoregistrar.cpp +24 -0
  500. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tag_alias_autoregistrar.hpp +29 -0
  501. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_template_test_macros.hpp +124 -0
  502. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_case_info.cpp +247 -0
  503. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_case_info.hpp +131 -0
  504. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_macros.hpp +226 -0
  505. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_spec.cpp +138 -0
  506. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_spec.hpp +119 -0
  507. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_timer.cpp +37 -0
  508. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_timer.hpp +27 -0
  509. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tostring.cpp +254 -0
  510. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tostring.hpp +668 -0
  511. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_totals.cpp +65 -0
  512. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_totals.hpp +41 -0
  513. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_translate_exception.cpp +20 -0
  514. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_translate_exception.hpp +88 -0
  515. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_user_config.hpp.in +210 -0
  516. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_version.cpp +43 -0
  517. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_version.hpp +39 -0
  518. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_version_macros.hpp +15 -0
  519. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generator_exception.cpp +17 -0
  520. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generator_exception.hpp +31 -0
  521. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators.cpp +42 -0
  522. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators.hpp +250 -0
  523. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_adapters.hpp +241 -0
  524. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_all.hpp +30 -0
  525. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_random.cpp +13 -0
  526. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_random.hpp +98 -0
  527. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_range.hpp +110 -0
  528. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_all.hpp +37 -0
  529. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_capture.cpp +13 -0
  530. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_capture.hpp +109 -0
  531. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_config.cpp +13 -0
  532. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_config.hpp +100 -0
  533. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_enum_values_registry.hpp +47 -0
  534. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_exception.cpp +14 -0
  535. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_exception.hpp +36 -0
  536. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_generatortracker.cpp +32 -0
  537. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_generatortracker.hpp +90 -0
  538. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_registry_hub.cpp +14 -0
  539. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_registry_hub.hpp +66 -0
  540. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_reporter.cpp +101 -0
  541. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_reporter.hpp +224 -0
  542. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_reporter_factory.cpp +14 -0
  543. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_reporter_factory.hpp +45 -0
  544. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_tag_alias_registry.hpp +29 -0
  545. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_test_invoker.hpp +21 -0
  546. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_testcase.cpp +13 -0
  547. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_testcase.hpp +36 -0
  548. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_assertion_handler.cpp +82 -0
  549. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_assertion_handler.hpp +68 -0
  550. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_case_insensitive_comparisons.cpp +35 -0
  551. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_case_insensitive_comparisons.hpp +30 -0
  552. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_case_sensitive.hpp +17 -0
  553. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_clara.cpp +448 -0
  554. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_clara.hpp +702 -0
  555. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_commandline.cpp +313 -0
  556. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_commandline.hpp +21 -0
  557. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_compare_traits.hpp +75 -0
  558. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_compiler_capabilities.hpp +430 -0
  559. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_config_android_logwrite.hpp +33 -0
  560. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_config_counter.hpp +32 -0
  561. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_config_uncaught_exceptions.hpp +44 -0
  562. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_config_wchar.hpp +33 -0
  563. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_console_colour.cpp +282 -0
  564. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_console_colour.hpp +141 -0
  565. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_console_width.hpp +19 -0
  566. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_container_nonmembers.hpp +73 -0
  567. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_context.cpp +41 -0
  568. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_context.hpp +51 -0
  569. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_debug_console.cpp +45 -0
  570. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_debug_console.hpp +17 -0
  571. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_debugger.cpp +120 -0
  572. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_debugger.hpp +67 -0
  573. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_decomposer.cpp +23 -0
  574. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_decomposer.hpp +340 -0
  575. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_enforce.cpp +41 -0
  576. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_enforce.hpp +54 -0
  577. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_enum_values_registry.cpp +73 -0
  578. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_enum_values_registry.hpp +36 -0
  579. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_errno_guard.cpp +16 -0
  580. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_errno_guard.hpp +27 -0
  581. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_exception_translator_registry.cpp +84 -0
  582. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_exception_translator_registry.hpp +30 -0
  583. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_fatal_condition_handler.cpp +243 -0
  584. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_fatal_condition_handler.hpp +69 -0
  585. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_floating_point_helpers.cpp +32 -0
  586. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_floating_point_helpers.hpp +103 -0
  587. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_getenv.cpp +37 -0
  588. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_getenv.hpp +20 -0
  589. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_is_permutation.hpp +138 -0
  590. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_istream.cpp +159 -0
  591. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_istream.hpp +54 -0
  592. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_lazy_expr.cpp +29 -0
  593. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_lazy_expr.hpp +40 -0
  594. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_leak_detector.cpp +38 -0
  595. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_leak_detector.hpp +19 -0
  596. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_list.cpp +123 -0
  597. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_list.hpp +43 -0
  598. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_logical_traits.hpp +44 -0
  599. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_main.cpp +39 -0
  600. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_message_info.cpp +25 -0
  601. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_message_info.hpp +42 -0
  602. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_meta.hpp +47 -0
  603. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_move_and_forward.hpp +19 -0
  604. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_noncopyable.hpp +28 -0
  605. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_optional.hpp +100 -0
  606. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_output_redirect.cpp +146 -0
  607. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_output_redirect.hpp +118 -0
  608. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_parse_numbers.cpp +52 -0
  609. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_parse_numbers.hpp +26 -0
  610. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_platform.hpp +37 -0
  611. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_polyfills.cpp +34 -0
  612. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_polyfills.hpp +16 -0
  613. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_preprocessor.hpp +237 -0
  614. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_preprocessor_remove_parens.hpp +19 -0
  615. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_random_number_generator.cpp +70 -0
  616. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_random_number_generator.hpp +59 -0
  617. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_random_seed_generation.cpp +34 -0
  618. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_random_seed_generation.hpp +26 -0
  619. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reporter_registry.cpp +88 -0
  620. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reporter_registry.hpp +55 -0
  621. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reporter_spec_parser.cpp +173 -0
  622. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reporter_spec_parser.hpp +85 -0
  623. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_result_type.cpp +26 -0
  624. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_result_type.hpp +57 -0
  625. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reusable_string_stream.cpp +62 -0
  626. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reusable_string_stream.hpp +57 -0
  627. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_run_context.cpp +688 -0
  628. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_run_context.hpp +160 -0
  629. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_section.cpp +60 -0
  630. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_section.hpp +53 -0
  631. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_sharding.hpp +42 -0
  632. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_singletons.cpp +36 -0
  633. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_singletons.hpp +45 -0
  634. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_source_line_info.cpp +33 -0
  635. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_source_line_info.hpp +37 -0
  636. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_startup_exception_registry.cpp +29 -0
  637. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_startup_exception_registry.hpp +29 -0
  638. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stdstreams.cpp +24 -0
  639. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stdstreams.hpp +22 -0
  640. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stream_end_stop.hpp +30 -0
  641. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_string_manip.cpp +104 -0
  642. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_string_manip.hpp +61 -0
  643. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stringref.cpp +66 -0
  644. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stringref.hpp +121 -0
  645. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_tag_alias_registry.cpp +55 -0
  646. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_tag_alias_registry.hpp +33 -0
  647. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_template_test_registry.hpp +337 -0
  648. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_info_hasher.cpp +39 -0
  649. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_info_hasher.hpp +29 -0
  650. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_registry_impl.cpp +146 -0
  651. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_registry_impl.hpp +62 -0
  652. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_tracker.cpp +239 -0
  653. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_tracker.hpp +244 -0
  654. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_failure_exception.cpp +31 -0
  655. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_failure_exception.hpp +34 -0
  656. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_macro_impl.hpp +159 -0
  657. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_registry.cpp +82 -0
  658. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_registry.hpp +132 -0
  659. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_run_info.hpp +22 -0
  660. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_spec_parser.cpp +239 -0
  661. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_spec_parser.hpp +81 -0
  662. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_textflow.cpp +255 -0
  663. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_textflow.hpp +169 -0
  664. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_to_string.hpp +29 -0
  665. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_uncaught_exceptions.cpp +26 -0
  666. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_uncaught_exceptions.hpp +15 -0
  667. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_unique_name.hpp +20 -0
  668. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_unique_ptr.hpp +118 -0
  669. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_void_type.hpp +25 -0
  670. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_wildcard_pattern.cpp +47 -0
  671. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_wildcard_pattern.hpp +38 -0
  672. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_windows_h_proxy.hpp +28 -0
  673. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_xmlwriter.cpp +348 -0
  674. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_xmlwriter.hpp +152 -0
  675. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers.cpp +25 -0
  676. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers.hpp +237 -0
  677. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_all.hpp +36 -0
  678. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_container_properties.cpp +34 -0
  679. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_container_properties.hpp +90 -0
  680. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_contains.hpp +102 -0
  681. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_exception.cpp +26 -0
  682. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_exception.hpp +61 -0
  683. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_floating_point.cpp +241 -0
  684. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_floating_point.hpp +94 -0
  685. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_predicate.cpp +17 -0
  686. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_predicate.hpp +59 -0
  687. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_quantifiers.cpp +24 -0
  688. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_quantifiers.hpp +165 -0
  689. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_range_equals.hpp +144 -0
  690. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_string.cpp +114 -0
  691. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_string.hpp +85 -0
  692. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_templated.cpp +41 -0
  693. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_templated.hpp +296 -0
  694. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_vector.hpp +194 -0
  695. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/internal/catch_matchers_impl.cpp +25 -0
  696. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/internal/catch_matchers_impl.hpp +83 -0
  697. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/meson.build +368 -0
  698. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_automake.cpp +37 -0
  699. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_automake.hpp +38 -0
  700. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_common_base.cpp +49 -0
  701. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_common_base.hpp +79 -0
  702. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_compact.cpp +254 -0
  703. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_compact.hpp +39 -0
  704. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_console.cpp +656 -0
  705. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_console.hpp +67 -0
  706. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_cumulative_base.cpp +159 -0
  707. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_cumulative_base.hpp +151 -0
  708. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_event_listener.cpp +40 -0
  709. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_event_listener.hpp +60 -0
  710. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_helpers.cpp +343 -0
  711. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_helpers.hpp +95 -0
  712. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_junit.cpp +309 -0
  713. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_junit.hpp +58 -0
  714. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_multi.cpp +197 -0
  715. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_multi.hpp +72 -0
  716. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_registrars.cpp +36 -0
  717. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_registrars.hpp +131 -0
  718. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_sonarqube.cpp +162 -0
  719. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_sonarqube.hpp +61 -0
  720. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_streaming_base.cpp +23 -0
  721. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_streaming_base.hpp +73 -0
  722. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_tap.cpp +229 -0
  723. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_tap.hpp +43 -0
  724. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_teamcity.cpp +177 -0
  725. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_teamcity.hpp +66 -0
  726. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_xml.cpp +336 -0
  727. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_xml.hpp +66 -0
  728. package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporters_all.hpp +40 -0
  729. package/deps/couchbase-cxx-client/third_party/catch2/tests/CMakeLists.txt +665 -0
  730. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/CMakeLists.txt +554 -0
  731. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/ToDo.txt +10 -0
  732. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X01-PrefixedMacros.cpp +97 -0
  733. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X02-DisabledMacros.cpp +65 -0
  734. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X03-DisabledExceptions-DefaultHandler.cpp +39 -0
  735. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X04-DisabledExceptions-CustomHandler.cpp +40 -0
  736. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X05-DeferredStaticChecks.cpp +21 -0
  737. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X10-FallbackStringifier.cpp +35 -0
  738. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X11-DisableStringification.cpp +27 -0
  739. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X12-CustomDebugBreakMacro.cpp +26 -0
  740. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X21-PartialTestCaseEvents.cpp +74 -0
  741. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X22-BenchmarksInCumulativeReporter.cpp +79 -0
  742. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X23-CasingInReporterNames.cpp +41 -0
  743. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X24-ListenerStdoutCaptureInMultireporter.cpp +40 -0
  744. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X25-ListenerCanAskForCapturedStdout.cpp +47 -0
  745. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X26-ReporterPreferencesForPassingAssertionsIsRespected.cpp +52 -0
  746. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X27-CapturedStdoutInTestCaseEvents.cpp +82 -0
  747. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X28-ListenersGetEventsBeforeReporters.cpp +99 -0
  748. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X29-CustomArgumentsForReporters.cpp +59 -0
  749. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X30-BazelReporter.cpp +17 -0
  750. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X31-DuplicatedTestCases.cpp +16 -0
  751. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X32-DuplicatedTestCasesDifferentTags.cpp +17 -0
  752. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X33-DuplicatedTestCaseMethods.cpp +22 -0
  753. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X34-DuplicatedTestCaseMethodsDifferentFixtures.cpp +27 -0
  754. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X35-DuplicatedReporterNames.cpp +31 -0
  755. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X90-WindowsHeaderInclusion.cpp +21 -0
  756. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X91-AmalgamatedCatch.cpp +38 -0
  757. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X92-NoTests.cpp +11 -0
  758. package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X93-AllSkipped.cpp +16 -0
  759. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/automake.sw.approved.txt +420 -0
  760. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/automake.sw.multi.approved.txt +409 -0
  761. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/compact.sw.approved.txt +2544 -0
  762. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/compact.sw.multi.approved.txt +2533 -0
  763. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/console.std.approved.txt +1538 -0
  764. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/console.sw.approved.txt +18236 -0
  765. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/console.sw.multi.approved.txt +18225 -0
  766. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/console.swa4.approved.txt +956 -0
  767. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/default.sw.multi.approved.txt +11 -0
  768. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/junit.sw.approved.txt +2052 -0
  769. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/junit.sw.multi.approved.txt +2051 -0
  770. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/sonarqube.sw.approved.txt +2071 -0
  771. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/sonarqube.sw.multi.approved.txt +2070 -0
  772. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/tap.sw.approved.txt +4481 -0
  773. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/tap.sw.multi.approved.txt +4470 -0
  774. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/teamcity.sw.approved.txt +998 -0
  775. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/teamcity.sw.multi.approved.txt +997 -0
  776. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/xml.sw.approved.txt +21208 -0
  777. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/xml.sw.multi.approved.txt +21207 -0
  778. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Algorithms.tests.cpp +94 -0
  779. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp +73 -0
  780. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp +467 -0
  781. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp +111 -0
  782. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/ColourImpl.tests.cpp +64 -0
  783. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Details.tests.cpp +131 -0
  784. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/FloatingPoint.tests.cpp +74 -0
  785. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp +546 -0
  786. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp +447 -0
  787. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Parse.tests.cpp +38 -0
  788. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/PartTracker.tests.cpp +254 -0
  789. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp +62 -0
  790. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Reporters.tests.cpp +328 -0
  791. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Sharding.tests.cpp +45 -0
  792. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Stream.tests.cpp +32 -0
  793. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/String.tests.cpp +212 -0
  794. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/StringManip.tests.cpp +83 -0
  795. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Tag.tests.cpp +104 -0
  796. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/TestCaseInfoHasher.tests.cpp +72 -0
  797. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/TestSpec.tests.cpp +365 -0
  798. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/TestSpecParser.tests.cpp +55 -0
  799. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/TextFlow.tests.cpp +200 -0
  800. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp +97 -0
  801. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Traits.tests.cpp +45 -0
  802. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/UniquePtr.tests.cpp +141 -0
  803. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Xml.tests.cpp +183 -0
  804. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/TestRegistrations.cpp +181 -0
  805. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/TimingTests/Sleep.tests.cpp +24 -0
  806. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Approx.tests.cpp +218 -0
  807. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/BDD.tests.cpp +106 -0
  808. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Benchmark.tests.cpp +173 -0
  809. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Class.tests.cpp +133 -0
  810. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Compilation.tests.cpp +355 -0
  811. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Condition.tests.cpp +334 -0
  812. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Decomposition.tests.cpp +41 -0
  813. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/EnumToString.tests.cpp +108 -0
  814. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Exception.tests.cpp +204 -0
  815. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Generators.tests.cpp +313 -0
  816. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Matchers.tests.cpp +1144 -0
  817. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/MatchersRanges.tests.cpp +917 -0
  818. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Message.tests.cpp +287 -0
  819. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Misc.tests.cpp +553 -0
  820. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Skip.tests.cpp +73 -0
  821. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringByte.tests.cpp +23 -0
  822. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringChrono.tests.cpp +51 -0
  823. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringGeneral.tests.cpp +211 -0
  824. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringOptional.tests.cpp +31 -0
  825. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringPair.tests.cpp +38 -0
  826. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringTuple.tests.cpp +54 -0
  827. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringVariant.tests.cpp +99 -0
  828. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringVector.tests.cpp +94 -0
  829. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp +186 -0
  830. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Tricky.tests.cpp +380 -0
  831. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/VariadicMacros.tests.cpp +29 -0
  832. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/helpers/parse_test_spec.cpp +22 -0
  833. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/helpers/parse_test_spec.hpp +20 -0
  834. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/helpers/range_test_helpers.hpp +210 -0
  835. package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/helpers/type_with_lit_0_comparisons.hpp +44 -0
  836. package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/ConfigureTestsCommon.py +75 -0
  837. package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testBazelReporter.py +104 -0
  838. package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testBazelSharding.py +75 -0
  839. package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testConfigureDefaultReporter.py +41 -0
  840. package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testConfigureDisable.py +48 -0
  841. package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testConfigureDisableStringification.py +44 -0
  842. package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testConfigureExperimentalRedirect.py +49 -0
  843. package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testPartialTestCaseEvent.py +79 -0
  844. package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testRandomOrder.py +77 -0
  845. package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testSharding.py +165 -0
  846. package/deps/couchbase-cxx-client/third_party/catch2/tests/meson.build +76 -0
  847. package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/appveyorBuildConfigurationScript.bat +21 -0
  848. package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/appveyorMergeCoverageScript.py +9 -0
  849. package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/appveyorTestRunScript.bat +17 -0
  850. package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/coverage-helper.cpp +142 -0
  851. package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/installOpenCppCoverage.ps1 +19 -0
  852. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/approvalTests.py +243 -0
  853. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/approve.py +31 -0
  854. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/buildAndTest.cmd +17 -0
  855. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/buildAndTest.sh +19 -0
  856. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/checkConvenienceHeaders.py +151 -0
  857. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/checkDuplicateFilenames.py +14 -0
  858. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/checkLicense.py +45 -0
  859. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/developBuild.py +9 -0
  860. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/extractFeaturesFromReleaseNotes.py +92 -0
  861. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/fixWhitespace.py +51 -0
  862. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/generateAmalgamatedFiles.py +129 -0
  863. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/majorRelease.py +9 -0
  864. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/minorRelease.py +9 -0
  865. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/patchRelease.py +9 -0
  866. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/releaseCommon.py +143 -0
  867. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/scriptCommon.py +4 -0
  868. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/updateDocumentSnippets.py +23 -0
  869. package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/updateDocumentToC.py +447 -0
  870. package/deps/couchbase-cxx-client/third_party/snappy/.github/workflows/build.yml +135 -0
  871. package/deps/couchbase-cxx-client/third_party/snappy/.gitmodules +6 -0
  872. package/deps/couchbase-cxx-client/third_party/snappy/CMakeLists.txt +150 -27
  873. package/deps/couchbase-cxx-client/third_party/snappy/CONTRIBUTING.md +9 -4
  874. package/deps/couchbase-cxx-client/third_party/snappy/NEWS +12 -0
  875. package/deps/couchbase-cxx-client/third_party/snappy/README.md +52 -35
  876. package/deps/couchbase-cxx-client/third_party/snappy/cmake/config.h.in +28 -24
  877. package/deps/couchbase-cxx-client/third_party/snappy/snappy-internal.h +189 -25
  878. package/deps/couchbase-cxx-client/third_party/snappy/snappy-sinksource.cc +26 -9
  879. package/deps/couchbase-cxx-client/third_party/snappy/snappy-sinksource.h +11 -11
  880. package/deps/couchbase-cxx-client/third_party/snappy/snappy-stubs-internal.cc +1 -1
  881. package/deps/couchbase-cxx-client/third_party/snappy/snappy-stubs-internal.h +227 -308
  882. package/deps/couchbase-cxx-client/third_party/snappy/snappy-stubs-public.h.in +0 -11
  883. package/deps/couchbase-cxx-client/third_party/snappy/snappy-test.cc +88 -198
  884. package/deps/couchbase-cxx-client/third_party/snappy/snappy-test.h +102 -285
  885. package/deps/couchbase-cxx-client/third_party/snappy/snappy.cc +1176 -410
  886. package/deps/couchbase-cxx-client/third_party/snappy/snappy.h +19 -4
  887. package/deps/couchbase-cxx-client/third_party/snappy/snappy_benchmark.cc +378 -0
  888. package/deps/couchbase-cxx-client/third_party/snappy/snappy_compress_fuzzer.cc +3 -2
  889. package/deps/couchbase-cxx-client/third_party/snappy/snappy_test_data.cc +57 -0
  890. package/deps/couchbase-cxx-client/third_party/snappy/snappy_test_data.h +68 -0
  891. package/deps/couchbase-cxx-client/third_party/snappy/snappy_test_tool.cc +471 -0
  892. package/deps/couchbase-cxx-client/third_party/snappy/snappy_uncompress_fuzzer.cc +3 -2
  893. package/deps/couchbase-cxx-client/third_party/snappy/snappy_unittest.cc +170 -666
  894. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
  895. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  896. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/workflows/build-and-test.yml +38 -0
  897. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/workflows/pylint.yml +26 -0
  898. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/workflows/test_bindings.yml +24 -0
  899. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.travis-libcxx-setup.sh +28 -0
  900. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.travis.yml +231 -0
  901. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.ycm_extra_conf.py +115 -0
  902. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/AUTHORS +58 -0
  903. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/BUILD.bazel +44 -0
  904. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/CMakeLists.txt +287 -0
  905. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/CONTRIBUTING.md +58 -0
  906. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/CONTRIBUTORS +83 -0
  907. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/LICENSE +202 -0
  908. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/README.md +1323 -0
  909. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/WORKSPACE +51 -0
  910. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/_config.yml +1 -0
  911. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/appveyor.yml +50 -0
  912. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/BUILD +3 -0
  913. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/build_defs.bzl +25 -0
  914. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/google_benchmark/BUILD +38 -0
  915. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/google_benchmark/__init__.py +156 -0
  916. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/google_benchmark/benchmark.cc +180 -0
  917. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/google_benchmark/example.py +136 -0
  918. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/pybind11.BUILD +20 -0
  919. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/python_headers.BUILD +6 -0
  920. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/requirements.txt +2 -0
  921. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/AddCXXCompilerFlag.cmake +74 -0
  922. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/CXXFeatureCheck.cmake +69 -0
  923. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/Config.cmake.in +1 -0
  924. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/GetGitVersion.cmake +54 -0
  925. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/GoogleTest.cmake +41 -0
  926. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/GoogleTest.cmake.in +58 -0
  927. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/benchmark.pc.in +12 -0
  928. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/gnu_posix_regex.cpp +12 -0
  929. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/llvm-toolchain.cmake +8 -0
  930. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/posix_regex.cpp +14 -0
  931. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/split_list.cmake +3 -0
  932. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/std_regex.cpp +10 -0
  933. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/steady_clock.cpp +7 -0
  934. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/thread_safety_attributes.cpp +4 -0
  935. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conan/CMakeLists.txt +7 -0
  936. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conan/test_package/CMakeLists.txt +10 -0
  937. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conan/test_package/conanfile.py +19 -0
  938. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conan/test_package/test_package.cpp +18 -0
  939. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conanfile.py +79 -0
  940. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/dependencies.md +18 -0
  941. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/docs/AssemblyTests.md +147 -0
  942. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/docs/_config.yml +1 -0
  943. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/docs/releasing.md +16 -0
  944. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/docs/tools.md +203 -0
  945. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/include/benchmark/benchmark.h +1604 -0
  946. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/requirements.txt +2 -0
  947. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/setup.py +140 -0
  948. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/CMakeLists.txt +114 -0
  949. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/arraysize.h +33 -0
  950. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark.cc +499 -0
  951. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_api_internal.cc +15 -0
  952. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_api_internal.h +53 -0
  953. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_main.cc +17 -0
  954. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_name.cc +58 -0
  955. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_register.cc +515 -0
  956. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_register.h +108 -0
  957. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_runner.cc +362 -0
  958. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_runner.h +51 -0
  959. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/check.h +82 -0
  960. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/colorprint.cc +188 -0
  961. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/colorprint.h +33 -0
  962. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/commandlineflags.cc +228 -0
  963. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/commandlineflags.h +103 -0
  964. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/complexity.cc +238 -0
  965. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/complexity.h +55 -0
  966. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/console_reporter.cc +177 -0
  967. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/counter.cc +80 -0
  968. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/counter.h +32 -0
  969. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/csv_reporter.cc +154 -0
  970. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/cycleclock.h +211 -0
  971. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/internal_macros.h +102 -0
  972. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/json_reporter.cc +255 -0
  973. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/log.h +74 -0
  974. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/mutex.h +155 -0
  975. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/re.h +158 -0
  976. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/reporter.cc +105 -0
  977. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/sleep.cc +67 -0
  978. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/sleep.h +15 -0
  979. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/statistics.cc +193 -0
  980. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/statistics.h +37 -0
  981. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/string_util.cc +255 -0
  982. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/string_util.h +59 -0
  983. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/sysinfo.cc +716 -0
  984. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/thread_manager.h +64 -0
  985. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/thread_timer.h +86 -0
  986. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/timers.cc +245 -0
  987. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/timers.h +48 -0
  988. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/AssemblyTests.cmake +46 -0
  989. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/BUILD +73 -0
  990. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/CMakeLists.txt +263 -0
  991. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/args_product_test.cc +77 -0
  992. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/basic_test.cc +136 -0
  993. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/benchmark_gtest.cc +134 -0
  994. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/benchmark_name_gtest.cc +74 -0
  995. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/benchmark_test.cc +245 -0
  996. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/clobber_memory_assembly_test.cc +64 -0
  997. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/commandlineflags_gtest.cc +201 -0
  998. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/complexity_test.cc +213 -0
  999. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/cxx03_test.cc +63 -0
  1000. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/diagnostics_test.cc +80 -0
  1001. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/display_aggregates_only_test.cc +43 -0
  1002. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/donotoptimize_assembly_test.cc +163 -0
  1003. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/donotoptimize_test.cc +52 -0
  1004. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/filter_test.cc +104 -0
  1005. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/fixture_test.cc +51 -0
  1006. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/internal_threading_test.cc +184 -0
  1007. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/link_main_test.cc +8 -0
  1008. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/map_test.cc +57 -0
  1009. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/memory_manager_test.cc +44 -0
  1010. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/multiple_ranges_test.cc +96 -0
  1011. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/options_test.cc +75 -0
  1012. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/output_test.h +213 -0
  1013. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/output_test_helper.cc +515 -0
  1014. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/register_benchmark_test.cc +184 -0
  1015. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/report_aggregates_only_test.cc +39 -0
  1016. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/reporter_output_test.cc +747 -0
  1017. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/skip_with_error_test.cc +195 -0
  1018. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/state_assembly_test.cc +68 -0
  1019. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/statistics_gtest.cc +28 -0
  1020. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/string_util_gtest.cc +153 -0
  1021. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/templated_fixture_test.cc +28 -0
  1022. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/user_counters_tabular_test.cc +285 -0
  1023. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/user_counters_test.cc +531 -0
  1024. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/user_counters_thousands_test.cc +173 -0
  1025. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/BUILD.bazel +19 -0
  1026. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/compare.py +429 -0
  1027. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test1_run1.json +119 -0
  1028. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test1_run2.json +119 -0
  1029. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test2_run.json +81 -0
  1030. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test3_run0.json +65 -0
  1031. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test3_run1.json +65 -0
  1032. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/__init__.py +8 -0
  1033. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/report.py +903 -0
  1034. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/util.py +163 -0
  1035. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/requirements.txt +1 -0
  1036. package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/strip_asm.py +151 -0
  1037. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/.travis.yml +65 -0
  1038. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/BUILD.bazel +182 -0
  1039. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/CMakeLists.txt +32 -0
  1040. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/CONTRIBUTING.md +142 -0
  1041. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/LICENSE +28 -0
  1042. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/README.md +135 -0
  1043. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/WORKSPACE +30 -0
  1044. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/appveyor.yml +156 -0
  1045. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/build-linux-bazel.sh +36 -0
  1046. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/build-platformio.sh +2 -0
  1047. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/env-linux.sh +41 -0
  1048. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/env-osx.sh +41 -0
  1049. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/get-nprocessors.sh +48 -0
  1050. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/install-linux.sh +49 -0
  1051. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/install-osx.sh +39 -0
  1052. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/install-platformio.sh +5 -0
  1053. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/log-config.sh +47 -0
  1054. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/travis.sh +29 -0
  1055. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/CMakeLists.txt +219 -0
  1056. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/CONTRIBUTORS +40 -0
  1057. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/LICENSE +28 -0
  1058. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/README.md +44 -0
  1059. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/cmake/gmock.pc.in +10 -0
  1060. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/cmake/gmock_main.pc.in +10 -0
  1061. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/cheat_sheet.md +786 -0
  1062. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/community_created_documentation.md +9 -0
  1063. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/cook_book.md +4276 -0
  1064. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/for_dummies.md +702 -0
  1065. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/gmock_faq.md +398 -0
  1066. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/pump_manual.md +189 -0
  1067. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-actions.h +1688 -0
  1068. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-cardinalities.h +157 -0
  1069. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-function-mocker.h +479 -0
  1070. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-generated-actions.h +577 -0
  1071. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-generated-actions.h.pump +390 -0
  1072. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-matchers.h +5394 -0
  1073. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-more-matchers.h +92 -0
  1074. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-nice-strict.h +230 -0
  1075. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-spec-builders.h +2030 -0
  1076. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock.h +98 -0
  1077. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/README.md +16 -0
  1078. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +10 -0
  1079. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +12 -0
  1080. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-matchers.h +36 -0
  1081. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-port.h +39 -0
  1082. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h +459 -0
  1083. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/gmock-port.h +87 -0
  1084. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/gmock-pp.h +279 -0
  1085. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/README.md +5 -0
  1086. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/fuse_gmock_files.py +257 -0
  1087. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/LICENSE +203 -0
  1088. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/README +34 -0
  1089. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/README.cppclean +115 -0
  1090. package/deps/couchbase-cxx-client/{core/CMakeLists.txt → third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/__init__.py} +0 -0
  1091. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/ast.py +1772 -0
  1092. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class.py +245 -0
  1093. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class_test.py +552 -0
  1094. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/keywords.py +56 -0
  1095. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/tokenize.py +284 -0
  1096. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/utils.py +37 -0
  1097. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/gmock_gen.py +30 -0
  1098. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/pump.py +856 -0
  1099. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-all.cc +46 -0
  1100. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-cardinalities.cc +155 -0
  1101. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-internal-utils.cc +200 -0
  1102. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-matchers.cc +459 -0
  1103. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-spec-builders.cc +908 -0
  1104. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock.cc +213 -0
  1105. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock_main.cc +72 -0
  1106. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/BUILD.bazel +111 -0
  1107. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-actions_test.cc +1583 -0
  1108. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-cardinalities_test.cc +429 -0
  1109. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-function-mocker_nc.cc +16 -0
  1110. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-function-mocker_nc_test.py +43 -0
  1111. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-function-mocker_test.cc +974 -0
  1112. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-generated-actions_test.cc +1036 -0
  1113. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-internal-utils_test.cc +720 -0
  1114. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-matchers_test.cc +8562 -0
  1115. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-more-actions_test.cc +725 -0
  1116. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-nice-strict_test.cc +500 -0
  1117. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-port_test.cc +42 -0
  1118. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-pp-string_test.cc +206 -0
  1119. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-pp_test.cc +83 -0
  1120. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-spec-builders_test.cc +2775 -0
  1121. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_all_test.cc +47 -0
  1122. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_ex_test.cc +80 -0
  1123. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_leak_test.py +104 -0
  1124. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_leak_test_.cc +99 -0
  1125. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_link2_test.cc +39 -0
  1126. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_link_test.cc +39 -0
  1127. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_link_test.h +690 -0
  1128. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_output_test.py +183 -0
  1129. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_output_test_.cc +309 -0
  1130. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_output_test_golden.txt +317 -0
  1131. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_stress_test.cc +240 -0
  1132. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_test.cc +181 -0
  1133. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_test_utils.py +108 -0
  1134. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/pump_test.py +182 -0
  1135. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/CMakeLists.txt +320 -0
  1136. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/CONTRIBUTORS +38 -0
  1137. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/LICENSE +28 -0
  1138. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/README.md +262 -0
  1139. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/Config.cmake.in +9 -0
  1140. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/gtest.pc.in +9 -0
  1141. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/gtest_main.pc.in +10 -0
  1142. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/internal_utils.cmake +341 -0
  1143. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/libgtest.la.in +21 -0
  1144. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/advanced.md +2640 -0
  1145. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/faq.md +771 -0
  1146. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/pkgconfig.md +150 -0
  1147. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/primer.md +583 -0
  1148. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/samples.md +22 -0
  1149. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-death-test.h +342 -0
  1150. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-matchers.h +756 -0
  1151. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-message.h +219 -0
  1152. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-param-test.h +512 -0
  1153. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-printers.h +903 -0
  1154. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-spi.h +238 -0
  1155. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-test-part.h +184 -0
  1156. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-typed-test.h +337 -0
  1157. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest.h +2491 -0
  1158. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest_pred_impl.h +359 -0
  1159. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest_prod.h +61 -0
  1160. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/custom/README.md +56 -0
  1161. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/custom/gtest-port.h +37 -0
  1162. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/custom/gtest-printers.h +42 -0
  1163. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/custom/gtest.h +37 -0
  1164. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-death-test-internal.h +304 -0
  1165. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-filepath.h +211 -0
  1166. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h +1564 -0
  1167. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-param-util.h +947 -0
  1168. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-port-arch.h +112 -0
  1169. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-port.h +2371 -0
  1170. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-string.h +175 -0
  1171. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-type-util.h +187 -0
  1172. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/prime_tables.h +126 -0
  1173. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample1.cc +66 -0
  1174. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample1.h +41 -0
  1175. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample10_unittest.cc +139 -0
  1176. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample1_unittest.cc +151 -0
  1177. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample2.cc +54 -0
  1178. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample2.h +81 -0
  1179. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample2_unittest.cc +107 -0
  1180. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample3-inl.h +172 -0
  1181. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample3_unittest.cc +149 -0
  1182. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample4.cc +54 -0
  1183. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample4.h +53 -0
  1184. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample4_unittest.cc +53 -0
  1185. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample5_unittest.cc +196 -0
  1186. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample6_unittest.cc +224 -0
  1187. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample7_unittest.cc +117 -0
  1188. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample8_unittest.cc +154 -0
  1189. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample9_unittest.cc +156 -0
  1190. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/README.md +5 -0
  1191. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/common.py +83 -0
  1192. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/fuse_gtest_files.py +253 -0
  1193. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/gen_gtest_pred_impl.py +733 -0
  1194. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/gtest-config.in +274 -0
  1195. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/release_docs.py +158 -0
  1196. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/run_with_path.py +32 -0
  1197. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/upload.py +1402 -0
  1198. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/upload_gtest.py +78 -0
  1199. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-all.cc +48 -0
  1200. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-death-test.cc +1644 -0
  1201. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-filepath.cc +368 -0
  1202. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-internal-inl.h +1228 -0
  1203. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-matchers.cc +97 -0
  1204. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-port.cc +1404 -0
  1205. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-printers.cc +444 -0
  1206. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-test-part.cc +108 -0
  1207. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-typed-test.cc +111 -0
  1208. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest.cc +6606 -0
  1209. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest_main.cc +54 -0
  1210. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/BUILD.bazel +562 -0
  1211. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-break-on-failure-unittest.py +208 -0
  1212. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-break-on-failure-unittest_.cc +86 -0
  1213. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-catch-exceptions-test.py +236 -0
  1214. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-catch-exceptions-test_.cc +293 -0
  1215. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-color-test.py +127 -0
  1216. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-color-test_.cc +62 -0
  1217. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-death-test-test.cc +1542 -0
  1218. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-death-test_ex_test.cc +92 -0
  1219. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-env-var-test.py +120 -0
  1220. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-env-var-test_.cc +132 -0
  1221. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-failfast-unittest.py +410 -0
  1222. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-failfast-unittest_.cc +167 -0
  1223. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-filepath-test.cc +649 -0
  1224. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-filter-unittest.py +639 -0
  1225. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-filter-unittest_.cc +137 -0
  1226. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-json-outfiles-test.py +191 -0
  1227. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-json-output-unittest.py +804 -0
  1228. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-list-tests-unittest.py +205 -0
  1229. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-list-tests-unittest_.cc +156 -0
  1230. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-listener-test.cc +518 -0
  1231. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-message-test.cc +158 -0
  1232. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-options-test.cc +216 -0
  1233. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-output-test-golden-lin.txt +1180 -0
  1234. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-output-test.py +346 -0
  1235. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-output-test_.cc +1126 -0
  1236. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-invalid-name1-test.py +63 -0
  1237. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-invalid-name1-test_.cc +50 -0
  1238. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-invalid-name2-test.py +62 -0
  1239. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-invalid-name2-test_.cc +55 -0
  1240. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-test.cc +1119 -0
  1241. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-test.h +51 -0
  1242. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test2-test.cc +61 -0
  1243. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-port-test.cc +1280 -0
  1244. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-printers-test.cc +1847 -0
  1245. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-setuptestsuite-test.py +54 -0
  1246. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-setuptestsuite-test_.cc +49 -0
  1247. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-shuffle-test.py +323 -0
  1248. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-shuffle-test_.cc +101 -0
  1249. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-test-part-test.cc +230 -0
  1250. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-throw-on-failure-test.py +168 -0
  1251. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-throw-on-failure-test_.cc +71 -0
  1252. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-uninitialized-test.py +67 -0
  1253. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-uninitialized-test_.cc +42 -0
  1254. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest-typed-test2_test.cc +44 -0
  1255. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest-typed-test_test.cc +462 -0
  1256. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest-typed-test_test.h +65 -0
  1257. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest-unittest-api_test.cc +341 -0
  1258. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_all_test.cc +46 -0
  1259. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_assert_by_exception_test.cc +116 -0
  1260. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_environment_test.cc +188 -0
  1261. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_help_test.py +171 -0
  1262. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_help_test_.cc +45 -0
  1263. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_json_test_utils.py +60 -0
  1264. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_list_output_unittest.py +286 -0
  1265. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_list_output_unittest_.cc +81 -0
  1266. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_main_unittest.cc +44 -0
  1267. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_no_test_unittest.cc +54 -0
  1268. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_pred_impl_unittest.cc +2422 -0
  1269. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_premature_exit_test.cc +126 -0
  1270. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_prod_test.cc +56 -0
  1271. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_repeat_test.cc +233 -0
  1272. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_skip_check_output_test.py +59 -0
  1273. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_skip_environment_check_output_test.py +54 -0
  1274. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_skip_in_environment_setup_test.cc +49 -0
  1275. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_skip_test.cc +55 -0
  1276. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_sole_header_test.cc +56 -0
  1277. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_stress_test.cc +248 -0
  1278. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_test_macro_stack_footprint_test.cc +89 -0
  1279. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_test_utils.py +312 -0
  1280. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_testbridge_test.py +63 -0
  1281. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_testbridge_test_.cc +43 -0
  1282. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_throw_on_failure_ex_test.cc +90 -0
  1283. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_unittest.cc +7792 -0
  1284. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_outfile1_test_.cc +43 -0
  1285. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_outfile2_test_.cc +43 -0
  1286. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_outfiles_test.py +135 -0
  1287. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_output_unittest.py +405 -0
  1288. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_output_unittest_.cc +197 -0
  1289. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_test_utils.py +197 -0
  1290. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/production.cc +35 -0
  1291. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/production.h +54 -0
  1292. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/library.json +62 -0
  1293. package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/platformio.ini +47 -0
  1294. package/deps/couchbase-cxx-client/tools/CMakeLists.txt +2 -0
  1295. package/deps/couchbase-cxx-client/tools/analytics.cxx +375 -0
  1296. package/deps/couchbase-cxx-client/tools/analytics.hxx +26 -0
  1297. package/deps/couchbase-cxx-client/tools/cbc.cxx +11 -4
  1298. package/deps/couchbase-cxx-client/tools/command_registry.cxx +4 -0
  1299. package/deps/couchbase-cxx-client/tools/get.cxx +36 -39
  1300. package/deps/couchbase-cxx-client/tools/get.hxx +1 -1
  1301. package/deps/couchbase-cxx-client/tools/pillowfight.cxx +496 -0
  1302. package/deps/couchbase-cxx-client/tools/pillowfight.hxx +26 -0
  1303. package/deps/couchbase-cxx-client/tools/query.cxx +97 -101
  1304. package/deps/couchbase-cxx-client/tools/query.hxx +1 -1
  1305. package/deps/couchbase-cxx-client/tools/utils.cxx +15 -1
  1306. package/deps/couchbase-cxx-client/tools/utils.hxx +3 -0
  1307. package/deps/couchbase-cxx-client/tools/version.cxx +4 -2
  1308. package/deps/couchbase-cxx-client/tools/version.hxx +1 -1
  1309. package/dist/authenticators.d.ts +1 -1
  1310. package/dist/binding.d.ts +25 -10
  1311. package/dist/bindingutilities.d.ts +6 -2
  1312. package/dist/bindingutilities.js +39 -7
  1313. package/dist/cluster.d.ts +27 -0
  1314. package/dist/cluster.js +88 -56
  1315. package/dist/collection.js +6 -6
  1316. package/dist/configProfile.js +16 -10
  1317. package/dist/couchbase.d.ts +1 -0
  1318. package/dist/couchbase.js +2 -1
  1319. package/dist/errors.d.ts +2 -2
  1320. package/dist/errors.js +4 -4
  1321. package/dist/scope.js +6 -6
  1322. package/dist/sdspecs.js +11 -11
  1323. package/dist/searchquery.d.ts +1 -1
  1324. package/dist/streamablepromises.d.ts +1 -1
  1325. package/dist/transactions.js +5 -1
  1326. package/dist/usermanager.js +9 -9
  1327. package/dist/viewindexmanager.js +8 -8
  1328. package/package.json +1 -1
  1329. package/src/binding.cpp +2 -0
  1330. package/src/jstocbpp_autogen.hpp +3 -6
  1331. package/src/jstocbpp_basic.hpp +8 -2
  1332. package/src/jstocbpp_errors.hpp +35 -0
  1333. package/src/jstocbpp_transactions.hpp +61 -9
  1334. package/src/transaction.cpp +1 -1
  1335. package/deps/couchbase-cxx-client/core/config_profile.cxx +0 -25
  1336. package/deps/couchbase-cxx-client/core/topology/error_map_fmt.hxx +0 -94
  1337. package/deps/couchbase-cxx-client/test/test_transaction_transaction_context.cxx +0 -550
  1338. package/deps/couchbase-cxx-client/test/test_transaction_transaction_public_async_api.cxx +0 -392
  1339. package/deps/couchbase-cxx-client/test/test_transaction_transaction_public_blocking_api.cxx +0 -643
  1340. package/deps/couchbase-cxx-client/test/test_transaction_transaction_simple.cxx +0 -899
  1341. package/deps/couchbase-cxx-client/test/test_transaction_transaction_simple_async.cxx +0 -972
  1342. package/deps/couchbase-cxx-client/test/tools/CMakeLists.txt +0 -10
  1343. package/deps/couchbase-cxx-client/test/tools/tool_kv_loader.cxx +0 -349
  1344. package/deps/couchbase-cxx-client/test/utils/uniq_id.cxx +0 -29
  1345. package/deps/couchbase-cxx-client/test/utils/uniq_id.hxx +0 -26
  1346. package/deps/couchbase-cxx-client/third_party/catch2/.travis.yml +0 -335
  1347. package/deps/couchbase-cxx-client/third_party/catch2/CMake/MiscFunctions.cmake +0 -26
  1348. package/deps/couchbase-cxx-client/third_party/catch2/WORKSPACE +0 -0
  1349. package/deps/couchbase-cxx-client/third_party/catch2/contrib/Catch.cmake +0 -206
  1350. package/deps/couchbase-cxx-client/third_party/catch2/contrib/CatchAddTests.cmake +0 -135
  1351. package/deps/couchbase-cxx-client/third_party/catch2/docs/slow-compiles.md +0 -106
  1352. package/deps/couchbase-cxx-client/third_party/catch2/examples/000-CatchMain.cpp +0 -15
  1353. package/deps/couchbase-cxx-client/third_party/catch2/examples/200-Rpt-CatchMain.cpp +0 -27
  1354. package/deps/couchbase-cxx-client/third_party/catch2/examples/207-Rpt-TeamCityReporter.cpp +0 -171
  1355. package/deps/couchbase-cxx-client/third_party/catch2/include/catch.hpp +0 -496
  1356. package/deps/couchbase-cxx-client/third_party/catch2/include/catch_with_main.hpp +0 -14
  1357. package/deps/couchbase-cxx-client/third_party/catch2/include/external/clara.hpp +0 -1268
  1358. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_benchmark.hpp +0 -122
  1359. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_benchmarking_all.hpp +0 -29
  1360. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_chronometer.hpp +0 -71
  1361. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_clock.hpp +0 -40
  1362. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_constructor.hpp +0 -79
  1363. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_environment.hpp +0 -38
  1364. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_estimate.hpp +0 -31
  1365. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_execution_plan.hpp +0 -59
  1366. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_optimizer.hpp +0 -68
  1367. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_outlier_classification.hpp +0 -29
  1368. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_sample_analysis.hpp +0 -50
  1369. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_analyse.hpp +0 -78
  1370. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_benchmark_function.hpp +0 -105
  1371. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_complete_invoke.hpp +0 -68
  1372. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_estimate_clock.hpp +0 -115
  1373. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_measure.hpp +0 -35
  1374. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_repeat.hpp +0 -37
  1375. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_run_for_at_least.hpp +0 -65
  1376. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_stats.cpp +0 -224
  1377. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_stats.hpp +0 -160
  1378. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_timing.hpp +0 -33
  1379. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_approx.cpp +0 -88
  1380. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_approx.h +0 -132
  1381. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertionhandler.cpp +0 -122
  1382. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertionhandler.h +0 -88
  1383. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertioninfo.h +0 -31
  1384. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertionresult.cpp +0 -104
  1385. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertionresult.h +0 -59
  1386. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_capture.hpp +0 -159
  1387. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_capture_matchers.cpp +0 -24
  1388. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_capture_matchers.h +0 -88
  1389. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_clara.h +0 -38
  1390. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_commandline.cpp +0 -230
  1391. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_commandline.h +0 -20
  1392. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_common.cpp +0 -43
  1393. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_common.h +0 -92
  1394. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_compiler_capabilities.h +0 -377
  1395. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_config.cpp +0 -86
  1396. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_config.hpp +0 -133
  1397. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_config_uncaught_exceptions.hpp +0 -44
  1398. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_console_colour.cpp +0 -243
  1399. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_console_colour.h +0 -69
  1400. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_context.cpp +0 -70
  1401. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_context.h +0 -64
  1402. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_debug_console.cpp +0 -41
  1403. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_debug_console.h +0 -17
  1404. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_debugger.cpp +0 -122
  1405. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_debugger.h +0 -65
  1406. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_decomposer.cpp +0 -24
  1407. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_decomposer.h +0 -259
  1408. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_default_main.hpp +0 -47
  1409. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_enforce.cpp +0 -40
  1410. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_enforce.h +0 -53
  1411. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_enum_values_registry.cpp +0 -75
  1412. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_enum_values_registry.h +0 -35
  1413. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_errno_guard.cpp +0 -15
  1414. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_errno_guard.h +0 -22
  1415. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_exception_translator_registry.cpp +0 -89
  1416. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_exception_translator_registry.h +0 -30
  1417. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_external_interfaces.h +0 -20
  1418. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_fatal_condition.cpp +0 -244
  1419. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_fatal_condition.h +0 -68
  1420. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_generators.cpp +0 -32
  1421. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_generators.hpp +0 -219
  1422. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_generators_generic.hpp +0 -237
  1423. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_generators_specific.hpp +0 -175
  1424. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_impl.hpp +0 -33
  1425. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_capture.cpp +0 -5
  1426. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_capture.h +0 -100
  1427. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_config.cpp +0 -5
  1428. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_config.h +0 -92
  1429. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_enum_values_registry.h +0 -46
  1430. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_exception.cpp +0 -6
  1431. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_exception.h +0 -88
  1432. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_generatortracker.h +0 -39
  1433. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_registry_hub.cpp +0 -6
  1434. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_registry_hub.h +0 -61
  1435. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_reporter.cpp +0 -114
  1436. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_reporter.h +0 -272
  1437. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_runner.cpp +0 -5
  1438. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_runner.h +0 -19
  1439. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_tag_alias_registry.h +0 -28
  1440. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_testcase.cpp +0 -6
  1441. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_testcase.h +0 -38
  1442. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_leak_detector.cpp +0 -37
  1443. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_leak_detector.h +0 -18
  1444. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_list.cpp +0 -173
  1445. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_list.h +0 -38
  1446. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers.cpp +0 -28
  1447. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers.h +0 -174
  1448. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_exception.cpp +0 -30
  1449. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_exception.hpp +0 -36
  1450. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_floating.cpp +0 -237
  1451. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_floating.h +0 -70
  1452. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_generic.cpp +0 -9
  1453. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_generic.hpp +0 -58
  1454. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_string.cpp +0 -118
  1455. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_string.h +0 -80
  1456. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_vector.h +0 -180
  1457. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_message.cpp +0 -142
  1458. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_message.h +0 -99
  1459. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_meta.hpp +0 -50
  1460. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_objc.hpp +0 -215
  1461. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_objc_arc.hpp +0 -51
  1462. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_option.hpp +0 -73
  1463. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_output_redirect.cpp +0 -147
  1464. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_output_redirect.h +0 -116
  1465. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_platform.h +0 -30
  1466. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_polyfills.cpp +0 -31
  1467. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_polyfills.hpp +0 -15
  1468. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_preprocessor.hpp +0 -237
  1469. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_random_number_generator.cpp +0 -73
  1470. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_random_number_generator.h +0 -58
  1471. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_reenable_warnings.h +0 -21
  1472. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_registry_hub.cpp +0 -99
  1473. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_reporter_registrars.hpp +0 -78
  1474. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_reporter_registry.cpp +0 -34
  1475. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_reporter_registry.h +0 -37
  1476. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_result_type.cpp +0 -27
  1477. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_result_type.h +0 -55
  1478. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_run_context.cpp +0 -595
  1479. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_run_context.h +0 -159
  1480. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_section.cpp +0 -38
  1481. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_section.h +0 -51
  1482. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_section_info.cpp +0 -19
  1483. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_section_info.h +0 -42
  1484. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_session.cpp +0 -313
  1485. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_session.h +0 -62
  1486. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_singletons.cpp +0 -36
  1487. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_singletons.hpp +0 -44
  1488. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_startup_exception_registry.cpp +0 -28
  1489. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_startup_exception_registry.h +0 -29
  1490. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_stream.cpp +0 -187
  1491. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_stream.h +0 -51
  1492. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_string_manip.cpp +0 -109
  1493. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_string_manip.h +0 -45
  1494. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_stringref.cpp +0 -50
  1495. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_stringref.h +0 -104
  1496. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_suppress_warnings.h +0 -27
  1497. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias.cpp +0 -5
  1498. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias.h +0 -26
  1499. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias_autoregistrar.cpp +0 -16
  1500. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias_autoregistrar.h +0 -26
  1501. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias_registry.cpp +0 -58
  1502. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias_registry.h +0 -31
  1503. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_info.cpp +0 -186
  1504. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_info.h +0 -90
  1505. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_registry_impl.cpp +0 -176
  1506. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_registry_impl.h +0 -71
  1507. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_tracker.cpp +0 -254
  1508. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_tracker.h +0 -180
  1509. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_registry.cpp +0 -37
  1510. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_registry.h +0 -402
  1511. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_spec.cpp +0 -99
  1512. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_spec.h +0 -94
  1513. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_spec_parser.cpp +0 -240
  1514. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_spec_parser.h +0 -79
  1515. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_text.h +0 -17
  1516. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_timer.cpp +0 -74
  1517. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_timer.h +0 -30
  1518. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_to_string.hpp +0 -28
  1519. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tostring.cpp +0 -265
  1520. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tostring.h +0 -675
  1521. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_totals.cpp +0 -61
  1522. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_totals.h +0 -41
  1523. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_uncaught_exceptions.cpp +0 -25
  1524. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_uncaught_exceptions.h +0 -15
  1525. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_user_interfaces.h +0 -18
  1526. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_version.cpp +0 -44
  1527. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_version.h +0 -39
  1528. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_wildcard_pattern.cpp +0 -47
  1529. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_wildcard_pattern.h +0 -38
  1530. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_windows_h_proxy.h +0 -39
  1531. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_xmlwriter.cpp +0 -334
  1532. package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_xmlwriter.h +0 -116
  1533. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_automake.hpp +0 -62
  1534. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_bases.cpp +0 -84
  1535. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_bases.hpp +0 -285
  1536. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_compact.cpp +0 -290
  1537. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_compact.h +0 -39
  1538. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_console.cpp +0 -700
  1539. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_console.h +0 -89
  1540. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_junit.cpp +0 -300
  1541. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_junit.h +0 -62
  1542. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_listening.cpp +0 -164
  1543. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_listening.h +0 -63
  1544. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_sonarqube.hpp +0 -181
  1545. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_tap.hpp +0 -254
  1546. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_teamcity.hpp +0 -219
  1547. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_xml.cpp +0 -281
  1548. package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_xml.h +0 -68
  1549. package/deps/couchbase-cxx-client/third_party/catch2/misc/appveyorBuildConfigurationScript.bat +0 -22
  1550. package/deps/couchbase-cxx-client/third_party/catch2/misc/appveyorMergeCoverageScript.py +0 -9
  1551. package/deps/couchbase-cxx-client/third_party/catch2/misc/appveyorTestRunScript.bat +0 -15
  1552. package/deps/couchbase-cxx-client/third_party/catch2/misc/coverage-helper.cpp +0 -142
  1553. package/deps/couchbase-cxx-client/third_party/catch2/misc/installOpenCppCoverage.ps1 +0 -19
  1554. package/deps/couchbase-cxx-client/third_party/catch2/projects/CMakeLists.txt +0 -492
  1555. package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/CMakeLists.txt +0 -201
  1556. package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/ToDo.txt +0 -11
  1557. package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X01-PrefixedMacros.cpp +0 -84
  1558. package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X02-DisabledMacros.cpp +0 -31
  1559. package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X03-DisabledExceptions-DefaultHandler.cpp +0 -23
  1560. package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X04-DisabledExceptions-CustomHandler.cpp +0 -33
  1561. package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X10-FallbackStringifier.cpp +0 -23
  1562. package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X11-DisableStringification.cpp +0 -16
  1563. package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X12-CustomDebugBreakMacro.cpp +0 -17
  1564. package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X20-BenchmarkingMacros.cpp +0 -125
  1565. package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X90-WindowsHeaderInclusion.cpp +0 -12
  1566. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/compact.sw.approved.txt +0 -1903
  1567. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/console.std.approved.txt +0 -1425
  1568. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/console.sw.approved.txt +0 -14183
  1569. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/console.swa4.approved.txt +0 -936
  1570. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/junit.sw.approved.txt +0 -1773
  1571. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/sonarqube.sw.approved.txt +0 -1777
  1572. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/xml.sw.approved.txt +0 -16767
  1573. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/CompileTimePerfTests/10.tests.cpp +0 -13
  1574. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/CompileTimePerfTests/100.tests.cpp +0 -13
  1575. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/CompileTimePerfTests/All.tests.cpp +0 -15
  1576. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/CmdLine.tests.cpp +0 -582
  1577. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/Details.tests.cpp +0 -23
  1578. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp +0 -352
  1579. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp +0 -405
  1580. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/PartTracker.tests.cpp +0 -253
  1581. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp +0 -45
  1582. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/String.tests.cpp +0 -150
  1583. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/StringManip.tests.cpp +0 -67
  1584. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/Tag.tests.cpp +0 -54
  1585. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/ToString.tests.cpp +0 -53
  1586. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/Xml.tests.cpp +0 -114
  1587. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_console_colour.cpp +0 -3
  1588. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_debugger.cpp +0 -2
  1589. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_interfaces_reporter.cpp +0 -2
  1590. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_option.cpp +0 -3
  1591. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_stream.cpp +0 -3
  1592. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_test_case_tracker.cpp +0 -2
  1593. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_test_spec.cpp +0 -3
  1594. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_xmlwriter.cpp +0 -4
  1595. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/TestMain.cpp +0 -34
  1596. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/TimingTests/Sleep.tests.cpp +0 -23
  1597. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Approx.tests.cpp +0 -215
  1598. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/BDD.tests.cpp +0 -110
  1599. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Benchmark.tests.cpp +0 -144
  1600. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Class.tests.cpp +0 -137
  1601. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Compilation.tests.cpp +0 -269
  1602. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Condition.tests.cpp +0 -347
  1603. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Decomposition.tests.cpp +0 -39
  1604. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/EnumToString.tests.cpp +0 -99
  1605. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Exception.tests.cpp +0 -210
  1606. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Generators.tests.cpp +0 -271
  1607. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Matchers.tests.cpp +0 -676
  1608. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Message.tests.cpp +0 -269
  1609. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Misc.tests.cpp +0 -493
  1610. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringByte.tests.cpp +0 -15
  1611. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringChrono.tests.cpp +0 -44
  1612. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp +0 -210
  1613. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringOptional.tests.cpp +0 -23
  1614. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringPair.tests.cpp +0 -30
  1615. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringTuple.tests.cpp +0 -47
  1616. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp +0 -91
  1617. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringVector.tests.cpp +0 -86
  1618. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringWhich.tests.cpp +0 -193
  1619. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Tricky.tests.cpp +0 -429
  1620. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/VariadicMacros.tests.cpp +0 -29
  1621. package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/WarnAboutNoTests.cmake +0 -19
  1622. package/deps/couchbase-cxx-client/third_party/catch2/projects/TestScripts/testRandomOrder.py +0 -59
  1623. package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/CatchOCTestCase.h +0 -25
  1624. package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/CatchOCTestCase.mm +0 -87
  1625. package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/Main.mm +0 -2
  1626. package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/OCTest.1 +0 -79
  1627. package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/OCTest.mm +0 -28
  1628. package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/TestObj.h +0 -28
  1629. package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/TestObj.m +0 -25
  1630. package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest.xcodeproj/project.pbxproj +0 -294
  1631. package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  1632. package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  1633. package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/catch_objc_impl.mm +0 -69
  1634. package/deps/couchbase-cxx-client/third_party/catch2/scripts/approvalTests.py +0 -217
  1635. package/deps/couchbase-cxx-client/third_party/catch2/scripts/approve.py +0 -33
  1636. package/deps/couchbase-cxx-client/third_party/catch2/scripts/benchmarkCompile.py +0 -148
  1637. package/deps/couchbase-cxx-client/third_party/catch2/scripts/benchmarkRunner.py +0 -56
  1638. package/deps/couchbase-cxx-client/third_party/catch2/scripts/developBuild.py +0 -10
  1639. package/deps/couchbase-cxx-client/third_party/catch2/scripts/embed.py +0 -63
  1640. package/deps/couchbase-cxx-client/third_party/catch2/scripts/embedClara.py +0 -27
  1641. package/deps/couchbase-cxx-client/third_party/catch2/scripts/extractFeaturesFromReleaseNotes.py +0 -94
  1642. package/deps/couchbase-cxx-client/third_party/catch2/scripts/fixWhitespace.py +0 -52
  1643. package/deps/couchbase-cxx-client/third_party/catch2/scripts/generateSingleHeader.py +0 -151
  1644. package/deps/couchbase-cxx-client/third_party/catch2/scripts/majorRelease.py +0 -10
  1645. package/deps/couchbase-cxx-client/third_party/catch2/scripts/minorRelease.py +0 -10
  1646. package/deps/couchbase-cxx-client/third_party/catch2/scripts/patchRelease.py +0 -10
  1647. package/deps/couchbase-cxx-client/third_party/catch2/scripts/releaseCommon.py +0 -168
  1648. package/deps/couchbase-cxx-client/third_party/catch2/scripts/releaseNotes.py +0 -65
  1649. package/deps/couchbase-cxx-client/third_party/catch2/scripts/scriptCommon.py +0 -31
  1650. package/deps/couchbase-cxx-client/third_party/catch2/scripts/updateDocumentToC.py +0 -449
  1651. package/deps/couchbase-cxx-client/third_party/catch2/scripts/updateWandbox.py +0 -53
  1652. package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch.hpp +0 -17959
  1653. package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch_reporter_automake.hpp +0 -62
  1654. package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch_reporter_sonarqube.hpp +0 -181
  1655. package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch_reporter_tap.hpp +0 -254
  1656. package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch_reporter_teamcity.hpp +0 -219
  1657. package/deps/couchbase-cxx-client/third_party/catch2/src/catch_with_main.cpp +0 -2
  1658. package/deps/couchbase-cxx-client/third_party/snappy/.appveyor.yml +0 -36
  1659. package/deps/couchbase-cxx-client/third_party/snappy/.travis.yml +0 -94
  1660. /package/deps/couchbase-cxx-client/third_party/catch2/{artwork → data/artwork}/catch2-c-logo.png +0 -0
  1661. /package/deps/couchbase-cxx-client/third_party/catch2/{artwork → data/artwork}/catch2-hand-logo.png +0 -0
  1662. /package/deps/couchbase-cxx-client/third_party/catch2/{artwork → data/artwork}/catch2-logo-small.png +0 -0
  1663. /package/deps/couchbase-cxx-client/third_party/catch2/{contrib → extras}/ParseAndAddCatchTests.cmake +0 -0
  1664. /package/deps/couchbase-cxx-client/third_party/catch2/{contrib → extras}/gdbinit +0 -0
  1665. /package/deps/couchbase-cxx-client/third_party/catch2/{contrib → extras}/lldbinit +0 -0
  1666. /package/deps/couchbase-cxx-client/third_party/catch2/{projects → tests}/SelfTest/Baselines/automake.std.approved.txt +0 -0
  1667. /package/deps/couchbase-cxx-client/third_party/catch2/{projects → tests}/SelfTest/Misc/invalid-test-names.input +0 -0
  1668. /package/deps/couchbase-cxx-client/third_party/catch2/{projects → tests}/SelfTest/Misc/plain-old-tests.input +0 -0
  1669. /package/deps/couchbase-cxx-client/third_party/catch2/{projects → tests}/SelfTest/Misc/special-characters-in-file.input +0 -0
  1670. /package/deps/couchbase-cxx-client/third_party/catch2/{misc → tools/misc}/CMakeLists.txt +0 -0
@@ -0,0 +1,2640 @@
1
+ # Advanced googletest Topics
2
+
3
+ <!-- GOOGLETEST_CM0016 DO NOT DELETE -->
4
+
5
+ <!-- GOOGLETEST_CM0035 DO NOT DELETE -->
6
+
7
+ ## Introduction
8
+
9
+ Now that you have read the [googletest Primer](primer.md) and learned how to
10
+ write tests using googletest, it's time to learn some new tricks. This document
11
+ will show you more assertions as well as how to construct complex failure
12
+ messages, propagate fatal failures, reuse and speed up your test fixtures, and
13
+ use various flags with your tests.
14
+
15
+ ## More Assertions
16
+
17
+ This section covers some less frequently used, but still significant,
18
+ assertions.
19
+
20
+ ### Explicit Success and Failure
21
+
22
+ These three assertions do not actually test a value or expression. Instead, they
23
+ generate a success or failure directly. Like the macros that actually perform a
24
+ test, you may stream a custom failure message into them.
25
+
26
+ ```c++
27
+ SUCCEED();
28
+ ```
29
+
30
+ Generates a success. This does **NOT** make the overall test succeed. A test is
31
+ considered successful only if none of its assertions fail during its execution.
32
+
33
+ NOTE: `SUCCEED()` is purely documentary and currently doesn't generate any
34
+ user-visible output. However, we may add `SUCCEED()` messages to googletest's
35
+ output in the future.
36
+
37
+ ```c++
38
+ FAIL();
39
+ ADD_FAILURE();
40
+ ADD_FAILURE_AT("file_path", line_number);
41
+ ```
42
+
43
+ `FAIL()` generates a fatal failure, while `ADD_FAILURE()` and `ADD_FAILURE_AT()`
44
+ generate a nonfatal failure. These are useful when control flow, rather than a
45
+ Boolean expression, determines the test's success or failure. For example, you
46
+ might want to write something like:
47
+
48
+ ```c++
49
+ switch(expression) {
50
+ case 1:
51
+ ... some checks ...
52
+ case 2:
53
+ ... some other checks ...
54
+ default:
55
+ FAIL() << "We shouldn't get here.";
56
+ }
57
+ ```
58
+
59
+ NOTE: you can only use `FAIL()` in functions that return `void`. See the
60
+ [Assertion Placement section](#assertion-placement) for more information.
61
+
62
+ ### Exception Assertions
63
+
64
+ These are for verifying that a piece of code throws (or does not throw) an
65
+ exception of the given type:
66
+
67
+ Fatal assertion | Nonfatal assertion | Verifies
68
+ ------------------------------------------ | ------------------------------------------ | --------
69
+ `ASSERT_THROW(statement, exception_type);` | `EXPECT_THROW(statement, exception_type);` | `statement` throws an exception of the given type
70
+ `ASSERT_ANY_THROW(statement);` | `EXPECT_ANY_THROW(statement);` | `statement` throws an exception of any type
71
+ `ASSERT_NO_THROW(statement);` | `EXPECT_NO_THROW(statement);` | `statement` doesn't throw any exception
72
+
73
+ Examples:
74
+
75
+ ```c++
76
+ ASSERT_THROW(Foo(5), bar_exception);
77
+
78
+ EXPECT_NO_THROW({
79
+ int n = 5;
80
+ Bar(&n);
81
+ });
82
+ ```
83
+
84
+ **Availability**: requires exceptions to be enabled in the build environment
85
+
86
+ ### Predicate Assertions for Better Error Messages
87
+
88
+ Even though googletest has a rich set of assertions, they can never be complete,
89
+ as it's impossible (nor a good idea) to anticipate all scenarios a user might
90
+ run into. Therefore, sometimes a user has to use `EXPECT_TRUE()` to check a
91
+ complex expression, for lack of a better macro. This has the problem of not
92
+ showing you the values of the parts of the expression, making it hard to
93
+ understand what went wrong. As a workaround, some users choose to construct the
94
+ failure message by themselves, streaming it into `EXPECT_TRUE()`. However, this
95
+ is awkward especially when the expression has side-effects or is expensive to
96
+ evaluate.
97
+
98
+ googletest gives you three different options to solve this problem:
99
+
100
+ #### Using an Existing Boolean Function
101
+
102
+ If you already have a function or functor that returns `bool` (or a type that
103
+ can be implicitly converted to `bool`), you can use it in a *predicate
104
+ assertion* to get the function arguments printed for free:
105
+
106
+ <!-- mdformat off(github rendering does not support multiline tables) -->
107
+
108
+ | Fatal assertion | Nonfatal assertion | Verifies |
109
+ | --------------------------------- | --------------------------------- | --------------------------- |
110
+ | `ASSERT_PRED1(pred1, val1)` | `EXPECT_PRED1(pred1, val1)` | `pred1(val1)` is true |
111
+ | `ASSERT_PRED2(pred2, val1, val2)` | `EXPECT_PRED2(pred2, val1, val2)` | `pred2(val1, val2)` is true |
112
+ | `...` | `...` | `...` |
113
+
114
+ <!-- mdformat on-->
115
+ In the above, `predn` is an `n`-ary predicate function or functor, where `val1`,
116
+ `val2`, ..., and `valn` are its arguments. The assertion succeeds if the
117
+ predicate returns `true` when applied to the given arguments, and fails
118
+ otherwise. When the assertion fails, it prints the value of each argument. In
119
+ either case, the arguments are evaluated exactly once.
120
+
121
+ Here's an example. Given
122
+
123
+ ```c++
124
+ // Returns true if m and n have no common divisors except 1.
125
+ bool MutuallyPrime(int m, int n) { ... }
126
+
127
+ const int a = 3;
128
+ const int b = 4;
129
+ const int c = 10;
130
+ ```
131
+
132
+ the assertion
133
+
134
+ ```c++
135
+ EXPECT_PRED2(MutuallyPrime, a, b);
136
+ ```
137
+
138
+ will succeed, while the assertion
139
+
140
+ ```c++
141
+ EXPECT_PRED2(MutuallyPrime, b, c);
142
+ ```
143
+
144
+ will fail with the message
145
+
146
+ ```none
147
+ MutuallyPrime(b, c) is false, where
148
+ b is 4
149
+ c is 10
150
+ ```
151
+
152
+ > NOTE:
153
+ >
154
+ > 1. If you see a compiler error "no matching function to call" when using
155
+ > `ASSERT_PRED*` or `EXPECT_PRED*`, please see
156
+ > [this](faq.md#the-compiler-complains-no-matching-function-to-call-when-i-use-assert-pred-how-do-i-fix-it)
157
+ > for how to resolve it.
158
+
159
+ #### Using a Function That Returns an AssertionResult
160
+
161
+ While `EXPECT_PRED*()` and friends are handy for a quick job, the syntax is not
162
+ satisfactory: you have to use different macros for different arities, and it
163
+ feels more like Lisp than C++. The `::testing::AssertionResult` class solves
164
+ this problem.
165
+
166
+ An `AssertionResult` object represents the result of an assertion (whether it's
167
+ a success or a failure, and an associated message). You can create an
168
+ `AssertionResult` using one of these factory functions:
169
+
170
+ ```c++
171
+ namespace testing {
172
+
173
+ // Returns an AssertionResult object to indicate that an assertion has
174
+ // succeeded.
175
+ AssertionResult AssertionSuccess();
176
+
177
+ // Returns an AssertionResult object to indicate that an assertion has
178
+ // failed.
179
+ AssertionResult AssertionFailure();
180
+
181
+ }
182
+ ```
183
+
184
+ You can then use the `<<` operator to stream messages to the `AssertionResult`
185
+ object.
186
+
187
+ To provide more readable messages in Boolean assertions (e.g. `EXPECT_TRUE()`),
188
+ write a predicate function that returns `AssertionResult` instead of `bool`. For
189
+ example, if you define `IsEven()` as:
190
+
191
+ ```c++
192
+ testing::AssertionResult IsEven(int n) {
193
+ if ((n % 2) == 0)
194
+ return testing::AssertionSuccess();
195
+ else
196
+ return testing::AssertionFailure() << n << " is odd";
197
+ }
198
+ ```
199
+
200
+ instead of:
201
+
202
+ ```c++
203
+ bool IsEven(int n) {
204
+ return (n % 2) == 0;
205
+ }
206
+ ```
207
+
208
+ the failed assertion `EXPECT_TRUE(IsEven(Fib(4)))` will print:
209
+
210
+ ```none
211
+ Value of: IsEven(Fib(4))
212
+ Actual: false (3 is odd)
213
+ Expected: true
214
+ ```
215
+
216
+ instead of a more opaque
217
+
218
+ ```none
219
+ Value of: IsEven(Fib(4))
220
+ Actual: false
221
+ Expected: true
222
+ ```
223
+
224
+ If you want informative messages in `EXPECT_FALSE` and `ASSERT_FALSE` as well
225
+ (one third of Boolean assertions in the Google code base are negative ones), and
226
+ are fine with making the predicate slower in the success case, you can supply a
227
+ success message:
228
+
229
+ ```c++
230
+ testing::AssertionResult IsEven(int n) {
231
+ if ((n % 2) == 0)
232
+ return testing::AssertionSuccess() << n << " is even";
233
+ else
234
+ return testing::AssertionFailure() << n << " is odd";
235
+ }
236
+ ```
237
+
238
+ Then the statement `EXPECT_FALSE(IsEven(Fib(6)))` will print
239
+
240
+ ```none
241
+ Value of: IsEven(Fib(6))
242
+ Actual: true (8 is even)
243
+ Expected: false
244
+ ```
245
+
246
+ #### Using a Predicate-Formatter
247
+
248
+ If you find the default message generated by `(ASSERT|EXPECT)_PRED*` and
249
+ `(ASSERT|EXPECT)_(TRUE|FALSE)` unsatisfactory, or some arguments to your
250
+ predicate do not support streaming to `ostream`, you can instead use the
251
+ following *predicate-formatter assertions* to *fully* customize how the message
252
+ is formatted:
253
+
254
+ Fatal assertion | Nonfatal assertion | Verifies
255
+ ------------------------------------------------ | ------------------------------------------------ | --------
256
+ `ASSERT_PRED_FORMAT1(pred_format1, val1);` | `EXPECT_PRED_FORMAT1(pred_format1, val1);` | `pred_format1(val1)` is successful
257
+ `ASSERT_PRED_FORMAT2(pred_format2, val1, val2);` | `EXPECT_PRED_FORMAT2(pred_format2, val1, val2);` | `pred_format2(val1, val2)` is successful
258
+ `...` | `...` | ...
259
+
260
+ The difference between this and the previous group of macros is that instead of
261
+ a predicate, `(ASSERT|EXPECT)_PRED_FORMAT*` take a *predicate-formatter*
262
+ (`pred_formatn`), which is a function or functor with the signature:
263
+
264
+ ```c++
265
+ testing::AssertionResult PredicateFormattern(const char* expr1,
266
+ const char* expr2,
267
+ ...
268
+ const char* exprn,
269
+ T1 val1,
270
+ T2 val2,
271
+ ...
272
+ Tn valn);
273
+ ```
274
+
275
+ where `val1`, `val2`, ..., and `valn` are the values of the predicate arguments,
276
+ and `expr1`, `expr2`, ..., and `exprn` are the corresponding expressions as they
277
+ appear in the source code. The types `T1`, `T2`, ..., and `Tn` can be either
278
+ value types or reference types. For example, if an argument has type `Foo`, you
279
+ can declare it as either `Foo` or `const Foo&`, whichever is appropriate.
280
+
281
+ As an example, let's improve the failure message in `MutuallyPrime()`, which was
282
+ used with `EXPECT_PRED2()`:
283
+
284
+ ```c++
285
+ // Returns the smallest prime common divisor of m and n,
286
+ // or 1 when m and n are mutually prime.
287
+ int SmallestPrimeCommonDivisor(int m, int n) { ... }
288
+
289
+ // A predicate-formatter for asserting that two integers are mutually prime.
290
+ testing::AssertionResult AssertMutuallyPrime(const char* m_expr,
291
+ const char* n_expr,
292
+ int m,
293
+ int n) {
294
+ if (MutuallyPrime(m, n)) return testing::AssertionSuccess();
295
+
296
+ return testing::AssertionFailure() << m_expr << " and " << n_expr
297
+ << " (" << m << " and " << n << ") are not mutually prime, "
298
+ << "as they have a common divisor " << SmallestPrimeCommonDivisor(m, n);
299
+ }
300
+ ```
301
+
302
+ With this predicate-formatter, we can use
303
+
304
+ ```c++
305
+ EXPECT_PRED_FORMAT2(AssertMutuallyPrime, b, c);
306
+ ```
307
+
308
+ to generate the message
309
+
310
+ ```none
311
+ b and c (4 and 10) are not mutually prime, as they have a common divisor 2.
312
+ ```
313
+
314
+ As you may have realized, many of the built-in assertions we introduced earlier
315
+ are special cases of `(EXPECT|ASSERT)_PRED_FORMAT*`. In fact, most of them are
316
+ indeed defined using `(EXPECT|ASSERT)_PRED_FORMAT*`.
317
+
318
+ ### Floating-Point Comparison
319
+
320
+ Comparing floating-point numbers is tricky. Due to round-off errors, it is very
321
+ unlikely that two floating-points will match exactly. Therefore, `ASSERT_EQ` 's
322
+ naive comparison usually doesn't work. And since floating-points can have a wide
323
+ value range, no single fixed error bound works. It's better to compare by a
324
+ fixed relative error bound, except for values close to 0 due to the loss of
325
+ precision there.
326
+
327
+ In general, for floating-point comparison to make sense, the user needs to
328
+ carefully choose the error bound. If they don't want or care to, comparing in
329
+ terms of Units in the Last Place (ULPs) is a good default, and googletest
330
+ provides assertions to do this. Full details about ULPs are quite long; if you
331
+ want to learn more, see
332
+ [here](https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/).
333
+
334
+ #### Floating-Point Macros
335
+
336
+ <!-- mdformat off(github rendering does not support multiline tables) -->
337
+
338
+ | Fatal assertion | Nonfatal assertion | Verifies |
339
+ | ------------------------------- | ------------------------------- | ---------------------------------------- |
340
+ | `ASSERT_FLOAT_EQ(val1, val2);` | `EXPECT_FLOAT_EQ(val1, val2);` | the two `float` values are almost equal |
341
+ | `ASSERT_DOUBLE_EQ(val1, val2);` | `EXPECT_DOUBLE_EQ(val1, val2);` | the two `double` values are almost equal |
342
+
343
+ <!-- mdformat on-->
344
+
345
+ By "almost equal" we mean the values are within 4 ULP's from each other.
346
+
347
+ The following assertions allow you to choose the acceptable error bound:
348
+
349
+ <!-- mdformat off(github rendering does not support multiline tables) -->
350
+
351
+ | Fatal assertion | Nonfatal assertion | Verifies |
352
+ | ------------------------------------- | ------------------------------------- | -------------------------------------------------------------------------------- |
353
+ | `ASSERT_NEAR(val1, val2, abs_error);` | `EXPECT_NEAR(val1, val2, abs_error);` | the difference between `val1` and `val2` doesn't exceed the given absolute error |
354
+
355
+ <!-- mdformat on-->
356
+
357
+ #### Floating-Point Predicate-Format Functions
358
+
359
+ Some floating-point operations are useful, but not that often used. In order to
360
+ avoid an explosion of new macros, we provide them as predicate-format functions
361
+ that can be used in predicate assertion macros (e.g. `EXPECT_PRED_FORMAT2`,
362
+ etc).
363
+
364
+ ```c++
365
+ EXPECT_PRED_FORMAT2(testing::FloatLE, val1, val2);
366
+ EXPECT_PRED_FORMAT2(testing::DoubleLE, val1, val2);
367
+ ```
368
+
369
+ Verifies that `val1` is less than, or almost equal to, `val2`. You can replace
370
+ `EXPECT_PRED_FORMAT2` in the above table with `ASSERT_PRED_FORMAT2`.
371
+
372
+ ### Asserting Using gMock Matchers
373
+
374
+ [gMock](../../googlemock) comes with
375
+ [a library of matchers](../../googlemock/docs/cheat_sheet.md#MatcherList) for
376
+ validating arguments passed to mock objects. A gMock *matcher* is basically a
377
+ predicate that knows how to describe itself. It can be used in these assertion
378
+ macros:
379
+
380
+ <!-- mdformat off(github rendering does not support multiline tables) -->
381
+
382
+ | Fatal assertion | Nonfatal assertion | Verifies |
383
+ | ------------------------------ | ------------------------------ | --------------------- |
384
+ | `ASSERT_THAT(value, matcher);` | `EXPECT_THAT(value, matcher);` | value matches matcher |
385
+
386
+ <!-- mdformat on-->
387
+
388
+ For example, `StartsWith(prefix)` is a matcher that matches a string starting
389
+ with `prefix`, and you can write:
390
+
391
+ ```c++
392
+ using ::testing::StartsWith;
393
+ ...
394
+ // Verifies that Foo() returns a string starting with "Hello".
395
+ EXPECT_THAT(Foo(), StartsWith("Hello"));
396
+ ```
397
+
398
+ Read this
399
+ [recipe](../../googlemock/docs/cook_book.md#using-matchers-in-googletest-assertions)
400
+ in the gMock Cookbook for more details.
401
+
402
+ gMock has a rich set of matchers. You can do many things googletest cannot do
403
+ alone with them. For a list of matchers gMock provides, read
404
+ [this](../../googlemock/docs/cook_book.md##using-matchers). It's easy to write
405
+ your [own matchers](../../googlemock/docs/cook_book.md#NewMatchers) too.
406
+
407
+ gMock is bundled with googletest, so you don't need to add any build dependency
408
+ in order to take advantage of this. Just include `"gmock/gmock.h"`
409
+ and you're ready to go.
410
+
411
+ ### More String Assertions
412
+
413
+ (Please read the [previous](#asserting-using-gmock-matchers) section first if
414
+ you haven't.)
415
+
416
+ You can use the gMock
417
+ [string matchers](../../googlemock/docs/cheat_sheet.md#string-matchers) with
418
+ `EXPECT_THAT()` or `ASSERT_THAT()` to do more string comparison tricks
419
+ (sub-string, prefix, suffix, regular expression, and etc). For example,
420
+
421
+ ```c++
422
+ using ::testing::HasSubstr;
423
+ using ::testing::MatchesRegex;
424
+ ...
425
+ ASSERT_THAT(foo_string, HasSubstr("needle"));
426
+ EXPECT_THAT(bar_string, MatchesRegex("\\w*\\d+"));
427
+ ```
428
+
429
+ If the string contains a well-formed HTML or XML document, you can check whether
430
+ its DOM tree matches an
431
+ [XPath expression](http://www.w3.org/TR/xpath/#contents):
432
+
433
+ ```c++
434
+ // Currently still in //template/prototemplate/testing:xpath_matcher
435
+ #include "template/prototemplate/testing/xpath_matcher.h"
436
+ using ::prototemplate::testing::MatchesXPath;
437
+ EXPECT_THAT(html_string, MatchesXPath("//a[text()='click here']"));
438
+ ```
439
+
440
+ ### Windows HRESULT assertions
441
+
442
+ These assertions test for `HRESULT` success or failure.
443
+
444
+ Fatal assertion | Nonfatal assertion | Verifies
445
+ -------------------------------------- | -------------------------------------- | --------
446
+ `ASSERT_HRESULT_SUCCEEDED(expression)` | `EXPECT_HRESULT_SUCCEEDED(expression)` | `expression` is a success `HRESULT`
447
+ `ASSERT_HRESULT_FAILED(expression)` | `EXPECT_HRESULT_FAILED(expression)` | `expression` is a failure `HRESULT`
448
+
449
+ The generated output contains the human-readable error message associated with
450
+ the `HRESULT` code returned by `expression`.
451
+
452
+ You might use them like this:
453
+
454
+ ```c++
455
+ CComPtr<IShellDispatch2> shell;
456
+ ASSERT_HRESULT_SUCCEEDED(shell.CoCreateInstance(L"Shell.Application"));
457
+ CComVariant empty;
458
+ ASSERT_HRESULT_SUCCEEDED(shell->ShellExecute(CComBSTR(url), empty, empty, empty, empty));
459
+ ```
460
+
461
+ ### Type Assertions
462
+
463
+ You can call the function
464
+
465
+ ```c++
466
+ ::testing::StaticAssertTypeEq<T1, T2>();
467
+ ```
468
+
469
+ to assert that types `T1` and `T2` are the same. The function does nothing if
470
+ the assertion is satisfied. If the types are different, the function call will
471
+ fail to compile, the compiler error message will say that
472
+ `T1 and T2 are not the same type` and most likely (depending on the compiler)
473
+ show you the actual values of `T1` and `T2`. This is mainly useful inside
474
+ template code.
475
+
476
+ **Caveat**: When used inside a member function of a class template or a function
477
+ template, `StaticAssertTypeEq<T1, T2>()` is effective only if the function is
478
+ instantiated. For example, given:
479
+
480
+ ```c++
481
+ template <typename T> class Foo {
482
+ public:
483
+ void Bar() { testing::StaticAssertTypeEq<int, T>(); }
484
+ };
485
+ ```
486
+
487
+ the code:
488
+
489
+ ```c++
490
+ void Test1() { Foo<bool> foo; }
491
+ ```
492
+
493
+ will not generate a compiler error, as `Foo<bool>::Bar()` is never actually
494
+ instantiated. Instead, you need:
495
+
496
+ ```c++
497
+ void Test2() { Foo<bool> foo; foo.Bar(); }
498
+ ```
499
+
500
+ to cause a compiler error.
501
+
502
+ ### Assertion Placement
503
+
504
+ You can use assertions in any C++ function. In particular, it doesn't have to be
505
+ a method of the test fixture class. The one constraint is that assertions that
506
+ generate a fatal failure (`FAIL*` and `ASSERT_*`) can only be used in
507
+ void-returning functions. This is a consequence of Google's not using
508
+ exceptions. By placing it in a non-void function you'll get a confusing compile
509
+ error like `"error: void value not ignored as it ought to be"` or `"cannot
510
+ initialize return object of type 'bool' with an rvalue of type 'void'"` or
511
+ `"error: no viable conversion from 'void' to 'string'"`.
512
+
513
+ If you need to use fatal assertions in a function that returns non-void, one
514
+ option is to make the function return the value in an out parameter instead. For
515
+ example, you can rewrite `T2 Foo(T1 x)` to `void Foo(T1 x, T2* result)`. You
516
+ need to make sure that `*result` contains some sensible value even when the
517
+ function returns prematurely. As the function now returns `void`, you can use
518
+ any assertion inside of it.
519
+
520
+ If changing the function's type is not an option, you should just use assertions
521
+ that generate non-fatal failures, such as `ADD_FAILURE*` and `EXPECT_*`.
522
+
523
+ NOTE: Constructors and destructors are not considered void-returning functions,
524
+ according to the C++ language specification, and so you may not use fatal
525
+ assertions in them; you'll get a compilation error if you try. Instead, either
526
+ call `abort` and crash the entire test executable, or put the fatal assertion in
527
+ a `SetUp`/`TearDown` function; see
528
+ [constructor/destructor vs. `SetUp`/`TearDown`](faq.md#CtorVsSetUp)
529
+
530
+ WARNING: A fatal assertion in a helper function (private void-returning method)
531
+ called from a constructor or destructor does not terminate the current test, as
532
+ your intuition might suggest: it merely returns from the constructor or
533
+ destructor early, possibly leaving your object in a partially-constructed or
534
+ partially-destructed state! You almost certainly want to `abort` or use
535
+ `SetUp`/`TearDown` instead.
536
+
537
+ ## Teaching googletest How to Print Your Values
538
+
539
+ When a test assertion such as `EXPECT_EQ` fails, googletest prints the argument
540
+ values to help you debug. It does this using a user-extensible value printer.
541
+
542
+ This printer knows how to print built-in C++ types, native arrays, STL
543
+ containers, and any type that supports the `<<` operator. For other types, it
544
+ prints the raw bytes in the value and hopes that you the user can figure it out.
545
+
546
+ As mentioned earlier, the printer is *extensible*. That means you can teach it
547
+ to do a better job at printing your particular type than to dump the bytes. To
548
+ do that, define `<<` for your type:
549
+
550
+ ```c++
551
+ #include <ostream>
552
+
553
+ namespace foo {
554
+
555
+ class Bar { // We want googletest to be able to print instances of this.
556
+ ...
557
+ // Create a free inline friend function.
558
+ friend std::ostream& operator<<(std::ostream& os, const Bar& bar) {
559
+ return os << bar.DebugString(); // whatever needed to print bar to os
560
+ }
561
+ };
562
+
563
+ // If you can't declare the function in the class it's important that the
564
+ // << operator is defined in the SAME namespace that defines Bar. C++'s look-up
565
+ // rules rely on that.
566
+ std::ostream& operator<<(std::ostream& os, const Bar& bar) {
567
+ return os << bar.DebugString(); // whatever needed to print bar to os
568
+ }
569
+
570
+ } // namespace foo
571
+ ```
572
+
573
+ Sometimes, this might not be an option: your team may consider it bad style to
574
+ have a `<<` operator for `Bar`, or `Bar` may already have a `<<` operator that
575
+ doesn't do what you want (and you cannot change it). If so, you can instead
576
+ define a `PrintTo()` function like this:
577
+
578
+ ```c++
579
+ #include <ostream>
580
+
581
+ namespace foo {
582
+
583
+ class Bar {
584
+ ...
585
+ friend void PrintTo(const Bar& bar, std::ostream* os) {
586
+ *os << bar.DebugString(); // whatever needed to print bar to os
587
+ }
588
+ };
589
+
590
+ // If you can't declare the function in the class it's important that PrintTo()
591
+ // is defined in the SAME namespace that defines Bar. C++'s look-up rules rely
592
+ // on that.
593
+ void PrintTo(const Bar& bar, std::ostream* os) {
594
+ *os << bar.DebugString(); // whatever needed to print bar to os
595
+ }
596
+
597
+ } // namespace foo
598
+ ```
599
+
600
+ If you have defined both `<<` and `PrintTo()`, the latter will be used when
601
+ googletest is concerned. This allows you to customize how the value appears in
602
+ googletest's output without affecting code that relies on the behavior of its
603
+ `<<` operator.
604
+
605
+ If you want to print a value `x` using googletest's value printer yourself, just
606
+ call `::testing::PrintToString(x)`, which returns an `std::string`:
607
+
608
+ ```c++
609
+ vector<pair<Bar, int> > bar_ints = GetBarIntVector();
610
+
611
+ EXPECT_TRUE(IsCorrectBarIntVector(bar_ints))
612
+ << "bar_ints = " << testing::PrintToString(bar_ints);
613
+ ```
614
+
615
+ ## Death Tests
616
+
617
+ In many applications, there are assertions that can cause application failure if
618
+ a condition is not met. These sanity checks, which ensure that the program is in
619
+ a known good state, are there to fail at the earliest possible time after some
620
+ program state is corrupted. If the assertion checks the wrong condition, then
621
+ the program may proceed in an erroneous state, which could lead to memory
622
+ corruption, security holes, or worse. Hence it is vitally important to test that
623
+ such assertion statements work as expected.
624
+
625
+ Since these precondition checks cause the processes to die, we call such tests
626
+ _death tests_. More generally, any test that checks that a program terminates
627
+ (except by throwing an exception) in an expected fashion is also a death test.
628
+
629
+ Note that if a piece of code throws an exception, we don't consider it "death"
630
+ for the purpose of death tests, as the caller of the code could catch the
631
+ exception and avoid the crash. If you want to verify exceptions thrown by your
632
+ code, see [Exception Assertions](#ExceptionAssertions).
633
+
634
+ If you want to test `EXPECT_*()/ASSERT_*()` failures in your test code, see
635
+ Catching Failures
636
+
637
+ ### How to Write a Death Test
638
+
639
+ googletest has the following macros to support death tests:
640
+
641
+ Fatal assertion | Nonfatal assertion | Verifies
642
+ ------------------------------------------------ | ------------------------------------------------ | --------
643
+ `ASSERT_DEATH(statement, matcher);` | `EXPECT_DEATH(statement, matcher);` | `statement` crashes with the given error
644
+ `ASSERT_DEATH_IF_SUPPORTED(statement, matcher);` | `EXPECT_DEATH_IF_SUPPORTED(statement, matcher);` | if death tests are supported, verifies that `statement` crashes with the given error; otherwise verifies nothing
645
+ `ASSERT_DEBUG_DEATH(statement, matcher);` | `EXPECT_DEBUG_DEATH(statement, matcher);` | `statement` crashes with the given error **in debug mode**. When not in debug (i.e. `NDEBUG` is defined), this just executes `statement`
646
+ `ASSERT_EXIT(statement, predicate, matcher);` | `EXPECT_EXIT(statement, predicate, matcher);` | `statement` exits with the given error, and its exit code matches `predicate`
647
+
648
+ where `statement` is a statement that is expected to cause the process to die,
649
+ `predicate` is a function or function object that evaluates an integer exit
650
+ status, and `matcher` is either a gMock matcher matching a `const std::string&`
651
+ or a (Perl) regular expression - either of which is matched against the stderr
652
+ output of `statement`. For legacy reasons, a bare string (i.e. with no matcher)
653
+ is interpreted as `ContainsRegex(str)`, **not** `Eq(str)`. Note that `statement`
654
+ can be *any valid statement* (including *compound statement*) and doesn't have
655
+ to be an expression.
656
+
657
+ As usual, the `ASSERT` variants abort the current test function, while the
658
+ `EXPECT` variants do not.
659
+
660
+ > NOTE: We use the word "crash" here to mean that the process terminates with a
661
+ > *non-zero* exit status code. There are two possibilities: either the process
662
+ > has called `exit()` or `_exit()` with a non-zero value, or it may be killed by
663
+ > a signal.
664
+ >
665
+ > This means that if *`statement`* terminates the process with a 0 exit code, it
666
+ > is *not* considered a crash by `EXPECT_DEATH`. Use `EXPECT_EXIT` instead if
667
+ > this is the case, or if you want to restrict the exit code more precisely.
668
+
669
+ A predicate here must accept an `int` and return a `bool`. The death test
670
+ succeeds only if the predicate returns `true`. googletest defines a few
671
+ predicates that handle the most common cases:
672
+
673
+ ```c++
674
+ ::testing::ExitedWithCode(exit_code)
675
+ ```
676
+
677
+ This expression is `true` if the program exited normally with the given exit
678
+ code.
679
+
680
+ ```c++
681
+ testing::KilledBySignal(signal_number) // Not available on Windows.
682
+ ```
683
+
684
+ This expression is `true` if the program was killed by the given signal.
685
+
686
+ The `*_DEATH` macros are convenient wrappers for `*_EXIT` that use a predicate
687
+ that verifies the process' exit code is non-zero.
688
+
689
+ Note that a death test only cares about three things:
690
+
691
+ 1. does `statement` abort or exit the process?
692
+ 2. (in the case of `ASSERT_EXIT` and `EXPECT_EXIT`) does the exit status
693
+ satisfy `predicate`? Or (in the case of `ASSERT_DEATH` and `EXPECT_DEATH`)
694
+ is the exit status non-zero? And
695
+ 3. does the stderr output match `matcher`?
696
+
697
+ In particular, if `statement` generates an `ASSERT_*` or `EXPECT_*` failure, it
698
+ will **not** cause the death test to fail, as googletest assertions don't abort
699
+ the process.
700
+
701
+ To write a death test, simply use one of the above macros inside your test
702
+ function. For example,
703
+
704
+ ```c++
705
+ TEST(MyDeathTest, Foo) {
706
+ // This death test uses a compound statement.
707
+ ASSERT_DEATH({
708
+ int n = 5;
709
+ Foo(&n);
710
+ }, "Error on line .* of Foo()");
711
+ }
712
+
713
+ TEST(MyDeathTest, NormalExit) {
714
+ EXPECT_EXIT(NormalExit(), testing::ExitedWithCode(0), "Success");
715
+ }
716
+
717
+ TEST(MyDeathTest, KillMyself) {
718
+ EXPECT_EXIT(KillMyself(), testing::KilledBySignal(SIGKILL),
719
+ "Sending myself unblockable signal");
720
+ }
721
+ ```
722
+
723
+ verifies that:
724
+
725
+ * calling `Foo(5)` causes the process to die with the given error message,
726
+ * calling `NormalExit()` causes the process to print `"Success"` to stderr and
727
+ exit with exit code 0, and
728
+ * calling `KillMyself()` kills the process with signal `SIGKILL`.
729
+
730
+ The test function body may contain other assertions and statements as well, if
731
+ necessary.
732
+
733
+ ### Death Test Naming
734
+
735
+ IMPORTANT: We strongly recommend you to follow the convention of naming your
736
+ **test suite** (not test) `*DeathTest` when it contains a death test, as
737
+ demonstrated in the above example. The
738
+ [Death Tests And Threads](#death-tests-and-threads) section below explains why.
739
+
740
+ If a test fixture class is shared by normal tests and death tests, you can use
741
+ `using` or `typedef` to introduce an alias for the fixture class and avoid
742
+ duplicating its code:
743
+
744
+ ```c++
745
+ class FooTest : public testing::Test { ... };
746
+
747
+ using FooDeathTest = FooTest;
748
+
749
+ TEST_F(FooTest, DoesThis) {
750
+ // normal test
751
+ }
752
+
753
+ TEST_F(FooDeathTest, DoesThat) {
754
+ // death test
755
+ }
756
+ ```
757
+
758
+ ### Regular Expression Syntax
759
+
760
+ On POSIX systems (e.g. Linux, Cygwin, and Mac), googletest uses the
761
+ [POSIX extended regular expression](http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html#tag_09_04)
762
+ syntax. To learn about this syntax, you may want to read this
763
+ [Wikipedia entry](http://en.wikipedia.org/wiki/Regular_expression#POSIX_Extended_Regular_Expressions).
764
+
765
+ On Windows, googletest uses its own simple regular expression implementation. It
766
+ lacks many features. For example, we don't support union (`"x|y"`), grouping
767
+ (`"(xy)"`), brackets (`"[xy]"`), and repetition count (`"x{5,7}"`), among
768
+ others. Below is what we do support (`A` denotes a literal character, period
769
+ (`.`), or a single `\\ ` escape sequence; `x` and `y` denote regular
770
+ expressions.):
771
+
772
+ Expression | Meaning
773
+ ---------- | --------------------------------------------------------------
774
+ `c` | matches any literal character `c`
775
+ `\\d` | matches any decimal digit
776
+ `\\D` | matches any character that's not a decimal digit
777
+ `\\f` | matches `\f`
778
+ `\\n` | matches `\n`
779
+ `\\r` | matches `\r`
780
+ `\\s` | matches any ASCII whitespace, including `\n`
781
+ `\\S` | matches any character that's not a whitespace
782
+ `\\t` | matches `\t`
783
+ `\\v` | matches `\v`
784
+ `\\w` | matches any letter, `_`, or decimal digit
785
+ `\\W` | matches any character that `\\w` doesn't match
786
+ `\\c` | matches any literal character `c`, which must be a punctuation
787
+ `.` | matches any single character except `\n`
788
+ `A?` | matches 0 or 1 occurrences of `A`
789
+ `A*` | matches 0 or many occurrences of `A`
790
+ `A+` | matches 1 or many occurrences of `A`
791
+ `^` | matches the beginning of a string (not that of each line)
792
+ `$` | matches the end of a string (not that of each line)
793
+ `xy` | matches `x` followed by `y`
794
+
795
+ To help you determine which capability is available on your system, googletest
796
+ defines macros to govern which regular expression it is using. The macros are:
797
+ `GTEST_USES_SIMPLE_RE=1` or `GTEST_USES_POSIX_RE=1`. If you want your death
798
+ tests to work in all cases, you can either `#if` on these macros or use the more
799
+ limited syntax only.
800
+
801
+ ### How It Works
802
+
803
+ Under the hood, `ASSERT_EXIT()` spawns a new process and executes the death test
804
+ statement in that process. The details of how precisely that happens depend on
805
+ the platform and the variable `::testing::GTEST_FLAG(death_test_style)` (which is
806
+ initialized from the command-line flag `--gtest_death_test_style`).
807
+
808
+ * On POSIX systems, `fork()` (or `clone()` on Linux) is used to spawn the
809
+ child, after which:
810
+ * If the variable's value is `"fast"`, the death test statement is
811
+ immediately executed.
812
+ * If the variable's value is `"threadsafe"`, the child process re-executes
813
+ the unit test binary just as it was originally invoked, but with some
814
+ extra flags to cause just the single death test under consideration to
815
+ be run.
816
+ * On Windows, the child is spawned using the `CreateProcess()` API, and
817
+ re-executes the binary to cause just the single death test under
818
+ consideration to be run - much like the `threadsafe` mode on POSIX.
819
+
820
+ Other values for the variable are illegal and will cause the death test to fail.
821
+ Currently, the flag's default value is **"fast"**
822
+
823
+ 1. the child's exit status satisfies the predicate, and
824
+ 2. the child's stderr matches the regular expression.
825
+
826
+ If the death test statement runs to completion without dying, the child process
827
+ will nonetheless terminate, and the assertion fails.
828
+
829
+ ### Death Tests And Threads
830
+
831
+ The reason for the two death test styles has to do with thread safety. Due to
832
+ well-known problems with forking in the presence of threads, death tests should
833
+ be run in a single-threaded context. Sometimes, however, it isn't feasible to
834
+ arrange that kind of environment. For example, statically-initialized modules
835
+ may start threads before main is ever reached. Once threads have been created,
836
+ it may be difficult or impossible to clean them up.
837
+
838
+ googletest has three features intended to raise awareness of threading issues.
839
+
840
+ 1. A warning is emitted if multiple threads are running when a death test is
841
+ encountered.
842
+ 2. Test suites with a name ending in "DeathTest" are run before all other
843
+ tests.
844
+ 3. It uses `clone()` instead of `fork()` to spawn the child process on Linux
845
+ (`clone()` is not available on Cygwin and Mac), as `fork()` is more likely
846
+ to cause the child to hang when the parent process has multiple threads.
847
+
848
+ It's perfectly fine to create threads inside a death test statement; they are
849
+ executed in a separate process and cannot affect the parent.
850
+
851
+ ### Death Test Styles
852
+
853
+ The "threadsafe" death test style was introduced in order to help mitigate the
854
+ risks of testing in a possibly multithreaded environment. It trades increased
855
+ test execution time (potentially dramatically so) for improved thread safety.
856
+
857
+ The automated testing framework does not set the style flag. You can choose a
858
+ particular style of death tests by setting the flag programmatically:
859
+
860
+ ```c++
861
+ testing::FLAGS_gtest_death_test_style="threadsafe"
862
+ ```
863
+
864
+ You can do this in `main()` to set the style for all death tests in the binary,
865
+ or in individual tests. Recall that flags are saved before running each test and
866
+ restored afterwards, so you need not do that yourself. For example:
867
+
868
+ ```c++
869
+ int main(int argc, char** argv) {
870
+ testing::InitGoogleTest(&argc, argv);
871
+ testing::FLAGS_gtest_death_test_style = "fast";
872
+ return RUN_ALL_TESTS();
873
+ }
874
+
875
+ TEST(MyDeathTest, TestOne) {
876
+ testing::FLAGS_gtest_death_test_style = "threadsafe";
877
+ // This test is run in the "threadsafe" style:
878
+ ASSERT_DEATH(ThisShouldDie(), "");
879
+ }
880
+
881
+ TEST(MyDeathTest, TestTwo) {
882
+ // This test is run in the "fast" style:
883
+ ASSERT_DEATH(ThisShouldDie(), "");
884
+ }
885
+ ```
886
+
887
+ ### Caveats
888
+
889
+ The `statement` argument of `ASSERT_EXIT()` can be any valid C++ statement. If
890
+ it leaves the current function via a `return` statement or by throwing an
891
+ exception, the death test is considered to have failed. Some googletest macros
892
+ may return from the current function (e.g. `ASSERT_TRUE()`), so be sure to avoid
893
+ them in `statement`.
894
+
895
+ Since `statement` runs in the child process, any in-memory side effect (e.g.
896
+ modifying a variable, releasing memory, etc) it causes will *not* be observable
897
+ in the parent process. In particular, if you release memory in a death test,
898
+ your program will fail the heap check as the parent process will never see the
899
+ memory reclaimed. To solve this problem, you can
900
+
901
+ 1. try not to free memory in a death test;
902
+ 2. free the memory again in the parent process; or
903
+ 3. do not use the heap checker in your program.
904
+
905
+ Due to an implementation detail, you cannot place multiple death test assertions
906
+ on the same line; otherwise, compilation will fail with an unobvious error
907
+ message.
908
+
909
+ Despite the improved thread safety afforded by the "threadsafe" style of death
910
+ test, thread problems such as deadlock are still possible in the presence of
911
+ handlers registered with `pthread_atfork(3)`.
912
+
913
+
914
+ ## Using Assertions in Sub-routines
915
+
916
+ Note: If you want to put a series of test assertions in a subroutine to check
917
+ for a complex condition, consider using
918
+ [a custom GMock matcher](../../googlemock/docs/cook_book.md#NewMatchers)
919
+ instead. This lets you provide a more readable error message in case of failure
920
+ and avoid all of the issues described below.
921
+
922
+ ### Adding Traces to Assertions
923
+
924
+ If a test sub-routine is called from several places, when an assertion inside it
925
+ fails, it can be hard to tell which invocation of the sub-routine the failure is
926
+ from. You can alleviate this problem using extra logging or custom failure
927
+ messages, but that usually clutters up your tests. A better solution is to use
928
+ the `SCOPED_TRACE` macro or the `ScopedTrace` utility:
929
+
930
+ ```c++
931
+ SCOPED_TRACE(message);
932
+ ```
933
+ ```c++
934
+ ScopedTrace trace("file_path", line_number, message);
935
+ ```
936
+
937
+ where `message` can be anything streamable to `std::ostream`. `SCOPED_TRACE`
938
+ macro will cause the current file name, line number, and the given message to be
939
+ added in every failure message. `ScopedTrace` accepts explicit file name and
940
+ line number in arguments, which is useful for writing test helpers. The effect
941
+ will be undone when the control leaves the current lexical scope.
942
+
943
+ For example,
944
+
945
+ ```c++
946
+ 10: void Sub1(int n) {
947
+ 11: EXPECT_EQ(Bar(n), 1);
948
+ 12: EXPECT_EQ(Bar(n + 1), 2);
949
+ 13: }
950
+ 14:
951
+ 15: TEST(FooTest, Bar) {
952
+ 16: {
953
+ 17: SCOPED_TRACE("A"); // This trace point will be included in
954
+ 18: // every failure in this scope.
955
+ 19: Sub1(1);
956
+ 20: }
957
+ 21: // Now it won't.
958
+ 22: Sub1(9);
959
+ 23: }
960
+ ```
961
+
962
+ could result in messages like these:
963
+
964
+ ```none
965
+ path/to/foo_test.cc:11: Failure
966
+ Value of: Bar(n)
967
+ Expected: 1
968
+ Actual: 2
969
+ Google Test trace:
970
+ path/to/foo_test.cc:17: A
971
+
972
+ path/to/foo_test.cc:12: Failure
973
+ Value of: Bar(n + 1)
974
+ Expected: 2
975
+ Actual: 3
976
+ ```
977
+
978
+ Without the trace, it would've been difficult to know which invocation of
979
+ `Sub1()` the two failures come from respectively. (You could add an extra
980
+ message to each assertion in `Sub1()` to indicate the value of `n`, but that's
981
+ tedious.)
982
+
983
+ Some tips on using `SCOPED_TRACE`:
984
+
985
+ 1. With a suitable message, it's often enough to use `SCOPED_TRACE` at the
986
+ beginning of a sub-routine, instead of at each call site.
987
+ 2. When calling sub-routines inside a loop, make the loop iterator part of the
988
+ message in `SCOPED_TRACE` such that you can know which iteration the failure
989
+ is from.
990
+ 3. Sometimes the line number of the trace point is enough for identifying the
991
+ particular invocation of a sub-routine. In this case, you don't have to
992
+ choose a unique message for `SCOPED_TRACE`. You can simply use `""`.
993
+ 4. You can use `SCOPED_TRACE` in an inner scope when there is one in the outer
994
+ scope. In this case, all active trace points will be included in the failure
995
+ messages, in reverse order they are encountered.
996
+ 5. The trace dump is clickable in Emacs - hit `return` on a line number and
997
+ you'll be taken to that line in the source file!
998
+
999
+ ### Propagating Fatal Failures
1000
+
1001
+ A common pitfall when using `ASSERT_*` and `FAIL*` is not understanding that
1002
+ when they fail they only abort the _current function_, not the entire test. For
1003
+ example, the following test will segfault:
1004
+
1005
+ ```c++
1006
+ void Subroutine() {
1007
+ // Generates a fatal failure and aborts the current function.
1008
+ ASSERT_EQ(1, 2);
1009
+
1010
+ // The following won't be executed.
1011
+ ...
1012
+ }
1013
+
1014
+ TEST(FooTest, Bar) {
1015
+ Subroutine(); // The intended behavior is for the fatal failure
1016
+ // in Subroutine() to abort the entire test.
1017
+
1018
+ // The actual behavior: the function goes on after Subroutine() returns.
1019
+ int* p = nullptr;
1020
+ *p = 3; // Segfault!
1021
+ }
1022
+ ```
1023
+
1024
+ To alleviate this, googletest provides three different solutions. You could use
1025
+ either exceptions, the `(ASSERT|EXPECT)_NO_FATAL_FAILURE` assertions or the
1026
+ `HasFatalFailure()` function. They are described in the following two
1027
+ subsections.
1028
+
1029
+ #### Asserting on Subroutines with an exception
1030
+
1031
+ The following code can turn ASSERT-failure into an exception:
1032
+
1033
+ ```c++
1034
+ class ThrowListener : public testing::EmptyTestEventListener {
1035
+ void OnTestPartResult(const testing::TestPartResult& result) override {
1036
+ if (result.type() == testing::TestPartResult::kFatalFailure) {
1037
+ throw testing::AssertionException(result);
1038
+ }
1039
+ }
1040
+ };
1041
+ int main(int argc, char** argv) {
1042
+ ...
1043
+ testing::UnitTest::GetInstance()->listeners().Append(new ThrowListener);
1044
+ return RUN_ALL_TESTS();
1045
+ }
1046
+ ```
1047
+
1048
+ This listener should be added after other listeners if you have any, otherwise
1049
+ they won't see failed `OnTestPartResult`.
1050
+
1051
+ #### Asserting on Subroutines
1052
+
1053
+ As shown above, if your test calls a subroutine that has an `ASSERT_*` failure
1054
+ in it, the test will continue after the subroutine returns. This may not be what
1055
+ you want.
1056
+
1057
+ Often people want fatal failures to propagate like exceptions. For that
1058
+ googletest offers the following macros:
1059
+
1060
+ Fatal assertion | Nonfatal assertion | Verifies
1061
+ ------------------------------------- | ------------------------------------- | --------
1062
+ `ASSERT_NO_FATAL_FAILURE(statement);` | `EXPECT_NO_FATAL_FAILURE(statement);` | `statement` doesn't generate any new fatal failures in the current thread.
1063
+
1064
+ Only failures in the thread that executes the assertion are checked to determine
1065
+ the result of this type of assertions. If `statement` creates new threads,
1066
+ failures in these threads are ignored.
1067
+
1068
+ Examples:
1069
+
1070
+ ```c++
1071
+ ASSERT_NO_FATAL_FAILURE(Foo());
1072
+
1073
+ int i;
1074
+ EXPECT_NO_FATAL_FAILURE({
1075
+ i = Bar();
1076
+ });
1077
+ ```
1078
+
1079
+ Assertions from multiple threads are currently not supported on Windows.
1080
+
1081
+ #### Checking for Failures in the Current Test
1082
+
1083
+ `HasFatalFailure()` in the `::testing::Test` class returns `true` if an
1084
+ assertion in the current test has suffered a fatal failure. This allows
1085
+ functions to catch fatal failures in a sub-routine and return early.
1086
+
1087
+ ```c++
1088
+ class Test {
1089
+ public:
1090
+ ...
1091
+ static bool HasFatalFailure();
1092
+ };
1093
+ ```
1094
+
1095
+ The typical usage, which basically simulates the behavior of a thrown exception,
1096
+ is:
1097
+
1098
+ ```c++
1099
+ TEST(FooTest, Bar) {
1100
+ Subroutine();
1101
+ // Aborts if Subroutine() had a fatal failure.
1102
+ if (HasFatalFailure()) return;
1103
+
1104
+ // The following won't be executed.
1105
+ ...
1106
+ }
1107
+ ```
1108
+
1109
+ If `HasFatalFailure()` is used outside of `TEST()` , `TEST_F()` , or a test
1110
+ fixture, you must add the `::testing::Test::` prefix, as in:
1111
+
1112
+ ```c++
1113
+ if (testing::Test::HasFatalFailure()) return;
1114
+ ```
1115
+
1116
+ Similarly, `HasNonfatalFailure()` returns `true` if the current test has at
1117
+ least one non-fatal failure, and `HasFailure()` returns `true` if the current
1118
+ test has at least one failure of either kind.
1119
+
1120
+ ## Logging Additional Information
1121
+
1122
+ In your test code, you can call `RecordProperty("key", value)` to log additional
1123
+ information, where `value` can be either a string or an `int`. The *last* value
1124
+ recorded for a key will be emitted to the
1125
+ [XML output](#generating-an-xml-report) if you specify one. For example, the
1126
+ test
1127
+
1128
+ ```c++
1129
+ TEST_F(WidgetUsageTest, MinAndMaxWidgets) {
1130
+ RecordProperty("MaximumWidgets", ComputeMaxUsage());
1131
+ RecordProperty("MinimumWidgets", ComputeMinUsage());
1132
+ }
1133
+ ```
1134
+
1135
+ will output XML like this:
1136
+
1137
+ ```xml
1138
+ ...
1139
+ <testcase name="MinAndMaxWidgets" status="run" time="0.006" classname="WidgetUsageTest" MaximumWidgets="12" MinimumWidgets="9" />
1140
+ ...
1141
+ ```
1142
+
1143
+ > NOTE:
1144
+ >
1145
+ > * `RecordProperty()` is a static member of the `Test` class. Therefore it
1146
+ > needs to be prefixed with `::testing::Test::` if used outside of the
1147
+ > `TEST` body and the test fixture class.
1148
+ > * *`key`* must be a valid XML attribute name, and cannot conflict with the
1149
+ > ones already used by googletest (`name`, `status`, `time`, `classname`,
1150
+ > `type_param`, and `value_param`).
1151
+ > * Calling `RecordProperty()` outside of the lifespan of a test is allowed.
1152
+ > If it's called outside of a test but between a test suite's
1153
+ > `SetUpTestSuite()` and `TearDownTestSuite()` methods, it will be
1154
+ > attributed to the XML element for the test suite. If it's called outside
1155
+ > of all test suites (e.g. in a test environment), it will be attributed to
1156
+ > the top-level XML element.
1157
+
1158
+ ## Sharing Resources Between Tests in the Same Test Suite
1159
+
1160
+ googletest creates a new test fixture object for each test in order to make
1161
+ tests independent and easier to debug. However, sometimes tests use resources
1162
+ that are expensive to set up, making the one-copy-per-test model prohibitively
1163
+ expensive.
1164
+
1165
+ If the tests don't change the resource, there's no harm in their sharing a
1166
+ single resource copy. So, in addition to per-test set-up/tear-down, googletest
1167
+ also supports per-test-suite set-up/tear-down. To use it:
1168
+
1169
+ 1. In your test fixture class (say `FooTest` ), declare as `static` some member
1170
+ variables to hold the shared resources.
1171
+ 2. Outside your test fixture class (typically just below it), define those
1172
+ member variables, optionally giving them initial values.
1173
+ 3. In the same test fixture class, define a `static void SetUpTestSuite()`
1174
+ function (remember not to spell it as **`SetupTestSuite`** with a small
1175
+ `u`!) to set up the shared resources and a `static void TearDownTestSuite()`
1176
+ function to tear them down.
1177
+
1178
+ That's it! googletest automatically calls `SetUpTestSuite()` before running the
1179
+ *first test* in the `FooTest` test suite (i.e. before creating the first
1180
+ `FooTest` object), and calls `TearDownTestSuite()` after running the *last test*
1181
+ in it (i.e. after deleting the last `FooTest` object). In between, the tests can
1182
+ use the shared resources.
1183
+
1184
+ Remember that the test order is undefined, so your code can't depend on a test
1185
+ preceding or following another. Also, the tests must either not modify the state
1186
+ of any shared resource, or, if they do modify the state, they must restore the
1187
+ state to its original value before passing control to the next test.
1188
+
1189
+ Here's an example of per-test-suite set-up and tear-down:
1190
+
1191
+ ```c++
1192
+ class FooTest : public testing::Test {
1193
+ protected:
1194
+ // Per-test-suite set-up.
1195
+ // Called before the first test in this test suite.
1196
+ // Can be omitted if not needed.
1197
+ static void SetUpTestSuite() {
1198
+ shared_resource_ = new ...;
1199
+ }
1200
+
1201
+ // Per-test-suite tear-down.
1202
+ // Called after the last test in this test suite.
1203
+ // Can be omitted if not needed.
1204
+ static void TearDownTestSuite() {
1205
+ delete shared_resource_;
1206
+ shared_resource_ = nullptr;
1207
+ }
1208
+
1209
+ // You can define per-test set-up logic as usual.
1210
+ virtual void SetUp() { ... }
1211
+
1212
+ // You can define per-test tear-down logic as usual.
1213
+ virtual void TearDown() { ... }
1214
+
1215
+ // Some expensive resource shared by all tests.
1216
+ static T* shared_resource_;
1217
+ };
1218
+
1219
+ T* FooTest::shared_resource_ = nullptr;
1220
+
1221
+ TEST_F(FooTest, Test1) {
1222
+ ... you can refer to shared_resource_ here ...
1223
+ }
1224
+
1225
+ TEST_F(FooTest, Test2) {
1226
+ ... you can refer to shared_resource_ here ...
1227
+ }
1228
+ ```
1229
+
1230
+ NOTE: Though the above code declares `SetUpTestSuite()` protected, it may
1231
+ sometimes be necessary to declare it public, such as when using it with
1232
+ `TEST_P`.
1233
+
1234
+ ## Global Set-Up and Tear-Down
1235
+
1236
+ Just as you can do set-up and tear-down at the test level and the test suite
1237
+ level, you can also do it at the test program level. Here's how.
1238
+
1239
+ First, you subclass the `::testing::Environment` class to define a test
1240
+ environment, which knows how to set-up and tear-down:
1241
+
1242
+ ```c++
1243
+ class Environment : public testing::Environment {
1244
+ public:
1245
+ ~Environment() override {}
1246
+
1247
+ // Override this to define how to set up the environment.
1248
+ void SetUp() override {}
1249
+
1250
+ // Override this to define how to tear down the environment.
1251
+ void TearDown() override {}
1252
+ };
1253
+ ```
1254
+
1255
+ Then, you register an instance of your environment class with googletest by
1256
+ calling the `::testing::AddGlobalTestEnvironment()` function:
1257
+
1258
+ ```c++
1259
+ Environment* AddGlobalTestEnvironment(Environment* env);
1260
+ ```
1261
+
1262
+ Now, when `RUN_ALL_TESTS()` is called, it first calls the `SetUp()` method of
1263
+ each environment object, then runs the tests if none of the environments
1264
+ reported fatal failures and `GTEST_SKIP()` was not called. `RUN_ALL_TESTS()`
1265
+ always calls `TearDown()` with each environment object, regardless of whether or
1266
+ not the tests were run.
1267
+
1268
+ It's OK to register multiple environment objects. In this suite, their `SetUp()`
1269
+ will be called in the order they are registered, and their `TearDown()` will be
1270
+ called in the reverse order.
1271
+
1272
+ Note that googletest takes ownership of the registered environment objects.
1273
+ Therefore **do not delete them** by yourself.
1274
+
1275
+ You should call `AddGlobalTestEnvironment()` before `RUN_ALL_TESTS()` is called,
1276
+ probably in `main()`. If you use `gtest_main`, you need to call this before
1277
+ `main()` starts for it to take effect. One way to do this is to define a global
1278
+ variable like this:
1279
+
1280
+ ```c++
1281
+ testing::Environment* const foo_env =
1282
+ testing::AddGlobalTestEnvironment(new FooEnvironment);
1283
+ ```
1284
+
1285
+ However, we strongly recommend you to write your own `main()` and call
1286
+ `AddGlobalTestEnvironment()` there, as relying on initialization of global
1287
+ variables makes the code harder to read and may cause problems when you register
1288
+ multiple environments from different translation units and the environments have
1289
+ dependencies among them (remember that the compiler doesn't guarantee the order
1290
+ in which global variables from different translation units are initialized).
1291
+
1292
+ ## Value-Parameterized Tests
1293
+
1294
+ *Value-parameterized tests* allow you to test your code with different
1295
+ parameters without writing multiple copies of the same test. This is useful in a
1296
+ number of situations, for example:
1297
+
1298
+ * You have a piece of code whose behavior is affected by one or more
1299
+ command-line flags. You want to make sure your code performs correctly for
1300
+ various values of those flags.
1301
+ * You want to test different implementations of an OO interface.
1302
+ * You want to test your code over various inputs (a.k.a. data-driven testing).
1303
+ This feature is easy to abuse, so please exercise your good sense when doing
1304
+ it!
1305
+
1306
+ ### How to Write Value-Parameterized Tests
1307
+
1308
+ To write value-parameterized tests, first you should define a fixture class. It
1309
+ must be derived from both `testing::Test` and `testing::WithParamInterface<T>`
1310
+ (the latter is a pure interface), where `T` is the type of your parameter
1311
+ values. For convenience, you can just derive the fixture class from
1312
+ `testing::TestWithParam<T>`, which itself is derived from both `testing::Test`
1313
+ and `testing::WithParamInterface<T>`. `T` can be any copyable type. If it's a
1314
+ raw pointer, you are responsible for managing the lifespan of the pointed
1315
+ values.
1316
+
1317
+ NOTE: If your test fixture defines `SetUpTestSuite()` or `TearDownTestSuite()`
1318
+ they must be declared **public** rather than **protected** in order to use
1319
+ `TEST_P`.
1320
+
1321
+ ```c++
1322
+ class FooTest :
1323
+ public testing::TestWithParam<const char*> {
1324
+ // You can implement all the usual fixture class members here.
1325
+ // To access the test parameter, call GetParam() from class
1326
+ // TestWithParam<T>.
1327
+ };
1328
+
1329
+ // Or, when you want to add parameters to a pre-existing fixture class:
1330
+ class BaseTest : public testing::Test {
1331
+ ...
1332
+ };
1333
+ class BarTest : public BaseTest,
1334
+ public testing::WithParamInterface<const char*> {
1335
+ ...
1336
+ };
1337
+ ```
1338
+
1339
+ Then, use the `TEST_P` macro to define as many test patterns using this fixture
1340
+ as you want. The `_P` suffix is for "parameterized" or "pattern", whichever you
1341
+ prefer to think.
1342
+
1343
+ ```c++
1344
+ TEST_P(FooTest, DoesBlah) {
1345
+ // Inside a test, access the test parameter with the GetParam() method
1346
+ // of the TestWithParam<T> class:
1347
+ EXPECT_TRUE(foo.Blah(GetParam()));
1348
+ ...
1349
+ }
1350
+
1351
+ TEST_P(FooTest, HasBlahBlah) {
1352
+ ...
1353
+ }
1354
+ ```
1355
+
1356
+ Finally, you can use `INSTANTIATE_TEST_SUITE_P` to instantiate the test suite
1357
+ with any set of parameters you want. googletest defines a number of functions
1358
+ for generating test parameters. They return what we call (surprise!) *parameter
1359
+ generators*. Here is a summary of them, which are all in the `testing`
1360
+ namespace:
1361
+
1362
+ <!-- mdformat off(github rendering does not support multiline tables) -->
1363
+
1364
+ | Parameter Generator | Behavior |
1365
+ | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
1366
+ | `Range(begin, end [, step])` | Yields values `{begin, begin+step, begin+step+step, ...}`. The values do not include `end`. `step` defaults to 1. |
1367
+ | `Values(v1, v2, ..., vN)` | Yields values `{v1, v2, ..., vN}`. |
1368
+ | `ValuesIn(container)` and `ValuesIn(begin,end)` | Yields values from a C-style array, an STL-style container, or an iterator range `[begin, end)` |
1369
+ | `Bool()` | Yields sequence `{false, true}`. |
1370
+ | `Combine(g1, g2, ..., gN)` | Yields all combinations (Cartesian product) as std\:\:tuples of the values generated by the `N` generators. |
1371
+
1372
+ <!-- mdformat on-->
1373
+
1374
+ For more details, see the comments at the definitions of these functions.
1375
+
1376
+ The following statement will instantiate tests from the `FooTest` test suite
1377
+ each with parameter values `"meeny"`, `"miny"`, and `"moe"`.
1378
+
1379
+ ```c++
1380
+ INSTANTIATE_TEST_SUITE_P(InstantiationName,
1381
+ FooTest,
1382
+ testing::Values("meeny", "miny", "moe"));
1383
+ ```
1384
+
1385
+ NOTE: The code above must be placed at global or namespace scope, not at
1386
+ function scope.
1387
+
1388
+ Per default, every `TEST_P` without a corresponding `INSTANTIATE_TEST_SUITE_P`
1389
+ causes a failing test in test suite `GoogleTestVerification`. If you have a test
1390
+ suite where that omission is not an error, for example it is in a library that
1391
+ may be linked in for other reason or where the list of test cases is dynamic and
1392
+ may be empty, then this check can be suppressed by tagging the test suite:
1393
+
1394
+ ```c++
1395
+ GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(FooTest);
1396
+ ```
1397
+
1398
+ To distinguish different instances of the pattern (yes, you can instantiate it
1399
+ more than once), the first argument to `INSTANTIATE_TEST_SUITE_P` is a prefix
1400
+ that will be added to the actual test suite name. Remember to pick unique
1401
+ prefixes for different instantiations. The tests from the instantiation above
1402
+ will have these names:
1403
+
1404
+ * `InstantiationName/FooTest.DoesBlah/0` for `"meeny"`
1405
+ * `InstantiationName/FooTest.DoesBlah/1` for `"miny"`
1406
+ * `InstantiationName/FooTest.DoesBlah/2` for `"moe"`
1407
+ * `InstantiationName/FooTest.HasBlahBlah/0` for `"meeny"`
1408
+ * `InstantiationName/FooTest.HasBlahBlah/1` for `"miny"`
1409
+ * `InstantiationName/FooTest.HasBlahBlah/2` for `"moe"`
1410
+
1411
+ You can use these names in [`--gtest_filter`](#running-a-subset-of-the-tests).
1412
+
1413
+ This statement will instantiate all tests from `FooTest` again, each with
1414
+ parameter values `"cat"` and `"dog"`:
1415
+
1416
+ ```c++
1417
+ const char* pets[] = {"cat", "dog"};
1418
+ INSTANTIATE_TEST_SUITE_P(AnotherInstantiationName, FooTest,
1419
+ testing::ValuesIn(pets));
1420
+ ```
1421
+
1422
+ The tests from the instantiation above will have these names:
1423
+
1424
+ * `AnotherInstantiationName/FooTest.DoesBlah/0` for `"cat"`
1425
+ * `AnotherInstantiationName/FooTest.DoesBlah/1` for `"dog"`
1426
+ * `AnotherInstantiationName/FooTest.HasBlahBlah/0` for `"cat"`
1427
+ * `AnotherInstantiationName/FooTest.HasBlahBlah/1` for `"dog"`
1428
+
1429
+ Please note that `INSTANTIATE_TEST_SUITE_P` will instantiate *all* tests in the
1430
+ given test suite, whether their definitions come before or *after* the
1431
+ `INSTANTIATE_TEST_SUITE_P` statement.
1432
+
1433
+ You can see [sample7_unittest.cc] and [sample8_unittest.cc] for more examples.
1434
+
1435
+ [sample7_unittest.cc]: ../samples/sample7_unittest.cc "Parameterized Test example"
1436
+ [sample8_unittest.cc]: ../samples/sample8_unittest.cc "Parameterized Test example with multiple parameters"
1437
+
1438
+ ### Creating Value-Parameterized Abstract Tests
1439
+
1440
+ In the above, we define and instantiate `FooTest` in the *same* source file.
1441
+ Sometimes you may want to define value-parameterized tests in a library and let
1442
+ other people instantiate them later. This pattern is known as *abstract tests*.
1443
+ As an example of its application, when you are designing an interface you can
1444
+ write a standard suite of abstract tests (perhaps using a factory function as
1445
+ the test parameter) that all implementations of the interface are expected to
1446
+ pass. When someone implements the interface, they can instantiate your suite to
1447
+ get all the interface-conformance tests for free.
1448
+
1449
+ To define abstract tests, you should organize your code like this:
1450
+
1451
+ 1. Put the definition of the parameterized test fixture class (e.g. `FooTest`)
1452
+ in a header file, say `foo_param_test.h`. Think of this as *declaring* your
1453
+ abstract tests.
1454
+ 2. Put the `TEST_P` definitions in `foo_param_test.cc`, which includes
1455
+ `foo_param_test.h`. Think of this as *implementing* your abstract tests.
1456
+
1457
+ Once they are defined, you can instantiate them by including `foo_param_test.h`,
1458
+ invoking `INSTANTIATE_TEST_SUITE_P()`, and depending on the library target that
1459
+ contains `foo_param_test.cc`. You can instantiate the same abstract test suite
1460
+ multiple times, possibly in different source files.
1461
+
1462
+ ### Specifying Names for Value-Parameterized Test Parameters
1463
+
1464
+ The optional last argument to `INSTANTIATE_TEST_SUITE_P()` allows the user to
1465
+ specify a function or functor that generates custom test name suffixes based on
1466
+ the test parameters. The function should accept one argument of type
1467
+ `testing::TestParamInfo<class ParamType>`, and return `std::string`.
1468
+
1469
+ `testing::PrintToStringParamName` is a builtin test suffix generator that
1470
+ returns the value of `testing::PrintToString(GetParam())`. It does not work for
1471
+ `std::string` or C strings.
1472
+
1473
+ NOTE: test names must be non-empty, unique, and may only contain ASCII
1474
+ alphanumeric characters. In particular, they
1475
+ [should not contain underscores](faq.md#why-should-test-suite-names-and-test-names-not-contain-underscore)
1476
+
1477
+ ```c++
1478
+ class MyTestSuite : public testing::TestWithParam<int> {};
1479
+
1480
+ TEST_P(MyTestSuite, MyTest)
1481
+ {
1482
+ std::cout << "Example Test Param: " << GetParam() << std::endl;
1483
+ }
1484
+
1485
+ INSTANTIATE_TEST_SUITE_P(MyGroup, MyTestSuite, testing::Range(0, 10),
1486
+ testing::PrintToStringParamName());
1487
+ ```
1488
+
1489
+ Providing a custom functor allows for more control over test parameter name
1490
+ generation, especially for types where the automatic conversion does not
1491
+ generate helpful parameter names (e.g. strings as demonstrated above). The
1492
+ following example illustrates this for multiple parameters, an enumeration type
1493
+ and a string, and also demonstrates how to combine generators. It uses a lambda
1494
+ for conciseness:
1495
+
1496
+ ```c++
1497
+ enum class MyType { MY_FOO = 0, MY_BAR = 1 };
1498
+
1499
+ class MyTestSuite : public testing::TestWithParam<std::tuple<MyType, std::string>> {
1500
+ };
1501
+
1502
+ INSTANTIATE_TEST_SUITE_P(
1503
+ MyGroup, MyTestSuite,
1504
+ testing::Combine(
1505
+ testing::Values(MyType::VALUE_0, MyType::VALUE_1),
1506
+ testing::ValuesIn("", "")),
1507
+ [](const testing::TestParamInfo<MyTestSuite::ParamType>& info) {
1508
+ std::string name = absl::StrCat(
1509
+ std::get<0>(info.param) == MY_FOO ? "Foo" : "Bar", "_",
1510
+ std::get<1>(info.param));
1511
+ absl::c_replace_if(name, [](char c) { return !std::isalnum(c); }, '_');
1512
+ return name;
1513
+ });
1514
+ ```
1515
+
1516
+ ## Typed Tests
1517
+
1518
+ Suppose you have multiple implementations of the same interface and want to make
1519
+ sure that all of them satisfy some common requirements. Or, you may have defined
1520
+ several types that are supposed to conform to the same "concept" and you want to
1521
+ verify it. In both cases, you want the same test logic repeated for different
1522
+ types.
1523
+
1524
+ While you can write one `TEST` or `TEST_F` for each type you want to test (and
1525
+ you may even factor the test logic into a function template that you invoke from
1526
+ the `TEST`), it's tedious and doesn't scale: if you want `m` tests over `n`
1527
+ types, you'll end up writing `m*n` `TEST`s.
1528
+
1529
+ *Typed tests* allow you to repeat the same test logic over a list of types. You
1530
+ only need to write the test logic once, although you must know the type list
1531
+ when writing typed tests. Here's how you do it:
1532
+
1533
+ First, define a fixture class template. It should be parameterized by a type.
1534
+ Remember to derive it from `::testing::Test`:
1535
+
1536
+ ```c++
1537
+ template <typename T>
1538
+ class FooTest : public testing::Test {
1539
+ public:
1540
+ ...
1541
+ using List = std::list<T>;
1542
+ static T shared_;
1543
+ T value_;
1544
+ };
1545
+ ```
1546
+
1547
+ Next, associate a list of types with the test suite, which will be repeated for
1548
+ each type in the list:
1549
+
1550
+ ```c++
1551
+ using MyTypes = ::testing::Types<char, int, unsigned int>;
1552
+ TYPED_TEST_SUITE(FooTest, MyTypes);
1553
+ ```
1554
+
1555
+ The type alias (`using` or `typedef`) is necessary for the `TYPED_TEST_SUITE`
1556
+ macro to parse correctly. Otherwise the compiler will think that each comma in
1557
+ the type list introduces a new macro argument.
1558
+
1559
+ Then, use `TYPED_TEST()` instead of `TEST_F()` to define a typed test for this
1560
+ test suite. You can repeat this as many times as you want:
1561
+
1562
+ ```c++
1563
+ TYPED_TEST(FooTest, DoesBlah) {
1564
+ // Inside a test, refer to the special name TypeParam to get the type
1565
+ // parameter. Since we are inside a derived class template, C++ requires
1566
+ // us to visit the members of FooTest via 'this'.
1567
+ TypeParam n = this->value_;
1568
+
1569
+ // To visit static members of the fixture, add the 'TestFixture::'
1570
+ // prefix.
1571
+ n += TestFixture::shared_;
1572
+
1573
+ // To refer to typedefs in the fixture, add the 'typename TestFixture::'
1574
+ // prefix. The 'typename' is required to satisfy the compiler.
1575
+ typename TestFixture::List values;
1576
+
1577
+ values.push_back(n);
1578
+ ...
1579
+ }
1580
+
1581
+ TYPED_TEST(FooTest, HasPropertyA) { ... }
1582
+ ```
1583
+
1584
+ You can see [sample6_unittest.cc] for a complete example.
1585
+
1586
+ [sample6_unittest.cc]: ../samples/sample6_unittest.cc "Typed Test example"
1587
+
1588
+ ## Type-Parameterized Tests
1589
+
1590
+ *Type-parameterized tests* are like typed tests, except that they don't require
1591
+ you to know the list of types ahead of time. Instead, you can define the test
1592
+ logic first and instantiate it with different type lists later. You can even
1593
+ instantiate it more than once in the same program.
1594
+
1595
+ If you are designing an interface or concept, you can define a suite of
1596
+ type-parameterized tests to verify properties that any valid implementation of
1597
+ the interface/concept should have. Then, the author of each implementation can
1598
+ just instantiate the test suite with their type to verify that it conforms to
1599
+ the requirements, without having to write similar tests repeatedly. Here's an
1600
+ example:
1601
+
1602
+ First, define a fixture class template, as we did with typed tests:
1603
+
1604
+ ```c++
1605
+ template <typename T>
1606
+ class FooTest : public testing::Test {
1607
+ ...
1608
+ };
1609
+ ```
1610
+
1611
+ Next, declare that you will define a type-parameterized test suite:
1612
+
1613
+ ```c++
1614
+ TYPED_TEST_SUITE_P(FooTest);
1615
+ ```
1616
+
1617
+ Then, use `TYPED_TEST_P()` to define a type-parameterized test. You can repeat
1618
+ this as many times as you want:
1619
+
1620
+ ```c++
1621
+ TYPED_TEST_P(FooTest, DoesBlah) {
1622
+ // Inside a test, refer to TypeParam to get the type parameter.
1623
+ TypeParam n = 0;
1624
+ ...
1625
+ }
1626
+
1627
+ TYPED_TEST_P(FooTest, HasPropertyA) { ... }
1628
+ ```
1629
+
1630
+ Now the tricky part: you need to register all test patterns using the
1631
+ `REGISTER_TYPED_TEST_SUITE_P` macro before you can instantiate them. The first
1632
+ argument of the macro is the test suite name; the rest are the names of the
1633
+ tests in this test suite:
1634
+
1635
+ ```c++
1636
+ REGISTER_TYPED_TEST_SUITE_P(FooTest,
1637
+ DoesBlah, HasPropertyA);
1638
+ ```
1639
+
1640
+ Finally, you are free to instantiate the pattern with the types you want. If you
1641
+ put the above code in a header file, you can `#include` it in multiple C++
1642
+ source files and instantiate it multiple times.
1643
+
1644
+ ```c++
1645
+ using MyTypes = ::testing::Types<char, int, unsigned int>;
1646
+ INSTANTIATE_TYPED_TEST_SUITE_P(My, FooTest, MyTypes);
1647
+ ```
1648
+
1649
+ To distinguish different instances of the pattern, the first argument to the
1650
+ `INSTANTIATE_TYPED_TEST_SUITE_P` macro is a prefix that will be added to the
1651
+ actual test suite name. Remember to pick unique prefixes for different
1652
+ instances.
1653
+
1654
+ In the special case where the type list contains only one type, you can write
1655
+ that type directly without `::testing::Types<...>`, like this:
1656
+
1657
+ ```c++
1658
+ INSTANTIATE_TYPED_TEST_SUITE_P(My, FooTest, int);
1659
+ ```
1660
+
1661
+ You can see [sample6_unittest.cc] for a complete example.
1662
+
1663
+ ## Testing Private Code
1664
+
1665
+ If you change your software's internal implementation, your tests should not
1666
+ break as long as the change is not observable by users. Therefore, **per the
1667
+ black-box testing principle, most of the time you should test your code through
1668
+ its public interfaces.**
1669
+
1670
+ **If you still find yourself needing to test internal implementation code,
1671
+ consider if there's a better design.** The desire to test internal
1672
+ implementation is often a sign that the class is doing too much. Consider
1673
+ extracting an implementation class, and testing it. Then use that implementation
1674
+ class in the original class.
1675
+
1676
+ If you absolutely have to test non-public interface code though, you can. There
1677
+ are two cases to consider:
1678
+
1679
+ * Static functions ( *not* the same as static member functions!) or unnamed
1680
+ namespaces, and
1681
+ * Private or protected class members
1682
+
1683
+ To test them, we use the following special techniques:
1684
+
1685
+ * Both static functions and definitions/declarations in an unnamed namespace
1686
+ are only visible within the same translation unit. To test them, you can
1687
+ `#include` the entire `.cc` file being tested in your `*_test.cc` file.
1688
+ (#including `.cc` files is not a good way to reuse code - you should not do
1689
+ this in production code!)
1690
+
1691
+ However, a better approach is to move the private code into the
1692
+ `foo::internal` namespace, where `foo` is the namespace your project
1693
+ normally uses, and put the private declarations in a `*-internal.h` file.
1694
+ Your production `.cc` files and your tests are allowed to include this
1695
+ internal header, but your clients are not. This way, you can fully test your
1696
+ internal implementation without leaking it to your clients.
1697
+
1698
+ * Private class members are only accessible from within the class or by
1699
+ friends. To access a class' private members, you can declare your test
1700
+ fixture as a friend to the class and define accessors in your fixture. Tests
1701
+ using the fixture can then access the private members of your production
1702
+ class via the accessors in the fixture. Note that even though your fixture
1703
+ is a friend to your production class, your tests are not automatically
1704
+ friends to it, as they are technically defined in sub-classes of the
1705
+ fixture.
1706
+
1707
+ Another way to test private members is to refactor them into an
1708
+ implementation class, which is then declared in a `*-internal.h` file. Your
1709
+ clients aren't allowed to include this header but your tests can. Such is
1710
+ called the
1711
+ [Pimpl](https://www.gamedev.net/articles/programming/general-and-gameplay-programming/the-c-pimpl-r1794/)
1712
+ (Private Implementation) idiom.
1713
+
1714
+ Or, you can declare an individual test as a friend of your class by adding
1715
+ this line in the class body:
1716
+
1717
+ ```c++
1718
+ FRIEND_TEST(TestSuiteName, TestName);
1719
+ ```
1720
+
1721
+ For example,
1722
+
1723
+ ```c++
1724
+ // foo.h
1725
+ class Foo {
1726
+ ...
1727
+ private:
1728
+ FRIEND_TEST(FooTest, BarReturnsZeroOnNull);
1729
+
1730
+ int Bar(void* x);
1731
+ };
1732
+
1733
+ // foo_test.cc
1734
+ ...
1735
+ TEST(FooTest, BarReturnsZeroOnNull) {
1736
+ Foo foo;
1737
+ EXPECT_EQ(foo.Bar(NULL), 0); // Uses Foo's private member Bar().
1738
+ }
1739
+ ```
1740
+
1741
+ Pay special attention when your class is defined in a namespace, as you
1742
+ should define your test fixtures and tests in the same namespace if you want
1743
+ them to be friends of your class. For example, if the code to be tested
1744
+ looks like:
1745
+
1746
+ ```c++
1747
+ namespace my_namespace {
1748
+
1749
+ class Foo {
1750
+ friend class FooTest;
1751
+ FRIEND_TEST(FooTest, Bar);
1752
+ FRIEND_TEST(FooTest, Baz);
1753
+ ... definition of the class Foo ...
1754
+ };
1755
+
1756
+ } // namespace my_namespace
1757
+ ```
1758
+
1759
+ Your test code should be something like:
1760
+
1761
+ ```c++
1762
+ namespace my_namespace {
1763
+
1764
+ class FooTest : public testing::Test {
1765
+ protected:
1766
+ ...
1767
+ };
1768
+
1769
+ TEST_F(FooTest, Bar) { ... }
1770
+ TEST_F(FooTest, Baz) { ... }
1771
+
1772
+ } // namespace my_namespace
1773
+ ```
1774
+
1775
+ ## "Catching" Failures
1776
+
1777
+ If you are building a testing utility on top of googletest, you'll want to test
1778
+ your utility. What framework would you use to test it? googletest, of course.
1779
+
1780
+ The challenge is to verify that your testing utility reports failures correctly.
1781
+ In frameworks that report a failure by throwing an exception, you could catch
1782
+ the exception and assert on it. But googletest doesn't use exceptions, so how do
1783
+ we test that a piece of code generates an expected failure?
1784
+
1785
+ `"gtest/gtest-spi.h"` contains some constructs to do this. After #including this header,
1786
+ you can use
1787
+
1788
+ ```c++
1789
+ EXPECT_FATAL_FAILURE(statement, substring);
1790
+ ```
1791
+
1792
+ to assert that `statement` generates a fatal (e.g. `ASSERT_*`) failure in the
1793
+ current thread whose message contains the given `substring`, or use
1794
+
1795
+ ```c++
1796
+ EXPECT_NONFATAL_FAILURE(statement, substring);
1797
+ ```
1798
+
1799
+ if you are expecting a non-fatal (e.g. `EXPECT_*`) failure.
1800
+
1801
+ Only failures in the current thread are checked to determine the result of this
1802
+ type of expectations. If `statement` creates new threads, failures in these
1803
+ threads are also ignored. If you want to catch failures in other threads as
1804
+ well, use one of the following macros instead:
1805
+
1806
+ ```c++
1807
+ EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substring);
1808
+ EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substring);
1809
+ ```
1810
+
1811
+ NOTE: Assertions from multiple threads are currently not supported on Windows.
1812
+
1813
+ For technical reasons, there are some caveats:
1814
+
1815
+ 1. You cannot stream a failure message to either macro.
1816
+
1817
+ 2. `statement` in `EXPECT_FATAL_FAILURE{_ON_ALL_THREADS}()` cannot reference
1818
+ local non-static variables or non-static members of `this` object.
1819
+
1820
+ 3. `statement` in `EXPECT_FATAL_FAILURE{_ON_ALL_THREADS}()` cannot return a
1821
+ value.
1822
+
1823
+ ## Registering tests programmatically
1824
+
1825
+ The `TEST` macros handle the vast majority of all use cases, but there are few
1826
+ where runtime registration logic is required. For those cases, the framework
1827
+ provides the `::testing::RegisterTest` that allows callers to register arbitrary
1828
+ tests dynamically.
1829
+
1830
+ This is an advanced API only to be used when the `TEST` macros are insufficient.
1831
+ The macros should be preferred when possible, as they avoid most of the
1832
+ complexity of calling this function.
1833
+
1834
+ It provides the following signature:
1835
+
1836
+ ```c++
1837
+ template <typename Factory>
1838
+ TestInfo* RegisterTest(const char* test_suite_name, const char* test_name,
1839
+ const char* type_param, const char* value_param,
1840
+ const char* file, int line, Factory factory);
1841
+ ```
1842
+
1843
+ The `factory` argument is a factory callable (move-constructible) object or
1844
+ function pointer that creates a new instance of the Test object. It handles
1845
+ ownership to the caller. The signature of the callable is `Fixture*()`, where
1846
+ `Fixture` is the test fixture class for the test. All tests registered with the
1847
+ same `test_suite_name` must return the same fixture type. This is checked at
1848
+ runtime.
1849
+
1850
+ The framework will infer the fixture class from the factory and will call the
1851
+ `SetUpTestSuite` and `TearDownTestSuite` for it.
1852
+
1853
+ Must be called before `RUN_ALL_TESTS()` is invoked, otherwise behavior is
1854
+ undefined.
1855
+
1856
+ Use case example:
1857
+
1858
+ ```c++
1859
+ class MyFixture : public testing::Test {
1860
+ public:
1861
+ // All of these optional, just like in regular macro usage.
1862
+ static void SetUpTestSuite() { ... }
1863
+ static void TearDownTestSuite() { ... }
1864
+ void SetUp() override { ... }
1865
+ void TearDown() override { ... }
1866
+ };
1867
+
1868
+ class MyTest : public MyFixture {
1869
+ public:
1870
+ explicit MyTest(int data) : data_(data) {}
1871
+ void TestBody() override { ... }
1872
+
1873
+ private:
1874
+ int data_;
1875
+ };
1876
+
1877
+ void RegisterMyTests(const std::vector<int>& values) {
1878
+ for (int v : values) {
1879
+ testing::RegisterTest(
1880
+ "MyFixture", ("Test" + std::to_string(v)).c_str(), nullptr,
1881
+ std::to_string(v).c_str(),
1882
+ __FILE__, __LINE__,
1883
+ // Important to use the fixture type as the return type here.
1884
+ [=]() -> MyFixture* { return new MyTest(v); });
1885
+ }
1886
+ }
1887
+ ...
1888
+ int main(int argc, char** argv) {
1889
+ std::vector<int> values_to_test = LoadValuesFromConfig();
1890
+ RegisterMyTests(values_to_test);
1891
+ ...
1892
+ return RUN_ALL_TESTS();
1893
+ }
1894
+ ```
1895
+ ## Getting the Current Test's Name
1896
+
1897
+ Sometimes a function may need to know the name of the currently running test.
1898
+ For example, you may be using the `SetUp()` method of your test fixture to set
1899
+ the golden file name based on which test is running. The `::testing::TestInfo`
1900
+ class has this information:
1901
+
1902
+ ```c++
1903
+ namespace testing {
1904
+
1905
+ class TestInfo {
1906
+ public:
1907
+ // Returns the test suite name and the test name, respectively.
1908
+ //
1909
+ // Do NOT delete or free the return value - it's managed by the
1910
+ // TestInfo class.
1911
+ const char* test_suite_name() const;
1912
+ const char* name() const;
1913
+ };
1914
+
1915
+ }
1916
+ ```
1917
+
1918
+ To obtain a `TestInfo` object for the currently running test, call
1919
+ `current_test_info()` on the `UnitTest` singleton object:
1920
+
1921
+ ```c++
1922
+ // Gets information about the currently running test.
1923
+ // Do NOT delete the returned object - it's managed by the UnitTest class.
1924
+ const testing::TestInfo* const test_info =
1925
+ testing::UnitTest::GetInstance()->current_test_info();
1926
+
1927
+ printf("We are in test %s of test suite %s.\n",
1928
+ test_info->name(),
1929
+ test_info->test_suite_name());
1930
+ ```
1931
+
1932
+ `current_test_info()` returns a null pointer if no test is running. In
1933
+ particular, you cannot find the test suite name in `SetUpTestSuite()`,
1934
+ `TearDownTestSuite()` (where you know the test suite name implicitly), or
1935
+ functions called from them.
1936
+
1937
+ ## Extending googletest by Handling Test Events
1938
+
1939
+ googletest provides an **event listener API** to let you receive notifications
1940
+ about the progress of a test program and test failures. The events you can
1941
+ listen to include the start and end of the test program, a test suite, or a test
1942
+ method, among others. You may use this API to augment or replace the standard
1943
+ console output, replace the XML output, or provide a completely different form
1944
+ of output, such as a GUI or a database. You can also use test events as
1945
+ checkpoints to implement a resource leak checker, for example.
1946
+
1947
+ ### Defining Event Listeners
1948
+
1949
+ To define a event listener, you subclass either testing::TestEventListener or
1950
+ testing::EmptyTestEventListener The former is an (abstract) interface, where
1951
+ *each pure virtual method can be overridden to handle a test event* (For
1952
+ example, when a test starts, the `OnTestStart()` method will be called.). The
1953
+ latter provides an empty implementation of all methods in the interface, such
1954
+ that a subclass only needs to override the methods it cares about.
1955
+
1956
+ When an event is fired, its context is passed to the handler function as an
1957
+ argument. The following argument types are used:
1958
+
1959
+ * UnitTest reflects the state of the entire test program,
1960
+ * TestSuite has information about a test suite, which can contain one or more
1961
+ tests,
1962
+ * TestInfo contains the state of a test, and
1963
+ * TestPartResult represents the result of a test assertion.
1964
+
1965
+ An event handler function can examine the argument it receives to find out
1966
+ interesting information about the event and the test program's state.
1967
+
1968
+ Here's an example:
1969
+
1970
+ ```c++
1971
+ class MinimalistPrinter : public testing::EmptyTestEventListener {
1972
+ // Called before a test starts.
1973
+ virtual void OnTestStart(const testing::TestInfo& test_info) {
1974
+ printf("*** Test %s.%s starting.\n",
1975
+ test_info.test_suite_name(), test_info.name());
1976
+ }
1977
+
1978
+ // Called after a failed assertion or a SUCCESS().
1979
+ virtual void OnTestPartResult(const testing::TestPartResult& test_part_result) {
1980
+ printf("%s in %s:%d\n%s\n",
1981
+ test_part_result.failed() ? "*** Failure" : "Success",
1982
+ test_part_result.file_name(),
1983
+ test_part_result.line_number(),
1984
+ test_part_result.summary());
1985
+ }
1986
+
1987
+ // Called after a test ends.
1988
+ virtual void OnTestEnd(const testing::TestInfo& test_info) {
1989
+ printf("*** Test %s.%s ending.\n",
1990
+ test_info.test_suite_name(), test_info.name());
1991
+ }
1992
+ };
1993
+ ```
1994
+
1995
+ ### Using Event Listeners
1996
+
1997
+ To use the event listener you have defined, add an instance of it to the
1998
+ googletest event listener list (represented by class TestEventListeners - note
1999
+ the "s" at the end of the name) in your `main()` function, before calling
2000
+ `RUN_ALL_TESTS()`:
2001
+
2002
+ ```c++
2003
+ int main(int argc, char** argv) {
2004
+ testing::InitGoogleTest(&argc, argv);
2005
+ // Gets hold of the event listener list.
2006
+ testing::TestEventListeners& listeners =
2007
+ testing::UnitTest::GetInstance()->listeners();
2008
+ // Adds a listener to the end. googletest takes the ownership.
2009
+ listeners.Append(new MinimalistPrinter);
2010
+ return RUN_ALL_TESTS();
2011
+ }
2012
+ ```
2013
+
2014
+ There's only one problem: the default test result printer is still in effect, so
2015
+ its output will mingle with the output from your minimalist printer. To suppress
2016
+ the default printer, just release it from the event listener list and delete it.
2017
+ You can do so by adding one line:
2018
+
2019
+ ```c++
2020
+ ...
2021
+ delete listeners.Release(listeners.default_result_printer());
2022
+ listeners.Append(new MinimalistPrinter);
2023
+ return RUN_ALL_TESTS();
2024
+ ```
2025
+
2026
+ Now, sit back and enjoy a completely different output from your tests. For more
2027
+ details, see [sample9_unittest.cc].
2028
+
2029
+ [sample9_unittest.cc]: ../samples/sample9_unittest.cc "Event listener example"
2030
+
2031
+ You may append more than one listener to the list. When an `On*Start()` or
2032
+ `OnTestPartResult()` event is fired, the listeners will receive it in the order
2033
+ they appear in the list (since new listeners are added to the end of the list,
2034
+ the default text printer and the default XML generator will receive the event
2035
+ first). An `On*End()` event will be received by the listeners in the *reverse*
2036
+ order. This allows output by listeners added later to be framed by output from
2037
+ listeners added earlier.
2038
+
2039
+ ### Generating Failures in Listeners
2040
+
2041
+ You may use failure-raising macros (`EXPECT_*()`, `ASSERT_*()`, `FAIL()`, etc)
2042
+ when processing an event. There are some restrictions:
2043
+
2044
+ 1. You cannot generate any failure in `OnTestPartResult()` (otherwise it will
2045
+ cause `OnTestPartResult()` to be called recursively).
2046
+ 2. A listener that handles `OnTestPartResult()` is not allowed to generate any
2047
+ failure.
2048
+
2049
+ When you add listeners to the listener list, you should put listeners that
2050
+ handle `OnTestPartResult()` *before* listeners that can generate failures. This
2051
+ ensures that failures generated by the latter are attributed to the right test
2052
+ by the former.
2053
+
2054
+ See [sample10_unittest.cc] for an example of a failure-raising listener.
2055
+
2056
+ [sample10_unittest.cc]: ../samples/sample10_unittest.cc "Failure-raising listener example"
2057
+
2058
+ ## Running Test Programs: Advanced Options
2059
+
2060
+ googletest test programs are ordinary executables. Once built, you can run them
2061
+ directly and affect their behavior via the following environment variables
2062
+ and/or command line flags. For the flags to work, your programs must call
2063
+ `::testing::InitGoogleTest()` before calling `RUN_ALL_TESTS()`.
2064
+
2065
+ To see a list of supported flags and their usage, please run your test program
2066
+ with the `--help` flag. You can also use `-h`, `-?`, or `/?` for short.
2067
+
2068
+ If an option is specified both by an environment variable and by a flag, the
2069
+ latter takes precedence.
2070
+
2071
+ ### Selecting Tests
2072
+
2073
+ #### Listing Test Names
2074
+
2075
+ Sometimes it is necessary to list the available tests in a program before
2076
+ running them so that a filter may be applied if needed. Including the flag
2077
+ `--gtest_list_tests` overrides all other flags and lists tests in the following
2078
+ format:
2079
+
2080
+ ```none
2081
+ TestSuite1.
2082
+ TestName1
2083
+ TestName2
2084
+ TestSuite2.
2085
+ TestName
2086
+ ```
2087
+
2088
+ None of the tests listed are actually run if the flag is provided. There is no
2089
+ corresponding environment variable for this flag.
2090
+
2091
+ #### Running a Subset of the Tests
2092
+
2093
+ By default, a googletest program runs all tests the user has defined. Sometimes,
2094
+ you want to run only a subset of the tests (e.g. for debugging or quickly
2095
+ verifying a change). If you set the `GTEST_FILTER` environment variable or the
2096
+ `--gtest_filter` flag to a filter string, googletest will only run the tests
2097
+ whose full names (in the form of `TestSuiteName.TestName`) match the filter.
2098
+
2099
+ The format of a filter is a '`:`'-separated list of wildcard patterns (called
2100
+ the *positive patterns*) optionally followed by a '`-`' and another
2101
+ '`:`'-separated pattern list (called the *negative patterns*). A test matches
2102
+ the filter if and only if it matches any of the positive patterns but does not
2103
+ match any of the negative patterns.
2104
+
2105
+ A pattern may contain `'*'` (matches any string) or `'?'` (matches any single
2106
+ character). For convenience, the filter `'*-NegativePatterns'` can be also
2107
+ written as `'-NegativePatterns'`.
2108
+
2109
+ For example:
2110
+
2111
+ * `./foo_test` Has no flag, and thus runs all its tests.
2112
+ * `./foo_test --gtest_filter=*` Also runs everything, due to the single
2113
+ match-everything `*` value.
2114
+ * `./foo_test --gtest_filter=FooTest.*` Runs everything in test suite
2115
+ `FooTest` .
2116
+ * `./foo_test --gtest_filter=*Null*:*Constructor*` Runs any test whose full
2117
+ name contains either `"Null"` or `"Constructor"` .
2118
+ * `./foo_test --gtest_filter=-*DeathTest.*` Runs all non-death tests.
2119
+ * `./foo_test --gtest_filter=FooTest.*-FooTest.Bar` Runs everything in test
2120
+ suite `FooTest` except `FooTest.Bar`.
2121
+ * `./foo_test --gtest_filter=FooTest.*:BarTest.*-FooTest.Bar:BarTest.Foo` Runs
2122
+ everything in test suite `FooTest` except `FooTest.Bar` and everything in
2123
+ test suite `BarTest` except `BarTest.Foo`.
2124
+
2125
+ #### Stop test execution upon first failure
2126
+
2127
+ By default, a googletest program runs all tests the user has defined. In some
2128
+ cases (e.g. iterative test development & execution) it may be desirable stop
2129
+ test execution upon first failure (trading improved latency for completeness).
2130
+ If `GTEST_FAIL_FAST` environment variable or `--gtest_fail_fast` flag is set,
2131
+ the test runner will stop execution as soon as the first test failure is
2132
+ found.
2133
+
2134
+ #### Temporarily Disabling Tests
2135
+
2136
+ If you have a broken test that you cannot fix right away, you can add the
2137
+ `DISABLED_` prefix to its name. This will exclude it from execution. This is
2138
+ better than commenting out the code or using `#if 0`, as disabled tests are
2139
+ still compiled (and thus won't rot).
2140
+
2141
+ If you need to disable all tests in a test suite, you can either add `DISABLED_`
2142
+ to the front of the name of each test, or alternatively add it to the front of
2143
+ the test suite name.
2144
+
2145
+ For example, the following tests won't be run by googletest, even though they
2146
+ will still be compiled:
2147
+
2148
+ ```c++
2149
+ // Tests that Foo does Abc.
2150
+ TEST(FooTest, DISABLED_DoesAbc) { ... }
2151
+
2152
+ class DISABLED_BarTest : public testing::Test { ... };
2153
+
2154
+ // Tests that Bar does Xyz.
2155
+ TEST_F(DISABLED_BarTest, DoesXyz) { ... }
2156
+ ```
2157
+
2158
+ NOTE: This feature should only be used for temporary pain-relief. You still have
2159
+ to fix the disabled tests at a later date. As a reminder, googletest will print
2160
+ a banner warning you if a test program contains any disabled tests.
2161
+
2162
+ TIP: You can easily count the number of disabled tests you have using `gsearch`
2163
+ and/or `grep`. This number can be used as a metric for improving your test
2164
+ quality.
2165
+
2166
+ #### Temporarily Enabling Disabled Tests
2167
+
2168
+ To include disabled tests in test execution, just invoke the test program with
2169
+ the `--gtest_also_run_disabled_tests` flag or set the
2170
+ `GTEST_ALSO_RUN_DISABLED_TESTS` environment variable to a value other than `0`.
2171
+ You can combine this with the `--gtest_filter` flag to further select which
2172
+ disabled tests to run.
2173
+
2174
+ ### Repeating the Tests
2175
+
2176
+ Once in a while you'll run into a test whose result is hit-or-miss. Perhaps it
2177
+ will fail only 1% of the time, making it rather hard to reproduce the bug under
2178
+ a debugger. This can be a major source of frustration.
2179
+
2180
+ The `--gtest_repeat` flag allows you to repeat all (or selected) test methods in
2181
+ a program many times. Hopefully, a flaky test will eventually fail and give you
2182
+ a chance to debug. Here's how to use it:
2183
+
2184
+ ```none
2185
+ $ foo_test --gtest_repeat=1000
2186
+ Repeat foo_test 1000 times and don't stop at failures.
2187
+
2188
+ $ foo_test --gtest_repeat=-1
2189
+ A negative count means repeating forever.
2190
+
2191
+ $ foo_test --gtest_repeat=1000 --gtest_break_on_failure
2192
+ Repeat foo_test 1000 times, stopping at the first failure. This
2193
+ is especially useful when running under a debugger: when the test
2194
+ fails, it will drop into the debugger and you can then inspect
2195
+ variables and stacks.
2196
+
2197
+ $ foo_test --gtest_repeat=1000 --gtest_filter=FooBar.*
2198
+ Repeat the tests whose name matches the filter 1000 times.
2199
+ ```
2200
+
2201
+ If your test program contains
2202
+ [global set-up/tear-down](#global-set-up-and-tear-down) code, it will be
2203
+ repeated in each iteration as well, as the flakiness may be in it. You can also
2204
+ specify the repeat count by setting the `GTEST_REPEAT` environment variable.
2205
+
2206
+ ### Shuffling the Tests
2207
+
2208
+ You can specify the `--gtest_shuffle` flag (or set the `GTEST_SHUFFLE`
2209
+ environment variable to `1`) to run the tests in a program in a random order.
2210
+ This helps to reveal bad dependencies between tests.
2211
+
2212
+ By default, googletest uses a random seed calculated from the current time.
2213
+ Therefore you'll get a different order every time. The console output includes
2214
+ the random seed value, such that you can reproduce an order-related test failure
2215
+ later. To specify the random seed explicitly, use the `--gtest_random_seed=SEED`
2216
+ flag (or set the `GTEST_RANDOM_SEED` environment variable), where `SEED` is an
2217
+ integer in the range [0, 99999]. The seed value 0 is special: it tells
2218
+ googletest to do the default behavior of calculating the seed from the current
2219
+ time.
2220
+
2221
+ If you combine this with `--gtest_repeat=N`, googletest will pick a different
2222
+ random seed and re-shuffle the tests in each iteration.
2223
+
2224
+ ### Controlling Test Output
2225
+
2226
+ #### Colored Terminal Output
2227
+
2228
+ googletest can use colors in its terminal output to make it easier to spot the
2229
+ important information:
2230
+
2231
+ <code>
2232
+ ...<br/>
2233
+ <font color="green">[----------]</font><font color="black"> 1 test from
2234
+ FooTest</font><br/>
2235
+ <font color="green">[ RUN &nbsp; &nbsp; &nbsp;]</font><font color="black">
2236
+ FooTest.DoesAbc</font><br/>
2237
+ <font color="green">[ &nbsp; &nbsp; &nbsp; OK ]</font><font color="black">
2238
+ FooTest.DoesAbc </font><br/>
2239
+ <font color="green">[----------]</font><font color="black">
2240
+ 2 tests from BarTest</font><br/>
2241
+ <font color="green">[ RUN &nbsp; &nbsp; &nbsp;]</font><font color="black">
2242
+ BarTest.HasXyzProperty </font><br/>
2243
+ <font color="green">[ &nbsp; &nbsp; &nbsp; OK ]</font><font color="black">
2244
+ BarTest.HasXyzProperty</font><br/>
2245
+ <font color="green">[ RUN &nbsp; &nbsp; &nbsp;]</font><font color="black">
2246
+ BarTest.ReturnsTrueOnSuccess ... some error messages ...</font><br/>
2247
+ <font color="red">[ &nbsp; FAILED ]</font><font color="black">
2248
+ BarTest.ReturnsTrueOnSuccess ...</font><br/>
2249
+ <font color="green">[==========]</font><font color="black">
2250
+ 30 tests from 14 test suites ran.</font><br/>
2251
+ <font color="green">[ &nbsp; PASSED ]</font><font color="black">
2252
+ 28 tests.</font><br/>
2253
+ <font color="red">[ &nbsp; FAILED ]</font><font color="black">
2254
+ 2 tests, listed below:</font><br/>
2255
+ <font color="red">[ &nbsp; FAILED ]</font><font color="black">
2256
+ BarTest.ReturnsTrueOnSuccess</font><br/>
2257
+ <font color="red">[ &nbsp; FAILED ]</font><font color="black">
2258
+ AnotherTest.DoesXyz<br/>
2259
+ <br/>
2260
+ 2 FAILED TESTS
2261
+ </font>
2262
+ </code>
2263
+
2264
+ You can set the `GTEST_COLOR` environment variable or the `--gtest_color`
2265
+ command line flag to `yes`, `no`, or `auto` (the default) to enable colors,
2266
+ disable colors, or let googletest decide. When the value is `auto`, googletest
2267
+ will use colors if and only if the output goes to a terminal and (on non-Windows
2268
+ platforms) the `TERM` environment variable is set to `xterm` or `xterm-color`.
2269
+
2270
+ #### Suppressing test passes
2271
+
2272
+ By default, googletest prints 1 line of output for each test, indicating if it
2273
+ passed or failed. To show only test failures, run the test program with
2274
+ `--gtest_brief=1`, or set the GTEST_BRIEF environment variable to `1`.
2275
+
2276
+ #### Suppressing the Elapsed Time
2277
+
2278
+ By default, googletest prints the time it takes to run each test. To disable
2279
+ that, run the test program with the `--gtest_print_time=0` command line flag, or
2280
+ set the GTEST_PRINT_TIME environment variable to `0`.
2281
+
2282
+ #### Suppressing UTF-8 Text Output
2283
+
2284
+ In case of assertion failures, googletest prints expected and actual values of
2285
+ type `string` both as hex-encoded strings as well as in readable UTF-8 text if
2286
+ they contain valid non-ASCII UTF-8 characters. If you want to suppress the UTF-8
2287
+ text because, for example, you don't have an UTF-8 compatible output medium, run
2288
+ the test program with `--gtest_print_utf8=0` or set the `GTEST_PRINT_UTF8`
2289
+ environment variable to `0`.
2290
+
2291
+
2292
+
2293
+ #### Generating an XML Report
2294
+
2295
+ googletest can emit a detailed XML report to a file in addition to its normal
2296
+ textual output. The report contains the duration of each test, and thus can help
2297
+ you identify slow tests.
2298
+
2299
+ To generate the XML report, set the `GTEST_OUTPUT` environment variable or the
2300
+ `--gtest_output` flag to the string `"xml:path_to_output_file"`, which will
2301
+ create the file at the given location. You can also just use the string `"xml"`,
2302
+ in which case the output can be found in the `test_detail.xml` file in the
2303
+ current directory.
2304
+
2305
+ If you specify a directory (for example, `"xml:output/directory/"` on Linux or
2306
+ `"xml:output\directory\"` on Windows), googletest will create the XML file in
2307
+ that directory, named after the test executable (e.g. `foo_test.xml` for test
2308
+ program `foo_test` or `foo_test.exe`). If the file already exists (perhaps left
2309
+ over from a previous run), googletest will pick a different name (e.g.
2310
+ `foo_test_1.xml`) to avoid overwriting it.
2311
+
2312
+ The report is based on the `junitreport` Ant task. Since that format was
2313
+ originally intended for Java, a little interpretation is required to make it
2314
+ apply to googletest tests, as shown here:
2315
+
2316
+ ```xml
2317
+ <testsuites name="AllTests" ...>
2318
+ <testsuite name="test_case_name" ...>
2319
+ <testcase name="test_name" ...>
2320
+ <failure message="..."/>
2321
+ <failure message="..."/>
2322
+ <failure message="..."/>
2323
+ </testcase>
2324
+ </testsuite>
2325
+ </testsuites>
2326
+ ```
2327
+
2328
+ * The root `<testsuites>` element corresponds to the entire test program.
2329
+ * `<testsuite>` elements correspond to googletest test suites.
2330
+ * `<testcase>` elements correspond to googletest test functions.
2331
+
2332
+ For instance, the following program
2333
+
2334
+ ```c++
2335
+ TEST(MathTest, Addition) { ... }
2336
+ TEST(MathTest, Subtraction) { ... }
2337
+ TEST(LogicTest, NonContradiction) { ... }
2338
+ ```
2339
+
2340
+ could generate this report:
2341
+
2342
+ ```xml
2343
+ <?xml version="1.0" encoding="UTF-8"?>
2344
+ <testsuites tests="3" failures="1" errors="0" time="0.035" timestamp="2011-10-31T18:52:42" name="AllTests">
2345
+ <testsuite name="MathTest" tests="2" failures="1" errors="0" time="0.015">
2346
+ <testcase name="Addition" status="run" time="0.007" classname="">
2347
+ <failure message="Value of: add(1, 1)&#x0A; Actual: 3&#x0A;Expected: 2" type="">...</failure>
2348
+ <failure message="Value of: add(1, -1)&#x0A; Actual: 1&#x0A;Expected: 0" type="">...</failure>
2349
+ </testcase>
2350
+ <testcase name="Subtraction" status="run" time="0.005" classname="">
2351
+ </testcase>
2352
+ </testsuite>
2353
+ <testsuite name="LogicTest" tests="1" failures="0" errors="0" time="0.005">
2354
+ <testcase name="NonContradiction" status="run" time="0.005" classname="">
2355
+ </testcase>
2356
+ </testsuite>
2357
+ </testsuites>
2358
+ ```
2359
+
2360
+ Things to note:
2361
+
2362
+ * The `tests` attribute of a `<testsuites>` or `<testsuite>` element tells how
2363
+ many test functions the googletest program or test suite contains, while the
2364
+ `failures` attribute tells how many of them failed.
2365
+
2366
+ * The `time` attribute expresses the duration of the test, test suite, or
2367
+ entire test program in seconds.
2368
+
2369
+ * The `timestamp` attribute records the local date and time of the test
2370
+ execution.
2371
+
2372
+ * Each `<failure>` element corresponds to a single failed googletest
2373
+ assertion.
2374
+
2375
+ #### Generating a JSON Report
2376
+
2377
+ googletest can also emit a JSON report as an alternative format to XML. To
2378
+ generate the JSON report, set the `GTEST_OUTPUT` environment variable or the
2379
+ `--gtest_output` flag to the string `"json:path_to_output_file"`, which will
2380
+ create the file at the given location. You can also just use the string
2381
+ `"json"`, in which case the output can be found in the `test_detail.json` file
2382
+ in the current directory.
2383
+
2384
+ The report format conforms to the following JSON Schema:
2385
+
2386
+ ```json
2387
+ {
2388
+ "$schema": "http://json-schema.org/schema#",
2389
+ "type": "object",
2390
+ "definitions": {
2391
+ "TestCase": {
2392
+ "type": "object",
2393
+ "properties": {
2394
+ "name": { "type": "string" },
2395
+ "tests": { "type": "integer" },
2396
+ "failures": { "type": "integer" },
2397
+ "disabled": { "type": "integer" },
2398
+ "time": { "type": "string" },
2399
+ "testsuite": {
2400
+ "type": "array",
2401
+ "items": {
2402
+ "$ref": "#/definitions/TestInfo"
2403
+ }
2404
+ }
2405
+ }
2406
+ },
2407
+ "TestInfo": {
2408
+ "type": "object",
2409
+ "properties": {
2410
+ "name": { "type": "string" },
2411
+ "status": {
2412
+ "type": "string",
2413
+ "enum": ["RUN", "NOTRUN"]
2414
+ },
2415
+ "time": { "type": "string" },
2416
+ "classname": { "type": "string" },
2417
+ "failures": {
2418
+ "type": "array",
2419
+ "items": {
2420
+ "$ref": "#/definitions/Failure"
2421
+ }
2422
+ }
2423
+ }
2424
+ },
2425
+ "Failure": {
2426
+ "type": "object",
2427
+ "properties": {
2428
+ "failures": { "type": "string" },
2429
+ "type": { "type": "string" }
2430
+ }
2431
+ }
2432
+ },
2433
+ "properties": {
2434
+ "tests": { "type": "integer" },
2435
+ "failures": { "type": "integer" },
2436
+ "disabled": { "type": "integer" },
2437
+ "errors": { "type": "integer" },
2438
+ "timestamp": {
2439
+ "type": "string",
2440
+ "format": "date-time"
2441
+ },
2442
+ "time": { "type": "string" },
2443
+ "name": { "type": "string" },
2444
+ "testsuites": {
2445
+ "type": "array",
2446
+ "items": {
2447
+ "$ref": "#/definitions/TestCase"
2448
+ }
2449
+ }
2450
+ }
2451
+ }
2452
+ ```
2453
+
2454
+ The report uses the format that conforms to the following Proto3 using the
2455
+ [JSON encoding](https://developers.google.com/protocol-buffers/docs/proto3#json):
2456
+
2457
+ ```proto
2458
+ syntax = "proto3";
2459
+
2460
+ package googletest;
2461
+
2462
+ import "google/protobuf/timestamp.proto";
2463
+ import "google/protobuf/duration.proto";
2464
+
2465
+ message UnitTest {
2466
+ int32 tests = 1;
2467
+ int32 failures = 2;
2468
+ int32 disabled = 3;
2469
+ int32 errors = 4;
2470
+ google.protobuf.Timestamp timestamp = 5;
2471
+ google.protobuf.Duration time = 6;
2472
+ string name = 7;
2473
+ repeated TestCase testsuites = 8;
2474
+ }
2475
+
2476
+ message TestCase {
2477
+ string name = 1;
2478
+ int32 tests = 2;
2479
+ int32 failures = 3;
2480
+ int32 disabled = 4;
2481
+ int32 errors = 5;
2482
+ google.protobuf.Duration time = 6;
2483
+ repeated TestInfo testsuite = 7;
2484
+ }
2485
+
2486
+ message TestInfo {
2487
+ string name = 1;
2488
+ enum Status {
2489
+ RUN = 0;
2490
+ NOTRUN = 1;
2491
+ }
2492
+ Status status = 2;
2493
+ google.protobuf.Duration time = 3;
2494
+ string classname = 4;
2495
+ message Failure {
2496
+ string failures = 1;
2497
+ string type = 2;
2498
+ }
2499
+ repeated Failure failures = 5;
2500
+ }
2501
+ ```
2502
+
2503
+ For instance, the following program
2504
+
2505
+ ```c++
2506
+ TEST(MathTest, Addition) { ... }
2507
+ TEST(MathTest, Subtraction) { ... }
2508
+ TEST(LogicTest, NonContradiction) { ... }
2509
+ ```
2510
+
2511
+ could generate this report:
2512
+
2513
+ ```json
2514
+ {
2515
+ "tests": 3,
2516
+ "failures": 1,
2517
+ "errors": 0,
2518
+ "time": "0.035s",
2519
+ "timestamp": "2011-10-31T18:52:42Z",
2520
+ "name": "AllTests",
2521
+ "testsuites": [
2522
+ {
2523
+ "name": "MathTest",
2524
+ "tests": 2,
2525
+ "failures": 1,
2526
+ "errors": 0,
2527
+ "time": "0.015s",
2528
+ "testsuite": [
2529
+ {
2530
+ "name": "Addition",
2531
+ "status": "RUN",
2532
+ "time": "0.007s",
2533
+ "classname": "",
2534
+ "failures": [
2535
+ {
2536
+ "message": "Value of: add(1, 1)\n Actual: 3\nExpected: 2",
2537
+ "type": ""
2538
+ },
2539
+ {
2540
+ "message": "Value of: add(1, -1)\n Actual: 1\nExpected: 0",
2541
+ "type": ""
2542
+ }
2543
+ ]
2544
+ },
2545
+ {
2546
+ "name": "Subtraction",
2547
+ "status": "RUN",
2548
+ "time": "0.005s",
2549
+ "classname": ""
2550
+ }
2551
+ ]
2552
+ },
2553
+ {
2554
+ "name": "LogicTest",
2555
+ "tests": 1,
2556
+ "failures": 0,
2557
+ "errors": 0,
2558
+ "time": "0.005s",
2559
+ "testsuite": [
2560
+ {
2561
+ "name": "NonContradiction",
2562
+ "status": "RUN",
2563
+ "time": "0.005s",
2564
+ "classname": ""
2565
+ }
2566
+ ]
2567
+ }
2568
+ ]
2569
+ }
2570
+ ```
2571
+
2572
+ IMPORTANT: The exact format of the JSON document is subject to change.
2573
+
2574
+ ### Controlling How Failures Are Reported
2575
+
2576
+ #### Detecting Test Premature Exit
2577
+
2578
+ Google Test implements the _premature-exit-file_ protocol for test runners
2579
+ to catch any kind of unexpected exits of test programs. Upon start,
2580
+ Google Test creates the file which will be automatically deleted after
2581
+ all work has been finished. Then, the test runner can check if this file
2582
+ exists. In case the file remains undeleted, the inspected test has exited
2583
+ prematurely.
2584
+
2585
+ This feature is enabled only if the `TEST_PREMATURE_EXIT_FILE` environment
2586
+ variable has been set.
2587
+
2588
+ #### Turning Assertion Failures into Break-Points
2589
+
2590
+ When running test programs under a debugger, it's very convenient if the
2591
+ debugger can catch an assertion failure and automatically drop into interactive
2592
+ mode. googletest's *break-on-failure* mode supports this behavior.
2593
+
2594
+ To enable it, set the `GTEST_BREAK_ON_FAILURE` environment variable to a value
2595
+ other than `0`. Alternatively, you can use the `--gtest_break_on_failure`
2596
+ command line flag.
2597
+
2598
+ #### Disabling Catching Test-Thrown Exceptions
2599
+
2600
+ googletest can be used either with or without exceptions enabled. If a test
2601
+ throws a C++ exception or (on Windows) a structured exception (SEH), by default
2602
+ googletest catches it, reports it as a test failure, and continues with the next
2603
+ test method. This maximizes the coverage of a test run. Also, on Windows an
2604
+ uncaught exception will cause a pop-up window, so catching the exceptions allows
2605
+ you to run the tests automatically.
2606
+
2607
+ When debugging the test failures, however, you may instead want the exceptions
2608
+ to be handled by the debugger, such that you can examine the call stack when an
2609
+ exception is thrown. To achieve that, set the `GTEST_CATCH_EXCEPTIONS`
2610
+ environment variable to `0`, or use the `--gtest_catch_exceptions=0` flag when
2611
+ running the tests.
2612
+
2613
+ ### Sanitizer Integration
2614
+
2615
+ The
2616
+ [Undefined Behavior Sanitizer](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html),
2617
+ [Address Sanitizer](https://github.com/google/sanitizers/wiki/AddressSanitizer),
2618
+ and
2619
+ [Thread Sanitizer](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual)
2620
+ all provide weak functions that you can override to trigger explicit failures
2621
+ when they detect sanitizer errors, such as creating a reference from `nullptr`.
2622
+ To override these functions, place definitions for them in a source file that
2623
+ you compile as part of your main binary:
2624
+
2625
+ ```
2626
+ extern "C" {
2627
+ void __ubsan_on_report() {
2628
+ FAIL() << "Encountered an undefined behavior sanitizer error";
2629
+ }
2630
+ void __asan_on_error() {
2631
+ FAIL() << "Encountered an address sanitizer error";
2632
+ }
2633
+ void __tsan_on_report() {
2634
+ FAIL() << "Encountered a thread sanitizer error";
2635
+ }
2636
+ } // extern "C"
2637
+ ```
2638
+
2639
+ After compiling your project with one of the sanitizers enabled, if a particular
2640
+ test triggers a sanitizer error, googletest will report that it failed.