couchbase 4.2.2 → 4.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/deps/couchbase-cxx-client/.github/workflows/sanitizers.yml +20 -12
- package/deps/couchbase-cxx-client/.github/workflows/tests.yml +5 -3
- package/deps/couchbase-cxx-client/.idea/vcs.xml +2 -0
- package/deps/couchbase-cxx-client/CMakeLists.txt +67 -8
- package/deps/couchbase-cxx-client/README.md +1 -0
- package/deps/couchbase-cxx-client/bin/build-tests +3 -0
- package/deps/couchbase-cxx-client/bin/build-tests.rb +9 -0
- package/deps/couchbase-cxx-client/bin/create-search-index +164 -0
- package/deps/couchbase-cxx-client/bin/init-cluster +84 -12
- package/deps/couchbase-cxx-client/bin/run-unit-tests +62 -6
- package/deps/couchbase-cxx-client/bin/travel-sample-index-v6.json +184 -0
- package/deps/couchbase-cxx-client/bin/travel-sample-index.json +188 -0
- package/deps/couchbase-cxx-client/cmake/CompilerWarnings.cmake +12 -4
- package/deps/couchbase-cxx-client/cmake/Documentation.cmake +4 -4
- package/deps/couchbase-cxx-client/cmake/OpenSSL.cmake +147 -7
- package/deps/couchbase-cxx-client/cmake/Testing.cmake +12 -4
- package/deps/couchbase-cxx-client/cmake/ThirdPartyDependencies.cmake +4 -0
- package/deps/couchbase-cxx-client/cmake/VersionInfo.cmake +39 -3
- package/deps/couchbase-cxx-client/cmake/build_config.hxx.in +3 -0
- package/deps/couchbase-cxx-client/cmake/test_openssl.cxx +7 -0
- package/deps/couchbase-cxx-client/core/bucket.cxx +183 -151
- package/deps/couchbase-cxx-client/core/bucket.hxx +23 -1
- package/deps/couchbase-cxx-client/core/cluster.hxx +18 -1
- package/deps/couchbase-cxx-client/core/cluster_options.cxx +2 -2
- package/deps/couchbase-cxx-client/core/cluster_options.hxx +4 -7
- package/deps/couchbase-cxx-client/core/cluster_options_fwd.hxx +26 -0
- package/deps/couchbase-cxx-client/core/config_profile.hxx +2 -65
- package/deps/couchbase-cxx-client/core/config_profiles.cxx +79 -0
- package/deps/couchbase-cxx-client/core/config_profiles.hxx +56 -0
- package/deps/couchbase-cxx-client/core/crypto/CMakeLists.txt +5 -1
- package/deps/couchbase-cxx-client/core/error_context/analytics.hxx +2 -1
- package/deps/couchbase-cxx-client/core/error_context/http.hxx +2 -1
- package/deps/couchbase-cxx-client/core/error_context/key_value.cxx +2 -1
- package/deps/couchbase-cxx-client/core/error_context/key_value.hxx +10 -12
- package/deps/couchbase-cxx-client/core/error_context/query.hxx +2 -1
- package/deps/couchbase-cxx-client/core/error_context/search.hxx +3 -2
- package/deps/couchbase-cxx-client/core/error_context/view.hxx +2 -1
- package/deps/couchbase-cxx-client/core/impl/analytics.cxx +237 -0
- package/deps/couchbase-cxx-client/core/impl/boolean_field_query.cxx +40 -0
- package/deps/couchbase-cxx-client/core/impl/boolean_query.cxx +62 -0
- package/deps/couchbase-cxx-client/core/impl/cluster.cxx +2 -1
- package/deps/couchbase-cxx-client/core/impl/collection_query_index_manager.cxx +3 -3
- package/deps/couchbase-cxx-client/core/impl/conjunction_query.cxx +51 -0
- package/deps/couchbase-cxx-client/core/impl/date_range.cxx +89 -0
- package/deps/couchbase-cxx-client/core/impl/date_range_facet.cxx +54 -0
- package/deps/couchbase-cxx-client/core/impl/date_range_facet_result.cxx +64 -0
- package/deps/couchbase-cxx-client/core/impl/date_range_query.cxx +125 -0
- package/deps/couchbase-cxx-client/core/impl/disjunction_query.cxx +51 -0
- package/deps/couchbase-cxx-client/core/impl/dns_srv_tracker.cxx +5 -3
- package/deps/couchbase-cxx-client/core/impl/encoded_search_facet.hxx +29 -0
- package/deps/couchbase-cxx-client/core/impl/encoded_search_query.hxx +29 -0
- package/deps/couchbase-cxx-client/core/impl/encoded_search_sort.hxx +29 -0
- package/deps/couchbase-cxx-client/core/impl/geo_bounding_box_query.cxx +46 -0
- package/deps/couchbase-cxx-client/core/impl/geo_distance_query.cxx +43 -0
- package/deps/couchbase-cxx-client/core/impl/geo_polygon_query.cxx +46 -0
- package/deps/couchbase-cxx-client/core/impl/get_all_query_indexes.cxx +3 -3
- package/deps/couchbase-cxx-client/core/impl/internal_date_range_facet_result.cxx +80 -0
- package/deps/couchbase-cxx-client/core/impl/internal_date_range_facet_result.hxx +48 -0
- package/deps/couchbase-cxx-client/core/impl/internal_numeric_range_facet_result.cxx +80 -0
- package/deps/couchbase-cxx-client/core/impl/internal_numeric_range_facet_result.hxx +48 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_error_context.cxx +141 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_error_context.hxx +61 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_meta_data.cxx +60 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_meta_data.hxx +41 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_result.cxx +84 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_result.hxx +43 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_row.cxx +82 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_row.hxx +56 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_row_location.hxx +32 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_row_locations.cxx +137 -0
- package/deps/couchbase-cxx-client/core/impl/internal_search_row_locations.hxx +45 -0
- package/deps/couchbase-cxx-client/core/impl/internal_term_facet_result.cxx +80 -0
- package/deps/couchbase-cxx-client/core/impl/internal_term_facet_result.hxx +48 -0
- package/deps/couchbase-cxx-client/core/impl/key_value_error_context.cxx +98 -0
- package/deps/couchbase-cxx-client/core/impl/match_all_query.cxx +35 -0
- package/deps/couchbase-cxx-client/core/impl/match_none_query.cxx +35 -0
- package/deps/couchbase-cxx-client/core/impl/match_phrase_query.cxx +43 -0
- package/deps/couchbase-cxx-client/core/impl/match_query.cxx +59 -0
- package/deps/couchbase-cxx-client/core/impl/numeric_range.cxx +49 -0
- package/deps/couchbase-cxx-client/core/impl/numeric_range_facet.cxx +54 -0
- package/deps/couchbase-cxx-client/core/impl/numeric_range_facet_result.cxx +64 -0
- package/deps/couchbase-cxx-client/core/impl/numeric_range_query.cxx +56 -0
- package/deps/couchbase-cxx-client/core/impl/phrase_query.cxx +42 -0
- package/deps/couchbase-cxx-client/core/impl/prefix_query.cxx +40 -0
- package/deps/couchbase-cxx-client/core/impl/query.cxx +19 -17
- package/deps/couchbase-cxx-client/core/impl/query_error_context.cxx +75 -0
- package/deps/couchbase-cxx-client/core/impl/query_string_query.cxx +37 -0
- package/deps/couchbase-cxx-client/core/impl/regexp_query.cxx +40 -0
- package/deps/couchbase-cxx-client/core/impl/search.cxx +191 -0
- package/deps/couchbase-cxx-client/core/impl/search_error_context.cxx +147 -0
- package/deps/couchbase-cxx-client/core/impl/search_meta_data.cxx +46 -0
- package/deps/couchbase-cxx-client/core/impl/search_result.cxx +66 -0
- package/deps/couchbase-cxx-client/core/impl/search_row.cxx +74 -0
- package/deps/couchbase-cxx-client/core/impl/search_row_location.cxx +64 -0
- package/deps/couchbase-cxx-client/core/impl/search_row_locations.cxx +66 -0
- package/deps/couchbase-cxx-client/core/impl/search_sort_field.cxx +104 -0
- package/deps/couchbase-cxx-client/core/impl/search_sort_id.cxx +43 -0
- package/deps/couchbase-cxx-client/core/impl/search_sort_score.cxx +43 -0
- package/deps/couchbase-cxx-client/core/impl/subdoc/lookup_in_macro.cxx +1 -0
- package/deps/couchbase-cxx-client/core/impl/subdoc/mutate_in_macro.cxx +1 -0
- package/deps/couchbase-cxx-client/core/impl/term_facet.cxx +36 -0
- package/deps/couchbase-cxx-client/core/impl/term_facet_result.cxx +64 -0
- package/deps/couchbase-cxx-client/core/impl/term_query.cxx +56 -0
- package/deps/couchbase-cxx-client/core/impl/term_range_query.cxx +57 -0
- package/deps/couchbase-cxx-client/core/impl/transaction_get_result.cxx +54 -0
- package/deps/couchbase-cxx-client/core/impl/wildcard_query.cxx +40 -0
- package/deps/couchbase-cxx-client/core/io/dns_client.cxx +225 -0
- package/deps/couchbase-cxx-client/core/io/dns_client.hxx +19 -188
- package/deps/couchbase-cxx-client/core/io/http_context.hxx +1 -1
- package/deps/couchbase-cxx-client/core/io/http_session.hxx +10 -0
- package/deps/couchbase-cxx-client/core/io/http_session_manager.hxx +5 -3
- package/deps/couchbase-cxx-client/core/io/mcbp_command.hxx +9 -2
- package/deps/couchbase-cxx-client/core/io/mcbp_session.cxx +79 -35
- package/deps/couchbase-cxx-client/core/io/mcbp_session.hxx +4 -3
- package/deps/couchbase-cxx-client/core/io/retry_orchestrator.hxx +3 -2
- package/deps/couchbase-cxx-client/core/json_string.hxx +5 -0
- package/deps/couchbase-cxx-client/core/meta/CMakeLists.txt +7 -5
- package/deps/couchbase-cxx-client/core/meta/version.cxx +37 -4
- package/deps/couchbase-cxx-client/core/mozilla_ca_bundle.hxx +39 -0
- package/deps/couchbase-cxx-client/core/operations/document_analytics.cxx +1 -0
- package/deps/couchbase-cxx-client/core/operations/document_analytics.hxx +1 -0
- package/deps/couchbase-cxx-client/core/operations/document_append.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_decrement.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_exists.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_get.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_get_and_lock.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_get_and_touch.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_get_projected.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_increment.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_insert.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_lookup_in.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_mutate_in.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_prepend.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_query.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/document_query.hxx +6 -0
- package/deps/couchbase-cxx-client/core/operations/document_remove.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_replace.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_search.cxx +9 -3
- package/deps/couchbase-cxx-client/core/operations/document_search.hxx +2 -2
- package/deps/couchbase-cxx-client/core/operations/document_touch.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_unlock.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_upsert.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_view.hxx +1 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_problem.hxx +2 -1
- package/deps/couchbase-cxx-client/core/operations/management/eventing_problem.hxx +2 -1
- package/deps/couchbase-cxx-client/core/platform/base64.cc +2 -1
- package/deps/couchbase-cxx-client/core/protocol/client_opcode.hxx +1 -0
- package/deps/couchbase-cxx-client/core/protocol/client_request.hxx +11 -2
- package/deps/couchbase-cxx-client/core/protocol/client_response.hxx +1 -0
- package/deps/couchbase-cxx-client/core/protocol/cmd_info.hxx +2 -1
- package/deps/couchbase-cxx-client/core/public_fwd.hxx +21 -0
- package/deps/couchbase-cxx-client/core/tls_verify_mode.hxx +26 -0
- package/deps/couchbase-cxx-client/core/topology/configuration.cxx +15 -2
- package/deps/couchbase-cxx-client/core/topology/configuration.hxx +5 -1
- package/deps/couchbase-cxx-client/core/transactions/active_transaction_record.hxx +2 -2
- package/deps/couchbase-cxx-client/core/transactions/atr_cleanup_entry.cxx +1 -0
- package/deps/couchbase-cxx-client/core/transactions/atr_ids.cxx +1 -1
- package/deps/couchbase-cxx-client/core/transactions/attempt_context_impl.cxx +78 -44
- package/deps/couchbase-cxx-client/core/transactions/attempt_context_impl.hxx +90 -59
- package/deps/couchbase-cxx-client/core/transactions/attempt_context_testing_hooks.cxx +93 -0
- package/deps/couchbase-cxx-client/core/transactions/attempt_context_testing_hooks.hxx +48 -75
- package/deps/couchbase-cxx-client/core/transactions/cleanup_testing_hooks.cxx +52 -0
- package/deps/couchbase-cxx-client/core/transactions/cleanup_testing_hooks.hxx +17 -31
- package/deps/couchbase-cxx-client/core/transactions/exceptions.cxx +0 -1
- package/deps/couchbase-cxx-client/core/transactions/exceptions.hxx +14 -11
- package/deps/couchbase-cxx-client/core/transactions/forward_compat.hxx +2 -2
- package/deps/couchbase-cxx-client/core/transactions/internal/transaction_context.hxx +14 -14
- package/deps/couchbase-cxx-client/core/transactions/internal/transaction_fields.hxx +1 -0
- package/deps/couchbase-cxx-client/core/transactions/internal/transactions_cleanup.hxx +7 -1
- package/deps/couchbase-cxx-client/core/transactions/staged_mutation.cxx +1 -1
- package/deps/couchbase-cxx-client/core/transactions/staged_mutation.hxx +12 -2
- package/deps/couchbase-cxx-client/core/transactions/transaction_context.cxx +9 -11
- package/deps/couchbase-cxx-client/core/transactions/transaction_get_result.cxx +41 -31
- package/deps/couchbase-cxx-client/core/transactions/transaction_get_result.hxx +69 -21
- package/deps/couchbase-cxx-client/core/transactions/transaction_links.hxx +13 -1
- package/deps/couchbase-cxx-client/core/transactions/transactions.cxx +5 -4
- package/deps/couchbase-cxx-client/core/transactions/transactions_cleanup.cxx +144 -155
- package/deps/couchbase-cxx-client/core/transactions/waitable_op_list.hxx +1 -0
- package/deps/couchbase-cxx-client/core/transactions.hxx +1 -1
- package/deps/couchbase-cxx-client/core/utils/connection_string.cxx +81 -46
- package/deps/couchbase-cxx-client/core/utils/connection_string.hxx +4 -3
- package/deps/couchbase-cxx-client/core/utils/crc32.hxx +3 -2
- package/deps/couchbase-cxx-client/core/utils/json.cxx +4 -1
- package/deps/couchbase-cxx-client/core/utils/json_streaming_lexer.hxx +2 -1
- package/deps/couchbase-cxx-client/core/utils/url_codec.cxx +2 -1
- package/deps/couchbase-cxx-client/couchbase/analytics_error_context.hxx +143 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_meta_data.hxx +155 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_metrics.hxx +163 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_options.hxx +359 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_result.hxx +102 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_scan_consistency.hxx +46 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_status.hxx +41 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_warning.hxx +85 -0
- package/deps/couchbase-cxx-client/couchbase/behavior_options.hxx +10 -1
- package/deps/couchbase-cxx-client/couchbase/boolean_field_query.hxx +77 -0
- package/deps/couchbase-cxx-client/couchbase/boolean_query.hxx +223 -0
- package/deps/couchbase-cxx-client/couchbase/cluster.hxx +77 -3
- package/deps/couchbase-cxx-client/couchbase/cluster_options.hxx +10 -10
- package/deps/couchbase-cxx-client/couchbase/collection.hxx +22 -17
- package/deps/couchbase-cxx-client/couchbase/collection_query_index_manager.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/common_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/configuration_profile.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/configuration_profiles_registry.hxx +0 -1
- package/deps/couchbase-cxx-client/couchbase/conjunction_query.hxx +88 -0
- package/deps/couchbase-cxx-client/couchbase/create_primary_query_index_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/date_range.hxx +69 -0
- package/deps/couchbase-cxx-client/couchbase/date_range_facet.hxx +56 -0
- package/deps/couchbase-cxx-client/couchbase/date_range_facet_result.hxx +55 -0
- package/deps/couchbase-cxx-client/couchbase/date_range_query.hxx +265 -0
- package/deps/couchbase-cxx-client/couchbase/disjunction_query.hxx +109 -0
- package/deps/couchbase-cxx-client/couchbase/doc_id_query.hxx +111 -0
- package/deps/couchbase-cxx-client/couchbase/drop_primary_query_index_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/drop_query_index_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/error_context.hxx +17 -8
- package/deps/couchbase-cxx-client/couchbase/fmt/analytics_scan_consistency.hxx +52 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/analytics_status.hxx +76 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/cas.hxx +12 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/durability_level.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/key_value_error_map_attribute.hxx +94 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/key_value_extended_error_info.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/key_value_status_code.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/mutation_token.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/query_scan_consistency.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/query_status.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/retry_reason.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/search_scan_consistency.hxx +49 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/tls_verify_mode.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/geo_bounding_box_query.hxx +107 -0
- package/deps/couchbase-cxx-client/couchbase/geo_distance_query.hxx +109 -0
- package/deps/couchbase-cxx-client/couchbase/geo_point.hxx +32 -0
- package/deps/couchbase-cxx-client/couchbase/geo_polygon_query.hxx +85 -0
- package/deps/couchbase-cxx-client/couchbase/get_all_query_indexes_options.hxx +5 -4
- package/deps/couchbase-cxx-client/couchbase/highlight_style.hxx +45 -0
- package/deps/couchbase-cxx-client/couchbase/key_value_error_context.hxx +7 -2
- package/deps/couchbase-cxx-client/couchbase/manager_error_context.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/match_all_query.hxx +43 -0
- package/deps/couchbase-cxx-client/couchbase/match_none_query.hxx +43 -0
- package/deps/couchbase-cxx-client/couchbase/match_operator.hxx +45 -0
- package/deps/couchbase-cxx-client/couchbase/match_phrase_query.hxx +108 -0
- package/deps/couchbase-cxx-client/couchbase/match_query.hxx +163 -0
- package/deps/couchbase-cxx-client/couchbase/numeric_range.hxx +58 -0
- package/deps/couchbase-cxx-client/couchbase/numeric_range_facet.hxx +56 -0
- package/deps/couchbase-cxx-client/couchbase/numeric_range_facet_result.hxx +55 -0
- package/deps/couchbase-cxx-client/couchbase/numeric_range_query.hxx +143 -0
- package/deps/couchbase-cxx-client/couchbase/phrase_query.hxx +93 -0
- package/deps/couchbase-cxx-client/couchbase/prefix_query.hxx +82 -0
- package/deps/couchbase-cxx-client/couchbase/query_error_context.hxx +3 -1
- package/deps/couchbase-cxx-client/couchbase/query_index_manager.hxx +4 -2
- package/deps/couchbase-cxx-client/couchbase/query_options.hxx +0 -1
- package/deps/couchbase-cxx-client/couchbase/query_string_query.hxx +72 -0
- package/deps/couchbase-cxx-client/couchbase/regexp_query.hxx +82 -0
- package/deps/couchbase-cxx-client/couchbase/scope.hxx +74 -1
- package/deps/couchbase-cxx-client/couchbase/search_date_range.hxx +68 -0
- package/deps/couchbase-cxx-client/couchbase/search_error_context.hxx +138 -0
- package/deps/couchbase-cxx-client/couchbase/search_facet.hxx +60 -0
- package/deps/couchbase-cxx-client/couchbase/search_facet_result.hxx +50 -0
- package/deps/couchbase-cxx-client/couchbase/search_meta_data.hxx +85 -0
- package/deps/couchbase-cxx-client/couchbase/search_metrics.hxx +127 -0
- package/deps/couchbase-cxx-client/couchbase/search_numeric_range.hxx +69 -0
- package/deps/couchbase-cxx-client/couchbase/search_options.hxx +509 -0
- package/deps/couchbase-cxx-client/couchbase/search_query.hxx +69 -0
- package/deps/couchbase-cxx-client/couchbase/search_result.hxx +77 -0
- package/deps/couchbase-cxx-client/couchbase/search_row.hxx +104 -0
- package/deps/couchbase-cxx-client/couchbase/search_row_location.hxx +55 -0
- package/deps/couchbase-cxx-client/couchbase/search_row_locations.hxx +86 -0
- package/deps/couchbase-cxx-client/couchbase/search_scan_consistency.hxx +34 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort.hxx +58 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_field.hxx +117 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_field_missing.hxx +26 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_field_mode.hxx +27 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_field_type.hxx +28 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_id.hxx +60 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_score.hxx +60 -0
- package/deps/couchbase-cxx-client/couchbase/search_term_range.hxx +51 -0
- package/deps/couchbase-cxx-client/couchbase/security_options.hxx +3 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/array_add_unique.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/array_append.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/array_insert.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/array_prepend.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/count.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/counter.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/exists.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/get.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/insert.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/remove.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdoc/replace.hxx +3 -1
- package/deps/couchbase-cxx-client/couchbase/subdoc/upsert.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/subdocument_error_context.hxx +4 -2
- package/deps/couchbase-cxx-client/couchbase/term_facet.hxx +48 -0
- package/deps/couchbase-cxx-client/couchbase/term_facet_result.hxx +55 -0
- package/deps/couchbase-cxx-client/couchbase/term_query.hxx +151 -0
- package/deps/couchbase-cxx-client/couchbase/term_range_query.hxx +142 -0
- package/deps/couchbase-cxx-client/couchbase/tracing/request_span.hxx +63 -0
- package/deps/couchbase-cxx-client/couchbase/tracing/request_tracer.hxx +2 -40
- package/deps/couchbase-cxx-client/couchbase/transaction_op_error_context.hxx +4 -4
- package/deps/couchbase-cxx-client/couchbase/transactions/async_attempt_context.hxx +93 -14
- package/deps/couchbase-cxx-client/couchbase/transactions/attempt_context.hxx +88 -15
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_get_result.hxx +55 -35
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_keyspace.hxx +11 -1
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_options.hxx +79 -8
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_query_options.hxx +128 -15
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_query_result.hxx +6 -21
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_result.hxx +1 -2
- package/deps/couchbase-cxx-client/couchbase/transactions/transactions_cleanup_config.hxx +5 -3
- package/deps/couchbase-cxx-client/couchbase/transactions/transactions_config.hxx +9 -5
- package/deps/couchbase-cxx-client/couchbase/transactions/transactions_query_config.hxx +6 -3
- package/deps/couchbase-cxx-client/couchbase/transactions.hxx +37 -3
- package/deps/couchbase-cxx-client/couchbase/wildcard_query.hxx +83 -0
- package/deps/couchbase-cxx-client/docs/Doxyfile.in +325 -224
- package/deps/couchbase-cxx-client/docs/cbc-analytics.md +171 -0
- package/deps/couchbase-cxx-client/docs/cbc-get.md +161 -0
- package/deps/couchbase-cxx-client/docs/cbc-pillowfight.md +168 -0
- package/deps/couchbase-cxx-client/docs/cbc-query.md +179 -0
- package/deps/couchbase-cxx-client/docs/cbc.md +46 -0
- package/deps/couchbase-cxx-client/docs/cli.hxx +33 -0
- package/deps/couchbase-cxx-client/docs/doxygen-awesome.css +474 -89
- package/deps/couchbase-cxx-client/docs/mainpage.hxx +46 -8
- package/deps/couchbase-cxx-client/docs/stability.hxx +15 -0
- package/deps/couchbase-cxx-client/examples/async_game_server.cxx +56 -54
- package/deps/couchbase-cxx-client/examples/distributed_mutex.cxx +2 -0
- package/deps/couchbase-cxx-client/examples/game_server.cxx +9 -10
- package/deps/couchbase-cxx-client/test/CMakeLists.txt +10 -7
- package/deps/couchbase-cxx-client/test/benchmark_helper_integration.hxx +2 -2
- package/deps/couchbase-cxx-client/test/data/search_beers_dataset.json +70 -0
- package/deps/couchbase-cxx-client/test/data/search_beers_index_params.json +108 -0
- package/deps/couchbase-cxx-client/test/test_helper.hxx +6 -6
- package/deps/couchbase-cxx-client/test/test_integration_analytics.cxx +314 -16
- package/deps/couchbase-cxx-client/test/test_integration_collections.cxx +7 -3
- package/deps/couchbase-cxx-client/test/test_integration_connect.cxx +7 -3
- package/deps/couchbase-cxx-client/test/test_integration_crud.cxx +19 -2
- package/deps/couchbase-cxx-client/test/test_integration_diagnostics.cxx +11 -5
- package/deps/couchbase-cxx-client/test/test_integration_durability.cxx +12 -7
- package/deps/couchbase-cxx-client/test/test_integration_examples.cxx +454 -0
- package/deps/couchbase-cxx-client/test/test_integration_management.cxx +162 -94
- package/deps/couchbase-cxx-client/test/test_integration_query.cxx +68 -10
- package/deps/couchbase-cxx-client/test/test_integration_range_scan.cxx +12 -12
- package/deps/couchbase-cxx-client/test/test_integration_read_replica.cxx +48 -11
- package/deps/couchbase-cxx-client/test/test_integration_search.cxx +621 -0
- package/deps/couchbase-cxx-client/test/test_integration_subdoc.cxx +62 -11
- package/deps/couchbase-cxx-client/test/test_integration_tracer.cxx +5 -0
- package/deps/couchbase-cxx-client/test/test_integration_transcoders.cxx +13 -5
- package/deps/couchbase-cxx-client/test/test_transaction_context.cxx +550 -0
- package/deps/couchbase-cxx-client/test/test_transaction_examples.cxx +195 -0
- package/deps/couchbase-cxx-client/test/test_transaction_public_async_api.cxx +393 -0
- package/deps/couchbase-cxx-client/test/test_transaction_public_blocking_api.cxx +653 -0
- package/deps/couchbase-cxx-client/test/test_transaction_simple.cxx +984 -0
- package/deps/couchbase-cxx-client/test/test_transaction_simple_async.cxx +970 -0
- package/deps/couchbase-cxx-client/test/test_unit_config_profiles.cxx +13 -13
- package/deps/couchbase-cxx-client/test/test_unit_connection_string.cxx +64 -0
- package/deps/couchbase-cxx-client/test/test_unit_json_transcoder.cxx +4 -0
- package/deps/couchbase-cxx-client/test/test_unit_search.cxx +427 -0
- package/deps/couchbase-cxx-client/test/test_unit_transaction_utils.cxx +113 -0
- package/deps/couchbase-cxx-client/test/test_unit_utils.cxx +8 -4
- package/deps/couchbase-cxx-client/test/utils/CMakeLists.txt +13 -9
- package/deps/couchbase-cxx-client/test/utils/integration_shortcuts.hxx +3 -3
- package/deps/couchbase-cxx-client/test/utils/integration_test_guard.cxx +20 -9
- package/deps/couchbase-cxx-client/test/utils/logger.cxx +3 -1
- package/deps/couchbase-cxx-client/test/utils/server_version.hxx +39 -13
- package/deps/couchbase-cxx-client/test/utils/test_context.cxx +8 -0
- package/deps/couchbase-cxx-client/test/utils/test_data.cxx +41 -0
- package/deps/couchbase-cxx-client/test/utils/test_data.hxx +29 -0
- package/deps/couchbase-cxx-client/test/utils/wait_until.cxx +61 -0
- package/deps/couchbase-cxx-client/test/utils/wait_until.hxx +8 -1
- package/deps/couchbase-cxx-client/third_party/catch2/.bazelrc +10 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.conan/build.py +4 -4
- package/deps/couchbase-cxx-client/third_party/catch2/.conan/test_package/CMakeLists.txt +5 -4
- package/deps/couchbase-cxx-client/third_party/catch2/.conan/test_package/conanfile.py +3 -2
- package/deps/couchbase-cxx-client/third_party/catch2/.conan/test_package/test_package.cpp +1 -3
- package/deps/couchbase-cxx-client/third_party/catch2/.github/FUNDING.yml +1 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/linux-bazel-builds.yml +24 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/linux-meson-builds.yml +43 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/linux-other-builds.yml +104 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/linux-simple-builds.yml +122 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/mac-builds.yml +52 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/validate-header-guards.yml +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/.github/workflows/windows-simple-builds.yml +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/BUILD.bazel +83 -8
- package/deps/couchbase-cxx-client/third_party/catch2/CMake/CatchConfigOptions.cmake +79 -0
- package/deps/couchbase-cxx-client/third_party/catch2/CMake/CatchMiscFunctions.cmake +120 -0
- package/deps/couchbase-cxx-client/third_party/catch2/CMake/catch2-with-main.pc.in +10 -0
- package/deps/couchbase-cxx-client/third_party/catch2/CMake/catch2.pc.in +5 -1
- package/deps/couchbase-cxx-client/third_party/catch2/CMakeLists.txt +98 -152
- package/deps/couchbase-cxx-client/third_party/catch2/CMakePresets.json +25 -0
- package/deps/couchbase-cxx-client/third_party/catch2/Doxyfile +2484 -0
- package/deps/couchbase-cxx-client/third_party/catch2/README.md +83 -17
- package/deps/couchbase-cxx-client/third_party/catch2/SECURITY.md +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/WORKSPACE.bazel +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/appveyor.yml +55 -73
- package/deps/couchbase-cxx-client/third_party/catch2/codecov.yml +3 -6
- package/deps/couchbase-cxx-client/third_party/catch2/conanfile.py +44 -14
- package/deps/couchbase-cxx-client/third_party/catch2/data/artwork/catch2-logo-small-with-background.png +0 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/Readme.md +18 -16
- package/deps/couchbase-cxx-client/third_party/catch2/docs/assertions.md +45 -64
- package/deps/couchbase-cxx-client/third_party/catch2/docs/benchmarks.md +3 -6
- package/deps/couchbase-cxx-client/third_party/catch2/docs/ci-and-misc.md +27 -29
- package/deps/couchbase-cxx-client/third_party/catch2/docs/cmake-integration.md +157 -35
- package/deps/couchbase-cxx-client/third_party/catch2/docs/command-line.md +232 -65
- package/deps/couchbase-cxx-client/third_party/catch2/docs/commercial-users.md +14 -13
- package/deps/couchbase-cxx-client/third_party/catch2/docs/comparing-floating-point-numbers.md +192 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/configuration.md +48 -54
- package/deps/couchbase-cxx-client/third_party/catch2/docs/contributing.md +150 -38
- package/deps/couchbase-cxx-client/third_party/catch2/docs/deprecations.md +14 -118
- package/deps/couchbase-cxx-client/third_party/catch2/docs/event-listeners.md +31 -62
- package/deps/couchbase-cxx-client/third_party/catch2/docs/faq.md +94 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/generators.md +14 -10
- package/deps/couchbase-cxx-client/third_party/catch2/docs/limitations.md +34 -36
- package/deps/couchbase-cxx-client/third_party/catch2/docs/list-of-examples.md +0 -3
- package/deps/couchbase-cxx-client/third_party/catch2/docs/logging.md +2 -2
- package/deps/couchbase-cxx-client/third_party/catch2/docs/matchers.md +355 -122
- package/deps/couchbase-cxx-client/third_party/catch2/docs/migrate-v2-to-v3.md +98 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/opensource-users.md +43 -13
- package/deps/couchbase-cxx-client/third_party/catch2/docs/other-macros.md +19 -18
- package/deps/couchbase-cxx-client/third_party/catch2/docs/own-main.md +50 -49
- package/deps/couchbase-cxx-client/third_party/catch2/docs/release-notes.md +375 -6
- package/deps/couchbase-cxx-client/third_party/catch2/docs/release-process.md +9 -16
- package/deps/couchbase-cxx-client/third_party/catch2/docs/reporter-events.md +175 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/reporters.md +191 -25
- package/deps/couchbase-cxx-client/third_party/catch2/docs/skipping-passing-failing.md +129 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/test-cases-and-sections.md +91 -20
- package/deps/couchbase-cxx-client/third_party/catch2/docs/test-fixtures.md +28 -9
- package/deps/couchbase-cxx-client/third_party/catch2/docs/tostring.md +3 -3
- package/deps/couchbase-cxx-client/third_party/catch2/docs/tutorial.md +87 -139
- package/deps/couchbase-cxx-client/third_party/catch2/docs/usage-tips.md +100 -0
- package/deps/couchbase-cxx-client/third_party/catch2/docs/why-catch.md +24 -11
- package/deps/couchbase-cxx-client/third_party/catch2/examples/010-TestCase.cpp +4 -7
- package/deps/couchbase-cxx-client/third_party/catch2/examples/020-TestCase-1.cpp +3 -9
- package/deps/couchbase-cxx-client/third_party/catch2/examples/020-TestCase-2.cpp +2 -2
- package/deps/couchbase-cxx-client/third_party/catch2/examples/030-Asn-Require-Check.cpp +5 -5
- package/deps/couchbase-cxx-client/third_party/catch2/examples/100-Fix-Section.cpp +5 -4
- package/deps/couchbase-cxx-client/third_party/catch2/examples/110-Fix-ClassFixture.cpp +7 -4
- package/deps/couchbase-cxx-client/third_party/catch2/examples/120-Bdd-ScenarioGivenWhenThen.cpp +4 -4
- package/deps/couchbase-cxx-client/third_party/catch2/examples/210-Evt-EventListeners.cpp +51 -44
- package/deps/couchbase-cxx-client/third_party/catch2/examples/231-Cfg-OutputStreams.cpp +3 -4
- package/deps/couchbase-cxx-client/third_party/catch2/examples/300-Gen-OwnGenerator.cpp +13 -3
- package/deps/couchbase-cxx-client/third_party/catch2/examples/301-Gen-MapTypeConversion.cpp +9 -7
- package/deps/couchbase-cxx-client/third_party/catch2/examples/302-Gen-Table.cpp +4 -3
- package/deps/couchbase-cxx-client/third_party/catch2/examples/310-Gen-VariablesInGenerators.cpp +3 -1
- package/deps/couchbase-cxx-client/third_party/catch2/examples/311-Gen-CustomCapture.cpp +3 -1
- package/deps/couchbase-cxx-client/third_party/catch2/examples/CMakeLists.txt +29 -126
- package/deps/couchbase-cxx-client/third_party/catch2/extras/Catch.cmake +279 -0
- package/deps/couchbase-cxx-client/third_party/catch2/extras/CatchAddTests.cmake +187 -0
- package/deps/couchbase-cxx-client/third_party/catch2/extras/CatchShardTests.cmake +74 -0
- package/deps/couchbase-cxx-client/third_party/catch2/extras/CatchShardTestsImpl.cmake +52 -0
- package/deps/couchbase-cxx-client/third_party/catch2/extras/catch_amalgamated.cpp +10655 -0
- package/deps/couchbase-cxx-client/third_party/catch2/extras/catch_amalgamated.hpp +12972 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/CMakeLists.txt +20 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/NullOStream.cpp +10 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/NullOStream.h +20 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/build_fuzzers.sh +33 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/fuzz_TestSpecParser.cpp +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/fuzz_XmlWriter.cpp +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/fuzzing/fuzz_textflow.cpp +47 -0
- package/deps/couchbase-cxx-client/third_party/catch2/mdsnippets.json +9 -0
- package/deps/couchbase-cxx-client/third_party/catch2/meson.build +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/CMakeLists.txt +510 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_benchmark.hpp +147 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_benchmark_all.hpp +46 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_chronometer.cpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_chronometer.hpp +74 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_clock.hpp +39 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_constructor.hpp +82 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_environment.hpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_estimate.hpp +30 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_execution_plan.hpp +58 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_optimizer.hpp +78 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_outlier_classification.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/catch_sample_analysis.hpp +49 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_analyse.hpp +79 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_benchmark_function.cpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_benchmark_function.hpp +107 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_benchmark_stats.hpp +64 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp +23 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_complete_invoke.hpp +58 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_estimate_clock.hpp +121 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_measure.hpp +32 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_repeat.hpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_run_for_at_least.cpp +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_run_for_at_least.hpp +65 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_stats.cpp +257 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_stats.hpp +144 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/benchmark/detail/catch_timing.hpp +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_all.hpp +127 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_approx.cpp +85 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_approx.hpp +128 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_assertion_info.hpp +28 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_assertion_result.cpp +105 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_assertion_result.hpp +60 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_config.cpp +247 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_config.hpp +153 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_get_random_seed.cpp +18 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_get_random_seed.hpp +18 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_message.cpp +116 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_message.hpp +148 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_registry_hub.cpp +105 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_section_info.hpp +42 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_session.cpp +363 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_session.hpp +62 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tag_alias.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tag_alias_autoregistrar.cpp +24 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tag_alias_autoregistrar.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_template_test_macros.hpp +124 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_case_info.cpp +247 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_case_info.hpp +131 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_macros.hpp +226 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_spec.cpp +138 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_test_spec.hpp +119 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_timer.cpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_timer.hpp +27 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tostring.cpp +254 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_tostring.hpp +668 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_totals.cpp +65 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_totals.hpp +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_translate_exception.cpp +20 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_translate_exception.hpp +88 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_user_config.hpp.in +210 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_version.cpp +43 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_version.hpp +39 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/catch_version_macros.hpp +15 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generator_exception.cpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generator_exception.hpp +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators.cpp +42 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators.hpp +250 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_adapters.hpp +241 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_all.hpp +30 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_random.cpp +13 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_random.hpp +98 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/generators/catch_generators_range.hpp +110 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_all.hpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_capture.cpp +13 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_capture.hpp +109 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_config.cpp +13 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_config.hpp +100 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_enum_values_registry.hpp +47 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_exception.cpp +14 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_exception.hpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_generatortracker.cpp +32 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_generatortracker.hpp +90 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_registry_hub.cpp +14 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_registry_hub.hpp +66 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_reporter.cpp +101 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_reporter.hpp +224 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_reporter_factory.cpp +14 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_reporter_factory.hpp +45 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_tag_alias_registry.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_test_invoker.hpp +21 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_testcase.cpp +13 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/interfaces/catch_interfaces_testcase.hpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_assertion_handler.cpp +82 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_assertion_handler.hpp +68 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_case_insensitive_comparisons.cpp +35 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_case_insensitive_comparisons.hpp +30 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_case_sensitive.hpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_clara.cpp +448 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_clara.hpp +702 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_commandline.cpp +313 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_commandline.hpp +21 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_compare_traits.hpp +75 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_compiler_capabilities.hpp +430 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_config_android_logwrite.hpp +33 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_config_counter.hpp +32 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_config_uncaught_exceptions.hpp +44 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_config_wchar.hpp +33 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_console_colour.cpp +282 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_console_colour.hpp +141 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_console_width.hpp +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_container_nonmembers.hpp +73 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_context.cpp +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_context.hpp +51 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_debug_console.cpp +45 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_debug_console.hpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_debugger.cpp +120 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_debugger.hpp +67 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_decomposer.cpp +23 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_decomposer.hpp +340 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_enforce.cpp +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_enforce.hpp +54 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_enum_values_registry.cpp +73 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_enum_values_registry.hpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_errno_guard.cpp +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_errno_guard.hpp +27 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_exception_translator_registry.cpp +84 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_exception_translator_registry.hpp +30 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_fatal_condition_handler.cpp +243 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_fatal_condition_handler.hpp +69 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_floating_point_helpers.cpp +32 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_floating_point_helpers.hpp +103 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_getenv.cpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_getenv.hpp +20 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_is_permutation.hpp +138 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_istream.cpp +159 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_istream.hpp +54 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_lazy_expr.cpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_lazy_expr.hpp +40 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_leak_detector.cpp +38 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_leak_detector.hpp +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_list.cpp +123 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_list.hpp +43 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_logical_traits.hpp +44 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_main.cpp +39 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_message_info.cpp +25 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_message_info.hpp +42 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_meta.hpp +47 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_move_and_forward.hpp +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_noncopyable.hpp +28 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_optional.hpp +100 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_output_redirect.cpp +146 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_output_redirect.hpp +118 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_parse_numbers.cpp +52 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_parse_numbers.hpp +26 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_platform.hpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_polyfills.cpp +34 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_polyfills.hpp +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_preprocessor.hpp +237 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_preprocessor_remove_parens.hpp +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_random_number_generator.cpp +70 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_random_number_generator.hpp +59 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_random_seed_generation.cpp +34 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_random_seed_generation.hpp +26 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reporter_registry.cpp +88 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reporter_registry.hpp +55 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reporter_spec_parser.cpp +173 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reporter_spec_parser.hpp +85 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_result_type.cpp +26 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_result_type.hpp +57 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reusable_string_stream.cpp +62 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_reusable_string_stream.hpp +57 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_run_context.cpp +688 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_run_context.hpp +160 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_section.cpp +60 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_section.hpp +53 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_sharding.hpp +42 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_singletons.cpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_singletons.hpp +45 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_source_line_info.cpp +33 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_source_line_info.hpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_startup_exception_registry.cpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_startup_exception_registry.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stdstreams.cpp +24 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stdstreams.hpp +22 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stream_end_stop.hpp +30 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_string_manip.cpp +104 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_string_manip.hpp +61 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stringref.cpp +66 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_stringref.hpp +121 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_tag_alias_registry.cpp +55 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_tag_alias_registry.hpp +33 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_template_test_registry.hpp +337 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_info_hasher.cpp +39 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_info_hasher.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_registry_impl.cpp +146 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_registry_impl.hpp +62 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_tracker.cpp +239 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_case_tracker.hpp +244 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_failure_exception.cpp +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_failure_exception.hpp +34 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_macro_impl.hpp +159 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_registry.cpp +82 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_registry.hpp +132 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_run_info.hpp +22 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_spec_parser.cpp +239 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_test_spec_parser.hpp +81 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_textflow.cpp +255 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_textflow.hpp +169 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_to_string.hpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_uncaught_exceptions.cpp +26 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_uncaught_exceptions.hpp +15 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_unique_name.hpp +20 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_unique_ptr.hpp +118 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_void_type.hpp +25 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_wildcard_pattern.cpp +47 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_wildcard_pattern.hpp +38 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_windows_h_proxy.hpp +28 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_xmlwriter.cpp +348 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/internal/catch_xmlwriter.hpp +152 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers.cpp +25 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers.hpp +237 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_all.hpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_container_properties.cpp +34 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_container_properties.hpp +90 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_contains.hpp +102 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_exception.cpp +26 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_exception.hpp +61 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_floating_point.cpp +241 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_floating_point.hpp +94 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_predicate.cpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_predicate.hpp +59 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_quantifiers.cpp +24 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_quantifiers.hpp +165 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_range_equals.hpp +144 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_string.cpp +114 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_string.hpp +85 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_templated.cpp +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_templated.hpp +296 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/catch_matchers_vector.hpp +194 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/internal/catch_matchers_impl.cpp +25 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/matchers/internal/catch_matchers_impl.hpp +83 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/meson.build +368 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_automake.cpp +37 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_automake.hpp +38 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_common_base.cpp +49 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_common_base.hpp +79 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_compact.cpp +254 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_compact.hpp +39 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_console.cpp +656 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_console.hpp +67 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_cumulative_base.cpp +159 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_cumulative_base.hpp +151 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_event_listener.cpp +40 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_event_listener.hpp +60 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_helpers.cpp +343 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_helpers.hpp +95 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_junit.cpp +309 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_junit.hpp +58 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_multi.cpp +197 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_multi.hpp +72 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_registrars.cpp +36 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_registrars.hpp +131 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_sonarqube.cpp +162 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_sonarqube.hpp +61 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_streaming_base.cpp +23 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_streaming_base.hpp +73 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_tap.cpp +229 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_tap.hpp +43 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_teamcity.cpp +177 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_teamcity.hpp +66 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_xml.cpp +336 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporter_xml.hpp +66 -0
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch2/reporters/catch_reporters_all.hpp +40 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/CMakeLists.txt +665 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/CMakeLists.txt +554 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/ToDo.txt +10 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X01-PrefixedMacros.cpp +97 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X02-DisabledMacros.cpp +65 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X03-DisabledExceptions-DefaultHandler.cpp +39 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X04-DisabledExceptions-CustomHandler.cpp +40 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X05-DeferredStaticChecks.cpp +21 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X10-FallbackStringifier.cpp +35 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X11-DisableStringification.cpp +27 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X12-CustomDebugBreakMacro.cpp +26 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X21-PartialTestCaseEvents.cpp +74 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X22-BenchmarksInCumulativeReporter.cpp +79 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X23-CasingInReporterNames.cpp +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X24-ListenerStdoutCaptureInMultireporter.cpp +40 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X25-ListenerCanAskForCapturedStdout.cpp +47 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X26-ReporterPreferencesForPassingAssertionsIsRespected.cpp +52 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X27-CapturedStdoutInTestCaseEvents.cpp +82 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X28-ListenersGetEventsBeforeReporters.cpp +99 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X29-CustomArgumentsForReporters.cpp +59 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X30-BazelReporter.cpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X31-DuplicatedTestCases.cpp +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X32-DuplicatedTestCasesDifferentTags.cpp +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X33-DuplicatedTestCaseMethods.cpp +22 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X34-DuplicatedTestCaseMethodsDifferentFixtures.cpp +27 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X35-DuplicatedReporterNames.cpp +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X90-WindowsHeaderInclusion.cpp +21 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X91-AmalgamatedCatch.cpp +38 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X92-NoTests.cpp +11 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/ExtraTests/X93-AllSkipped.cpp +16 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/automake.sw.approved.txt +420 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/automake.sw.multi.approved.txt +409 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/compact.sw.approved.txt +2544 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/compact.sw.multi.approved.txt +2533 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/console.std.approved.txt +1538 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/console.sw.approved.txt +18236 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/console.sw.multi.approved.txt +18225 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/console.swa4.approved.txt +956 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/default.sw.multi.approved.txt +11 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/junit.sw.approved.txt +2052 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/junit.sw.multi.approved.txt +2051 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/sonarqube.sw.approved.txt +2071 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/sonarqube.sw.multi.approved.txt +2070 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/tap.sw.approved.txt +4481 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/tap.sw.multi.approved.txt +4470 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/teamcity.sw.approved.txt +998 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/teamcity.sw.multi.approved.txt +997 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/xml.sw.approved.txt +21208 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/Baselines/xml.sw.multi.approved.txt +21207 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Algorithms.tests.cpp +94 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp +73 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp +467 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp +111 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/ColourImpl.tests.cpp +64 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Details.tests.cpp +131 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/FloatingPoint.tests.cpp +74 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp +546 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp +447 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Parse.tests.cpp +38 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/PartTracker.tests.cpp +254 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp +62 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Reporters.tests.cpp +328 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Sharding.tests.cpp +45 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Stream.tests.cpp +32 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/String.tests.cpp +212 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/StringManip.tests.cpp +83 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Tag.tests.cpp +104 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/TestCaseInfoHasher.tests.cpp +72 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/TestSpec.tests.cpp +365 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/TestSpecParser.tests.cpp +55 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/TextFlow.tests.cpp +200 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp +97 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Traits.tests.cpp +45 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/UniquePtr.tests.cpp +141 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/IntrospectiveTests/Xml.tests.cpp +183 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/TestRegistrations.cpp +181 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/TimingTests/Sleep.tests.cpp +24 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Approx.tests.cpp +218 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/BDD.tests.cpp +106 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Benchmark.tests.cpp +173 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Class.tests.cpp +133 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Compilation.tests.cpp +355 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Condition.tests.cpp +334 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Decomposition.tests.cpp +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/EnumToString.tests.cpp +108 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Exception.tests.cpp +204 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Generators.tests.cpp +313 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Matchers.tests.cpp +1144 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/MatchersRanges.tests.cpp +917 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Message.tests.cpp +287 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Misc.tests.cpp +553 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Skip.tests.cpp +73 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringByte.tests.cpp +23 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringChrono.tests.cpp +51 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringGeneral.tests.cpp +211 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringOptional.tests.cpp +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringPair.tests.cpp +38 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringTuple.tests.cpp +54 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringVariant.tests.cpp +99 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringVector.tests.cpp +94 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp +186 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/Tricky.tests.cpp +380 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/UsageTests/VariadicMacros.tests.cpp +29 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/helpers/parse_test_spec.cpp +22 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/helpers/parse_test_spec.hpp +20 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/helpers/range_test_helpers.hpp +210 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/SelfTest/helpers/type_with_lit_0_comparisons.hpp +44 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/ConfigureTestsCommon.py +75 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testBazelReporter.py +104 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testBazelSharding.py +75 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testConfigureDefaultReporter.py +41 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testConfigureDisable.py +48 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testConfigureDisableStringification.py +44 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testConfigureExperimentalRedirect.py +49 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testPartialTestCaseEvent.py +79 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testRandomOrder.py +77 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/TestScripts/testSharding.py +165 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tests/meson.build +76 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/appveyorBuildConfigurationScript.bat +21 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/appveyorMergeCoverageScript.py +9 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/appveyorTestRunScript.bat +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/coverage-helper.cpp +142 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/misc/installOpenCppCoverage.ps1 +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/approvalTests.py +243 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/approve.py +31 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/buildAndTest.cmd +17 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/buildAndTest.sh +19 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/checkConvenienceHeaders.py +151 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/checkDuplicateFilenames.py +14 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/checkLicense.py +45 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/developBuild.py +9 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/extractFeaturesFromReleaseNotes.py +92 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/fixWhitespace.py +51 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/generateAmalgamatedFiles.py +129 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/majorRelease.py +9 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/minorRelease.py +9 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/patchRelease.py +9 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/releaseCommon.py +143 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/scriptCommon.py +4 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/updateDocumentSnippets.py +23 -0
- package/deps/couchbase-cxx-client/third_party/catch2/tools/scripts/updateDocumentToC.py +447 -0
- package/deps/couchbase-cxx-client/third_party/snappy/.github/workflows/build.yml +135 -0
- package/deps/couchbase-cxx-client/third_party/snappy/.gitmodules +6 -0
- package/deps/couchbase-cxx-client/third_party/snappy/CMakeLists.txt +150 -27
- package/deps/couchbase-cxx-client/third_party/snappy/CONTRIBUTING.md +9 -4
- package/deps/couchbase-cxx-client/third_party/snappy/NEWS +12 -0
- package/deps/couchbase-cxx-client/third_party/snappy/README.md +52 -35
- package/deps/couchbase-cxx-client/third_party/snappy/cmake/config.h.in +28 -24
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-internal.h +189 -25
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-sinksource.cc +26 -9
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-sinksource.h +11 -11
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-stubs-internal.cc +1 -1
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-stubs-internal.h +227 -308
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-stubs-public.h.in +0 -11
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-test.cc +88 -198
- package/deps/couchbase-cxx-client/third_party/snappy/snappy-test.h +102 -285
- package/deps/couchbase-cxx-client/third_party/snappy/snappy.cc +1176 -410
- package/deps/couchbase-cxx-client/third_party/snappy/snappy.h +19 -4
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_benchmark.cc +378 -0
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_compress_fuzzer.cc +3 -2
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_test_data.cc +57 -0
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_test_data.h +68 -0
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_test_tool.cc +471 -0
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_uncompress_fuzzer.cc +3 -2
- package/deps/couchbase-cxx-client/third_party/snappy/snappy_unittest.cc +170 -666
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/workflows/build-and-test.yml +38 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/workflows/pylint.yml +26 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.github/workflows/test_bindings.yml +24 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.travis-libcxx-setup.sh +28 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.travis.yml +231 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/.ycm_extra_conf.py +115 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/AUTHORS +58 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/BUILD.bazel +44 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/CMakeLists.txt +287 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/CONTRIBUTING.md +58 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/CONTRIBUTORS +83 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/LICENSE +202 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/README.md +1323 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/WORKSPACE +51 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/_config.yml +1 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/appveyor.yml +50 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/BUILD +3 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/build_defs.bzl +25 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/google_benchmark/BUILD +38 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/google_benchmark/__init__.py +156 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/google_benchmark/benchmark.cc +180 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/google_benchmark/example.py +136 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/pybind11.BUILD +20 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/python_headers.BUILD +6 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/bindings/python/requirements.txt +2 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/AddCXXCompilerFlag.cmake +74 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/CXXFeatureCheck.cmake +69 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/Config.cmake.in +1 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/GetGitVersion.cmake +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/GoogleTest.cmake +41 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/GoogleTest.cmake.in +58 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/benchmark.pc.in +12 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/gnu_posix_regex.cpp +12 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/llvm-toolchain.cmake +8 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/posix_regex.cpp +14 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/split_list.cmake +3 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/std_regex.cpp +10 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/steady_clock.cpp +7 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/cmake/thread_safety_attributes.cpp +4 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conan/CMakeLists.txt +7 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conan/test_package/CMakeLists.txt +10 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conan/test_package/conanfile.py +19 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conan/test_package/test_package.cpp +18 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/conanfile.py +79 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/dependencies.md +18 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/docs/AssemblyTests.md +147 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/docs/_config.yml +1 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/docs/releasing.md +16 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/docs/tools.md +203 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/include/benchmark/benchmark.h +1604 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/requirements.txt +2 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/setup.py +140 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/CMakeLists.txt +114 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/arraysize.h +33 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark.cc +499 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_api_internal.cc +15 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_api_internal.h +53 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_main.cc +17 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_name.cc +58 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_register.cc +515 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_register.h +108 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_runner.cc +362 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/benchmark_runner.h +51 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/check.h +82 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/colorprint.cc +188 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/colorprint.h +33 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/commandlineflags.cc +228 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/commandlineflags.h +103 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/complexity.cc +238 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/complexity.h +55 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/console_reporter.cc +177 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/counter.cc +80 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/counter.h +32 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/csv_reporter.cc +154 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/cycleclock.h +211 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/internal_macros.h +102 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/json_reporter.cc +255 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/log.h +74 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/mutex.h +155 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/re.h +158 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/reporter.cc +105 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/sleep.cc +67 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/sleep.h +15 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/statistics.cc +193 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/statistics.h +37 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/string_util.cc +255 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/string_util.h +59 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/sysinfo.cc +716 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/thread_manager.h +64 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/thread_timer.h +86 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/timers.cc +245 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/src/timers.h +48 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/AssemblyTests.cmake +46 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/BUILD +73 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/CMakeLists.txt +263 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/args_product_test.cc +77 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/basic_test.cc +136 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/benchmark_gtest.cc +134 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/benchmark_name_gtest.cc +74 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/benchmark_test.cc +245 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/clobber_memory_assembly_test.cc +64 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/commandlineflags_gtest.cc +201 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/complexity_test.cc +213 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/cxx03_test.cc +63 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/diagnostics_test.cc +80 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/display_aggregates_only_test.cc +43 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/donotoptimize_assembly_test.cc +163 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/donotoptimize_test.cc +52 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/filter_test.cc +104 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/fixture_test.cc +51 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/internal_threading_test.cc +184 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/link_main_test.cc +8 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/map_test.cc +57 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/memory_manager_test.cc +44 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/multiple_ranges_test.cc +96 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/options_test.cc +75 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/output_test.h +213 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/output_test_helper.cc +515 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/register_benchmark_test.cc +184 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/report_aggregates_only_test.cc +39 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/reporter_output_test.cc +747 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/skip_with_error_test.cc +195 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/state_assembly_test.cc +68 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/statistics_gtest.cc +28 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/string_util_gtest.cc +153 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/templated_fixture_test.cc +28 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/user_counters_tabular_test.cc +285 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/user_counters_test.cc +531 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/test/user_counters_thousands_test.cc +173 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/BUILD.bazel +19 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/compare.py +429 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test1_run1.json +119 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test1_run2.json +119 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test2_run.json +81 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test3_run0.json +65 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/Inputs/test3_run1.json +65 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/__init__.py +8 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/report.py +903 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/gbench/util.py +163 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/requirements.txt +1 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/benchmark/tools/strip_asm.py +151 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/.travis.yml +65 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/BUILD.bazel +182 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/CMakeLists.txt +32 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/CONTRIBUTING.md +142 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/LICENSE +28 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/README.md +135 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/WORKSPACE +30 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/appveyor.yml +156 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/build-linux-bazel.sh +36 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/build-platformio.sh +2 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/env-linux.sh +41 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/env-osx.sh +41 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/get-nprocessors.sh +48 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/install-linux.sh +49 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/install-osx.sh +39 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/install-platformio.sh +5 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/log-config.sh +47 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/ci/travis.sh +29 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/CMakeLists.txt +219 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/CONTRIBUTORS +40 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/LICENSE +28 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/README.md +44 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/cmake/gmock.pc.in +10 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/cmake/gmock_main.pc.in +10 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/cheat_sheet.md +786 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/community_created_documentation.md +9 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/cook_book.md +4276 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/for_dummies.md +702 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/gmock_faq.md +398 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/docs/pump_manual.md +189 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-actions.h +1688 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-cardinalities.h +157 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-function-mocker.h +479 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-generated-actions.h +577 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-generated-actions.h.pump +390 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-matchers.h +5394 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-more-matchers.h +92 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-nice-strict.h +230 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock-spec-builders.h +2030 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/gmock.h +98 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/README.md +16 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +10 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +12 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-matchers.h +36 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-port.h +39 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h +459 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/gmock-port.h +87 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/include/gmock/internal/gmock-pp.h +279 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/README.md +5 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/fuse_gmock_files.py +257 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/LICENSE +203 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/README +34 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/README.cppclean +115 -0
- package/deps/couchbase-cxx-client/{core/CMakeLists.txt → third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/__init__.py} +0 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/ast.py +1772 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class.py +245 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class_test.py +552 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/keywords.py +56 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/tokenize.py +284 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/cpp/utils.py +37 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/generator/gmock_gen.py +30 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/scripts/pump.py +856 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-all.cc +46 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-cardinalities.cc +155 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-internal-utils.cc +200 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-matchers.cc +459 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock-spec-builders.cc +908 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock.cc +213 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/src/gmock_main.cc +72 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/BUILD.bazel +111 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-actions_test.cc +1583 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-cardinalities_test.cc +429 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-function-mocker_nc.cc +16 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-function-mocker_nc_test.py +43 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-function-mocker_test.cc +974 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-generated-actions_test.cc +1036 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-internal-utils_test.cc +720 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-matchers_test.cc +8562 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-more-actions_test.cc +725 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-nice-strict_test.cc +500 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-port_test.cc +42 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-pp-string_test.cc +206 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-pp_test.cc +83 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock-spec-builders_test.cc +2775 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_all_test.cc +47 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_ex_test.cc +80 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_leak_test.py +104 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_leak_test_.cc +99 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_link2_test.cc +39 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_link_test.cc +39 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_link_test.h +690 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_output_test.py +183 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_output_test_.cc +309 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_output_test_golden.txt +317 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_stress_test.cc +240 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_test.cc +181 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/gmock_test_utils.py +108 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googlemock/test/pump_test.py +182 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/CMakeLists.txt +320 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/CONTRIBUTORS +38 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/LICENSE +28 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/README.md +262 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/Config.cmake.in +9 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/gtest.pc.in +9 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/gtest_main.pc.in +10 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/internal_utils.cmake +341 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/cmake/libgtest.la.in +21 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/advanced.md +2640 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/faq.md +771 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/pkgconfig.md +150 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/primer.md +583 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/docs/samples.md +22 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-death-test.h +342 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-matchers.h +756 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-message.h +219 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-param-test.h +512 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-printers.h +903 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-spi.h +238 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-test-part.h +184 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest-typed-test.h +337 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest.h +2491 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest_pred_impl.h +359 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/gtest_prod.h +61 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/custom/README.md +56 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/custom/gtest-port.h +37 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/custom/gtest-printers.h +42 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/custom/gtest.h +37 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-death-test-internal.h +304 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-filepath.h +211 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h +1564 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-param-util.h +947 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-port-arch.h +112 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-port.h +2371 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-string.h +175 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/include/gtest/internal/gtest-type-util.h +187 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/prime_tables.h +126 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample1.cc +66 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample1.h +41 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample10_unittest.cc +139 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample1_unittest.cc +151 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample2.cc +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample2.h +81 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample2_unittest.cc +107 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample3-inl.h +172 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample3_unittest.cc +149 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample4.cc +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample4.h +53 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample4_unittest.cc +53 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample5_unittest.cc +196 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample6_unittest.cc +224 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample7_unittest.cc +117 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample8_unittest.cc +154 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/samples/sample9_unittest.cc +156 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/README.md +5 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/common.py +83 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/fuse_gtest_files.py +253 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/gen_gtest_pred_impl.py +733 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/gtest-config.in +274 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/release_docs.py +158 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/run_with_path.py +32 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/upload.py +1402 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/scripts/upload_gtest.py +78 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-all.cc +48 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-death-test.cc +1644 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-filepath.cc +368 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-internal-inl.h +1228 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-matchers.cc +97 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-port.cc +1404 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-printers.cc +444 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-test-part.cc +108 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest-typed-test.cc +111 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest.cc +6606 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/src/gtest_main.cc +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/BUILD.bazel +562 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-break-on-failure-unittest.py +208 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-break-on-failure-unittest_.cc +86 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-catch-exceptions-test.py +236 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-catch-exceptions-test_.cc +293 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-color-test.py +127 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-color-test_.cc +62 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-death-test-test.cc +1542 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-death-test_ex_test.cc +92 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-env-var-test.py +120 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-env-var-test_.cc +132 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-failfast-unittest.py +410 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-failfast-unittest_.cc +167 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-filepath-test.cc +649 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-filter-unittest.py +639 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-filter-unittest_.cc +137 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-json-outfiles-test.py +191 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-json-output-unittest.py +804 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-list-tests-unittest.py +205 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-list-tests-unittest_.cc +156 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-listener-test.cc +518 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-message-test.cc +158 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-options-test.cc +216 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-output-test-golden-lin.txt +1180 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-output-test.py +346 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-output-test_.cc +1126 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-invalid-name1-test.py +63 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-invalid-name1-test_.cc +50 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-invalid-name2-test.py +62 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-invalid-name2-test_.cc +55 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-test.cc +1119 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test-test.h +51 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-param-test2-test.cc +61 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-port-test.cc +1280 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-printers-test.cc +1847 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-setuptestsuite-test.py +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-setuptestsuite-test_.cc +49 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-shuffle-test.py +323 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-shuffle-test_.cc +101 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-test-part-test.cc +230 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-throw-on-failure-test.py +168 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-throw-on-failure-test_.cc +71 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-uninitialized-test.py +67 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/googletest-uninitialized-test_.cc +42 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest-typed-test2_test.cc +44 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest-typed-test_test.cc +462 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest-typed-test_test.h +65 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest-unittest-api_test.cc +341 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_all_test.cc +46 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_assert_by_exception_test.cc +116 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_environment_test.cc +188 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_help_test.py +171 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_help_test_.cc +45 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_json_test_utils.py +60 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_list_output_unittest.py +286 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_list_output_unittest_.cc +81 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_main_unittest.cc +44 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_no_test_unittest.cc +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_pred_impl_unittest.cc +2422 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_premature_exit_test.cc +126 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_prod_test.cc +56 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_repeat_test.cc +233 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_skip_check_output_test.py +59 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_skip_environment_check_output_test.py +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_skip_in_environment_setup_test.cc +49 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_skip_test.cc +55 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_sole_header_test.cc +56 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_stress_test.cc +248 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_test_macro_stack_footprint_test.cc +89 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_test_utils.py +312 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_testbridge_test.py +63 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_testbridge_test_.cc +43 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_throw_on_failure_ex_test.cc +90 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_unittest.cc +7792 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_outfile1_test_.cc +43 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_outfile2_test_.cc +43 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_outfiles_test.py +135 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_output_unittest.py +405 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_output_unittest_.cc +197 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/gtest_xml_test_utils.py +197 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/production.cc +35 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/googletest/test/production.h +54 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/library.json +62 -0
- package/deps/couchbase-cxx-client/third_party/snappy/third_party/googletest/platformio.ini +47 -0
- package/deps/couchbase-cxx-client/tools/CMakeLists.txt +2 -0
- package/deps/couchbase-cxx-client/tools/analytics.cxx +375 -0
- package/deps/couchbase-cxx-client/tools/analytics.hxx +26 -0
- package/deps/couchbase-cxx-client/tools/cbc.cxx +11 -4
- package/deps/couchbase-cxx-client/tools/command_registry.cxx +4 -0
- package/deps/couchbase-cxx-client/tools/get.cxx +36 -39
- package/deps/couchbase-cxx-client/tools/get.hxx +1 -1
- package/deps/couchbase-cxx-client/tools/pillowfight.cxx +496 -0
- package/deps/couchbase-cxx-client/tools/pillowfight.hxx +26 -0
- package/deps/couchbase-cxx-client/tools/query.cxx +97 -101
- package/deps/couchbase-cxx-client/tools/query.hxx +1 -1
- package/deps/couchbase-cxx-client/tools/utils.cxx +15 -1
- package/deps/couchbase-cxx-client/tools/utils.hxx +3 -0
- package/deps/couchbase-cxx-client/tools/version.cxx +4 -2
- package/deps/couchbase-cxx-client/tools/version.hxx +1 -1
- package/dist/authenticators.d.ts +1 -1
- package/dist/binding.d.ts +25 -10
- package/dist/bindingutilities.d.ts +6 -2
- package/dist/bindingutilities.js +39 -7
- package/dist/cluster.d.ts +27 -0
- package/dist/cluster.js +88 -56
- package/dist/collection.js +6 -6
- package/dist/configProfile.js +16 -10
- package/dist/couchbase.d.ts +1 -0
- package/dist/couchbase.js +2 -1
- package/dist/errors.d.ts +2 -2
- package/dist/errors.js +4 -4
- package/dist/scope.js +6 -6
- package/dist/sdspecs.js +11 -11
- package/dist/searchquery.d.ts +1 -1
- package/dist/streamablepromises.d.ts +1 -1
- package/dist/transactions.js +5 -1
- package/dist/usermanager.js +9 -9
- package/dist/viewindexmanager.js +8 -8
- package/package.json +1 -1
- package/src/binding.cpp +2 -0
- package/src/jstocbpp_autogen.hpp +3 -6
- package/src/jstocbpp_basic.hpp +8 -2
- package/src/jstocbpp_errors.hpp +35 -0
- package/src/jstocbpp_transactions.hpp +61 -9
- package/src/transaction.cpp +1 -1
- package/deps/couchbase-cxx-client/core/config_profile.cxx +0 -25
- package/deps/couchbase-cxx-client/core/topology/error_map_fmt.hxx +0 -94
- package/deps/couchbase-cxx-client/test/test_transaction_transaction_context.cxx +0 -550
- package/deps/couchbase-cxx-client/test/test_transaction_transaction_public_async_api.cxx +0 -392
- package/deps/couchbase-cxx-client/test/test_transaction_transaction_public_blocking_api.cxx +0 -643
- package/deps/couchbase-cxx-client/test/test_transaction_transaction_simple.cxx +0 -899
- package/deps/couchbase-cxx-client/test/test_transaction_transaction_simple_async.cxx +0 -972
- package/deps/couchbase-cxx-client/test/tools/CMakeLists.txt +0 -10
- package/deps/couchbase-cxx-client/test/tools/tool_kv_loader.cxx +0 -349
- package/deps/couchbase-cxx-client/test/utils/uniq_id.cxx +0 -29
- package/deps/couchbase-cxx-client/test/utils/uniq_id.hxx +0 -26
- package/deps/couchbase-cxx-client/third_party/catch2/.travis.yml +0 -335
- package/deps/couchbase-cxx-client/third_party/catch2/CMake/MiscFunctions.cmake +0 -26
- package/deps/couchbase-cxx-client/third_party/catch2/WORKSPACE +0 -0
- package/deps/couchbase-cxx-client/third_party/catch2/contrib/Catch.cmake +0 -206
- package/deps/couchbase-cxx-client/third_party/catch2/contrib/CatchAddTests.cmake +0 -135
- package/deps/couchbase-cxx-client/third_party/catch2/docs/slow-compiles.md +0 -106
- package/deps/couchbase-cxx-client/third_party/catch2/examples/000-CatchMain.cpp +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/examples/200-Rpt-CatchMain.cpp +0 -27
- package/deps/couchbase-cxx-client/third_party/catch2/examples/207-Rpt-TeamCityReporter.cpp +0 -171
- package/deps/couchbase-cxx-client/third_party/catch2/include/catch.hpp +0 -496
- package/deps/couchbase-cxx-client/third_party/catch2/include/catch_with_main.hpp +0 -14
- package/deps/couchbase-cxx-client/third_party/catch2/include/external/clara.hpp +0 -1268
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_benchmark.hpp +0 -122
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_benchmarking_all.hpp +0 -29
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_chronometer.hpp +0 -71
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_clock.hpp +0 -40
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_constructor.hpp +0 -79
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_environment.hpp +0 -38
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_estimate.hpp +0 -31
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_execution_plan.hpp +0 -59
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_optimizer.hpp +0 -68
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_outlier_classification.hpp +0 -29
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/catch_sample_analysis.hpp +0 -50
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_analyse.hpp +0 -78
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_benchmark_function.hpp +0 -105
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_complete_invoke.hpp +0 -68
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_estimate_clock.hpp +0 -115
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_measure.hpp +0 -35
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_repeat.hpp +0 -37
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_run_for_at_least.hpp +0 -65
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_stats.cpp +0 -224
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_stats.hpp +0 -160
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/benchmark/detail/catch_timing.hpp +0 -33
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_approx.cpp +0 -88
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_approx.h +0 -132
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertionhandler.cpp +0 -122
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertionhandler.h +0 -88
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertioninfo.h +0 -31
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertionresult.cpp +0 -104
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_assertionresult.h +0 -59
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_capture.hpp +0 -159
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_capture_matchers.cpp +0 -24
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_capture_matchers.h +0 -88
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_clara.h +0 -38
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_commandline.cpp +0 -230
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_commandline.h +0 -20
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_common.cpp +0 -43
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_common.h +0 -92
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_compiler_capabilities.h +0 -377
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_config.cpp +0 -86
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_config.hpp +0 -133
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_config_uncaught_exceptions.hpp +0 -44
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_console_colour.cpp +0 -243
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_console_colour.h +0 -69
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_context.cpp +0 -70
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_context.h +0 -64
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_debug_console.cpp +0 -41
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_debug_console.h +0 -17
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_debugger.cpp +0 -122
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_debugger.h +0 -65
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_decomposer.cpp +0 -24
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_decomposer.h +0 -259
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_default_main.hpp +0 -47
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_enforce.cpp +0 -40
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_enforce.h +0 -53
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_enum_values_registry.cpp +0 -75
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_enum_values_registry.h +0 -35
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_errno_guard.cpp +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_errno_guard.h +0 -22
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_exception_translator_registry.cpp +0 -89
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_exception_translator_registry.h +0 -30
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_external_interfaces.h +0 -20
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_fatal_condition.cpp +0 -244
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_fatal_condition.h +0 -68
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_generators.cpp +0 -32
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_generators.hpp +0 -219
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_generators_generic.hpp +0 -237
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_generators_specific.hpp +0 -175
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_impl.hpp +0 -33
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_capture.cpp +0 -5
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_capture.h +0 -100
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_config.cpp +0 -5
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_config.h +0 -92
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_enum_values_registry.h +0 -46
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_exception.cpp +0 -6
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_exception.h +0 -88
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_generatortracker.h +0 -39
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_registry_hub.cpp +0 -6
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_registry_hub.h +0 -61
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_reporter.cpp +0 -114
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_reporter.h +0 -272
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_runner.cpp +0 -5
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_runner.h +0 -19
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_tag_alias_registry.h +0 -28
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_testcase.cpp +0 -6
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_interfaces_testcase.h +0 -38
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_leak_detector.cpp +0 -37
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_leak_detector.h +0 -18
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_list.cpp +0 -173
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_list.h +0 -38
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers.cpp +0 -28
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers.h +0 -174
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_exception.cpp +0 -30
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_exception.hpp +0 -36
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_floating.cpp +0 -237
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_floating.h +0 -70
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_generic.cpp +0 -9
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_generic.hpp +0 -58
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_string.cpp +0 -118
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_string.h +0 -80
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_matchers_vector.h +0 -180
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_message.cpp +0 -142
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_message.h +0 -99
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_meta.hpp +0 -50
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_objc.hpp +0 -215
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_objc_arc.hpp +0 -51
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_option.hpp +0 -73
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_output_redirect.cpp +0 -147
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_output_redirect.h +0 -116
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_platform.h +0 -30
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_polyfills.cpp +0 -31
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_polyfills.hpp +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_preprocessor.hpp +0 -237
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_random_number_generator.cpp +0 -73
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_random_number_generator.h +0 -58
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_reenable_warnings.h +0 -21
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_registry_hub.cpp +0 -99
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_reporter_registrars.hpp +0 -78
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_reporter_registry.cpp +0 -34
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_reporter_registry.h +0 -37
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_result_type.cpp +0 -27
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_result_type.h +0 -55
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_run_context.cpp +0 -595
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_run_context.h +0 -159
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_section.cpp +0 -38
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_section.h +0 -51
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_section_info.cpp +0 -19
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_section_info.h +0 -42
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_session.cpp +0 -313
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_session.h +0 -62
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_singletons.cpp +0 -36
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_singletons.hpp +0 -44
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_startup_exception_registry.cpp +0 -28
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_startup_exception_registry.h +0 -29
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_stream.cpp +0 -187
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_stream.h +0 -51
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_string_manip.cpp +0 -109
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_string_manip.h +0 -45
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_stringref.cpp +0 -50
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_stringref.h +0 -104
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_suppress_warnings.h +0 -27
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias.cpp +0 -5
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias.h +0 -26
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias_autoregistrar.cpp +0 -16
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias_autoregistrar.h +0 -26
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias_registry.cpp +0 -58
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tag_alias_registry.h +0 -31
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_info.cpp +0 -186
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_info.h +0 -90
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_registry_impl.cpp +0 -176
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_registry_impl.h +0 -71
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_tracker.cpp +0 -254
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_case_tracker.h +0 -180
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_registry.cpp +0 -37
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_registry.h +0 -402
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_spec.cpp +0 -99
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_spec.h +0 -94
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_spec_parser.cpp +0 -240
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_test_spec_parser.h +0 -79
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_text.h +0 -17
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_timer.cpp +0 -74
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_timer.h +0 -30
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_to_string.hpp +0 -28
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tostring.cpp +0 -265
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_tostring.h +0 -675
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_totals.cpp +0 -61
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_totals.h +0 -41
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_uncaught_exceptions.cpp +0 -25
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_uncaught_exceptions.h +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_user_interfaces.h +0 -18
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_version.cpp +0 -44
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_version.h +0 -39
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_wildcard_pattern.cpp +0 -47
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_wildcard_pattern.h +0 -38
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_windows_h_proxy.h +0 -39
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_xmlwriter.cpp +0 -334
- package/deps/couchbase-cxx-client/third_party/catch2/include/internal/catch_xmlwriter.h +0 -116
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_automake.hpp +0 -62
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_bases.cpp +0 -84
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_bases.hpp +0 -285
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_compact.cpp +0 -290
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_compact.h +0 -39
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_console.cpp +0 -700
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_console.h +0 -89
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_junit.cpp +0 -300
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_junit.h +0 -62
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_listening.cpp +0 -164
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_listening.h +0 -63
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_sonarqube.hpp +0 -181
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_tap.hpp +0 -254
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_teamcity.hpp +0 -219
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_xml.cpp +0 -281
- package/deps/couchbase-cxx-client/third_party/catch2/include/reporters/catch_reporter_xml.h +0 -68
- package/deps/couchbase-cxx-client/third_party/catch2/misc/appveyorBuildConfigurationScript.bat +0 -22
- package/deps/couchbase-cxx-client/third_party/catch2/misc/appveyorMergeCoverageScript.py +0 -9
- package/deps/couchbase-cxx-client/third_party/catch2/misc/appveyorTestRunScript.bat +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/misc/coverage-helper.cpp +0 -142
- package/deps/couchbase-cxx-client/third_party/catch2/misc/installOpenCppCoverage.ps1 +0 -19
- package/deps/couchbase-cxx-client/third_party/catch2/projects/CMakeLists.txt +0 -492
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/CMakeLists.txt +0 -201
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/ToDo.txt +0 -11
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X01-PrefixedMacros.cpp +0 -84
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X02-DisabledMacros.cpp +0 -31
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X03-DisabledExceptions-DefaultHandler.cpp +0 -23
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X04-DisabledExceptions-CustomHandler.cpp +0 -33
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X10-FallbackStringifier.cpp +0 -23
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X11-DisableStringification.cpp +0 -16
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X12-CustomDebugBreakMacro.cpp +0 -17
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X20-BenchmarkingMacros.cpp +0 -125
- package/deps/couchbase-cxx-client/third_party/catch2/projects/ExtraTests/X90-WindowsHeaderInclusion.cpp +0 -12
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/compact.sw.approved.txt +0 -1903
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/console.std.approved.txt +0 -1425
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/console.sw.approved.txt +0 -14183
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/console.swa4.approved.txt +0 -936
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/junit.sw.approved.txt +0 -1773
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/sonarqube.sw.approved.txt +0 -1777
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/Baselines/xml.sw.approved.txt +0 -16767
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/CompileTimePerfTests/10.tests.cpp +0 -13
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/CompileTimePerfTests/100.tests.cpp +0 -13
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/CompileTimePerfTests/All.tests.cpp +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/CmdLine.tests.cpp +0 -582
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/Details.tests.cpp +0 -23
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp +0 -352
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp +0 -405
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/PartTracker.tests.cpp +0 -253
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp +0 -45
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/String.tests.cpp +0 -150
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/StringManip.tests.cpp +0 -67
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/Tag.tests.cpp +0 -54
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/ToString.tests.cpp +0 -53
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/IntrospectiveTests/Xml.tests.cpp +0 -114
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_console_colour.cpp +0 -3
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_debugger.cpp +0 -2
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_interfaces_reporter.cpp +0 -2
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_option.cpp +0 -3
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_stream.cpp +0 -3
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_test_case_tracker.cpp +0 -2
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_test_spec.cpp +0 -3
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/SurrogateCpps/catch_xmlwriter.cpp +0 -4
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/TestMain.cpp +0 -34
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/TimingTests/Sleep.tests.cpp +0 -23
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Approx.tests.cpp +0 -215
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/BDD.tests.cpp +0 -110
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Benchmark.tests.cpp +0 -144
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Class.tests.cpp +0 -137
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Compilation.tests.cpp +0 -269
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Condition.tests.cpp +0 -347
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Decomposition.tests.cpp +0 -39
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/EnumToString.tests.cpp +0 -99
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Exception.tests.cpp +0 -210
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Generators.tests.cpp +0 -271
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Matchers.tests.cpp +0 -676
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Message.tests.cpp +0 -269
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Misc.tests.cpp +0 -493
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringByte.tests.cpp +0 -15
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringChrono.tests.cpp +0 -44
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp +0 -210
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringOptional.tests.cpp +0 -23
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringPair.tests.cpp +0 -30
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringTuple.tests.cpp +0 -47
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp +0 -91
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringVector.tests.cpp +0 -86
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/ToStringWhich.tests.cpp +0 -193
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/Tricky.tests.cpp +0 -429
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/UsageTests/VariadicMacros.tests.cpp +0 -29
- package/deps/couchbase-cxx-client/third_party/catch2/projects/SelfTest/WarnAboutNoTests.cmake +0 -19
- package/deps/couchbase-cxx-client/third_party/catch2/projects/TestScripts/testRandomOrder.py +0 -59
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/CatchOCTestCase.h +0 -25
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/CatchOCTestCase.mm +0 -87
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/Main.mm +0 -2
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/OCTest.1 +0 -79
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/OCTest.mm +0 -28
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/TestObj.h +0 -28
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest/TestObj.m +0 -25
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest.xcodeproj/project.pbxproj +0 -294
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/OCTest.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/deps/couchbase-cxx-client/third_party/catch2/projects/XCode/OCTest/catch_objc_impl.mm +0 -69
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/approvalTests.py +0 -217
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/approve.py +0 -33
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/benchmarkCompile.py +0 -148
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/benchmarkRunner.py +0 -56
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/developBuild.py +0 -10
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/embed.py +0 -63
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/embedClara.py +0 -27
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/extractFeaturesFromReleaseNotes.py +0 -94
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/fixWhitespace.py +0 -52
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/generateSingleHeader.py +0 -151
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/majorRelease.py +0 -10
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/minorRelease.py +0 -10
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/patchRelease.py +0 -10
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/releaseCommon.py +0 -168
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/releaseNotes.py +0 -65
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/scriptCommon.py +0 -31
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/updateDocumentToC.py +0 -449
- package/deps/couchbase-cxx-client/third_party/catch2/scripts/updateWandbox.py +0 -53
- package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch.hpp +0 -17959
- package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch_reporter_automake.hpp +0 -62
- package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch_reporter_sonarqube.hpp +0 -181
- package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch_reporter_tap.hpp +0 -254
- package/deps/couchbase-cxx-client/third_party/catch2/single_include/catch2/catch_reporter_teamcity.hpp +0 -219
- package/deps/couchbase-cxx-client/third_party/catch2/src/catch_with_main.cpp +0 -2
- package/deps/couchbase-cxx-client/third_party/snappy/.appveyor.yml +0 -36
- package/deps/couchbase-cxx-client/third_party/snappy/.travis.yml +0 -94
- /package/deps/couchbase-cxx-client/third_party/catch2/{artwork → data/artwork}/catch2-c-logo.png +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{artwork → data/artwork}/catch2-hand-logo.png +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{artwork → data/artwork}/catch2-logo-small.png +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{contrib → extras}/ParseAndAddCatchTests.cmake +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{contrib → extras}/gdbinit +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{contrib → extras}/lldbinit +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{projects → tests}/SelfTest/Baselines/automake.std.approved.txt +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{projects → tests}/SelfTest/Misc/invalid-test-names.input +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{projects → tests}/SelfTest/Misc/plain-old-tests.input +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{projects → tests}/SelfTest/Misc/special-characters-in-file.input +0 -0
- /package/deps/couchbase-cxx-client/third_party/catch2/{misc → tools/misc}/CMakeLists.txt +0 -0
@@ -0,0 +1,2422 @@
|
|
1
|
+
// Copyright 2006, Google Inc.
|
2
|
+
// All rights reserved.
|
3
|
+
//
|
4
|
+
// Redistribution and use in source and binary forms, with or without
|
5
|
+
// modification, are permitted provided that the following conditions are
|
6
|
+
// met:
|
7
|
+
//
|
8
|
+
// * Redistributions of source code must retain the above copyright
|
9
|
+
// notice, this list of conditions and the following disclaimer.
|
10
|
+
// * Redistributions in binary form must reproduce the above
|
11
|
+
// copyright notice, this list of conditions and the following disclaimer
|
12
|
+
// in the documentation and/or other materials provided with the
|
13
|
+
// distribution.
|
14
|
+
// * Neither the name of Google Inc. nor the names of its
|
15
|
+
// contributors may be used to endorse or promote products derived from
|
16
|
+
// this software without specific prior written permission.
|
17
|
+
//
|
18
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
19
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
20
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
21
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
22
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
23
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
24
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
25
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
26
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
27
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
|
+
|
30
|
+
// This file is AUTOMATICALLY GENERATED on 11/05/2019 by command
|
31
|
+
// 'gen_gtest_pred_impl.py 5'. DO NOT EDIT BY HAND!
|
32
|
+
|
33
|
+
// Regression test for gtest_pred_impl.h
|
34
|
+
//
|
35
|
+
// This file is generated by a script and quite long. If you intend to
|
36
|
+
// learn how Google Test works by reading its unit tests, read
|
37
|
+
// gtest_unittest.cc instead.
|
38
|
+
//
|
39
|
+
// This is intended as a regression test for the Google Test predicate
|
40
|
+
// assertions. We compile it as part of the gtest_unittest target
|
41
|
+
// only to keep the implementation tidy and compact, as it is quite
|
42
|
+
// involved to set up the stage for testing Google Test using Google
|
43
|
+
// Test itself.
|
44
|
+
//
|
45
|
+
// Currently, gtest_unittest takes ~11 seconds to run in the testing
|
46
|
+
// daemon. In the future, if it grows too large and needs much more
|
47
|
+
// time to finish, we should consider separating this file into a
|
48
|
+
// stand-alone regression test.
|
49
|
+
|
50
|
+
#include <iostream>
|
51
|
+
|
52
|
+
#include "gtest/gtest.h"
|
53
|
+
#include "gtest/gtest-spi.h"
|
54
|
+
|
55
|
+
// A user-defined data type.
|
56
|
+
struct Bool {
|
57
|
+
explicit Bool(int val) : value(val != 0) {}
|
58
|
+
|
59
|
+
bool operator>(int n) const { return value > Bool(n).value; }
|
60
|
+
|
61
|
+
Bool operator+(const Bool& rhs) const { return Bool(value + rhs.value); }
|
62
|
+
|
63
|
+
bool operator==(const Bool& rhs) const { return value == rhs.value; }
|
64
|
+
|
65
|
+
bool value;
|
66
|
+
};
|
67
|
+
|
68
|
+
// Enables Bool to be used in assertions.
|
69
|
+
std::ostream& operator<<(std::ostream& os, const Bool& x) {
|
70
|
+
return os << (x.value ? "true" : "false");
|
71
|
+
}
|
72
|
+
|
73
|
+
// Sample functions/functors for testing unary predicate assertions.
|
74
|
+
|
75
|
+
// A unary predicate function.
|
76
|
+
template <typename T1>
|
77
|
+
bool PredFunction1(T1 v1) {
|
78
|
+
return v1 > 0;
|
79
|
+
}
|
80
|
+
|
81
|
+
// The following two functions are needed because a compiler doesn't have
|
82
|
+
// a context yet to know which template function must be instantiated.
|
83
|
+
bool PredFunction1Int(int v1) {
|
84
|
+
return v1 > 0;
|
85
|
+
}
|
86
|
+
bool PredFunction1Bool(Bool v1) {
|
87
|
+
return v1 > 0;
|
88
|
+
}
|
89
|
+
|
90
|
+
// A unary predicate functor.
|
91
|
+
struct PredFunctor1 {
|
92
|
+
template <typename T1>
|
93
|
+
bool operator()(const T1& v1) {
|
94
|
+
return v1 > 0;
|
95
|
+
}
|
96
|
+
};
|
97
|
+
|
98
|
+
// A unary predicate-formatter function.
|
99
|
+
template <typename T1>
|
100
|
+
testing::AssertionResult PredFormatFunction1(const char* e1,
|
101
|
+
const T1& v1) {
|
102
|
+
if (PredFunction1(v1))
|
103
|
+
return testing::AssertionSuccess();
|
104
|
+
|
105
|
+
return testing::AssertionFailure()
|
106
|
+
<< e1
|
107
|
+
<< " is expected to be positive, but evaluates to "
|
108
|
+
<< v1 << ".";
|
109
|
+
}
|
110
|
+
|
111
|
+
// A unary predicate-formatter functor.
|
112
|
+
struct PredFormatFunctor1 {
|
113
|
+
template <typename T1>
|
114
|
+
testing::AssertionResult operator()(const char* e1,
|
115
|
+
const T1& v1) const {
|
116
|
+
return PredFormatFunction1(e1, v1);
|
117
|
+
}
|
118
|
+
};
|
119
|
+
|
120
|
+
// Tests for {EXPECT|ASSERT}_PRED_FORMAT1.
|
121
|
+
|
122
|
+
class Predicate1Test : public testing::Test {
|
123
|
+
protected:
|
124
|
+
void SetUp() override {
|
125
|
+
expected_to_finish_ = true;
|
126
|
+
finished_ = false;
|
127
|
+
n1_ = 0;
|
128
|
+
}
|
129
|
+
|
130
|
+
void TearDown() override {
|
131
|
+
// Verifies that each of the predicate's arguments was evaluated
|
132
|
+
// exactly once.
|
133
|
+
EXPECT_EQ(1, n1_) <<
|
134
|
+
"The predicate assertion didn't evaluate argument 2 "
|
135
|
+
"exactly once.";
|
136
|
+
|
137
|
+
// Verifies that the control flow in the test function is expected.
|
138
|
+
if (expected_to_finish_ && !finished_) {
|
139
|
+
FAIL() << "The predicate assertion unexpactedly aborted the test.";
|
140
|
+
} else if (!expected_to_finish_ && finished_) {
|
141
|
+
FAIL() << "The failed predicate assertion didn't abort the test "
|
142
|
+
"as expected.";
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
// true if and only if the test function is expected to run to finish.
|
147
|
+
static bool expected_to_finish_;
|
148
|
+
|
149
|
+
// true if and only if the test function did run to finish.
|
150
|
+
static bool finished_;
|
151
|
+
|
152
|
+
static int n1_;
|
153
|
+
};
|
154
|
+
|
155
|
+
bool Predicate1Test::expected_to_finish_;
|
156
|
+
bool Predicate1Test::finished_;
|
157
|
+
int Predicate1Test::n1_;
|
158
|
+
|
159
|
+
typedef Predicate1Test EXPECT_PRED_FORMAT1Test;
|
160
|
+
typedef Predicate1Test ASSERT_PRED_FORMAT1Test;
|
161
|
+
typedef Predicate1Test EXPECT_PRED1Test;
|
162
|
+
typedef Predicate1Test ASSERT_PRED1Test;
|
163
|
+
|
164
|
+
// Tests a successful EXPECT_PRED1 where the
|
165
|
+
// predicate-formatter is a function on a built-in type (int).
|
166
|
+
TEST_F(EXPECT_PRED1Test, FunctionOnBuiltInTypeSuccess) {
|
167
|
+
EXPECT_PRED1(PredFunction1Int,
|
168
|
+
++n1_);
|
169
|
+
finished_ = true;
|
170
|
+
}
|
171
|
+
|
172
|
+
// Tests a successful EXPECT_PRED1 where the
|
173
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
174
|
+
TEST_F(EXPECT_PRED1Test, FunctionOnUserTypeSuccess) {
|
175
|
+
EXPECT_PRED1(PredFunction1Bool,
|
176
|
+
Bool(++n1_));
|
177
|
+
finished_ = true;
|
178
|
+
}
|
179
|
+
|
180
|
+
// Tests a successful EXPECT_PRED1 where the
|
181
|
+
// predicate-formatter is a functor on a built-in type (int).
|
182
|
+
TEST_F(EXPECT_PRED1Test, FunctorOnBuiltInTypeSuccess) {
|
183
|
+
EXPECT_PRED1(PredFunctor1(),
|
184
|
+
++n1_);
|
185
|
+
finished_ = true;
|
186
|
+
}
|
187
|
+
|
188
|
+
// Tests a successful EXPECT_PRED1 where the
|
189
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
190
|
+
TEST_F(EXPECT_PRED1Test, FunctorOnUserTypeSuccess) {
|
191
|
+
EXPECT_PRED1(PredFunctor1(),
|
192
|
+
Bool(++n1_));
|
193
|
+
finished_ = true;
|
194
|
+
}
|
195
|
+
|
196
|
+
// Tests a failed EXPECT_PRED1 where the
|
197
|
+
// predicate-formatter is a function on a built-in type (int).
|
198
|
+
TEST_F(EXPECT_PRED1Test, FunctionOnBuiltInTypeFailure) {
|
199
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
200
|
+
EXPECT_PRED1(PredFunction1Int,
|
201
|
+
n1_++);
|
202
|
+
finished_ = true;
|
203
|
+
}, "");
|
204
|
+
}
|
205
|
+
|
206
|
+
// Tests a failed EXPECT_PRED1 where the
|
207
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
208
|
+
TEST_F(EXPECT_PRED1Test, FunctionOnUserTypeFailure) {
|
209
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
210
|
+
EXPECT_PRED1(PredFunction1Bool,
|
211
|
+
Bool(n1_++));
|
212
|
+
finished_ = true;
|
213
|
+
}, "");
|
214
|
+
}
|
215
|
+
|
216
|
+
// Tests a failed EXPECT_PRED1 where the
|
217
|
+
// predicate-formatter is a functor on a built-in type (int).
|
218
|
+
TEST_F(EXPECT_PRED1Test, FunctorOnBuiltInTypeFailure) {
|
219
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
220
|
+
EXPECT_PRED1(PredFunctor1(),
|
221
|
+
n1_++);
|
222
|
+
finished_ = true;
|
223
|
+
}, "");
|
224
|
+
}
|
225
|
+
|
226
|
+
// Tests a failed EXPECT_PRED1 where the
|
227
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
228
|
+
TEST_F(EXPECT_PRED1Test, FunctorOnUserTypeFailure) {
|
229
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
230
|
+
EXPECT_PRED1(PredFunctor1(),
|
231
|
+
Bool(n1_++));
|
232
|
+
finished_ = true;
|
233
|
+
}, "");
|
234
|
+
}
|
235
|
+
|
236
|
+
// Tests a successful ASSERT_PRED1 where the
|
237
|
+
// predicate-formatter is a function on a built-in type (int).
|
238
|
+
TEST_F(ASSERT_PRED1Test, FunctionOnBuiltInTypeSuccess) {
|
239
|
+
ASSERT_PRED1(PredFunction1Int,
|
240
|
+
++n1_);
|
241
|
+
finished_ = true;
|
242
|
+
}
|
243
|
+
|
244
|
+
// Tests a successful ASSERT_PRED1 where the
|
245
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
246
|
+
TEST_F(ASSERT_PRED1Test, FunctionOnUserTypeSuccess) {
|
247
|
+
ASSERT_PRED1(PredFunction1Bool,
|
248
|
+
Bool(++n1_));
|
249
|
+
finished_ = true;
|
250
|
+
}
|
251
|
+
|
252
|
+
// Tests a successful ASSERT_PRED1 where the
|
253
|
+
// predicate-formatter is a functor on a built-in type (int).
|
254
|
+
TEST_F(ASSERT_PRED1Test, FunctorOnBuiltInTypeSuccess) {
|
255
|
+
ASSERT_PRED1(PredFunctor1(),
|
256
|
+
++n1_);
|
257
|
+
finished_ = true;
|
258
|
+
}
|
259
|
+
|
260
|
+
// Tests a successful ASSERT_PRED1 where the
|
261
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
262
|
+
TEST_F(ASSERT_PRED1Test, FunctorOnUserTypeSuccess) {
|
263
|
+
ASSERT_PRED1(PredFunctor1(),
|
264
|
+
Bool(++n1_));
|
265
|
+
finished_ = true;
|
266
|
+
}
|
267
|
+
|
268
|
+
// Tests a failed ASSERT_PRED1 where the
|
269
|
+
// predicate-formatter is a function on a built-in type (int).
|
270
|
+
TEST_F(ASSERT_PRED1Test, FunctionOnBuiltInTypeFailure) {
|
271
|
+
expected_to_finish_ = false;
|
272
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
273
|
+
ASSERT_PRED1(PredFunction1Int,
|
274
|
+
n1_++);
|
275
|
+
finished_ = true;
|
276
|
+
}, "");
|
277
|
+
}
|
278
|
+
|
279
|
+
// Tests a failed ASSERT_PRED1 where the
|
280
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
281
|
+
TEST_F(ASSERT_PRED1Test, FunctionOnUserTypeFailure) {
|
282
|
+
expected_to_finish_ = false;
|
283
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
284
|
+
ASSERT_PRED1(PredFunction1Bool,
|
285
|
+
Bool(n1_++));
|
286
|
+
finished_ = true;
|
287
|
+
}, "");
|
288
|
+
}
|
289
|
+
|
290
|
+
// Tests a failed ASSERT_PRED1 where the
|
291
|
+
// predicate-formatter is a functor on a built-in type (int).
|
292
|
+
TEST_F(ASSERT_PRED1Test, FunctorOnBuiltInTypeFailure) {
|
293
|
+
expected_to_finish_ = false;
|
294
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
295
|
+
ASSERT_PRED1(PredFunctor1(),
|
296
|
+
n1_++);
|
297
|
+
finished_ = true;
|
298
|
+
}, "");
|
299
|
+
}
|
300
|
+
|
301
|
+
// Tests a failed ASSERT_PRED1 where the
|
302
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
303
|
+
TEST_F(ASSERT_PRED1Test, FunctorOnUserTypeFailure) {
|
304
|
+
expected_to_finish_ = false;
|
305
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
306
|
+
ASSERT_PRED1(PredFunctor1(),
|
307
|
+
Bool(n1_++));
|
308
|
+
finished_ = true;
|
309
|
+
}, "");
|
310
|
+
}
|
311
|
+
|
312
|
+
// Tests a successful EXPECT_PRED_FORMAT1 where the
|
313
|
+
// predicate-formatter is a function on a built-in type (int).
|
314
|
+
TEST_F(EXPECT_PRED_FORMAT1Test, FunctionOnBuiltInTypeSuccess) {
|
315
|
+
EXPECT_PRED_FORMAT1(PredFormatFunction1,
|
316
|
+
++n1_);
|
317
|
+
finished_ = true;
|
318
|
+
}
|
319
|
+
|
320
|
+
// Tests a successful EXPECT_PRED_FORMAT1 where the
|
321
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
322
|
+
TEST_F(EXPECT_PRED_FORMAT1Test, FunctionOnUserTypeSuccess) {
|
323
|
+
EXPECT_PRED_FORMAT1(PredFormatFunction1,
|
324
|
+
Bool(++n1_));
|
325
|
+
finished_ = true;
|
326
|
+
}
|
327
|
+
|
328
|
+
// Tests a successful EXPECT_PRED_FORMAT1 where the
|
329
|
+
// predicate-formatter is a functor on a built-in type (int).
|
330
|
+
TEST_F(EXPECT_PRED_FORMAT1Test, FunctorOnBuiltInTypeSuccess) {
|
331
|
+
EXPECT_PRED_FORMAT1(PredFormatFunctor1(),
|
332
|
+
++n1_);
|
333
|
+
finished_ = true;
|
334
|
+
}
|
335
|
+
|
336
|
+
// Tests a successful EXPECT_PRED_FORMAT1 where the
|
337
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
338
|
+
TEST_F(EXPECT_PRED_FORMAT1Test, FunctorOnUserTypeSuccess) {
|
339
|
+
EXPECT_PRED_FORMAT1(PredFormatFunctor1(),
|
340
|
+
Bool(++n1_));
|
341
|
+
finished_ = true;
|
342
|
+
}
|
343
|
+
|
344
|
+
// Tests a failed EXPECT_PRED_FORMAT1 where the
|
345
|
+
// predicate-formatter is a function on a built-in type (int).
|
346
|
+
TEST_F(EXPECT_PRED_FORMAT1Test, FunctionOnBuiltInTypeFailure) {
|
347
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
348
|
+
EXPECT_PRED_FORMAT1(PredFormatFunction1,
|
349
|
+
n1_++);
|
350
|
+
finished_ = true;
|
351
|
+
}, "");
|
352
|
+
}
|
353
|
+
|
354
|
+
// Tests a failed EXPECT_PRED_FORMAT1 where the
|
355
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
356
|
+
TEST_F(EXPECT_PRED_FORMAT1Test, FunctionOnUserTypeFailure) {
|
357
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
358
|
+
EXPECT_PRED_FORMAT1(PredFormatFunction1,
|
359
|
+
Bool(n1_++));
|
360
|
+
finished_ = true;
|
361
|
+
}, "");
|
362
|
+
}
|
363
|
+
|
364
|
+
// Tests a failed EXPECT_PRED_FORMAT1 where the
|
365
|
+
// predicate-formatter is a functor on a built-in type (int).
|
366
|
+
TEST_F(EXPECT_PRED_FORMAT1Test, FunctorOnBuiltInTypeFailure) {
|
367
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
368
|
+
EXPECT_PRED_FORMAT1(PredFormatFunctor1(),
|
369
|
+
n1_++);
|
370
|
+
finished_ = true;
|
371
|
+
}, "");
|
372
|
+
}
|
373
|
+
|
374
|
+
// Tests a failed EXPECT_PRED_FORMAT1 where the
|
375
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
376
|
+
TEST_F(EXPECT_PRED_FORMAT1Test, FunctorOnUserTypeFailure) {
|
377
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
378
|
+
EXPECT_PRED_FORMAT1(PredFormatFunctor1(),
|
379
|
+
Bool(n1_++));
|
380
|
+
finished_ = true;
|
381
|
+
}, "");
|
382
|
+
}
|
383
|
+
|
384
|
+
// Tests a successful ASSERT_PRED_FORMAT1 where the
|
385
|
+
// predicate-formatter is a function on a built-in type (int).
|
386
|
+
TEST_F(ASSERT_PRED_FORMAT1Test, FunctionOnBuiltInTypeSuccess) {
|
387
|
+
ASSERT_PRED_FORMAT1(PredFormatFunction1,
|
388
|
+
++n1_);
|
389
|
+
finished_ = true;
|
390
|
+
}
|
391
|
+
|
392
|
+
// Tests a successful ASSERT_PRED_FORMAT1 where the
|
393
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
394
|
+
TEST_F(ASSERT_PRED_FORMAT1Test, FunctionOnUserTypeSuccess) {
|
395
|
+
ASSERT_PRED_FORMAT1(PredFormatFunction1,
|
396
|
+
Bool(++n1_));
|
397
|
+
finished_ = true;
|
398
|
+
}
|
399
|
+
|
400
|
+
// Tests a successful ASSERT_PRED_FORMAT1 where the
|
401
|
+
// predicate-formatter is a functor on a built-in type (int).
|
402
|
+
TEST_F(ASSERT_PRED_FORMAT1Test, FunctorOnBuiltInTypeSuccess) {
|
403
|
+
ASSERT_PRED_FORMAT1(PredFormatFunctor1(),
|
404
|
+
++n1_);
|
405
|
+
finished_ = true;
|
406
|
+
}
|
407
|
+
|
408
|
+
// Tests a successful ASSERT_PRED_FORMAT1 where the
|
409
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
410
|
+
TEST_F(ASSERT_PRED_FORMAT1Test, FunctorOnUserTypeSuccess) {
|
411
|
+
ASSERT_PRED_FORMAT1(PredFormatFunctor1(),
|
412
|
+
Bool(++n1_));
|
413
|
+
finished_ = true;
|
414
|
+
}
|
415
|
+
|
416
|
+
// Tests a failed ASSERT_PRED_FORMAT1 where the
|
417
|
+
// predicate-formatter is a function on a built-in type (int).
|
418
|
+
TEST_F(ASSERT_PRED_FORMAT1Test, FunctionOnBuiltInTypeFailure) {
|
419
|
+
expected_to_finish_ = false;
|
420
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
421
|
+
ASSERT_PRED_FORMAT1(PredFormatFunction1,
|
422
|
+
n1_++);
|
423
|
+
finished_ = true;
|
424
|
+
}, "");
|
425
|
+
}
|
426
|
+
|
427
|
+
// Tests a failed ASSERT_PRED_FORMAT1 where the
|
428
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
429
|
+
TEST_F(ASSERT_PRED_FORMAT1Test, FunctionOnUserTypeFailure) {
|
430
|
+
expected_to_finish_ = false;
|
431
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
432
|
+
ASSERT_PRED_FORMAT1(PredFormatFunction1,
|
433
|
+
Bool(n1_++));
|
434
|
+
finished_ = true;
|
435
|
+
}, "");
|
436
|
+
}
|
437
|
+
|
438
|
+
// Tests a failed ASSERT_PRED_FORMAT1 where the
|
439
|
+
// predicate-formatter is a functor on a built-in type (int).
|
440
|
+
TEST_F(ASSERT_PRED_FORMAT1Test, FunctorOnBuiltInTypeFailure) {
|
441
|
+
expected_to_finish_ = false;
|
442
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
443
|
+
ASSERT_PRED_FORMAT1(PredFormatFunctor1(),
|
444
|
+
n1_++);
|
445
|
+
finished_ = true;
|
446
|
+
}, "");
|
447
|
+
}
|
448
|
+
|
449
|
+
// Tests a failed ASSERT_PRED_FORMAT1 where the
|
450
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
451
|
+
TEST_F(ASSERT_PRED_FORMAT1Test, FunctorOnUserTypeFailure) {
|
452
|
+
expected_to_finish_ = false;
|
453
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
454
|
+
ASSERT_PRED_FORMAT1(PredFormatFunctor1(),
|
455
|
+
Bool(n1_++));
|
456
|
+
finished_ = true;
|
457
|
+
}, "");
|
458
|
+
}
|
459
|
+
// Sample functions/functors for testing binary predicate assertions.
|
460
|
+
|
461
|
+
// A binary predicate function.
|
462
|
+
template <typename T1, typename T2>
|
463
|
+
bool PredFunction2(T1 v1, T2 v2) {
|
464
|
+
return v1 + v2 > 0;
|
465
|
+
}
|
466
|
+
|
467
|
+
// The following two functions are needed because a compiler doesn't have
|
468
|
+
// a context yet to know which template function must be instantiated.
|
469
|
+
bool PredFunction2Int(int v1, int v2) {
|
470
|
+
return v1 + v2 > 0;
|
471
|
+
}
|
472
|
+
bool PredFunction2Bool(Bool v1, Bool v2) {
|
473
|
+
return v1 + v2 > 0;
|
474
|
+
}
|
475
|
+
|
476
|
+
// A binary predicate functor.
|
477
|
+
struct PredFunctor2 {
|
478
|
+
template <typename T1, typename T2>
|
479
|
+
bool operator()(const T1& v1,
|
480
|
+
const T2& v2) {
|
481
|
+
return v1 + v2 > 0;
|
482
|
+
}
|
483
|
+
};
|
484
|
+
|
485
|
+
// A binary predicate-formatter function.
|
486
|
+
template <typename T1, typename T2>
|
487
|
+
testing::AssertionResult PredFormatFunction2(const char* e1,
|
488
|
+
const char* e2,
|
489
|
+
const T1& v1,
|
490
|
+
const T2& v2) {
|
491
|
+
if (PredFunction2(v1, v2))
|
492
|
+
return testing::AssertionSuccess();
|
493
|
+
|
494
|
+
return testing::AssertionFailure()
|
495
|
+
<< e1 << " + " << e2
|
496
|
+
<< " is expected to be positive, but evaluates to "
|
497
|
+
<< v1 + v2 << ".";
|
498
|
+
}
|
499
|
+
|
500
|
+
// A binary predicate-formatter functor.
|
501
|
+
struct PredFormatFunctor2 {
|
502
|
+
template <typename T1, typename T2>
|
503
|
+
testing::AssertionResult operator()(const char* e1,
|
504
|
+
const char* e2,
|
505
|
+
const T1& v1,
|
506
|
+
const T2& v2) const {
|
507
|
+
return PredFormatFunction2(e1, e2, v1, v2);
|
508
|
+
}
|
509
|
+
};
|
510
|
+
|
511
|
+
// Tests for {EXPECT|ASSERT}_PRED_FORMAT2.
|
512
|
+
|
513
|
+
class Predicate2Test : public testing::Test {
|
514
|
+
protected:
|
515
|
+
void SetUp() override {
|
516
|
+
expected_to_finish_ = true;
|
517
|
+
finished_ = false;
|
518
|
+
n1_ = n2_ = 0;
|
519
|
+
}
|
520
|
+
|
521
|
+
void TearDown() override {
|
522
|
+
// Verifies that each of the predicate's arguments was evaluated
|
523
|
+
// exactly once.
|
524
|
+
EXPECT_EQ(1, n1_) <<
|
525
|
+
"The predicate assertion didn't evaluate argument 2 "
|
526
|
+
"exactly once.";
|
527
|
+
EXPECT_EQ(1, n2_) <<
|
528
|
+
"The predicate assertion didn't evaluate argument 3 "
|
529
|
+
"exactly once.";
|
530
|
+
|
531
|
+
// Verifies that the control flow in the test function is expected.
|
532
|
+
if (expected_to_finish_ && !finished_) {
|
533
|
+
FAIL() << "The predicate assertion unexpactedly aborted the test.";
|
534
|
+
} else if (!expected_to_finish_ && finished_) {
|
535
|
+
FAIL() << "The failed predicate assertion didn't abort the test "
|
536
|
+
"as expected.";
|
537
|
+
}
|
538
|
+
}
|
539
|
+
|
540
|
+
// true if and only if the test function is expected to run to finish.
|
541
|
+
static bool expected_to_finish_;
|
542
|
+
|
543
|
+
// true if and only if the test function did run to finish.
|
544
|
+
static bool finished_;
|
545
|
+
|
546
|
+
static int n1_;
|
547
|
+
static int n2_;
|
548
|
+
};
|
549
|
+
|
550
|
+
bool Predicate2Test::expected_to_finish_;
|
551
|
+
bool Predicate2Test::finished_;
|
552
|
+
int Predicate2Test::n1_;
|
553
|
+
int Predicate2Test::n2_;
|
554
|
+
|
555
|
+
typedef Predicate2Test EXPECT_PRED_FORMAT2Test;
|
556
|
+
typedef Predicate2Test ASSERT_PRED_FORMAT2Test;
|
557
|
+
typedef Predicate2Test EXPECT_PRED2Test;
|
558
|
+
typedef Predicate2Test ASSERT_PRED2Test;
|
559
|
+
|
560
|
+
// Tests a successful EXPECT_PRED2 where the
|
561
|
+
// predicate-formatter is a function on a built-in type (int).
|
562
|
+
TEST_F(EXPECT_PRED2Test, FunctionOnBuiltInTypeSuccess) {
|
563
|
+
EXPECT_PRED2(PredFunction2Int,
|
564
|
+
++n1_,
|
565
|
+
++n2_);
|
566
|
+
finished_ = true;
|
567
|
+
}
|
568
|
+
|
569
|
+
// Tests a successful EXPECT_PRED2 where the
|
570
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
571
|
+
TEST_F(EXPECT_PRED2Test, FunctionOnUserTypeSuccess) {
|
572
|
+
EXPECT_PRED2(PredFunction2Bool,
|
573
|
+
Bool(++n1_),
|
574
|
+
Bool(++n2_));
|
575
|
+
finished_ = true;
|
576
|
+
}
|
577
|
+
|
578
|
+
// Tests a successful EXPECT_PRED2 where the
|
579
|
+
// predicate-formatter is a functor on a built-in type (int).
|
580
|
+
TEST_F(EXPECT_PRED2Test, FunctorOnBuiltInTypeSuccess) {
|
581
|
+
EXPECT_PRED2(PredFunctor2(),
|
582
|
+
++n1_,
|
583
|
+
++n2_);
|
584
|
+
finished_ = true;
|
585
|
+
}
|
586
|
+
|
587
|
+
// Tests a successful EXPECT_PRED2 where the
|
588
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
589
|
+
TEST_F(EXPECT_PRED2Test, FunctorOnUserTypeSuccess) {
|
590
|
+
EXPECT_PRED2(PredFunctor2(),
|
591
|
+
Bool(++n1_),
|
592
|
+
Bool(++n2_));
|
593
|
+
finished_ = true;
|
594
|
+
}
|
595
|
+
|
596
|
+
// Tests a failed EXPECT_PRED2 where the
|
597
|
+
// predicate-formatter is a function on a built-in type (int).
|
598
|
+
TEST_F(EXPECT_PRED2Test, FunctionOnBuiltInTypeFailure) {
|
599
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
600
|
+
EXPECT_PRED2(PredFunction2Int,
|
601
|
+
n1_++,
|
602
|
+
n2_++);
|
603
|
+
finished_ = true;
|
604
|
+
}, "");
|
605
|
+
}
|
606
|
+
|
607
|
+
// Tests a failed EXPECT_PRED2 where the
|
608
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
609
|
+
TEST_F(EXPECT_PRED2Test, FunctionOnUserTypeFailure) {
|
610
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
611
|
+
EXPECT_PRED2(PredFunction2Bool,
|
612
|
+
Bool(n1_++),
|
613
|
+
Bool(n2_++));
|
614
|
+
finished_ = true;
|
615
|
+
}, "");
|
616
|
+
}
|
617
|
+
|
618
|
+
// Tests a failed EXPECT_PRED2 where the
|
619
|
+
// predicate-formatter is a functor on a built-in type (int).
|
620
|
+
TEST_F(EXPECT_PRED2Test, FunctorOnBuiltInTypeFailure) {
|
621
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
622
|
+
EXPECT_PRED2(PredFunctor2(),
|
623
|
+
n1_++,
|
624
|
+
n2_++);
|
625
|
+
finished_ = true;
|
626
|
+
}, "");
|
627
|
+
}
|
628
|
+
|
629
|
+
// Tests a failed EXPECT_PRED2 where the
|
630
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
631
|
+
TEST_F(EXPECT_PRED2Test, FunctorOnUserTypeFailure) {
|
632
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
633
|
+
EXPECT_PRED2(PredFunctor2(),
|
634
|
+
Bool(n1_++),
|
635
|
+
Bool(n2_++));
|
636
|
+
finished_ = true;
|
637
|
+
}, "");
|
638
|
+
}
|
639
|
+
|
640
|
+
// Tests a successful ASSERT_PRED2 where the
|
641
|
+
// predicate-formatter is a function on a built-in type (int).
|
642
|
+
TEST_F(ASSERT_PRED2Test, FunctionOnBuiltInTypeSuccess) {
|
643
|
+
ASSERT_PRED2(PredFunction2Int,
|
644
|
+
++n1_,
|
645
|
+
++n2_);
|
646
|
+
finished_ = true;
|
647
|
+
}
|
648
|
+
|
649
|
+
// Tests a successful ASSERT_PRED2 where the
|
650
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
651
|
+
TEST_F(ASSERT_PRED2Test, FunctionOnUserTypeSuccess) {
|
652
|
+
ASSERT_PRED2(PredFunction2Bool,
|
653
|
+
Bool(++n1_),
|
654
|
+
Bool(++n2_));
|
655
|
+
finished_ = true;
|
656
|
+
}
|
657
|
+
|
658
|
+
// Tests a successful ASSERT_PRED2 where the
|
659
|
+
// predicate-formatter is a functor on a built-in type (int).
|
660
|
+
TEST_F(ASSERT_PRED2Test, FunctorOnBuiltInTypeSuccess) {
|
661
|
+
ASSERT_PRED2(PredFunctor2(),
|
662
|
+
++n1_,
|
663
|
+
++n2_);
|
664
|
+
finished_ = true;
|
665
|
+
}
|
666
|
+
|
667
|
+
// Tests a successful ASSERT_PRED2 where the
|
668
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
669
|
+
TEST_F(ASSERT_PRED2Test, FunctorOnUserTypeSuccess) {
|
670
|
+
ASSERT_PRED2(PredFunctor2(),
|
671
|
+
Bool(++n1_),
|
672
|
+
Bool(++n2_));
|
673
|
+
finished_ = true;
|
674
|
+
}
|
675
|
+
|
676
|
+
// Tests a failed ASSERT_PRED2 where the
|
677
|
+
// predicate-formatter is a function on a built-in type (int).
|
678
|
+
TEST_F(ASSERT_PRED2Test, FunctionOnBuiltInTypeFailure) {
|
679
|
+
expected_to_finish_ = false;
|
680
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
681
|
+
ASSERT_PRED2(PredFunction2Int,
|
682
|
+
n1_++,
|
683
|
+
n2_++);
|
684
|
+
finished_ = true;
|
685
|
+
}, "");
|
686
|
+
}
|
687
|
+
|
688
|
+
// Tests a failed ASSERT_PRED2 where the
|
689
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
690
|
+
TEST_F(ASSERT_PRED2Test, FunctionOnUserTypeFailure) {
|
691
|
+
expected_to_finish_ = false;
|
692
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
693
|
+
ASSERT_PRED2(PredFunction2Bool,
|
694
|
+
Bool(n1_++),
|
695
|
+
Bool(n2_++));
|
696
|
+
finished_ = true;
|
697
|
+
}, "");
|
698
|
+
}
|
699
|
+
|
700
|
+
// Tests a failed ASSERT_PRED2 where the
|
701
|
+
// predicate-formatter is a functor on a built-in type (int).
|
702
|
+
TEST_F(ASSERT_PRED2Test, FunctorOnBuiltInTypeFailure) {
|
703
|
+
expected_to_finish_ = false;
|
704
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
705
|
+
ASSERT_PRED2(PredFunctor2(),
|
706
|
+
n1_++,
|
707
|
+
n2_++);
|
708
|
+
finished_ = true;
|
709
|
+
}, "");
|
710
|
+
}
|
711
|
+
|
712
|
+
// Tests a failed ASSERT_PRED2 where the
|
713
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
714
|
+
TEST_F(ASSERT_PRED2Test, FunctorOnUserTypeFailure) {
|
715
|
+
expected_to_finish_ = false;
|
716
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
717
|
+
ASSERT_PRED2(PredFunctor2(),
|
718
|
+
Bool(n1_++),
|
719
|
+
Bool(n2_++));
|
720
|
+
finished_ = true;
|
721
|
+
}, "");
|
722
|
+
}
|
723
|
+
|
724
|
+
// Tests a successful EXPECT_PRED_FORMAT2 where the
|
725
|
+
// predicate-formatter is a function on a built-in type (int).
|
726
|
+
TEST_F(EXPECT_PRED_FORMAT2Test, FunctionOnBuiltInTypeSuccess) {
|
727
|
+
EXPECT_PRED_FORMAT2(PredFormatFunction2,
|
728
|
+
++n1_,
|
729
|
+
++n2_);
|
730
|
+
finished_ = true;
|
731
|
+
}
|
732
|
+
|
733
|
+
// Tests a successful EXPECT_PRED_FORMAT2 where the
|
734
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
735
|
+
TEST_F(EXPECT_PRED_FORMAT2Test, FunctionOnUserTypeSuccess) {
|
736
|
+
EXPECT_PRED_FORMAT2(PredFormatFunction2,
|
737
|
+
Bool(++n1_),
|
738
|
+
Bool(++n2_));
|
739
|
+
finished_ = true;
|
740
|
+
}
|
741
|
+
|
742
|
+
// Tests a successful EXPECT_PRED_FORMAT2 where the
|
743
|
+
// predicate-formatter is a functor on a built-in type (int).
|
744
|
+
TEST_F(EXPECT_PRED_FORMAT2Test, FunctorOnBuiltInTypeSuccess) {
|
745
|
+
EXPECT_PRED_FORMAT2(PredFormatFunctor2(),
|
746
|
+
++n1_,
|
747
|
+
++n2_);
|
748
|
+
finished_ = true;
|
749
|
+
}
|
750
|
+
|
751
|
+
// Tests a successful EXPECT_PRED_FORMAT2 where the
|
752
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
753
|
+
TEST_F(EXPECT_PRED_FORMAT2Test, FunctorOnUserTypeSuccess) {
|
754
|
+
EXPECT_PRED_FORMAT2(PredFormatFunctor2(),
|
755
|
+
Bool(++n1_),
|
756
|
+
Bool(++n2_));
|
757
|
+
finished_ = true;
|
758
|
+
}
|
759
|
+
|
760
|
+
// Tests a failed EXPECT_PRED_FORMAT2 where the
|
761
|
+
// predicate-formatter is a function on a built-in type (int).
|
762
|
+
TEST_F(EXPECT_PRED_FORMAT2Test, FunctionOnBuiltInTypeFailure) {
|
763
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
764
|
+
EXPECT_PRED_FORMAT2(PredFormatFunction2,
|
765
|
+
n1_++,
|
766
|
+
n2_++);
|
767
|
+
finished_ = true;
|
768
|
+
}, "");
|
769
|
+
}
|
770
|
+
|
771
|
+
// Tests a failed EXPECT_PRED_FORMAT2 where the
|
772
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
773
|
+
TEST_F(EXPECT_PRED_FORMAT2Test, FunctionOnUserTypeFailure) {
|
774
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
775
|
+
EXPECT_PRED_FORMAT2(PredFormatFunction2,
|
776
|
+
Bool(n1_++),
|
777
|
+
Bool(n2_++));
|
778
|
+
finished_ = true;
|
779
|
+
}, "");
|
780
|
+
}
|
781
|
+
|
782
|
+
// Tests a failed EXPECT_PRED_FORMAT2 where the
|
783
|
+
// predicate-formatter is a functor on a built-in type (int).
|
784
|
+
TEST_F(EXPECT_PRED_FORMAT2Test, FunctorOnBuiltInTypeFailure) {
|
785
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
786
|
+
EXPECT_PRED_FORMAT2(PredFormatFunctor2(),
|
787
|
+
n1_++,
|
788
|
+
n2_++);
|
789
|
+
finished_ = true;
|
790
|
+
}, "");
|
791
|
+
}
|
792
|
+
|
793
|
+
// Tests a failed EXPECT_PRED_FORMAT2 where the
|
794
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
795
|
+
TEST_F(EXPECT_PRED_FORMAT2Test, FunctorOnUserTypeFailure) {
|
796
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
797
|
+
EXPECT_PRED_FORMAT2(PredFormatFunctor2(),
|
798
|
+
Bool(n1_++),
|
799
|
+
Bool(n2_++));
|
800
|
+
finished_ = true;
|
801
|
+
}, "");
|
802
|
+
}
|
803
|
+
|
804
|
+
// Tests a successful ASSERT_PRED_FORMAT2 where the
|
805
|
+
// predicate-formatter is a function on a built-in type (int).
|
806
|
+
TEST_F(ASSERT_PRED_FORMAT2Test, FunctionOnBuiltInTypeSuccess) {
|
807
|
+
ASSERT_PRED_FORMAT2(PredFormatFunction2,
|
808
|
+
++n1_,
|
809
|
+
++n2_);
|
810
|
+
finished_ = true;
|
811
|
+
}
|
812
|
+
|
813
|
+
// Tests a successful ASSERT_PRED_FORMAT2 where the
|
814
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
815
|
+
TEST_F(ASSERT_PRED_FORMAT2Test, FunctionOnUserTypeSuccess) {
|
816
|
+
ASSERT_PRED_FORMAT2(PredFormatFunction2,
|
817
|
+
Bool(++n1_),
|
818
|
+
Bool(++n2_));
|
819
|
+
finished_ = true;
|
820
|
+
}
|
821
|
+
|
822
|
+
// Tests a successful ASSERT_PRED_FORMAT2 where the
|
823
|
+
// predicate-formatter is a functor on a built-in type (int).
|
824
|
+
TEST_F(ASSERT_PRED_FORMAT2Test, FunctorOnBuiltInTypeSuccess) {
|
825
|
+
ASSERT_PRED_FORMAT2(PredFormatFunctor2(),
|
826
|
+
++n1_,
|
827
|
+
++n2_);
|
828
|
+
finished_ = true;
|
829
|
+
}
|
830
|
+
|
831
|
+
// Tests a successful ASSERT_PRED_FORMAT2 where the
|
832
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
833
|
+
TEST_F(ASSERT_PRED_FORMAT2Test, FunctorOnUserTypeSuccess) {
|
834
|
+
ASSERT_PRED_FORMAT2(PredFormatFunctor2(),
|
835
|
+
Bool(++n1_),
|
836
|
+
Bool(++n2_));
|
837
|
+
finished_ = true;
|
838
|
+
}
|
839
|
+
|
840
|
+
// Tests a failed ASSERT_PRED_FORMAT2 where the
|
841
|
+
// predicate-formatter is a function on a built-in type (int).
|
842
|
+
TEST_F(ASSERT_PRED_FORMAT2Test, FunctionOnBuiltInTypeFailure) {
|
843
|
+
expected_to_finish_ = false;
|
844
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
845
|
+
ASSERT_PRED_FORMAT2(PredFormatFunction2,
|
846
|
+
n1_++,
|
847
|
+
n2_++);
|
848
|
+
finished_ = true;
|
849
|
+
}, "");
|
850
|
+
}
|
851
|
+
|
852
|
+
// Tests a failed ASSERT_PRED_FORMAT2 where the
|
853
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
854
|
+
TEST_F(ASSERT_PRED_FORMAT2Test, FunctionOnUserTypeFailure) {
|
855
|
+
expected_to_finish_ = false;
|
856
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
857
|
+
ASSERT_PRED_FORMAT2(PredFormatFunction2,
|
858
|
+
Bool(n1_++),
|
859
|
+
Bool(n2_++));
|
860
|
+
finished_ = true;
|
861
|
+
}, "");
|
862
|
+
}
|
863
|
+
|
864
|
+
// Tests a failed ASSERT_PRED_FORMAT2 where the
|
865
|
+
// predicate-formatter is a functor on a built-in type (int).
|
866
|
+
TEST_F(ASSERT_PRED_FORMAT2Test, FunctorOnBuiltInTypeFailure) {
|
867
|
+
expected_to_finish_ = false;
|
868
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
869
|
+
ASSERT_PRED_FORMAT2(PredFormatFunctor2(),
|
870
|
+
n1_++,
|
871
|
+
n2_++);
|
872
|
+
finished_ = true;
|
873
|
+
}, "");
|
874
|
+
}
|
875
|
+
|
876
|
+
// Tests a failed ASSERT_PRED_FORMAT2 where the
|
877
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
878
|
+
TEST_F(ASSERT_PRED_FORMAT2Test, FunctorOnUserTypeFailure) {
|
879
|
+
expected_to_finish_ = false;
|
880
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
881
|
+
ASSERT_PRED_FORMAT2(PredFormatFunctor2(),
|
882
|
+
Bool(n1_++),
|
883
|
+
Bool(n2_++));
|
884
|
+
finished_ = true;
|
885
|
+
}, "");
|
886
|
+
}
|
887
|
+
// Sample functions/functors for testing ternary predicate assertions.
|
888
|
+
|
889
|
+
// A ternary predicate function.
|
890
|
+
template <typename T1, typename T2, typename T3>
|
891
|
+
bool PredFunction3(T1 v1, T2 v2, T3 v3) {
|
892
|
+
return v1 + v2 + v3 > 0;
|
893
|
+
}
|
894
|
+
|
895
|
+
// The following two functions are needed because a compiler doesn't have
|
896
|
+
// a context yet to know which template function must be instantiated.
|
897
|
+
bool PredFunction3Int(int v1, int v2, int v3) {
|
898
|
+
return v1 + v2 + v3 > 0;
|
899
|
+
}
|
900
|
+
bool PredFunction3Bool(Bool v1, Bool v2, Bool v3) {
|
901
|
+
return v1 + v2 + v3 > 0;
|
902
|
+
}
|
903
|
+
|
904
|
+
// A ternary predicate functor.
|
905
|
+
struct PredFunctor3 {
|
906
|
+
template <typename T1, typename T2, typename T3>
|
907
|
+
bool operator()(const T1& v1,
|
908
|
+
const T2& v2,
|
909
|
+
const T3& v3) {
|
910
|
+
return v1 + v2 + v3 > 0;
|
911
|
+
}
|
912
|
+
};
|
913
|
+
|
914
|
+
// A ternary predicate-formatter function.
|
915
|
+
template <typename T1, typename T2, typename T3>
|
916
|
+
testing::AssertionResult PredFormatFunction3(const char* e1,
|
917
|
+
const char* e2,
|
918
|
+
const char* e3,
|
919
|
+
const T1& v1,
|
920
|
+
const T2& v2,
|
921
|
+
const T3& v3) {
|
922
|
+
if (PredFunction3(v1, v2, v3))
|
923
|
+
return testing::AssertionSuccess();
|
924
|
+
|
925
|
+
return testing::AssertionFailure()
|
926
|
+
<< e1 << " + " << e2 << " + " << e3
|
927
|
+
<< " is expected to be positive, but evaluates to "
|
928
|
+
<< v1 + v2 + v3 << ".";
|
929
|
+
}
|
930
|
+
|
931
|
+
// A ternary predicate-formatter functor.
|
932
|
+
struct PredFormatFunctor3 {
|
933
|
+
template <typename T1, typename T2, typename T3>
|
934
|
+
testing::AssertionResult operator()(const char* e1,
|
935
|
+
const char* e2,
|
936
|
+
const char* e3,
|
937
|
+
const T1& v1,
|
938
|
+
const T2& v2,
|
939
|
+
const T3& v3) const {
|
940
|
+
return PredFormatFunction3(e1, e2, e3, v1, v2, v3);
|
941
|
+
}
|
942
|
+
};
|
943
|
+
|
944
|
+
// Tests for {EXPECT|ASSERT}_PRED_FORMAT3.
|
945
|
+
|
946
|
+
class Predicate3Test : public testing::Test {
|
947
|
+
protected:
|
948
|
+
void SetUp() override {
|
949
|
+
expected_to_finish_ = true;
|
950
|
+
finished_ = false;
|
951
|
+
n1_ = n2_ = n3_ = 0;
|
952
|
+
}
|
953
|
+
|
954
|
+
void TearDown() override {
|
955
|
+
// Verifies that each of the predicate's arguments was evaluated
|
956
|
+
// exactly once.
|
957
|
+
EXPECT_EQ(1, n1_) <<
|
958
|
+
"The predicate assertion didn't evaluate argument 2 "
|
959
|
+
"exactly once.";
|
960
|
+
EXPECT_EQ(1, n2_) <<
|
961
|
+
"The predicate assertion didn't evaluate argument 3 "
|
962
|
+
"exactly once.";
|
963
|
+
EXPECT_EQ(1, n3_) <<
|
964
|
+
"The predicate assertion didn't evaluate argument 4 "
|
965
|
+
"exactly once.";
|
966
|
+
|
967
|
+
// Verifies that the control flow in the test function is expected.
|
968
|
+
if (expected_to_finish_ && !finished_) {
|
969
|
+
FAIL() << "The predicate assertion unexpactedly aborted the test.";
|
970
|
+
} else if (!expected_to_finish_ && finished_) {
|
971
|
+
FAIL() << "The failed predicate assertion didn't abort the test "
|
972
|
+
"as expected.";
|
973
|
+
}
|
974
|
+
}
|
975
|
+
|
976
|
+
// true if and only if the test function is expected to run to finish.
|
977
|
+
static bool expected_to_finish_;
|
978
|
+
|
979
|
+
// true if and only if the test function did run to finish.
|
980
|
+
static bool finished_;
|
981
|
+
|
982
|
+
static int n1_;
|
983
|
+
static int n2_;
|
984
|
+
static int n3_;
|
985
|
+
};
|
986
|
+
|
987
|
+
bool Predicate3Test::expected_to_finish_;
|
988
|
+
bool Predicate3Test::finished_;
|
989
|
+
int Predicate3Test::n1_;
|
990
|
+
int Predicate3Test::n2_;
|
991
|
+
int Predicate3Test::n3_;
|
992
|
+
|
993
|
+
typedef Predicate3Test EXPECT_PRED_FORMAT3Test;
|
994
|
+
typedef Predicate3Test ASSERT_PRED_FORMAT3Test;
|
995
|
+
typedef Predicate3Test EXPECT_PRED3Test;
|
996
|
+
typedef Predicate3Test ASSERT_PRED3Test;
|
997
|
+
|
998
|
+
// Tests a successful EXPECT_PRED3 where the
|
999
|
+
// predicate-formatter is a function on a built-in type (int).
|
1000
|
+
TEST_F(EXPECT_PRED3Test, FunctionOnBuiltInTypeSuccess) {
|
1001
|
+
EXPECT_PRED3(PredFunction3Int,
|
1002
|
+
++n1_,
|
1003
|
+
++n2_,
|
1004
|
+
++n3_);
|
1005
|
+
finished_ = true;
|
1006
|
+
}
|
1007
|
+
|
1008
|
+
// Tests a successful EXPECT_PRED3 where the
|
1009
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1010
|
+
TEST_F(EXPECT_PRED3Test, FunctionOnUserTypeSuccess) {
|
1011
|
+
EXPECT_PRED3(PredFunction3Bool,
|
1012
|
+
Bool(++n1_),
|
1013
|
+
Bool(++n2_),
|
1014
|
+
Bool(++n3_));
|
1015
|
+
finished_ = true;
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
// Tests a successful EXPECT_PRED3 where the
|
1019
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1020
|
+
TEST_F(EXPECT_PRED3Test, FunctorOnBuiltInTypeSuccess) {
|
1021
|
+
EXPECT_PRED3(PredFunctor3(),
|
1022
|
+
++n1_,
|
1023
|
+
++n2_,
|
1024
|
+
++n3_);
|
1025
|
+
finished_ = true;
|
1026
|
+
}
|
1027
|
+
|
1028
|
+
// Tests a successful EXPECT_PRED3 where the
|
1029
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1030
|
+
TEST_F(EXPECT_PRED3Test, FunctorOnUserTypeSuccess) {
|
1031
|
+
EXPECT_PRED3(PredFunctor3(),
|
1032
|
+
Bool(++n1_),
|
1033
|
+
Bool(++n2_),
|
1034
|
+
Bool(++n3_));
|
1035
|
+
finished_ = true;
|
1036
|
+
}
|
1037
|
+
|
1038
|
+
// Tests a failed EXPECT_PRED3 where the
|
1039
|
+
// predicate-formatter is a function on a built-in type (int).
|
1040
|
+
TEST_F(EXPECT_PRED3Test, FunctionOnBuiltInTypeFailure) {
|
1041
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1042
|
+
EXPECT_PRED3(PredFunction3Int,
|
1043
|
+
n1_++,
|
1044
|
+
n2_++,
|
1045
|
+
n3_++);
|
1046
|
+
finished_ = true;
|
1047
|
+
}, "");
|
1048
|
+
}
|
1049
|
+
|
1050
|
+
// Tests a failed EXPECT_PRED3 where the
|
1051
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1052
|
+
TEST_F(EXPECT_PRED3Test, FunctionOnUserTypeFailure) {
|
1053
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1054
|
+
EXPECT_PRED3(PredFunction3Bool,
|
1055
|
+
Bool(n1_++),
|
1056
|
+
Bool(n2_++),
|
1057
|
+
Bool(n3_++));
|
1058
|
+
finished_ = true;
|
1059
|
+
}, "");
|
1060
|
+
}
|
1061
|
+
|
1062
|
+
// Tests a failed EXPECT_PRED3 where the
|
1063
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1064
|
+
TEST_F(EXPECT_PRED3Test, FunctorOnBuiltInTypeFailure) {
|
1065
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1066
|
+
EXPECT_PRED3(PredFunctor3(),
|
1067
|
+
n1_++,
|
1068
|
+
n2_++,
|
1069
|
+
n3_++);
|
1070
|
+
finished_ = true;
|
1071
|
+
}, "");
|
1072
|
+
}
|
1073
|
+
|
1074
|
+
// Tests a failed EXPECT_PRED3 where the
|
1075
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1076
|
+
TEST_F(EXPECT_PRED3Test, FunctorOnUserTypeFailure) {
|
1077
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1078
|
+
EXPECT_PRED3(PredFunctor3(),
|
1079
|
+
Bool(n1_++),
|
1080
|
+
Bool(n2_++),
|
1081
|
+
Bool(n3_++));
|
1082
|
+
finished_ = true;
|
1083
|
+
}, "");
|
1084
|
+
}
|
1085
|
+
|
1086
|
+
// Tests a successful ASSERT_PRED3 where the
|
1087
|
+
// predicate-formatter is a function on a built-in type (int).
|
1088
|
+
TEST_F(ASSERT_PRED3Test, FunctionOnBuiltInTypeSuccess) {
|
1089
|
+
ASSERT_PRED3(PredFunction3Int,
|
1090
|
+
++n1_,
|
1091
|
+
++n2_,
|
1092
|
+
++n3_);
|
1093
|
+
finished_ = true;
|
1094
|
+
}
|
1095
|
+
|
1096
|
+
// Tests a successful ASSERT_PRED3 where the
|
1097
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1098
|
+
TEST_F(ASSERT_PRED3Test, FunctionOnUserTypeSuccess) {
|
1099
|
+
ASSERT_PRED3(PredFunction3Bool,
|
1100
|
+
Bool(++n1_),
|
1101
|
+
Bool(++n2_),
|
1102
|
+
Bool(++n3_));
|
1103
|
+
finished_ = true;
|
1104
|
+
}
|
1105
|
+
|
1106
|
+
// Tests a successful ASSERT_PRED3 where the
|
1107
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1108
|
+
TEST_F(ASSERT_PRED3Test, FunctorOnBuiltInTypeSuccess) {
|
1109
|
+
ASSERT_PRED3(PredFunctor3(),
|
1110
|
+
++n1_,
|
1111
|
+
++n2_,
|
1112
|
+
++n3_);
|
1113
|
+
finished_ = true;
|
1114
|
+
}
|
1115
|
+
|
1116
|
+
// Tests a successful ASSERT_PRED3 where the
|
1117
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1118
|
+
TEST_F(ASSERT_PRED3Test, FunctorOnUserTypeSuccess) {
|
1119
|
+
ASSERT_PRED3(PredFunctor3(),
|
1120
|
+
Bool(++n1_),
|
1121
|
+
Bool(++n2_),
|
1122
|
+
Bool(++n3_));
|
1123
|
+
finished_ = true;
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
// Tests a failed ASSERT_PRED3 where the
|
1127
|
+
// predicate-formatter is a function on a built-in type (int).
|
1128
|
+
TEST_F(ASSERT_PRED3Test, FunctionOnBuiltInTypeFailure) {
|
1129
|
+
expected_to_finish_ = false;
|
1130
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1131
|
+
ASSERT_PRED3(PredFunction3Int,
|
1132
|
+
n1_++,
|
1133
|
+
n2_++,
|
1134
|
+
n3_++);
|
1135
|
+
finished_ = true;
|
1136
|
+
}, "");
|
1137
|
+
}
|
1138
|
+
|
1139
|
+
// Tests a failed ASSERT_PRED3 where the
|
1140
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1141
|
+
TEST_F(ASSERT_PRED3Test, FunctionOnUserTypeFailure) {
|
1142
|
+
expected_to_finish_ = false;
|
1143
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1144
|
+
ASSERT_PRED3(PredFunction3Bool,
|
1145
|
+
Bool(n1_++),
|
1146
|
+
Bool(n2_++),
|
1147
|
+
Bool(n3_++));
|
1148
|
+
finished_ = true;
|
1149
|
+
}, "");
|
1150
|
+
}
|
1151
|
+
|
1152
|
+
// Tests a failed ASSERT_PRED3 where the
|
1153
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1154
|
+
TEST_F(ASSERT_PRED3Test, FunctorOnBuiltInTypeFailure) {
|
1155
|
+
expected_to_finish_ = false;
|
1156
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1157
|
+
ASSERT_PRED3(PredFunctor3(),
|
1158
|
+
n1_++,
|
1159
|
+
n2_++,
|
1160
|
+
n3_++);
|
1161
|
+
finished_ = true;
|
1162
|
+
}, "");
|
1163
|
+
}
|
1164
|
+
|
1165
|
+
// Tests a failed ASSERT_PRED3 where the
|
1166
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1167
|
+
TEST_F(ASSERT_PRED3Test, FunctorOnUserTypeFailure) {
|
1168
|
+
expected_to_finish_ = false;
|
1169
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1170
|
+
ASSERT_PRED3(PredFunctor3(),
|
1171
|
+
Bool(n1_++),
|
1172
|
+
Bool(n2_++),
|
1173
|
+
Bool(n3_++));
|
1174
|
+
finished_ = true;
|
1175
|
+
}, "");
|
1176
|
+
}
|
1177
|
+
|
1178
|
+
// Tests a successful EXPECT_PRED_FORMAT3 where the
|
1179
|
+
// predicate-formatter is a function on a built-in type (int).
|
1180
|
+
TEST_F(EXPECT_PRED_FORMAT3Test, FunctionOnBuiltInTypeSuccess) {
|
1181
|
+
EXPECT_PRED_FORMAT3(PredFormatFunction3,
|
1182
|
+
++n1_,
|
1183
|
+
++n2_,
|
1184
|
+
++n3_);
|
1185
|
+
finished_ = true;
|
1186
|
+
}
|
1187
|
+
|
1188
|
+
// Tests a successful EXPECT_PRED_FORMAT3 where the
|
1189
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1190
|
+
TEST_F(EXPECT_PRED_FORMAT3Test, FunctionOnUserTypeSuccess) {
|
1191
|
+
EXPECT_PRED_FORMAT3(PredFormatFunction3,
|
1192
|
+
Bool(++n1_),
|
1193
|
+
Bool(++n2_),
|
1194
|
+
Bool(++n3_));
|
1195
|
+
finished_ = true;
|
1196
|
+
}
|
1197
|
+
|
1198
|
+
// Tests a successful EXPECT_PRED_FORMAT3 where the
|
1199
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1200
|
+
TEST_F(EXPECT_PRED_FORMAT3Test, FunctorOnBuiltInTypeSuccess) {
|
1201
|
+
EXPECT_PRED_FORMAT3(PredFormatFunctor3(),
|
1202
|
+
++n1_,
|
1203
|
+
++n2_,
|
1204
|
+
++n3_);
|
1205
|
+
finished_ = true;
|
1206
|
+
}
|
1207
|
+
|
1208
|
+
// Tests a successful EXPECT_PRED_FORMAT3 where the
|
1209
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1210
|
+
TEST_F(EXPECT_PRED_FORMAT3Test, FunctorOnUserTypeSuccess) {
|
1211
|
+
EXPECT_PRED_FORMAT3(PredFormatFunctor3(),
|
1212
|
+
Bool(++n1_),
|
1213
|
+
Bool(++n2_),
|
1214
|
+
Bool(++n3_));
|
1215
|
+
finished_ = true;
|
1216
|
+
}
|
1217
|
+
|
1218
|
+
// Tests a failed EXPECT_PRED_FORMAT3 where the
|
1219
|
+
// predicate-formatter is a function on a built-in type (int).
|
1220
|
+
TEST_F(EXPECT_PRED_FORMAT3Test, FunctionOnBuiltInTypeFailure) {
|
1221
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1222
|
+
EXPECT_PRED_FORMAT3(PredFormatFunction3,
|
1223
|
+
n1_++,
|
1224
|
+
n2_++,
|
1225
|
+
n3_++);
|
1226
|
+
finished_ = true;
|
1227
|
+
}, "");
|
1228
|
+
}
|
1229
|
+
|
1230
|
+
// Tests a failed EXPECT_PRED_FORMAT3 where the
|
1231
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1232
|
+
TEST_F(EXPECT_PRED_FORMAT3Test, FunctionOnUserTypeFailure) {
|
1233
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1234
|
+
EXPECT_PRED_FORMAT3(PredFormatFunction3,
|
1235
|
+
Bool(n1_++),
|
1236
|
+
Bool(n2_++),
|
1237
|
+
Bool(n3_++));
|
1238
|
+
finished_ = true;
|
1239
|
+
}, "");
|
1240
|
+
}
|
1241
|
+
|
1242
|
+
// Tests a failed EXPECT_PRED_FORMAT3 where the
|
1243
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1244
|
+
TEST_F(EXPECT_PRED_FORMAT3Test, FunctorOnBuiltInTypeFailure) {
|
1245
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1246
|
+
EXPECT_PRED_FORMAT3(PredFormatFunctor3(),
|
1247
|
+
n1_++,
|
1248
|
+
n2_++,
|
1249
|
+
n3_++);
|
1250
|
+
finished_ = true;
|
1251
|
+
}, "");
|
1252
|
+
}
|
1253
|
+
|
1254
|
+
// Tests a failed EXPECT_PRED_FORMAT3 where the
|
1255
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1256
|
+
TEST_F(EXPECT_PRED_FORMAT3Test, FunctorOnUserTypeFailure) {
|
1257
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1258
|
+
EXPECT_PRED_FORMAT3(PredFormatFunctor3(),
|
1259
|
+
Bool(n1_++),
|
1260
|
+
Bool(n2_++),
|
1261
|
+
Bool(n3_++));
|
1262
|
+
finished_ = true;
|
1263
|
+
}, "");
|
1264
|
+
}
|
1265
|
+
|
1266
|
+
// Tests a successful ASSERT_PRED_FORMAT3 where the
|
1267
|
+
// predicate-formatter is a function on a built-in type (int).
|
1268
|
+
TEST_F(ASSERT_PRED_FORMAT3Test, FunctionOnBuiltInTypeSuccess) {
|
1269
|
+
ASSERT_PRED_FORMAT3(PredFormatFunction3,
|
1270
|
+
++n1_,
|
1271
|
+
++n2_,
|
1272
|
+
++n3_);
|
1273
|
+
finished_ = true;
|
1274
|
+
}
|
1275
|
+
|
1276
|
+
// Tests a successful ASSERT_PRED_FORMAT3 where the
|
1277
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1278
|
+
TEST_F(ASSERT_PRED_FORMAT3Test, FunctionOnUserTypeSuccess) {
|
1279
|
+
ASSERT_PRED_FORMAT3(PredFormatFunction3,
|
1280
|
+
Bool(++n1_),
|
1281
|
+
Bool(++n2_),
|
1282
|
+
Bool(++n3_));
|
1283
|
+
finished_ = true;
|
1284
|
+
}
|
1285
|
+
|
1286
|
+
// Tests a successful ASSERT_PRED_FORMAT3 where the
|
1287
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1288
|
+
TEST_F(ASSERT_PRED_FORMAT3Test, FunctorOnBuiltInTypeSuccess) {
|
1289
|
+
ASSERT_PRED_FORMAT3(PredFormatFunctor3(),
|
1290
|
+
++n1_,
|
1291
|
+
++n2_,
|
1292
|
+
++n3_);
|
1293
|
+
finished_ = true;
|
1294
|
+
}
|
1295
|
+
|
1296
|
+
// Tests a successful ASSERT_PRED_FORMAT3 where the
|
1297
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1298
|
+
TEST_F(ASSERT_PRED_FORMAT3Test, FunctorOnUserTypeSuccess) {
|
1299
|
+
ASSERT_PRED_FORMAT3(PredFormatFunctor3(),
|
1300
|
+
Bool(++n1_),
|
1301
|
+
Bool(++n2_),
|
1302
|
+
Bool(++n3_));
|
1303
|
+
finished_ = true;
|
1304
|
+
}
|
1305
|
+
|
1306
|
+
// Tests a failed ASSERT_PRED_FORMAT3 where the
|
1307
|
+
// predicate-formatter is a function on a built-in type (int).
|
1308
|
+
TEST_F(ASSERT_PRED_FORMAT3Test, FunctionOnBuiltInTypeFailure) {
|
1309
|
+
expected_to_finish_ = false;
|
1310
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1311
|
+
ASSERT_PRED_FORMAT3(PredFormatFunction3,
|
1312
|
+
n1_++,
|
1313
|
+
n2_++,
|
1314
|
+
n3_++);
|
1315
|
+
finished_ = true;
|
1316
|
+
}, "");
|
1317
|
+
}
|
1318
|
+
|
1319
|
+
// Tests a failed ASSERT_PRED_FORMAT3 where the
|
1320
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1321
|
+
TEST_F(ASSERT_PRED_FORMAT3Test, FunctionOnUserTypeFailure) {
|
1322
|
+
expected_to_finish_ = false;
|
1323
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1324
|
+
ASSERT_PRED_FORMAT3(PredFormatFunction3,
|
1325
|
+
Bool(n1_++),
|
1326
|
+
Bool(n2_++),
|
1327
|
+
Bool(n3_++));
|
1328
|
+
finished_ = true;
|
1329
|
+
}, "");
|
1330
|
+
}
|
1331
|
+
|
1332
|
+
// Tests a failed ASSERT_PRED_FORMAT3 where the
|
1333
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1334
|
+
TEST_F(ASSERT_PRED_FORMAT3Test, FunctorOnBuiltInTypeFailure) {
|
1335
|
+
expected_to_finish_ = false;
|
1336
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1337
|
+
ASSERT_PRED_FORMAT3(PredFormatFunctor3(),
|
1338
|
+
n1_++,
|
1339
|
+
n2_++,
|
1340
|
+
n3_++);
|
1341
|
+
finished_ = true;
|
1342
|
+
}, "");
|
1343
|
+
}
|
1344
|
+
|
1345
|
+
// Tests a failed ASSERT_PRED_FORMAT3 where the
|
1346
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1347
|
+
TEST_F(ASSERT_PRED_FORMAT3Test, FunctorOnUserTypeFailure) {
|
1348
|
+
expected_to_finish_ = false;
|
1349
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1350
|
+
ASSERT_PRED_FORMAT3(PredFormatFunctor3(),
|
1351
|
+
Bool(n1_++),
|
1352
|
+
Bool(n2_++),
|
1353
|
+
Bool(n3_++));
|
1354
|
+
finished_ = true;
|
1355
|
+
}, "");
|
1356
|
+
}
|
1357
|
+
// Sample functions/functors for testing 4-ary predicate assertions.
|
1358
|
+
|
1359
|
+
// A 4-ary predicate function.
|
1360
|
+
template <typename T1, typename T2, typename T3, typename T4>
|
1361
|
+
bool PredFunction4(T1 v1, T2 v2, T3 v3, T4 v4) {
|
1362
|
+
return v1 + v2 + v3 + v4 > 0;
|
1363
|
+
}
|
1364
|
+
|
1365
|
+
// The following two functions are needed because a compiler doesn't have
|
1366
|
+
// a context yet to know which template function must be instantiated.
|
1367
|
+
bool PredFunction4Int(int v1, int v2, int v3, int v4) {
|
1368
|
+
return v1 + v2 + v3 + v4 > 0;
|
1369
|
+
}
|
1370
|
+
bool PredFunction4Bool(Bool v1, Bool v2, Bool v3, Bool v4) {
|
1371
|
+
return v1 + v2 + v3 + v4 > 0;
|
1372
|
+
}
|
1373
|
+
|
1374
|
+
// A 4-ary predicate functor.
|
1375
|
+
struct PredFunctor4 {
|
1376
|
+
template <typename T1, typename T2, typename T3, typename T4>
|
1377
|
+
bool operator()(const T1& v1,
|
1378
|
+
const T2& v2,
|
1379
|
+
const T3& v3,
|
1380
|
+
const T4& v4) {
|
1381
|
+
return v1 + v2 + v3 + v4 > 0;
|
1382
|
+
}
|
1383
|
+
};
|
1384
|
+
|
1385
|
+
// A 4-ary predicate-formatter function.
|
1386
|
+
template <typename T1, typename T2, typename T3, typename T4>
|
1387
|
+
testing::AssertionResult PredFormatFunction4(const char* e1,
|
1388
|
+
const char* e2,
|
1389
|
+
const char* e3,
|
1390
|
+
const char* e4,
|
1391
|
+
const T1& v1,
|
1392
|
+
const T2& v2,
|
1393
|
+
const T3& v3,
|
1394
|
+
const T4& v4) {
|
1395
|
+
if (PredFunction4(v1, v2, v3, v4))
|
1396
|
+
return testing::AssertionSuccess();
|
1397
|
+
|
1398
|
+
return testing::AssertionFailure()
|
1399
|
+
<< e1 << " + " << e2 << " + " << e3 << " + " << e4
|
1400
|
+
<< " is expected to be positive, but evaluates to "
|
1401
|
+
<< v1 + v2 + v3 + v4 << ".";
|
1402
|
+
}
|
1403
|
+
|
1404
|
+
// A 4-ary predicate-formatter functor.
|
1405
|
+
struct PredFormatFunctor4 {
|
1406
|
+
template <typename T1, typename T2, typename T3, typename T4>
|
1407
|
+
testing::AssertionResult operator()(const char* e1,
|
1408
|
+
const char* e2,
|
1409
|
+
const char* e3,
|
1410
|
+
const char* e4,
|
1411
|
+
const T1& v1,
|
1412
|
+
const T2& v2,
|
1413
|
+
const T3& v3,
|
1414
|
+
const T4& v4) const {
|
1415
|
+
return PredFormatFunction4(e1, e2, e3, e4, v1, v2, v3, v4);
|
1416
|
+
}
|
1417
|
+
};
|
1418
|
+
|
1419
|
+
// Tests for {EXPECT|ASSERT}_PRED_FORMAT4.
|
1420
|
+
|
1421
|
+
class Predicate4Test : public testing::Test {
|
1422
|
+
protected:
|
1423
|
+
void SetUp() override {
|
1424
|
+
expected_to_finish_ = true;
|
1425
|
+
finished_ = false;
|
1426
|
+
n1_ = n2_ = n3_ = n4_ = 0;
|
1427
|
+
}
|
1428
|
+
|
1429
|
+
void TearDown() override {
|
1430
|
+
// Verifies that each of the predicate's arguments was evaluated
|
1431
|
+
// exactly once.
|
1432
|
+
EXPECT_EQ(1, n1_) <<
|
1433
|
+
"The predicate assertion didn't evaluate argument 2 "
|
1434
|
+
"exactly once.";
|
1435
|
+
EXPECT_EQ(1, n2_) <<
|
1436
|
+
"The predicate assertion didn't evaluate argument 3 "
|
1437
|
+
"exactly once.";
|
1438
|
+
EXPECT_EQ(1, n3_) <<
|
1439
|
+
"The predicate assertion didn't evaluate argument 4 "
|
1440
|
+
"exactly once.";
|
1441
|
+
EXPECT_EQ(1, n4_) <<
|
1442
|
+
"The predicate assertion didn't evaluate argument 5 "
|
1443
|
+
"exactly once.";
|
1444
|
+
|
1445
|
+
// Verifies that the control flow in the test function is expected.
|
1446
|
+
if (expected_to_finish_ && !finished_) {
|
1447
|
+
FAIL() << "The predicate assertion unexpactedly aborted the test.";
|
1448
|
+
} else if (!expected_to_finish_ && finished_) {
|
1449
|
+
FAIL() << "The failed predicate assertion didn't abort the test "
|
1450
|
+
"as expected.";
|
1451
|
+
}
|
1452
|
+
}
|
1453
|
+
|
1454
|
+
// true if and only if the test function is expected to run to finish.
|
1455
|
+
static bool expected_to_finish_;
|
1456
|
+
|
1457
|
+
// true if and only if the test function did run to finish.
|
1458
|
+
static bool finished_;
|
1459
|
+
|
1460
|
+
static int n1_;
|
1461
|
+
static int n2_;
|
1462
|
+
static int n3_;
|
1463
|
+
static int n4_;
|
1464
|
+
};
|
1465
|
+
|
1466
|
+
bool Predicate4Test::expected_to_finish_;
|
1467
|
+
bool Predicate4Test::finished_;
|
1468
|
+
int Predicate4Test::n1_;
|
1469
|
+
int Predicate4Test::n2_;
|
1470
|
+
int Predicate4Test::n3_;
|
1471
|
+
int Predicate4Test::n4_;
|
1472
|
+
|
1473
|
+
typedef Predicate4Test EXPECT_PRED_FORMAT4Test;
|
1474
|
+
typedef Predicate4Test ASSERT_PRED_FORMAT4Test;
|
1475
|
+
typedef Predicate4Test EXPECT_PRED4Test;
|
1476
|
+
typedef Predicate4Test ASSERT_PRED4Test;
|
1477
|
+
|
1478
|
+
// Tests a successful EXPECT_PRED4 where the
|
1479
|
+
// predicate-formatter is a function on a built-in type (int).
|
1480
|
+
TEST_F(EXPECT_PRED4Test, FunctionOnBuiltInTypeSuccess) {
|
1481
|
+
EXPECT_PRED4(PredFunction4Int,
|
1482
|
+
++n1_,
|
1483
|
+
++n2_,
|
1484
|
+
++n3_,
|
1485
|
+
++n4_);
|
1486
|
+
finished_ = true;
|
1487
|
+
}
|
1488
|
+
|
1489
|
+
// Tests a successful EXPECT_PRED4 where the
|
1490
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1491
|
+
TEST_F(EXPECT_PRED4Test, FunctionOnUserTypeSuccess) {
|
1492
|
+
EXPECT_PRED4(PredFunction4Bool,
|
1493
|
+
Bool(++n1_),
|
1494
|
+
Bool(++n2_),
|
1495
|
+
Bool(++n3_),
|
1496
|
+
Bool(++n4_));
|
1497
|
+
finished_ = true;
|
1498
|
+
}
|
1499
|
+
|
1500
|
+
// Tests a successful EXPECT_PRED4 where the
|
1501
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1502
|
+
TEST_F(EXPECT_PRED4Test, FunctorOnBuiltInTypeSuccess) {
|
1503
|
+
EXPECT_PRED4(PredFunctor4(),
|
1504
|
+
++n1_,
|
1505
|
+
++n2_,
|
1506
|
+
++n3_,
|
1507
|
+
++n4_);
|
1508
|
+
finished_ = true;
|
1509
|
+
}
|
1510
|
+
|
1511
|
+
// Tests a successful EXPECT_PRED4 where the
|
1512
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1513
|
+
TEST_F(EXPECT_PRED4Test, FunctorOnUserTypeSuccess) {
|
1514
|
+
EXPECT_PRED4(PredFunctor4(),
|
1515
|
+
Bool(++n1_),
|
1516
|
+
Bool(++n2_),
|
1517
|
+
Bool(++n3_),
|
1518
|
+
Bool(++n4_));
|
1519
|
+
finished_ = true;
|
1520
|
+
}
|
1521
|
+
|
1522
|
+
// Tests a failed EXPECT_PRED4 where the
|
1523
|
+
// predicate-formatter is a function on a built-in type (int).
|
1524
|
+
TEST_F(EXPECT_PRED4Test, FunctionOnBuiltInTypeFailure) {
|
1525
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1526
|
+
EXPECT_PRED4(PredFunction4Int,
|
1527
|
+
n1_++,
|
1528
|
+
n2_++,
|
1529
|
+
n3_++,
|
1530
|
+
n4_++);
|
1531
|
+
finished_ = true;
|
1532
|
+
}, "");
|
1533
|
+
}
|
1534
|
+
|
1535
|
+
// Tests a failed EXPECT_PRED4 where the
|
1536
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1537
|
+
TEST_F(EXPECT_PRED4Test, FunctionOnUserTypeFailure) {
|
1538
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1539
|
+
EXPECT_PRED4(PredFunction4Bool,
|
1540
|
+
Bool(n1_++),
|
1541
|
+
Bool(n2_++),
|
1542
|
+
Bool(n3_++),
|
1543
|
+
Bool(n4_++));
|
1544
|
+
finished_ = true;
|
1545
|
+
}, "");
|
1546
|
+
}
|
1547
|
+
|
1548
|
+
// Tests a failed EXPECT_PRED4 where the
|
1549
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1550
|
+
TEST_F(EXPECT_PRED4Test, FunctorOnBuiltInTypeFailure) {
|
1551
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1552
|
+
EXPECT_PRED4(PredFunctor4(),
|
1553
|
+
n1_++,
|
1554
|
+
n2_++,
|
1555
|
+
n3_++,
|
1556
|
+
n4_++);
|
1557
|
+
finished_ = true;
|
1558
|
+
}, "");
|
1559
|
+
}
|
1560
|
+
|
1561
|
+
// Tests a failed EXPECT_PRED4 where the
|
1562
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1563
|
+
TEST_F(EXPECT_PRED4Test, FunctorOnUserTypeFailure) {
|
1564
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1565
|
+
EXPECT_PRED4(PredFunctor4(),
|
1566
|
+
Bool(n1_++),
|
1567
|
+
Bool(n2_++),
|
1568
|
+
Bool(n3_++),
|
1569
|
+
Bool(n4_++));
|
1570
|
+
finished_ = true;
|
1571
|
+
}, "");
|
1572
|
+
}
|
1573
|
+
|
1574
|
+
// Tests a successful ASSERT_PRED4 where the
|
1575
|
+
// predicate-formatter is a function on a built-in type (int).
|
1576
|
+
TEST_F(ASSERT_PRED4Test, FunctionOnBuiltInTypeSuccess) {
|
1577
|
+
ASSERT_PRED4(PredFunction4Int,
|
1578
|
+
++n1_,
|
1579
|
+
++n2_,
|
1580
|
+
++n3_,
|
1581
|
+
++n4_);
|
1582
|
+
finished_ = true;
|
1583
|
+
}
|
1584
|
+
|
1585
|
+
// Tests a successful ASSERT_PRED4 where the
|
1586
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1587
|
+
TEST_F(ASSERT_PRED4Test, FunctionOnUserTypeSuccess) {
|
1588
|
+
ASSERT_PRED4(PredFunction4Bool,
|
1589
|
+
Bool(++n1_),
|
1590
|
+
Bool(++n2_),
|
1591
|
+
Bool(++n3_),
|
1592
|
+
Bool(++n4_));
|
1593
|
+
finished_ = true;
|
1594
|
+
}
|
1595
|
+
|
1596
|
+
// Tests a successful ASSERT_PRED4 where the
|
1597
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1598
|
+
TEST_F(ASSERT_PRED4Test, FunctorOnBuiltInTypeSuccess) {
|
1599
|
+
ASSERT_PRED4(PredFunctor4(),
|
1600
|
+
++n1_,
|
1601
|
+
++n2_,
|
1602
|
+
++n3_,
|
1603
|
+
++n4_);
|
1604
|
+
finished_ = true;
|
1605
|
+
}
|
1606
|
+
|
1607
|
+
// Tests a successful ASSERT_PRED4 where the
|
1608
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1609
|
+
TEST_F(ASSERT_PRED4Test, FunctorOnUserTypeSuccess) {
|
1610
|
+
ASSERT_PRED4(PredFunctor4(),
|
1611
|
+
Bool(++n1_),
|
1612
|
+
Bool(++n2_),
|
1613
|
+
Bool(++n3_),
|
1614
|
+
Bool(++n4_));
|
1615
|
+
finished_ = true;
|
1616
|
+
}
|
1617
|
+
|
1618
|
+
// Tests a failed ASSERT_PRED4 where the
|
1619
|
+
// predicate-formatter is a function on a built-in type (int).
|
1620
|
+
TEST_F(ASSERT_PRED4Test, FunctionOnBuiltInTypeFailure) {
|
1621
|
+
expected_to_finish_ = false;
|
1622
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1623
|
+
ASSERT_PRED4(PredFunction4Int,
|
1624
|
+
n1_++,
|
1625
|
+
n2_++,
|
1626
|
+
n3_++,
|
1627
|
+
n4_++);
|
1628
|
+
finished_ = true;
|
1629
|
+
}, "");
|
1630
|
+
}
|
1631
|
+
|
1632
|
+
// Tests a failed ASSERT_PRED4 where the
|
1633
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1634
|
+
TEST_F(ASSERT_PRED4Test, FunctionOnUserTypeFailure) {
|
1635
|
+
expected_to_finish_ = false;
|
1636
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1637
|
+
ASSERT_PRED4(PredFunction4Bool,
|
1638
|
+
Bool(n1_++),
|
1639
|
+
Bool(n2_++),
|
1640
|
+
Bool(n3_++),
|
1641
|
+
Bool(n4_++));
|
1642
|
+
finished_ = true;
|
1643
|
+
}, "");
|
1644
|
+
}
|
1645
|
+
|
1646
|
+
// Tests a failed ASSERT_PRED4 where the
|
1647
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1648
|
+
TEST_F(ASSERT_PRED4Test, FunctorOnBuiltInTypeFailure) {
|
1649
|
+
expected_to_finish_ = false;
|
1650
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1651
|
+
ASSERT_PRED4(PredFunctor4(),
|
1652
|
+
n1_++,
|
1653
|
+
n2_++,
|
1654
|
+
n3_++,
|
1655
|
+
n4_++);
|
1656
|
+
finished_ = true;
|
1657
|
+
}, "");
|
1658
|
+
}
|
1659
|
+
|
1660
|
+
// Tests a failed ASSERT_PRED4 where the
|
1661
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1662
|
+
TEST_F(ASSERT_PRED4Test, FunctorOnUserTypeFailure) {
|
1663
|
+
expected_to_finish_ = false;
|
1664
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1665
|
+
ASSERT_PRED4(PredFunctor4(),
|
1666
|
+
Bool(n1_++),
|
1667
|
+
Bool(n2_++),
|
1668
|
+
Bool(n3_++),
|
1669
|
+
Bool(n4_++));
|
1670
|
+
finished_ = true;
|
1671
|
+
}, "");
|
1672
|
+
}
|
1673
|
+
|
1674
|
+
// Tests a successful EXPECT_PRED_FORMAT4 where the
|
1675
|
+
// predicate-formatter is a function on a built-in type (int).
|
1676
|
+
TEST_F(EXPECT_PRED_FORMAT4Test, FunctionOnBuiltInTypeSuccess) {
|
1677
|
+
EXPECT_PRED_FORMAT4(PredFormatFunction4,
|
1678
|
+
++n1_,
|
1679
|
+
++n2_,
|
1680
|
+
++n3_,
|
1681
|
+
++n4_);
|
1682
|
+
finished_ = true;
|
1683
|
+
}
|
1684
|
+
|
1685
|
+
// Tests a successful EXPECT_PRED_FORMAT4 where the
|
1686
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1687
|
+
TEST_F(EXPECT_PRED_FORMAT4Test, FunctionOnUserTypeSuccess) {
|
1688
|
+
EXPECT_PRED_FORMAT4(PredFormatFunction4,
|
1689
|
+
Bool(++n1_),
|
1690
|
+
Bool(++n2_),
|
1691
|
+
Bool(++n3_),
|
1692
|
+
Bool(++n4_));
|
1693
|
+
finished_ = true;
|
1694
|
+
}
|
1695
|
+
|
1696
|
+
// Tests a successful EXPECT_PRED_FORMAT4 where the
|
1697
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1698
|
+
TEST_F(EXPECT_PRED_FORMAT4Test, FunctorOnBuiltInTypeSuccess) {
|
1699
|
+
EXPECT_PRED_FORMAT4(PredFormatFunctor4(),
|
1700
|
+
++n1_,
|
1701
|
+
++n2_,
|
1702
|
+
++n3_,
|
1703
|
+
++n4_);
|
1704
|
+
finished_ = true;
|
1705
|
+
}
|
1706
|
+
|
1707
|
+
// Tests a successful EXPECT_PRED_FORMAT4 where the
|
1708
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1709
|
+
TEST_F(EXPECT_PRED_FORMAT4Test, FunctorOnUserTypeSuccess) {
|
1710
|
+
EXPECT_PRED_FORMAT4(PredFormatFunctor4(),
|
1711
|
+
Bool(++n1_),
|
1712
|
+
Bool(++n2_),
|
1713
|
+
Bool(++n3_),
|
1714
|
+
Bool(++n4_));
|
1715
|
+
finished_ = true;
|
1716
|
+
}
|
1717
|
+
|
1718
|
+
// Tests a failed EXPECT_PRED_FORMAT4 where the
|
1719
|
+
// predicate-formatter is a function on a built-in type (int).
|
1720
|
+
TEST_F(EXPECT_PRED_FORMAT4Test, FunctionOnBuiltInTypeFailure) {
|
1721
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1722
|
+
EXPECT_PRED_FORMAT4(PredFormatFunction4,
|
1723
|
+
n1_++,
|
1724
|
+
n2_++,
|
1725
|
+
n3_++,
|
1726
|
+
n4_++);
|
1727
|
+
finished_ = true;
|
1728
|
+
}, "");
|
1729
|
+
}
|
1730
|
+
|
1731
|
+
// Tests a failed EXPECT_PRED_FORMAT4 where the
|
1732
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1733
|
+
TEST_F(EXPECT_PRED_FORMAT4Test, FunctionOnUserTypeFailure) {
|
1734
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1735
|
+
EXPECT_PRED_FORMAT4(PredFormatFunction4,
|
1736
|
+
Bool(n1_++),
|
1737
|
+
Bool(n2_++),
|
1738
|
+
Bool(n3_++),
|
1739
|
+
Bool(n4_++));
|
1740
|
+
finished_ = true;
|
1741
|
+
}, "");
|
1742
|
+
}
|
1743
|
+
|
1744
|
+
// Tests a failed EXPECT_PRED_FORMAT4 where the
|
1745
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1746
|
+
TEST_F(EXPECT_PRED_FORMAT4Test, FunctorOnBuiltInTypeFailure) {
|
1747
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1748
|
+
EXPECT_PRED_FORMAT4(PredFormatFunctor4(),
|
1749
|
+
n1_++,
|
1750
|
+
n2_++,
|
1751
|
+
n3_++,
|
1752
|
+
n4_++);
|
1753
|
+
finished_ = true;
|
1754
|
+
}, "");
|
1755
|
+
}
|
1756
|
+
|
1757
|
+
// Tests a failed EXPECT_PRED_FORMAT4 where the
|
1758
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1759
|
+
TEST_F(EXPECT_PRED_FORMAT4Test, FunctorOnUserTypeFailure) {
|
1760
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
1761
|
+
EXPECT_PRED_FORMAT4(PredFormatFunctor4(),
|
1762
|
+
Bool(n1_++),
|
1763
|
+
Bool(n2_++),
|
1764
|
+
Bool(n3_++),
|
1765
|
+
Bool(n4_++));
|
1766
|
+
finished_ = true;
|
1767
|
+
}, "");
|
1768
|
+
}
|
1769
|
+
|
1770
|
+
// Tests a successful ASSERT_PRED_FORMAT4 where the
|
1771
|
+
// predicate-formatter is a function on a built-in type (int).
|
1772
|
+
TEST_F(ASSERT_PRED_FORMAT4Test, FunctionOnBuiltInTypeSuccess) {
|
1773
|
+
ASSERT_PRED_FORMAT4(PredFormatFunction4,
|
1774
|
+
++n1_,
|
1775
|
+
++n2_,
|
1776
|
+
++n3_,
|
1777
|
+
++n4_);
|
1778
|
+
finished_ = true;
|
1779
|
+
}
|
1780
|
+
|
1781
|
+
// Tests a successful ASSERT_PRED_FORMAT4 where the
|
1782
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1783
|
+
TEST_F(ASSERT_PRED_FORMAT4Test, FunctionOnUserTypeSuccess) {
|
1784
|
+
ASSERT_PRED_FORMAT4(PredFormatFunction4,
|
1785
|
+
Bool(++n1_),
|
1786
|
+
Bool(++n2_),
|
1787
|
+
Bool(++n3_),
|
1788
|
+
Bool(++n4_));
|
1789
|
+
finished_ = true;
|
1790
|
+
}
|
1791
|
+
|
1792
|
+
// Tests a successful ASSERT_PRED_FORMAT4 where the
|
1793
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1794
|
+
TEST_F(ASSERT_PRED_FORMAT4Test, FunctorOnBuiltInTypeSuccess) {
|
1795
|
+
ASSERT_PRED_FORMAT4(PredFormatFunctor4(),
|
1796
|
+
++n1_,
|
1797
|
+
++n2_,
|
1798
|
+
++n3_,
|
1799
|
+
++n4_);
|
1800
|
+
finished_ = true;
|
1801
|
+
}
|
1802
|
+
|
1803
|
+
// Tests a successful ASSERT_PRED_FORMAT4 where the
|
1804
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1805
|
+
TEST_F(ASSERT_PRED_FORMAT4Test, FunctorOnUserTypeSuccess) {
|
1806
|
+
ASSERT_PRED_FORMAT4(PredFormatFunctor4(),
|
1807
|
+
Bool(++n1_),
|
1808
|
+
Bool(++n2_),
|
1809
|
+
Bool(++n3_),
|
1810
|
+
Bool(++n4_));
|
1811
|
+
finished_ = true;
|
1812
|
+
}
|
1813
|
+
|
1814
|
+
// Tests a failed ASSERT_PRED_FORMAT4 where the
|
1815
|
+
// predicate-formatter is a function on a built-in type (int).
|
1816
|
+
TEST_F(ASSERT_PRED_FORMAT4Test, FunctionOnBuiltInTypeFailure) {
|
1817
|
+
expected_to_finish_ = false;
|
1818
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1819
|
+
ASSERT_PRED_FORMAT4(PredFormatFunction4,
|
1820
|
+
n1_++,
|
1821
|
+
n2_++,
|
1822
|
+
n3_++,
|
1823
|
+
n4_++);
|
1824
|
+
finished_ = true;
|
1825
|
+
}, "");
|
1826
|
+
}
|
1827
|
+
|
1828
|
+
// Tests a failed ASSERT_PRED_FORMAT4 where the
|
1829
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
1830
|
+
TEST_F(ASSERT_PRED_FORMAT4Test, FunctionOnUserTypeFailure) {
|
1831
|
+
expected_to_finish_ = false;
|
1832
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1833
|
+
ASSERT_PRED_FORMAT4(PredFormatFunction4,
|
1834
|
+
Bool(n1_++),
|
1835
|
+
Bool(n2_++),
|
1836
|
+
Bool(n3_++),
|
1837
|
+
Bool(n4_++));
|
1838
|
+
finished_ = true;
|
1839
|
+
}, "");
|
1840
|
+
}
|
1841
|
+
|
1842
|
+
// Tests a failed ASSERT_PRED_FORMAT4 where the
|
1843
|
+
// predicate-formatter is a functor on a built-in type (int).
|
1844
|
+
TEST_F(ASSERT_PRED_FORMAT4Test, FunctorOnBuiltInTypeFailure) {
|
1845
|
+
expected_to_finish_ = false;
|
1846
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1847
|
+
ASSERT_PRED_FORMAT4(PredFormatFunctor4(),
|
1848
|
+
n1_++,
|
1849
|
+
n2_++,
|
1850
|
+
n3_++,
|
1851
|
+
n4_++);
|
1852
|
+
finished_ = true;
|
1853
|
+
}, "");
|
1854
|
+
}
|
1855
|
+
|
1856
|
+
// Tests a failed ASSERT_PRED_FORMAT4 where the
|
1857
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
1858
|
+
TEST_F(ASSERT_PRED_FORMAT4Test, FunctorOnUserTypeFailure) {
|
1859
|
+
expected_to_finish_ = false;
|
1860
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
1861
|
+
ASSERT_PRED_FORMAT4(PredFormatFunctor4(),
|
1862
|
+
Bool(n1_++),
|
1863
|
+
Bool(n2_++),
|
1864
|
+
Bool(n3_++),
|
1865
|
+
Bool(n4_++));
|
1866
|
+
finished_ = true;
|
1867
|
+
}, "");
|
1868
|
+
}
|
1869
|
+
// Sample functions/functors for testing 5-ary predicate assertions.
|
1870
|
+
|
1871
|
+
// A 5-ary predicate function.
|
1872
|
+
template <typename T1, typename T2, typename T3, typename T4, typename T5>
|
1873
|
+
bool PredFunction5(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5) {
|
1874
|
+
return v1 + v2 + v3 + v4 + v5 > 0;
|
1875
|
+
}
|
1876
|
+
|
1877
|
+
// The following two functions are needed because a compiler doesn't have
|
1878
|
+
// a context yet to know which template function must be instantiated.
|
1879
|
+
bool PredFunction5Int(int v1, int v2, int v3, int v4, int v5) {
|
1880
|
+
return v1 + v2 + v3 + v4 + v5 > 0;
|
1881
|
+
}
|
1882
|
+
bool PredFunction5Bool(Bool v1, Bool v2, Bool v3, Bool v4, Bool v5) {
|
1883
|
+
return v1 + v2 + v3 + v4 + v5 > 0;
|
1884
|
+
}
|
1885
|
+
|
1886
|
+
// A 5-ary predicate functor.
|
1887
|
+
struct PredFunctor5 {
|
1888
|
+
template <typename T1, typename T2, typename T3, typename T4, typename T5>
|
1889
|
+
bool operator()(const T1& v1,
|
1890
|
+
const T2& v2,
|
1891
|
+
const T3& v3,
|
1892
|
+
const T4& v4,
|
1893
|
+
const T5& v5) {
|
1894
|
+
return v1 + v2 + v3 + v4 + v5 > 0;
|
1895
|
+
}
|
1896
|
+
};
|
1897
|
+
|
1898
|
+
// A 5-ary predicate-formatter function.
|
1899
|
+
template <typename T1, typename T2, typename T3, typename T4, typename T5>
|
1900
|
+
testing::AssertionResult PredFormatFunction5(const char* e1,
|
1901
|
+
const char* e2,
|
1902
|
+
const char* e3,
|
1903
|
+
const char* e4,
|
1904
|
+
const char* e5,
|
1905
|
+
const T1& v1,
|
1906
|
+
const T2& v2,
|
1907
|
+
const T3& v3,
|
1908
|
+
const T4& v4,
|
1909
|
+
const T5& v5) {
|
1910
|
+
if (PredFunction5(v1, v2, v3, v4, v5))
|
1911
|
+
return testing::AssertionSuccess();
|
1912
|
+
|
1913
|
+
return testing::AssertionFailure()
|
1914
|
+
<< e1 << " + " << e2 << " + " << e3 << " + " << e4 << " + " << e5
|
1915
|
+
<< " is expected to be positive, but evaluates to "
|
1916
|
+
<< v1 + v2 + v3 + v4 + v5 << ".";
|
1917
|
+
}
|
1918
|
+
|
1919
|
+
// A 5-ary predicate-formatter functor.
|
1920
|
+
struct PredFormatFunctor5 {
|
1921
|
+
template <typename T1, typename T2, typename T3, typename T4, typename T5>
|
1922
|
+
testing::AssertionResult operator()(const char* e1,
|
1923
|
+
const char* e2,
|
1924
|
+
const char* e3,
|
1925
|
+
const char* e4,
|
1926
|
+
const char* e5,
|
1927
|
+
const T1& v1,
|
1928
|
+
const T2& v2,
|
1929
|
+
const T3& v3,
|
1930
|
+
const T4& v4,
|
1931
|
+
const T5& v5) const {
|
1932
|
+
return PredFormatFunction5(e1, e2, e3, e4, e5, v1, v2, v3, v4, v5);
|
1933
|
+
}
|
1934
|
+
};
|
1935
|
+
|
1936
|
+
// Tests for {EXPECT|ASSERT}_PRED_FORMAT5.
|
1937
|
+
|
1938
|
+
class Predicate5Test : public testing::Test {
|
1939
|
+
protected:
|
1940
|
+
void SetUp() override {
|
1941
|
+
expected_to_finish_ = true;
|
1942
|
+
finished_ = false;
|
1943
|
+
n1_ = n2_ = n3_ = n4_ = n5_ = 0;
|
1944
|
+
}
|
1945
|
+
|
1946
|
+
void TearDown() override {
|
1947
|
+
// Verifies that each of the predicate's arguments was evaluated
|
1948
|
+
// exactly once.
|
1949
|
+
EXPECT_EQ(1, n1_) <<
|
1950
|
+
"The predicate assertion didn't evaluate argument 2 "
|
1951
|
+
"exactly once.";
|
1952
|
+
EXPECT_EQ(1, n2_) <<
|
1953
|
+
"The predicate assertion didn't evaluate argument 3 "
|
1954
|
+
"exactly once.";
|
1955
|
+
EXPECT_EQ(1, n3_) <<
|
1956
|
+
"The predicate assertion didn't evaluate argument 4 "
|
1957
|
+
"exactly once.";
|
1958
|
+
EXPECT_EQ(1, n4_) <<
|
1959
|
+
"The predicate assertion didn't evaluate argument 5 "
|
1960
|
+
"exactly once.";
|
1961
|
+
EXPECT_EQ(1, n5_) <<
|
1962
|
+
"The predicate assertion didn't evaluate argument 6 "
|
1963
|
+
"exactly once.";
|
1964
|
+
|
1965
|
+
// Verifies that the control flow in the test function is expected.
|
1966
|
+
if (expected_to_finish_ && !finished_) {
|
1967
|
+
FAIL() << "The predicate assertion unexpactedly aborted the test.";
|
1968
|
+
} else if (!expected_to_finish_ && finished_) {
|
1969
|
+
FAIL() << "The failed predicate assertion didn't abort the test "
|
1970
|
+
"as expected.";
|
1971
|
+
}
|
1972
|
+
}
|
1973
|
+
|
1974
|
+
// true if and only if the test function is expected to run to finish.
|
1975
|
+
static bool expected_to_finish_;
|
1976
|
+
|
1977
|
+
// true if and only if the test function did run to finish.
|
1978
|
+
static bool finished_;
|
1979
|
+
|
1980
|
+
static int n1_;
|
1981
|
+
static int n2_;
|
1982
|
+
static int n3_;
|
1983
|
+
static int n4_;
|
1984
|
+
static int n5_;
|
1985
|
+
};
|
1986
|
+
|
1987
|
+
bool Predicate5Test::expected_to_finish_;
|
1988
|
+
bool Predicate5Test::finished_;
|
1989
|
+
int Predicate5Test::n1_;
|
1990
|
+
int Predicate5Test::n2_;
|
1991
|
+
int Predicate5Test::n3_;
|
1992
|
+
int Predicate5Test::n4_;
|
1993
|
+
int Predicate5Test::n5_;
|
1994
|
+
|
1995
|
+
typedef Predicate5Test EXPECT_PRED_FORMAT5Test;
|
1996
|
+
typedef Predicate5Test ASSERT_PRED_FORMAT5Test;
|
1997
|
+
typedef Predicate5Test EXPECT_PRED5Test;
|
1998
|
+
typedef Predicate5Test ASSERT_PRED5Test;
|
1999
|
+
|
2000
|
+
// Tests a successful EXPECT_PRED5 where the
|
2001
|
+
// predicate-formatter is a function on a built-in type (int).
|
2002
|
+
TEST_F(EXPECT_PRED5Test, FunctionOnBuiltInTypeSuccess) {
|
2003
|
+
EXPECT_PRED5(PredFunction5Int,
|
2004
|
+
++n1_,
|
2005
|
+
++n2_,
|
2006
|
+
++n3_,
|
2007
|
+
++n4_,
|
2008
|
+
++n5_);
|
2009
|
+
finished_ = true;
|
2010
|
+
}
|
2011
|
+
|
2012
|
+
// Tests a successful EXPECT_PRED5 where the
|
2013
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
2014
|
+
TEST_F(EXPECT_PRED5Test, FunctionOnUserTypeSuccess) {
|
2015
|
+
EXPECT_PRED5(PredFunction5Bool,
|
2016
|
+
Bool(++n1_),
|
2017
|
+
Bool(++n2_),
|
2018
|
+
Bool(++n3_),
|
2019
|
+
Bool(++n4_),
|
2020
|
+
Bool(++n5_));
|
2021
|
+
finished_ = true;
|
2022
|
+
}
|
2023
|
+
|
2024
|
+
// Tests a successful EXPECT_PRED5 where the
|
2025
|
+
// predicate-formatter is a functor on a built-in type (int).
|
2026
|
+
TEST_F(EXPECT_PRED5Test, FunctorOnBuiltInTypeSuccess) {
|
2027
|
+
EXPECT_PRED5(PredFunctor5(),
|
2028
|
+
++n1_,
|
2029
|
+
++n2_,
|
2030
|
+
++n3_,
|
2031
|
+
++n4_,
|
2032
|
+
++n5_);
|
2033
|
+
finished_ = true;
|
2034
|
+
}
|
2035
|
+
|
2036
|
+
// Tests a successful EXPECT_PRED5 where the
|
2037
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
2038
|
+
TEST_F(EXPECT_PRED5Test, FunctorOnUserTypeSuccess) {
|
2039
|
+
EXPECT_PRED5(PredFunctor5(),
|
2040
|
+
Bool(++n1_),
|
2041
|
+
Bool(++n2_),
|
2042
|
+
Bool(++n3_),
|
2043
|
+
Bool(++n4_),
|
2044
|
+
Bool(++n5_));
|
2045
|
+
finished_ = true;
|
2046
|
+
}
|
2047
|
+
|
2048
|
+
// Tests a failed EXPECT_PRED5 where the
|
2049
|
+
// predicate-formatter is a function on a built-in type (int).
|
2050
|
+
TEST_F(EXPECT_PRED5Test, FunctionOnBuiltInTypeFailure) {
|
2051
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
2052
|
+
EXPECT_PRED5(PredFunction5Int,
|
2053
|
+
n1_++,
|
2054
|
+
n2_++,
|
2055
|
+
n3_++,
|
2056
|
+
n4_++,
|
2057
|
+
n5_++);
|
2058
|
+
finished_ = true;
|
2059
|
+
}, "");
|
2060
|
+
}
|
2061
|
+
|
2062
|
+
// Tests a failed EXPECT_PRED5 where the
|
2063
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
2064
|
+
TEST_F(EXPECT_PRED5Test, FunctionOnUserTypeFailure) {
|
2065
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
2066
|
+
EXPECT_PRED5(PredFunction5Bool,
|
2067
|
+
Bool(n1_++),
|
2068
|
+
Bool(n2_++),
|
2069
|
+
Bool(n3_++),
|
2070
|
+
Bool(n4_++),
|
2071
|
+
Bool(n5_++));
|
2072
|
+
finished_ = true;
|
2073
|
+
}, "");
|
2074
|
+
}
|
2075
|
+
|
2076
|
+
// Tests a failed EXPECT_PRED5 where the
|
2077
|
+
// predicate-formatter is a functor on a built-in type (int).
|
2078
|
+
TEST_F(EXPECT_PRED5Test, FunctorOnBuiltInTypeFailure) {
|
2079
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
2080
|
+
EXPECT_PRED5(PredFunctor5(),
|
2081
|
+
n1_++,
|
2082
|
+
n2_++,
|
2083
|
+
n3_++,
|
2084
|
+
n4_++,
|
2085
|
+
n5_++);
|
2086
|
+
finished_ = true;
|
2087
|
+
}, "");
|
2088
|
+
}
|
2089
|
+
|
2090
|
+
// Tests a failed EXPECT_PRED5 where the
|
2091
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
2092
|
+
TEST_F(EXPECT_PRED5Test, FunctorOnUserTypeFailure) {
|
2093
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
2094
|
+
EXPECT_PRED5(PredFunctor5(),
|
2095
|
+
Bool(n1_++),
|
2096
|
+
Bool(n2_++),
|
2097
|
+
Bool(n3_++),
|
2098
|
+
Bool(n4_++),
|
2099
|
+
Bool(n5_++));
|
2100
|
+
finished_ = true;
|
2101
|
+
}, "");
|
2102
|
+
}
|
2103
|
+
|
2104
|
+
// Tests a successful ASSERT_PRED5 where the
|
2105
|
+
// predicate-formatter is a function on a built-in type (int).
|
2106
|
+
TEST_F(ASSERT_PRED5Test, FunctionOnBuiltInTypeSuccess) {
|
2107
|
+
ASSERT_PRED5(PredFunction5Int,
|
2108
|
+
++n1_,
|
2109
|
+
++n2_,
|
2110
|
+
++n3_,
|
2111
|
+
++n4_,
|
2112
|
+
++n5_);
|
2113
|
+
finished_ = true;
|
2114
|
+
}
|
2115
|
+
|
2116
|
+
// Tests a successful ASSERT_PRED5 where the
|
2117
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
2118
|
+
TEST_F(ASSERT_PRED5Test, FunctionOnUserTypeSuccess) {
|
2119
|
+
ASSERT_PRED5(PredFunction5Bool,
|
2120
|
+
Bool(++n1_),
|
2121
|
+
Bool(++n2_),
|
2122
|
+
Bool(++n3_),
|
2123
|
+
Bool(++n4_),
|
2124
|
+
Bool(++n5_));
|
2125
|
+
finished_ = true;
|
2126
|
+
}
|
2127
|
+
|
2128
|
+
// Tests a successful ASSERT_PRED5 where the
|
2129
|
+
// predicate-formatter is a functor on a built-in type (int).
|
2130
|
+
TEST_F(ASSERT_PRED5Test, FunctorOnBuiltInTypeSuccess) {
|
2131
|
+
ASSERT_PRED5(PredFunctor5(),
|
2132
|
+
++n1_,
|
2133
|
+
++n2_,
|
2134
|
+
++n3_,
|
2135
|
+
++n4_,
|
2136
|
+
++n5_);
|
2137
|
+
finished_ = true;
|
2138
|
+
}
|
2139
|
+
|
2140
|
+
// Tests a successful ASSERT_PRED5 where the
|
2141
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
2142
|
+
TEST_F(ASSERT_PRED5Test, FunctorOnUserTypeSuccess) {
|
2143
|
+
ASSERT_PRED5(PredFunctor5(),
|
2144
|
+
Bool(++n1_),
|
2145
|
+
Bool(++n2_),
|
2146
|
+
Bool(++n3_),
|
2147
|
+
Bool(++n4_),
|
2148
|
+
Bool(++n5_));
|
2149
|
+
finished_ = true;
|
2150
|
+
}
|
2151
|
+
|
2152
|
+
// Tests a failed ASSERT_PRED5 where the
|
2153
|
+
// predicate-formatter is a function on a built-in type (int).
|
2154
|
+
TEST_F(ASSERT_PRED5Test, FunctionOnBuiltInTypeFailure) {
|
2155
|
+
expected_to_finish_ = false;
|
2156
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
2157
|
+
ASSERT_PRED5(PredFunction5Int,
|
2158
|
+
n1_++,
|
2159
|
+
n2_++,
|
2160
|
+
n3_++,
|
2161
|
+
n4_++,
|
2162
|
+
n5_++);
|
2163
|
+
finished_ = true;
|
2164
|
+
}, "");
|
2165
|
+
}
|
2166
|
+
|
2167
|
+
// Tests a failed ASSERT_PRED5 where the
|
2168
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
2169
|
+
TEST_F(ASSERT_PRED5Test, FunctionOnUserTypeFailure) {
|
2170
|
+
expected_to_finish_ = false;
|
2171
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
2172
|
+
ASSERT_PRED5(PredFunction5Bool,
|
2173
|
+
Bool(n1_++),
|
2174
|
+
Bool(n2_++),
|
2175
|
+
Bool(n3_++),
|
2176
|
+
Bool(n4_++),
|
2177
|
+
Bool(n5_++));
|
2178
|
+
finished_ = true;
|
2179
|
+
}, "");
|
2180
|
+
}
|
2181
|
+
|
2182
|
+
// Tests a failed ASSERT_PRED5 where the
|
2183
|
+
// predicate-formatter is a functor on a built-in type (int).
|
2184
|
+
TEST_F(ASSERT_PRED5Test, FunctorOnBuiltInTypeFailure) {
|
2185
|
+
expected_to_finish_ = false;
|
2186
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
2187
|
+
ASSERT_PRED5(PredFunctor5(),
|
2188
|
+
n1_++,
|
2189
|
+
n2_++,
|
2190
|
+
n3_++,
|
2191
|
+
n4_++,
|
2192
|
+
n5_++);
|
2193
|
+
finished_ = true;
|
2194
|
+
}, "");
|
2195
|
+
}
|
2196
|
+
|
2197
|
+
// Tests a failed ASSERT_PRED5 where the
|
2198
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
2199
|
+
TEST_F(ASSERT_PRED5Test, FunctorOnUserTypeFailure) {
|
2200
|
+
expected_to_finish_ = false;
|
2201
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
2202
|
+
ASSERT_PRED5(PredFunctor5(),
|
2203
|
+
Bool(n1_++),
|
2204
|
+
Bool(n2_++),
|
2205
|
+
Bool(n3_++),
|
2206
|
+
Bool(n4_++),
|
2207
|
+
Bool(n5_++));
|
2208
|
+
finished_ = true;
|
2209
|
+
}, "");
|
2210
|
+
}
|
2211
|
+
|
2212
|
+
// Tests a successful EXPECT_PRED_FORMAT5 where the
|
2213
|
+
// predicate-formatter is a function on a built-in type (int).
|
2214
|
+
TEST_F(EXPECT_PRED_FORMAT5Test, FunctionOnBuiltInTypeSuccess) {
|
2215
|
+
EXPECT_PRED_FORMAT5(PredFormatFunction5,
|
2216
|
+
++n1_,
|
2217
|
+
++n2_,
|
2218
|
+
++n3_,
|
2219
|
+
++n4_,
|
2220
|
+
++n5_);
|
2221
|
+
finished_ = true;
|
2222
|
+
}
|
2223
|
+
|
2224
|
+
// Tests a successful EXPECT_PRED_FORMAT5 where the
|
2225
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
2226
|
+
TEST_F(EXPECT_PRED_FORMAT5Test, FunctionOnUserTypeSuccess) {
|
2227
|
+
EXPECT_PRED_FORMAT5(PredFormatFunction5,
|
2228
|
+
Bool(++n1_),
|
2229
|
+
Bool(++n2_),
|
2230
|
+
Bool(++n3_),
|
2231
|
+
Bool(++n4_),
|
2232
|
+
Bool(++n5_));
|
2233
|
+
finished_ = true;
|
2234
|
+
}
|
2235
|
+
|
2236
|
+
// Tests a successful EXPECT_PRED_FORMAT5 where the
|
2237
|
+
// predicate-formatter is a functor on a built-in type (int).
|
2238
|
+
TEST_F(EXPECT_PRED_FORMAT5Test, FunctorOnBuiltInTypeSuccess) {
|
2239
|
+
EXPECT_PRED_FORMAT5(PredFormatFunctor5(),
|
2240
|
+
++n1_,
|
2241
|
+
++n2_,
|
2242
|
+
++n3_,
|
2243
|
+
++n4_,
|
2244
|
+
++n5_);
|
2245
|
+
finished_ = true;
|
2246
|
+
}
|
2247
|
+
|
2248
|
+
// Tests a successful EXPECT_PRED_FORMAT5 where the
|
2249
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
2250
|
+
TEST_F(EXPECT_PRED_FORMAT5Test, FunctorOnUserTypeSuccess) {
|
2251
|
+
EXPECT_PRED_FORMAT5(PredFormatFunctor5(),
|
2252
|
+
Bool(++n1_),
|
2253
|
+
Bool(++n2_),
|
2254
|
+
Bool(++n3_),
|
2255
|
+
Bool(++n4_),
|
2256
|
+
Bool(++n5_));
|
2257
|
+
finished_ = true;
|
2258
|
+
}
|
2259
|
+
|
2260
|
+
// Tests a failed EXPECT_PRED_FORMAT5 where the
|
2261
|
+
// predicate-formatter is a function on a built-in type (int).
|
2262
|
+
TEST_F(EXPECT_PRED_FORMAT5Test, FunctionOnBuiltInTypeFailure) {
|
2263
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
2264
|
+
EXPECT_PRED_FORMAT5(PredFormatFunction5,
|
2265
|
+
n1_++,
|
2266
|
+
n2_++,
|
2267
|
+
n3_++,
|
2268
|
+
n4_++,
|
2269
|
+
n5_++);
|
2270
|
+
finished_ = true;
|
2271
|
+
}, "");
|
2272
|
+
}
|
2273
|
+
|
2274
|
+
// Tests a failed EXPECT_PRED_FORMAT5 where the
|
2275
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
2276
|
+
TEST_F(EXPECT_PRED_FORMAT5Test, FunctionOnUserTypeFailure) {
|
2277
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
2278
|
+
EXPECT_PRED_FORMAT5(PredFormatFunction5,
|
2279
|
+
Bool(n1_++),
|
2280
|
+
Bool(n2_++),
|
2281
|
+
Bool(n3_++),
|
2282
|
+
Bool(n4_++),
|
2283
|
+
Bool(n5_++));
|
2284
|
+
finished_ = true;
|
2285
|
+
}, "");
|
2286
|
+
}
|
2287
|
+
|
2288
|
+
// Tests a failed EXPECT_PRED_FORMAT5 where the
|
2289
|
+
// predicate-formatter is a functor on a built-in type (int).
|
2290
|
+
TEST_F(EXPECT_PRED_FORMAT5Test, FunctorOnBuiltInTypeFailure) {
|
2291
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
2292
|
+
EXPECT_PRED_FORMAT5(PredFormatFunctor5(),
|
2293
|
+
n1_++,
|
2294
|
+
n2_++,
|
2295
|
+
n3_++,
|
2296
|
+
n4_++,
|
2297
|
+
n5_++);
|
2298
|
+
finished_ = true;
|
2299
|
+
}, "");
|
2300
|
+
}
|
2301
|
+
|
2302
|
+
// Tests a failed EXPECT_PRED_FORMAT5 where the
|
2303
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
2304
|
+
TEST_F(EXPECT_PRED_FORMAT5Test, FunctorOnUserTypeFailure) {
|
2305
|
+
EXPECT_NONFATAL_FAILURE({ // NOLINT
|
2306
|
+
EXPECT_PRED_FORMAT5(PredFormatFunctor5(),
|
2307
|
+
Bool(n1_++),
|
2308
|
+
Bool(n2_++),
|
2309
|
+
Bool(n3_++),
|
2310
|
+
Bool(n4_++),
|
2311
|
+
Bool(n5_++));
|
2312
|
+
finished_ = true;
|
2313
|
+
}, "");
|
2314
|
+
}
|
2315
|
+
|
2316
|
+
// Tests a successful ASSERT_PRED_FORMAT5 where the
|
2317
|
+
// predicate-formatter is a function on a built-in type (int).
|
2318
|
+
TEST_F(ASSERT_PRED_FORMAT5Test, FunctionOnBuiltInTypeSuccess) {
|
2319
|
+
ASSERT_PRED_FORMAT5(PredFormatFunction5,
|
2320
|
+
++n1_,
|
2321
|
+
++n2_,
|
2322
|
+
++n3_,
|
2323
|
+
++n4_,
|
2324
|
+
++n5_);
|
2325
|
+
finished_ = true;
|
2326
|
+
}
|
2327
|
+
|
2328
|
+
// Tests a successful ASSERT_PRED_FORMAT5 where the
|
2329
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
2330
|
+
TEST_F(ASSERT_PRED_FORMAT5Test, FunctionOnUserTypeSuccess) {
|
2331
|
+
ASSERT_PRED_FORMAT5(PredFormatFunction5,
|
2332
|
+
Bool(++n1_),
|
2333
|
+
Bool(++n2_),
|
2334
|
+
Bool(++n3_),
|
2335
|
+
Bool(++n4_),
|
2336
|
+
Bool(++n5_));
|
2337
|
+
finished_ = true;
|
2338
|
+
}
|
2339
|
+
|
2340
|
+
// Tests a successful ASSERT_PRED_FORMAT5 where the
|
2341
|
+
// predicate-formatter is a functor on a built-in type (int).
|
2342
|
+
TEST_F(ASSERT_PRED_FORMAT5Test, FunctorOnBuiltInTypeSuccess) {
|
2343
|
+
ASSERT_PRED_FORMAT5(PredFormatFunctor5(),
|
2344
|
+
++n1_,
|
2345
|
+
++n2_,
|
2346
|
+
++n3_,
|
2347
|
+
++n4_,
|
2348
|
+
++n5_);
|
2349
|
+
finished_ = true;
|
2350
|
+
}
|
2351
|
+
|
2352
|
+
// Tests a successful ASSERT_PRED_FORMAT5 where the
|
2353
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
2354
|
+
TEST_F(ASSERT_PRED_FORMAT5Test, FunctorOnUserTypeSuccess) {
|
2355
|
+
ASSERT_PRED_FORMAT5(PredFormatFunctor5(),
|
2356
|
+
Bool(++n1_),
|
2357
|
+
Bool(++n2_),
|
2358
|
+
Bool(++n3_),
|
2359
|
+
Bool(++n4_),
|
2360
|
+
Bool(++n5_));
|
2361
|
+
finished_ = true;
|
2362
|
+
}
|
2363
|
+
|
2364
|
+
// Tests a failed ASSERT_PRED_FORMAT5 where the
|
2365
|
+
// predicate-formatter is a function on a built-in type (int).
|
2366
|
+
TEST_F(ASSERT_PRED_FORMAT5Test, FunctionOnBuiltInTypeFailure) {
|
2367
|
+
expected_to_finish_ = false;
|
2368
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
2369
|
+
ASSERT_PRED_FORMAT5(PredFormatFunction5,
|
2370
|
+
n1_++,
|
2371
|
+
n2_++,
|
2372
|
+
n3_++,
|
2373
|
+
n4_++,
|
2374
|
+
n5_++);
|
2375
|
+
finished_ = true;
|
2376
|
+
}, "");
|
2377
|
+
}
|
2378
|
+
|
2379
|
+
// Tests a failed ASSERT_PRED_FORMAT5 where the
|
2380
|
+
// predicate-formatter is a function on a user-defined type (Bool).
|
2381
|
+
TEST_F(ASSERT_PRED_FORMAT5Test, FunctionOnUserTypeFailure) {
|
2382
|
+
expected_to_finish_ = false;
|
2383
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
2384
|
+
ASSERT_PRED_FORMAT5(PredFormatFunction5,
|
2385
|
+
Bool(n1_++),
|
2386
|
+
Bool(n2_++),
|
2387
|
+
Bool(n3_++),
|
2388
|
+
Bool(n4_++),
|
2389
|
+
Bool(n5_++));
|
2390
|
+
finished_ = true;
|
2391
|
+
}, "");
|
2392
|
+
}
|
2393
|
+
|
2394
|
+
// Tests a failed ASSERT_PRED_FORMAT5 where the
|
2395
|
+
// predicate-formatter is a functor on a built-in type (int).
|
2396
|
+
TEST_F(ASSERT_PRED_FORMAT5Test, FunctorOnBuiltInTypeFailure) {
|
2397
|
+
expected_to_finish_ = false;
|
2398
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
2399
|
+
ASSERT_PRED_FORMAT5(PredFormatFunctor5(),
|
2400
|
+
n1_++,
|
2401
|
+
n2_++,
|
2402
|
+
n3_++,
|
2403
|
+
n4_++,
|
2404
|
+
n5_++);
|
2405
|
+
finished_ = true;
|
2406
|
+
}, "");
|
2407
|
+
}
|
2408
|
+
|
2409
|
+
// Tests a failed ASSERT_PRED_FORMAT5 where the
|
2410
|
+
// predicate-formatter is a functor on a user-defined type (Bool).
|
2411
|
+
TEST_F(ASSERT_PRED_FORMAT5Test, FunctorOnUserTypeFailure) {
|
2412
|
+
expected_to_finish_ = false;
|
2413
|
+
EXPECT_FATAL_FAILURE({ // NOLINT
|
2414
|
+
ASSERT_PRED_FORMAT5(PredFormatFunctor5(),
|
2415
|
+
Bool(n1_++),
|
2416
|
+
Bool(n2_++),
|
2417
|
+
Bool(n3_++),
|
2418
|
+
Bool(n4_++),
|
2419
|
+
Bool(n5_++));
|
2420
|
+
finished_ = true;
|
2421
|
+
}, "");
|
2422
|
+
}
|