ID
stringlengths
36
36
Language
stringclasses
1 value
Repository Name
stringclasses
13 values
File Name
stringlengths
2
48
File Path in Repository
stringlengths
11
111
File Path for Unit Test
stringlengths
13
116
Code
stringlengths
0
278k
Unit Test - (Ground Truth)
stringlengths
78
663k
Code Url
stringlengths
91
198
Test Code Url
stringlengths
93
203
Commit Hash
stringclasses
13 values
def39d7c-185b-4df3-ab96-0c863ee2acb0
cpp
abseil/abseil-cpp
hash_policy_traits
absl/container/internal/hash_policy_traits.h
absl/container/internal/hash_policy_traits_test.cc
#ifndef ABSL_CONTAINER_INTERNAL_HASH_POLICY_TRAITS_H_ #define ABSL_CONTAINER_INTERNAL_HASH_POLICY_TRAITS_H_ #include <cstddef> #include <memory> #include <new> #include <type_traits> #include <utility> #include "absl/container/internal/common_policy_traits.h" #include "absl/meta/type_traits.h" namespace absl { ABSL_NAM...
#include "absl/container/internal/hash_policy_traits.h" #include <cstddef> #include <functional> #include <memory> #include <new> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/container/internal/container_memory.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace container_internal { namespace { using...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/container/internal/hash_policy_traits.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/container/internal/hash_policy_traits_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
818c848f-fc2a-436f-9cfd-302b0d2cda6a
cpp
abseil/abseil-cpp
hash_policy_testing
absl/container/internal/hash_policy_testing.h
absl/container/internal/hash_policy_testing_test.cc
#ifndef ABSL_CONTAINER_INTERNAL_HASH_POLICY_TESTING_H_ #define ABSL_CONTAINER_INTERNAL_HASH_POLICY_TESTING_H_ #include <cstdlib> #include <limits> #include <memory> #include <ostream> #include <type_traits> #include <utility> #include <vector> #include "absl/hash/hash.h" #include "absl/strings/string_view.h" namespace ...
#include "absl/container/internal/hash_policy_testing.h" #include "gtest/gtest.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace container_internal { namespace { TEST(_, Hash) { StatefulTestingHash h1; EXPECT_EQ(1, h1.id()); StatefulTestingHash h2; EXPECT_EQ(2, h2.id()); StatefulTestingHash h1c(h1); EXPECT...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/container/internal/hash_policy_testing.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/container/internal/hash_policy_testing_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
5f713565-a2b4-48a7-aeea-db9993e84384
cpp
abseil/abseil-cpp
common_policy_traits
absl/container/internal/common_policy_traits.h
absl/container/internal/common_policy_traits_test.cc
#ifndef ABSL_CONTAINER_INTERNAL_COMMON_POLICY_TRAITS_H_ #define ABSL_CONTAINER_INTERNAL_COMMON_POLICY_TRAITS_H_ #include <cstddef> #include <cstring> #include <memory> #include <new> #include <type_traits> #include <utility> #include "absl/meta/type_traits.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace container_in...
#include "absl/container/internal/common_policy_traits.h" #include <functional> #include <memory> #include <type_traits> #include <utility> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/config.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace container_internal { namespace { using ::testing::Mo...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/container/internal/common_policy_traits.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/container/internal/common_policy_traits_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
724bea7e-edc7-4246-b9c8-b4da79bb7cdb
cpp
abseil/abseil-cpp
bits
absl/numeric/internal/bits.h
absl/numeric/bits_test.cc
#ifndef ABSL_NUMERIC_INTERNAL_BITS_H_ #define ABSL_NUMERIC_INTERNAL_BITS_H_ #include <cstdint> #include <limits> #include <type_traits> #if defined(_MSC_VER) && !defined(__clang__) #include <intrin.h> #endif #include "absl/base/attributes.h" #include "absl/base/config.h" #if defined(__GNUC__) && !defined(__clang__) #de...
#include "absl/numeric/bits.h" #include <limits> #include <type_traits> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/random/random.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace { template <typename IntT> class IntegerTypesTest : public ::testing::Test {}; using OneByteIntegerTypes = ::testing::...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/numeric/internal/bits.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/numeric/bits_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
f3a36820-fd8a-4ade-adf9-85e9fe96b397
cpp
abseil/abseil-cpp
cleanup
absl/cleanup/internal/cleanup.h
absl/cleanup/cleanup_test.cc
#ifndef ABSL_CLEANUP_INTERNAL_CLEANUP_H_ #define ABSL_CLEANUP_INTERNAL_CLEANUP_H_ #include <new> #include <type_traits> #include <utility> #include "absl/base/internal/invoke.h" #include "absl/base/macros.h" #include "absl/base/thread_annotations.h" #include "absl/utility/utility.h" namespace absl { ABSL_NAMESPACE_BEGI...
#include "absl/cleanup/cleanup.h" #include <functional> #include <type_traits> #include <utility> #include "gtest/gtest.h" #include "absl/base/config.h" #include "absl/utility/utility.h" namespace { using Tag = absl::cleanup_internal::Tag; template <typename Type1, typename Type2> constexpr bool IsSame() { return (st...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/cleanup/internal/cleanup.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/cleanup/cleanup_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
f3e68bf1-a58d-4abf-a35d-59676e9bf3a6
cpp
abseil/abseil-cpp
sample_recorder
absl/profiling/internal/sample_recorder.h
absl/profiling/internal/sample_recorder_test.cc
#ifndef ABSL_PROFILING_INTERNAL_SAMPLE_RECORDER_H_ #define ABSL_PROFILING_INTERNAL_SAMPLE_RECORDER_H_ #include <atomic> #include <cstddef> #include <functional> #include "absl/base/config.h" #include "absl/base/thread_annotations.h" #include "absl/synchronization/mutex.h" #include "absl/time/time.h" namespace absl { AB...
#include "absl/profiling/internal/sample_recorder.h" #include <atomic> #include <random> #include <vector> #include "gmock/gmock.h" #include "absl/base/thread_annotations.h" #include "absl/synchronization/internal/thread_pool.h" #include "absl/synchronization/mutex.h" #include "absl/synchronization/notification.h" #inc...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/profiling/internal/sample_recorder.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/profiling/internal/sample_recorder_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
cd4d6a35-82ce-47f3-b580-f9949f4f1774
cpp
abseil/abseil-cpp
structured
absl/log/internal/structured.h
absl/log/structured_test.cc
#ifndef ABSL_LOG_INTERNAL_STRUCTURED_H_ #define ABSL_LOG_INTERNAL_STRUCTURED_H_ #include <ostream> #include "absl/base/config.h" #include "absl/log/internal/log_message.h" #include "absl/strings/string_view.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace log_internal { class ABSL_MUST_USE_RESULT AsLiteralImpl final ...
#include "absl/log/structured.h" #include <ios> #include <sstream> #include <string> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/attributes.h" #include "absl/log/internal/test_helpers.h" #include "absl/log/internal/test_matchers.h" #include "absl/log/log.h" #include "absl/log/scoped_mock_log.h...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/log/internal/structured.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/log/structured_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
a08d2fce-61e5-473e-aede-407232bb0d24
cpp
abseil/abseil-cpp
log_streamer
absl/log/log_streamer.h
absl/log/log_streamer_test.cc
#ifndef ABSL_LOG_LOG_STREAMER_H_ #define ABSL_LOG_LOG_STREAMER_H_ #include <ios> #include <memory> #include <ostream> #include <string> #include <utility> #include "absl/base/config.h" #include "absl/base/log_severity.h" #include "absl/log/absl_log.h" #include "absl/strings/internal/ostringstream.h" #include "absl/stri...
#include "absl/log/log_streamer.h" #include <ios> #include <iostream> #include <utility> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/attributes.h" #include "absl/base/internal/sysinfo.h" #include "absl/base/log_severity.h" #include "absl/log/internal/test_actions.h" #include "absl/log/internal...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/log/log_streamer.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/log/log_streamer_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
71b98cd2-6b0d-4e90-8db5-f7c67caeea68
cpp
abseil/abseil-cpp
check
absl/log/check.h
absl/log/check_test.cc
#ifndef ABSL_LOG_CHECK_H_ #define ABSL_LOG_CHECK_H_ #include "absl/log/internal/check_impl.h" #include "absl/log/internal/check_op.h" #include "absl/log/internal/conditions.h" #include "absl/log/internal/log_message.h" #include "absl/log/internal/strip.h" #define CHECK(condition) ABSL_LOG_INTERNAL_CHE...
#include "absl/log/check.h" #define ABSL_TEST_CHECK CHECK #define ABSL_TEST_CHECK_OK CHECK_OK #define ABSL_TEST_CHECK_EQ CHECK_EQ #define ABSL_TEST_CHECK_NE CHECK_NE #define ABSL_TEST_CHECK_GE CHECK_GE #define ABSL_TEST_CHECK_LE CHECK_LE #define ABSL_TEST_CHECK_GT CHECK_GT #define ABSL_TEST_CHECK_LT CHECK_LT #define AB...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/log/check.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/log/check_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
a51f6477-59f1-4381-9f29-e283489b4514
cpp
abseil/abseil-cpp
vlog_is_on
absl/log/vlog_is_on.h
absl/log/vlog_is_on_test.cc
#ifndef ABSL_LOG_VLOG_IS_ON_H_ #define ABSL_LOG_VLOG_IS_ON_H_ #include "absl/log/absl_vlog_is_on.h" #define VLOG_IS_ON(verbose_level) ABSL_VLOG_IS_ON(verbose_level) #endif
#include "absl/log/vlog_is_on.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/log_severity.h" #include "absl/flags/flag.h" #include "absl/log/flags.h" #include "absl/log/globals.h" #include "absl/log/log.h" #include "absl/log/scoped_mock_log.h" #include "absl/types/optional.h" namespace { using...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/log/vlog_is_on.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/log/vlog_is_on_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
93c98b2f-f94c-4951-b330-76c929dd1705
cpp
abseil/abseil-cpp
absl_check
absl/log/absl_check.h
absl/log/absl_check_test.cc
#ifndef ABSL_LOG_ABSL_CHECK_H_ #define ABSL_LOG_ABSL_CHECK_H_ #include "absl/log/internal/check_impl.h" #define ABSL_CHECK(condition) \ ABSL_LOG_INTERNAL_CHECK_IMPL((condition), #condition) #define ABSL_QCHECK(condition) \ ABSL_LOG_INTERNAL_QCHECK_IMPL((condition), #condition) #define ABSL_PCHECK(condition) \ ABS...
#include "absl/log/absl_check.h" #define ABSL_TEST_CHECK ABSL_CHECK #define ABSL_TEST_CHECK_OK ABSL_CHECK_OK #define ABSL_TEST_CHECK_EQ ABSL_CHECK_EQ #define ABSL_TEST_CHECK_NE ABSL_CHECK_NE #define ABSL_TEST_CHECK_GE ABSL_CHECK_GE #define ABSL_TEST_CHECK_LE ABSL_CHECK_LE #define ABSL_TEST_CHECK_GT ABSL_CHECK_GT #defin...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/log/absl_check.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/log/absl_check_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
4e2fd81d-47ea-45e7-a4dd-dcd3075df80d
cpp
abseil/abseil-cpp
poisson_distribution
absl/random/poisson_distribution.h
absl/random/poisson_distribution_test.cc
#ifndef ABSL_RANDOM_POISSON_DISTRIBUTION_H_ #define ABSL_RANDOM_POISSON_DISTRIBUTION_H_ #include <cassert> #include <cmath> #include <istream> #include <limits> #include <ostream> #include <type_traits> #include "absl/random/internal/fast_uniform_bits.h" #include "absl/random/internal/fastmath.h" #include "absl/random/...
#include "absl/random/poisson_distribution.h" #include <algorithm> #include <cstddef> #include <cstdint> #include <iterator> #include <random> #include <sstream> #include <string> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/macros.h" #include "absl/container/flat_hash_map.h" ...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/poisson_distribution.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/poisson_distribution_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
7e858b4c-c1de-484e-a11b-a26d73efd5ce
cpp
abseil/abseil-cpp
bit_gen_ref
absl/random/bit_gen_ref.h
absl/random/bit_gen_ref_test.cc
#ifndef ABSL_RANDOM_BIT_GEN_REF_H_ #define ABSL_RANDOM_BIT_GEN_REF_H_ #include <limits> #include <type_traits> #include <utility> #include "absl/base/attributes.h" #include "absl/base/internal/fast_type_id.h" #include "absl/base/macros.h" #include "absl/meta/type_traits.h" #include "absl/random/internal/distribution_ca...
#include "absl/random/bit_gen_ref.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/internal/fast_type_id.h" #include "absl/random/internal/sequence_urbg.h" #include "absl/random/random.h" namespace absl { ABSL_NAMESPACE_BEGIN class ConstBitGen { public: using result_type = absl::BitGen::resul...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/bit_gen_ref.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/bit_gen_ref_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
e0f8c4ea-4899-4862-84f8-9544cc6734b4
cpp
abseil/abseil-cpp
uniform_int_distribution
absl/random/uniform_int_distribution.h
absl/random/uniform_int_distribution_test.cc
#ifndef ABSL_RANDOM_UNIFORM_INT_DISTRIBUTION_H_ #define ABSL_RANDOM_UNIFORM_INT_DISTRIBUTION_H_ #include <cassert> #include <istream> #include <limits> #include <type_traits> #include "absl/base/optimization.h" #include "absl/random/internal/fast_uniform_bits.h" #include "absl/random/internal/iostream_state_saver.h" #i...
#include "absl/random/uniform_int_distribution.h" #include <cmath> #include <cstdint> #include <iterator> #include <random> #include <sstream> #include <string> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/log/log.h" #include "absl/random/internal/chi_square.h" #include "absl/rando...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/uniform_int_distribution.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/uniform_int_distribution_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
27394261-aac9-4dc4-be63-5a2f30536a7e
cpp
abseil/abseil-cpp
distributions
absl/random/distributions.h
absl/random/distributions_test.cc
#ifndef ABSL_RANDOM_DISTRIBUTIONS_H_ #define ABSL_RANDOM_DISTRIBUTIONS_H_ #include <limits> #include <type_traits> #include "absl/base/config.h" #include "absl/base/internal/inline_variable.h" #include "absl/meta/type_traits.h" #include "absl/random/bernoulli_distribution.h" #include "absl/random/beta_distribution.h" #...
#include "absl/random/distributions.h" #include <cfloat> #include <cmath> #include <cstdint> #include <limits> #include <type_traits> #include <utility> #include <vector> #include "gtest/gtest.h" #include "absl/meta/type_traits.h" #include "absl/numeric/int128.h" #include "absl/random/internal/distribution_test_util.h"...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/distributions.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/distributions_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
6d4b58ec-0bbb-4003-9e37-3c759e3179f7
cpp
abseil/abseil-cpp
uniform_real_distribution
absl/random/uniform_real_distribution.h
absl/random/uniform_real_distribution_test.cc
#ifndef ABSL_RANDOM_UNIFORM_REAL_DISTRIBUTION_H_ #define ABSL_RANDOM_UNIFORM_REAL_DISTRIBUTION_H_ #include <cassert> #include <cmath> #include <cstdint> #include <istream> #include <limits> #include <type_traits> #include "absl/meta/type_traits.h" #include "absl/random/internal/fast_uniform_bits.h" #include "absl/rando...
#include "absl/random/uniform_real_distribution.h" #include <cfloat> #include <cmath> #include <cstdint> #include <iterator> #include <random> #include <sstream> #include <string> #include <type_traits> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/log/log.h" #include "absl/numeric/...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/uniform_real_distribution.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/uniform_real_distribution_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
7e1f6c5e-90d3-42ee-80fe-610b0813dc09
cpp
abseil/abseil-cpp
mocking_bit_gen
absl/random/mocking_bit_gen.h
absl/random/mocking_bit_gen_test.cc
#ifndef ABSL_RANDOM_MOCKING_BIT_GEN_H_ #define ABSL_RANDOM_MOCKING_BIT_GEN_H_ #include <memory> #include <tuple> #include <type_traits> #include <utility> #include "gmock/gmock.h" #include "absl/base/attributes.h" #include "absl/base/config.h" #include "absl/base/internal/fast_type_id.h" #include "absl/container/flat_h...
#include "absl/random/mocking_bit_gen.h" #include <cmath> #include <cstddef> #include <cstdint> #include <iterator> #include <numeric> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest-spi.h" #include "gtest/gtest.h" #include "absl/random/bit_gen_ref.h" #include "absl/random/mock_distributions.h" #includ...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/mocking_bit_gen.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/mocking_bit_gen_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
f924b834-016b-4653-93b1-644440671e27
cpp
abseil/abseil-cpp
bernoulli_distribution
absl/random/bernoulli_distribution.h
absl/random/bernoulli_distribution_test.cc
#ifndef ABSL_RANDOM_BERNOULLI_DISTRIBUTION_H_ #define ABSL_RANDOM_BERNOULLI_DISTRIBUTION_H_ #include <cstdint> #include <istream> #include <limits> #include "absl/base/optimization.h" #include "absl/random/internal/fast_uniform_bits.h" #include "absl/random/internal/iostream_state_saver.h" namespace absl { ABSL_NAMESPA...
#include "absl/random/bernoulli_distribution.h" #include <cmath> #include <cstddef> #include <random> #include <sstream> #include <utility> #include "gtest/gtest.h" #include "absl/random/internal/pcg_engine.h" #include "absl/random/internal/sequence_urbg.h" #include "absl/random/random.h" namespace { class BernoulliTes...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/bernoulli_distribution.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/bernoulli_distribution_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
ad4e9a72-a8db-425a-9ae6-e50292248763
cpp
abseil/abseil-cpp
log_uniform_int_distribution
absl/random/log_uniform_int_distribution.h
absl/random/log_uniform_int_distribution_test.cc
#ifndef ABSL_RANDOM_LOG_UNIFORM_INT_DISTRIBUTION_H_ #define ABSL_RANDOM_LOG_UNIFORM_INT_DISTRIBUTION_H_ #include <algorithm> #include <cassert> #include <cmath> #include <istream> #include <limits> #include <ostream> #include <type_traits> #include "absl/numeric/bits.h" #include "absl/random/internal/fastmath.h" #inclu...
#include "absl/random/log_uniform_int_distribution.h" #include <cstddef> #include <cstdint> #include <iterator> #include <random> #include <sstream> #include <string> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/log/log.h" #include "absl/random/internal/chi_square.h" #include "absl...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/log_uniform_int_distribution.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/log_uniform_int_distribution_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
22374c95-74ad-4522-a47e-9eb6cff3e0a9
cpp
abseil/abseil-cpp
mock_distributions
absl/random/mock_distributions.h
absl/random/mock_distributions_test.cc
#ifndef ABSL_RANDOM_MOCK_DISTRIBUTIONS_H_ #define ABSL_RANDOM_MOCK_DISTRIBUTIONS_H_ #include "absl/base/config.h" #include "absl/random/bernoulli_distribution.h" #include "absl/random/beta_distribution.h" #include "absl/random/distributions.h" #include "absl/random/exponential_distribution.h" #include "absl/random/gaus...
#include "absl/random/mock_distributions.h" #include <cmath> #include <limits> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/numeric/int128.h" #include "absl/random/distributions.h" #include "absl/random/mocking_bit_gen.h" #include "absl/random/random.h" namespace { using ::testing::Return; TEST(Mock...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/mock_distributions.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/mock_distributions_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
26eccd9e-9633-4d68-9b75-cb9b02e992db
cpp
abseil/abseil-cpp
beta_distribution
absl/random/beta_distribution.h
absl/random/beta_distribution_test.cc
#ifndef ABSL_RANDOM_BETA_DISTRIBUTION_H_ #define ABSL_RANDOM_BETA_DISTRIBUTION_H_ #include <cassert> #include <cmath> #include <istream> #include <limits> #include <ostream> #include <type_traits> #include "absl/meta/type_traits.h" #include "absl/random/internal/fast_uniform_bits.h" #include "absl/random/internal/fastm...
#include "absl/random/beta_distribution.h" #include <algorithm> #include <cfloat> #include <cstddef> #include <cstdint> #include <iterator> #include <random> #include <sstream> #include <string> #include <type_traits> #include <unordered_map> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest.h" #include ...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/beta_distribution.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/beta_distribution_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
49de6d11-ef16-4650-b8b9-f2614c7904de
cpp
abseil/abseil-cpp
zipf_distribution
absl/random/zipf_distribution.h
absl/random/zipf_distribution_test.cc
#ifndef ABSL_RANDOM_ZIPF_DISTRIBUTION_H_ #define ABSL_RANDOM_ZIPF_DISTRIBUTION_H_ #include <cassert> #include <cmath> #include <istream> #include <limits> #include <ostream> #include <type_traits> #include "absl/random/internal/iostream_state_saver.h" #include "absl/random/internal/traits.h" #include "absl/random/unifo...
#include "absl/random/zipf_distribution.h" #include <algorithm> #include <cstddef> #include <cstdint> #include <iterator> #include <random> #include <string> #include <utility> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/log/log.h" #include "absl/random/internal/chi_square.h" #inc...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/zipf_distribution.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/zipf_distribution_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
e0837984-608a-4366-a9d6-6e4cd4a9f979
cpp
abseil/abseil-cpp
exponential_distribution
absl/random/exponential_distribution.h
absl/random/exponential_distribution_test.cc
#ifndef ABSL_RANDOM_EXPONENTIAL_DISTRIBUTION_H_ #define ABSL_RANDOM_EXPONENTIAL_DISTRIBUTION_H_ #include <cassert> #include <cmath> #include <istream> #include <limits> #include <type_traits> #include "absl/meta/type_traits.h" #include "absl/random/internal/fast_uniform_bits.h" #include "absl/random/internal/generate_r...
#include "absl/random/exponential_distribution.h" #include <algorithm> #include <cfloat> #include <cmath> #include <cstddef> #include <cstdint> #include <iterator> #include <limits> #include <random> #include <sstream> #include <string> #include <type_traits> #include <vector> #include "gmock/gmock.h" #include "gtest/g...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/exponential_distribution.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/exponential_distribution_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
3560fe2e-68b3-49ac-ba97-3b1490679161
cpp
abseil/abseil-cpp
explicit_seed_seq
absl/random/internal/explicit_seed_seq.h
absl/random/internal/explicit_seed_seq_test.cc
#ifndef ABSL_RANDOM_INTERNAL_EXPLICIT_SEED_SEQ_H_ #define ABSL_RANDOM_INTERNAL_EXPLICIT_SEED_SEQ_H_ #include <algorithm> #include <cstddef> #include <cstdint> #include <initializer_list> #include <iterator> #include <vector> #include "absl/base/config.h" #include "absl/base/internal/endian.h" namespace absl { ABSL_NAME...
#include "absl/random/internal/explicit_seed_seq.h" #include <iterator> #include <random> #include <utility> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/random/seed_sequences.h" namespace { using ::absl::random_internal::ExplicitSeedSeq; template <typename Sseq> bool ConformsToInterface() { { Sse...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/explicit_seed_seq.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/explicit_seed_seq_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
13c74551-8b9b-4b0c-9ad5-cb802b4f4b9c
cpp
abseil/abseil-cpp
fast_uniform_bits
absl/random/internal/fast_uniform_bits.h
absl/random/internal/fast_uniform_bits_test.cc
#ifndef ABSL_RANDOM_INTERNAL_FAST_UNIFORM_BITS_H_ #define ABSL_RANDOM_INTERNAL_FAST_UNIFORM_BITS_H_ #include <cstddef> #include <cstdint> #include <limits> #include <type_traits> #include "absl/base/config.h" #include "absl/meta/type_traits.h" #include "absl/random/internal/traits.h" namespace absl { ABSL_NAMESPACE_BEG...
#include "absl/random/internal/fast_uniform_bits.h" #include <random> #include "gtest/gtest.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace random_internal { namespace { template <typename IntType> class FastUniformBitsTypedTest : public ::testing::Test {}; using IntTypes = ::testing::Types<uint8_t, uint16_t, uint32...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/fast_uniform_bits.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/fast_uniform_bits_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
f984bfc5-570a-4e15-a5fa-d3f2a282abf0
cpp
abseil/abseil-cpp
iostream_state_saver
absl/random/internal/iostream_state_saver.h
absl/random/internal/iostream_state_saver_test.cc
#ifndef ABSL_RANDOM_INTERNAL_IOSTREAM_STATE_SAVER_H_ #define ABSL_RANDOM_INTERNAL_IOSTREAM_STATE_SAVER_H_ #include <cmath> #include <iostream> #include <limits> #include <type_traits> #include "absl/meta/type_traits.h" #include "absl/numeric/int128.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace random_internal { te...
#include "absl/random/internal/iostream_state_saver.h" #include <errno.h> #include <stdio.h> #include <sstream> #include <string> #include "gtest/gtest.h" namespace { using absl::random_internal::make_istream_state_saver; using absl::random_internal::make_ostream_state_saver; using absl::random_internal::stream_precisi...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/iostream_state_saver.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/iostream_state_saver_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
847a5dd2-48c1-4e5d-839a-ac7295ef96e3
cpp
abseil/abseil-cpp
traits
absl/random/internal/traits.h
absl/random/internal/traits_test.cc
#ifndef ABSL_RANDOM_INTERNAL_TRAITS_H_ #define ABSL_RANDOM_INTERNAL_TRAITS_H_ #include <cstdint> #include <limits> #include <type_traits> #include "absl/base/config.h" #include "absl/numeric/bits.h" #include "absl/numeric/int128.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace random_internal { template <typename A, ...
#include "absl/random/internal/traits.h" #include <cstdint> #include <type_traits> #include "gtest/gtest.h" namespace { using absl::random_internal::is_widening_convertible; template <typename T> void CheckWideningConvertsToSelf() { static_assert(is_widening_convertible<T, T>::value, "Type is not conv...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/traits.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/traits_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
31b643bb-7a3b-4dc4-9c36-efa9bd166423
cpp
abseil/abseil-cpp
nonsecure_base
absl/random/internal/nonsecure_base.h
absl/random/internal/nonsecure_base_test.cc
#ifndef ABSL_RANDOM_INTERNAL_NONSECURE_BASE_H_ #define ABSL_RANDOM_INTERNAL_NONSECURE_BASE_H_ #include <algorithm> #include <cstdint> #include <iterator> #include <type_traits> #include <utility> #include <vector> #include "absl/base/macros.h" #include "absl/container/inlined_vector.h" #include "absl/meta/type_traits.h...
#include "absl/random/internal/nonsecure_base.h" #include <algorithm> #include <cstdint> #include <iostream> #include <memory> #include <random> #include <sstream> #include "gtest/gtest.h" #include "absl/random/distributions.h" #include "absl/random/random.h" #include "absl/strings/str_cat.h" namespace { using ExampleN...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/nonsecure_base.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/nonsecure_base_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
a89c744e-fd86-4576-97ff-88a73e955d7c
cpp
abseil/abseil-cpp
fastmath
absl/random/internal/fastmath.h
absl/random/internal/fastmath_test.cc
#ifndef ABSL_RANDOM_INTERNAL_FASTMATH_H_ #define ABSL_RANDOM_INTERNAL_FASTMATH_H_ #include <cassert> #include <cmath> #include <cstdint> #include "absl/numeric/bits.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace random_internal { inline int IntLog2Floor(uint64_t n) { return (n <= 1) ? 0 : (63 - countl_zero(n)); }...
#include "absl/random/internal/fastmath.h" #include "gtest/gtest.h" #if defined(__native_client__) || defined(__EMSCRIPTEN__) #define ABSL_RANDOM_INACCURATE_LOG2 #endif namespace { TEST(FastMathTest, IntLog2FloorTest) { using absl::random_internal::IntLog2Floor; constexpr uint64_t kZero = 0; EXPECT_EQ(0, IntLog2F...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/fastmath.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/fastmath_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
1e57cfe2-0c5a-4707-a50b-7bf3a0666fa5
cpp
abseil/abseil-cpp
uniform_helper
absl/random/internal/uniform_helper.h
absl/random/internal/uniform_helper_test.cc
#ifndef ABSL_RANDOM_INTERNAL_UNIFORM_HELPER_H_ #define ABSL_RANDOM_INTERNAL_UNIFORM_HELPER_H_ #include <cmath> #include <limits> #include <type_traits> #include "absl/base/config.h" #include "absl/meta/type_traits.h" #include "absl/random/internal/traits.h" namespace absl { ABSL_NAMESPACE_BEGIN template <typename IntTy...
#include "absl/random/internal/uniform_helper.h" #include <cmath> #include <cstdint> #include <random> #include "gtest/gtest.h" namespace { using absl::IntervalClosedClosedTag; using absl::IntervalClosedOpenTag; using absl::IntervalOpenClosedTag; using absl::IntervalOpenOpenTag; using absl::random_internal::uniform_inf...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/uniform_helper.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/uniform_helper_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
288f78e0-d9c8-4919-8c6f-aad0fdd90c4a
cpp
abseil/abseil-cpp
randen_engine
absl/random/internal/randen_engine.h
absl/random/internal/randen_engine_test.cc
#ifndef ABSL_RANDOM_INTERNAL_RANDEN_ENGINE_H_ #define ABSL_RANDOM_INTERNAL_RANDEN_ENGINE_H_ #include <algorithm> #include <cinttypes> #include <cstdlib> #include <iostream> #include <iterator> #include <limits> #include <type_traits> #include "absl/base/internal/endian.h" #include "absl/meta/type_traits.h" #include "ab...
#include "absl/random/internal/randen_engine.h" #include <algorithm> #include <bitset> #include <random> #include <sstream> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/log/log.h" #include "absl/random/internal/explicit_seed_seq.h" #include "absl/strings/str_cat.h" #include "absl/time/clock.h" #defi...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/randen_engine.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/randen_engine_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
7159b4fd-095b-4682-92bb-0b9ec2944fde
cpp
abseil/abseil-cpp
salted_seed_seq
absl/random/internal/salted_seed_seq.h
absl/random/internal/salted_seed_seq_test.cc
#ifndef ABSL_RANDOM_INTERNAL_SALTED_SEED_SEQ_H_ #define ABSL_RANDOM_INTERNAL_SALTED_SEED_SEQ_H_ #include <cstdint> #include <cstdlib> #include <initializer_list> #include <iterator> #include <memory> #include <type_traits> #include <utility> #include <vector> #include "absl/container/inlined_vector.h" #include "absl/me...
#include "absl/random/internal/salted_seed_seq.h" #include <iterator> #include <random> #include <utility> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest.h" using absl::random_internal::GetSaltMaterial; using absl::random_internal::MakeSaltedSeedSeq; using absl::random_internal::SaltedSeedSeq; using t...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/salted_seed_seq.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/salted_seed_seq_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
7da9ed7e-56c9-4359-93fe-cc293e9bcce3
cpp
abseil/abseil-cpp
generate_real
absl/random/internal/generate_real.h
absl/random/internal/generate_real_test.cc
#ifndef ABSL_RANDOM_INTERNAL_GENERATE_REAL_H_ #define ABSL_RANDOM_INTERNAL_GENERATE_REAL_H_ #include <cstdint> #include <cstring> #include <limits> #include <type_traits> #include "absl/meta/type_traits.h" #include "absl/numeric/bits.h" #include "absl/random/internal/fastmath.h" #include "absl/random/internal/traits.h"...
#include "absl/random/internal/generate_real.h" #include <cfloat> #include <cstddef> #include <cstdint> #include <string> #include "gtest/gtest.h" #include "absl/flags/flag.h" #include "absl/numeric/bits.h" ABSL_FLAG(int64_t, absl_random_test_trials, 50000, "Number of trials for the probability tests."); usin...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/generate_real.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/generate_real_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
b8e2996a-a6e1-486c-8094-9fb6020f1f32
cpp
abseil/abseil-cpp
pcg_engine
absl/random/internal/pcg_engine.h
absl/random/internal/pcg_engine_test.cc
#ifndef ABSL_RANDOM_INTERNAL_PCG_ENGINE_H_ #define ABSL_RANDOM_INTERNAL_PCG_ENGINE_H_ #include <type_traits> #include "absl/base/config.h" #include "absl/meta/type_traits.h" #include "absl/numeric/bits.h" #include "absl/numeric/int128.h" #include "absl/random/internal/fastmath.h" #include "absl/random/internal/iostream...
#include "absl/random/internal/pcg_engine.h" #include <algorithm> #include <bitset> #include <random> #include <sstream> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/random/internal/explicit_seed_seq.h" #include "absl/time/clock.h" #define UPDATE_GOLDEN 0 namespace { using absl::random_internal::Exp...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/pcg_engine.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/pcg_engine_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
f515b3d7-ce2b-46d9-b0e6-1e32e8e5fac1
cpp
abseil/abseil-cpp
wide_multiply
absl/random/internal/wide_multiply.h
absl/random/internal/wide_multiply_test.cc
#ifndef ABSL_RANDOM_INTERNAL_WIDE_MULTIPLY_H_ #define ABSL_RANDOM_INTERNAL_WIDE_MULTIPLY_H_ #include <cstdint> #include <limits> #include <type_traits> #if (defined(_WIN32) || defined(_WIN64)) && defined(_M_IA64) #include <intrin.h> #pragma intrinsic(_umul128) #define ABSL_INTERNAL_USE_UMUL128 1 #endif #include "absl...
#include "absl/random/internal/wide_multiply.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/numeric/int128.h" using absl::random_internal::MultiplyU128ToU256; using absl::random_internal::U256; namespace { U256 LeftShift(U256 v, int s) { if (s == 0) { return v; } else if (s < 128) { ret...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/wide_multiply.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/random/internal/wide_multiply_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
3e2c2113-a259-4ad9-9ee0-e4be27194ce0
cpp
abseil/abseil-cpp
bind_front
absl/functional/bind_front.h
absl/functional/bind_front_test.cc
#ifndef ABSL_FUNCTIONAL_BIND_FRONT_H_ #define ABSL_FUNCTIONAL_BIND_FRONT_H_ #if defined(__cpp_lib_bind_front) && __cpp_lib_bind_front >= 201907L #include <functional> #endif #include <utility> #include "absl/functional/internal/front_binder.h" #include "absl/utility/utility.h" namespace absl { ABSL_NAMESPACE_BEGIN ...
#include "absl/functional/bind_front.h" #include <stddef.h> #include <functional> #include <memory> #include <string> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/memory/memory.h" namespace { char CharAt(const char* s, size_t index) { return s[index]; } TEST(BindTest, Basics) { EXPECT_EQ('C', absl...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/functional/bind_front.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/functional/bind_front_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
3bfaca7e-473c-4611-9bd8-d56cace758c3
cpp
abseil/abseil-cpp
function_ref
absl/functional/internal/function_ref.h
absl/functional/function_ref_test.cc
#ifndef ABSL_FUNCTIONAL_INTERNAL_FUNCTION_REF_H_ #define ABSL_FUNCTIONAL_INTERNAL_FUNCTION_REF_H_ #include <cassert> #include <functional> #include <type_traits> #include "absl/base/internal/invoke.h" #include "absl/functional/any_invocable.h" #include "absl/meta/type_traits.h" namespace absl { ABSL_NAMESPACE_BEGIN nam...
#include "absl/functional/function_ref.h" #include <functional> #include <memory> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/container/internal/test_instance_tracker.h" #include "absl/functional/any_invocable.h" #include "absl/memory/memory.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace { void...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/functional/internal/function_ref.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/functional/function_ref_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
ca383435-df24-445b-95ff-5b14437f8c41
cpp
abseil/abseil-cpp
overload
absl/functional/overload.h
absl/functional/overload_test.cc
#ifndef ABSL_FUNCTIONAL_OVERLOAD_H_ #define ABSL_FUNCTIONAL_OVERLOAD_H_ #include "absl/base/config.h" #include "absl/meta/type_traits.h" namespace absl { ABSL_NAMESPACE_BEGIN #if defined(ABSL_INTERNAL_CPLUSPLUS_LANG) && \ ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L template <typename... T> struct Overload final : T... ...
#include "absl/functional/overload.h" #include <cstdint> #include <string> #include <type_traits> #include "absl/base/config.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "absl/types/variant.h" #if defined(ABSL_INTERNAL_CPLUSPLUS_LANG) && \ ABSL_INTERNAL_CPLUSPLUS_LANG >= 20170...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/functional/overload.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/functional/overload_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
4640a7a9-8921-4f09-a4bb-3add88d26430
cpp
abseil/abseil-cpp
any_invocable
absl/functional/internal/any_invocable.h
absl/functional/any_invocable_test.cc
#ifndef ABSL_FUNCTIONAL_INTERNAL_ANY_INVOCABLE_H_ #define ABSL_FUNCTIONAL_INTERNAL_ANY_INVOCABLE_H_ #include <cassert> #include <cstddef> #include <cstring> #include <exception> #include <functional> #include <memory> #include <new> #include <type_traits> #include <utility> #include "absl/base/attributes.h" #include "a...
#include "absl/functional/any_invocable.h" #include <cstddef> #include <initializer_list> #include <memory> #include <numeric> #include <type_traits> #include "gtest/gtest.h" #include "absl/base/config.h" #include "absl/meta/type_traits.h" #include "absl/utility/utility.h" static_assert(absl::internal_any_invocable::kS...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/functional/internal/any_invocable.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/functional/any_invocable_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
5de345ea-4f4f-4de0-b074-411cf3b13b44
cpp
abseil/abseil-cpp
prefetch
absl/base/prefetch.h
absl/base/prefetch_test.cc
#ifndef ABSL_BASE_PREFETCH_H_ #define ABSL_BASE_PREFETCH_H_ #include "absl/base/attributes.h" #include "absl/base/config.h" #if defined(ABSL_INTERNAL_HAVE_SSE) #include <xmmintrin.h> #endif #if defined(_MSC_VER) #include <intrin.h> #if defined(ABSL_INTERNAL_HAVE_SSE) #pragma intrinsic(_mm_prefetch) #endif #endif namesp...
#include "absl/base/prefetch.h" #include <memory> #include "gtest/gtest.h" namespace { TEST(PrefetchTest, PrefetchToLocalCache_StackA) { char buf[100] = {}; absl::PrefetchToLocalCache(buf); absl::PrefetchToLocalCacheNta(buf); absl::PrefetchToLocalCacheForWrite(buf); } TEST(PrefetchTest, PrefetchToLocalCache_Hea...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/prefetch.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/prefetch_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
1d2a58fc-63cb-4793-9034-d7b62d49516d
cpp
abseil/abseil-cpp
optimization
absl/base/optimization.h
absl/base/optimization_test.cc
#ifndef ABSL_BASE_OPTIMIZATION_H_ #define ABSL_BASE_OPTIMIZATION_H_ #include <assert.h> #ifdef __cplusplus #include <utility> #endif #include "absl/base/config.h" #include "absl/base/options.h" #if defined(__pnacl__) #define ABSL_BLOCK_TAIL_CALL_OPTIMIZATION() if (volatile int x = 0) { (void)x; } #elif defined(__clan...
#include "absl/base/optimization.h" #include "gtest/gtest.h" #include "absl/types/optional.h" namespace { TEST(PredictTest, PredictTrue) { EXPECT_TRUE(ABSL_PREDICT_TRUE(true)); EXPECT_FALSE(ABSL_PREDICT_TRUE(false)); EXPECT_TRUE(ABSL_PREDICT_TRUE(1 == 1)); EXPECT_FALSE(ABSL_PREDICT_TRUE(1 == 2)); if (ABSL_PRE...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/optimization.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/optimization_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
2a892248-e2f2-4e15-b37d-ddc783b8833a
cpp
abseil/abseil-cpp
nullability
absl/base/nullability.h
absl/base/nullability_test.cc
#ifndef ABSL_BASE_NULLABILITY_H_ #define ABSL_BASE_NULLABILITY_H_ #include "absl/base/config.h" #include "absl/base/internal/nullability_impl.h" #define ABSL_POINTERS_DEFAULT_NONNULL namespace absl { ABSL_NAMESPACE_BEGIN template <typename T> using Nonnull = nullability_internal::NonnullImpl<T>; template <typename T> u...
#include "absl/base/nullability.h" #include <cassert> #include <memory> #include <utility> #include "gtest/gtest.h" #include "absl/base/attributes.h" namespace { using ::absl::Nonnull; using ::absl::NullabilityUnknown; using ::absl::Nullable; void funcWithNonnullArg(Nonnull<int*> ) {} template <typename T> void funcWit...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/nullability.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/nullability_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
a825c67b-8a6d-413f-913d-432c19137214
cpp
abseil/abseil-cpp
call_once
absl/base/call_once.h
absl/base/call_once_test.cc
#ifndef ABSL_BASE_CALL_ONCE_H_ #define ABSL_BASE_CALL_ONCE_H_ #include <algorithm> #include <atomic> #include <cstdint> #include <type_traits> #include <utility> #include "absl/base/internal/invoke.h" #include "absl/base/internal/low_level_scheduling.h" #include "absl/base/internal/raw_logging.h" #include "absl/base/in...
#include "absl/base/call_once.h" #include <thread> #include <vector> #include "gtest/gtest.h" #include "absl/base/attributes.h" #include "absl/base/const_init.h" #include "absl/base/thread_annotations.h" #include "absl/synchronization/mutex.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace { absl::once_flag once; ABSL...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/call_once.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/call_once_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
83652685-43bf-41f1-a1cd-a1370e304951
cpp
abseil/abseil-cpp
no_destructor
absl/base/no_destructor.h
absl/base/no_destructor_test.cc
#ifndef ABSL_BASE_NO_DESTRUCTOR_H_ #define ABSL_BASE_NO_DESTRUCTOR_H_ #include <new> #include <type_traits> #include <utility> #include "absl/base/config.h" #include "absl/base/nullability.h" namespace absl { ABSL_NAMESPACE_BEGIN template <typename T> class NoDestructor { public: template <typename... Ts, ...
#include "absl/base/no_destructor.h" #include <array> #include <initializer_list> #include <string> #include <type_traits> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/config.h" #include "absl/base/internal/raw_logging.h" namespace { struct Blob { Blob() : val(42) {} Blob(...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/no_destructor.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/no_destructor_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
0814523e-f546-4e68-82e3-41d15849af8a
cpp
abseil/abseil-cpp
errno_saver
absl/base/internal/errno_saver.h
absl/base/internal/errno_saver_test.cc
#ifndef ABSL_BASE_INTERNAL_ERRNO_SAVER_H_ #define ABSL_BASE_INTERNAL_ERRNO_SAVER_H_ #include <cerrno> #include "absl/base/config.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace base_internal { class ErrnoSaver { public: ErrnoSaver() : saved_errno_(errno) {} ~ErrnoSaver() { errno = saved_errno_; } int operator...
#include "absl/base/internal/errno_saver.h" #include <cerrno> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/internal/strerror.h" namespace { using ::testing::Eq; struct ErrnoPrinter { int no; }; std::ostream &operator<<(std::ostream &os, ErrnoPrinter ep) { return os << absl::base_internal::S...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/internal/errno_saver.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/internal/errno_saver_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
01db218e-89d2-4dfd-b6a3-1d368f61f0d1
cpp
abseil/abseil-cpp
fast_type_id
absl/base/internal/fast_type_id.h
absl/base/internal/fast_type_id_test.cc
#ifndef ABSL_BASE_INTERNAL_FAST_TYPE_ID_H_ #define ABSL_BASE_INTERNAL_FAST_TYPE_ID_H_ #include "absl/base/config.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace base_internal { template <typename Type> struct FastTypeTag { constexpr static char dummy_var = 0; }; #ifdef ABSL_INTERNAL_NEED_REDUNDANT_CONSTEXPR_DECL t...
#include "absl/base/internal/fast_type_id.h" #include <cstdint> #include <map> #include <vector> #include "gtest/gtest.h" namespace { namespace bi = absl::base_internal; #define PRIM_TYPES(A) \ A(bool) \ A(short) \ A(unsigned short) \ A(int) \ A(unsigned int) ...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/internal/fast_type_id.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/internal/fast_type_id_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
0b0c4542-33f1-461f-bcc9-aba9c6c10683
cpp
abseil/abseil-cpp
endian
absl/base/internal/endian.h
absl/base/internal/endian_test.cc
#ifndef ABSL_BASE_INTERNAL_ENDIAN_H_ #define ABSL_BASE_INTERNAL_ENDIAN_H_ #include <cstdint> #include <cstdlib> #include "absl/base/casts.h" #include "absl/base/config.h" #include "absl/base/internal/unaligned_access.h" #include "absl/base/nullability.h" #include "absl/base/port.h" namespace absl { ABSL_NAMESPACE_BEGIN...
#include "absl/base/internal/endian.h" #include <algorithm> #include <cstdint> #include <limits> #include <random> #include <vector> #include "gtest/gtest.h" #include "absl/base/config.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace { const uint64_t kInitialNumber{0x0123456789abcdef}; const uint64_t k64Value{kInitia...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/internal/endian.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/internal/endian_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
9ebf61e1-2594-4952-877e-18440a751526
cpp
abseil/abseil-cpp
invoke
absl/base/internal/invoke.h
absl/base/invoke_test.cc
#ifndef ABSL_BASE_INTERNAL_INVOKE_H_ #define ABSL_BASE_INTERNAL_INVOKE_H_ #include "absl/base/config.h" #if ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L #include <functional> namespace absl { ABSL_NAMESPACE_BEGIN namespace base_internal { using std::invoke; using std::invoke_result_t; using std::is_invocable_r; } ABSL_NAM...
#include "absl/base/internal/invoke.h" #include <functional> #include <memory> #include <string> #include <utility> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/memory/memory.h" #include "absl/strings/str_cat.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace base_internal { namespace { int Function...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/internal/invoke.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/invoke_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
085ce812-51f1-4c00-90f7-ec5e49d65dd9
cpp
abseil/abseil-cpp
inline_variable
absl/base/internal/inline_variable.h
absl/base/inline_variable_test.cc
#ifndef ABSL_BASE_INTERNAL_INLINE_VARIABLE_H_ #define ABSL_BASE_INTERNAL_INLINE_VARIABLE_H_ #include <type_traits> #include "absl/base/internal/identity.h" #ifdef __cpp_inline_variables #if defined(__clang__) #define ABSL_INTERNAL_EXTERN_DECL(type, name) \ extern const ::absl::internal::type_identity_t<type> name; #e...
#include <type_traits> #include "absl/base/internal/inline_variable.h" #include "absl/base/internal/inline_variable_testing.h" #include "gtest/gtest.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace inline_variable_testing_internal { namespace { TEST(InlineVariableTest, Constexpr) { static_assert(inline_variable_foo...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/internal/inline_variable.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/inline_variable_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
138ea3dc-4705-493e-91f7-16b9d6230197
cpp
abseil/abseil-cpp
atomic_hook
absl/base/internal/atomic_hook.h
absl/base/internal/atomic_hook_test.cc
#ifndef ABSL_BASE_INTERNAL_ATOMIC_HOOK_H_ #define ABSL_BASE_INTERNAL_ATOMIC_HOOK_H_ #include <atomic> #include <cassert> #include <cstdint> #include <utility> #include "absl/base/attributes.h" #include "absl/base/config.h" #if defined(_MSC_VER) && !defined(__clang__) #define ABSL_HAVE_WORKING_CONSTEXPR_STATIC_INIT 0 #e...
#include "absl/base/internal/atomic_hook.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/attributes.h" #include "absl/base/internal/atomic_hook_test_helper.h" namespace { using ::testing::Eq; int value = 0; void TestHook(int x) { value = x; } TEST(AtomicHookTest, NoDefaultFunction) { ABSL_INT...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/internal/atomic_hook.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/base/internal/atomic_hook_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
e50c6436-3cc2-4531-a08c-393da93254c3
cpp
abseil/abseil-cpp
utility
absl/utility/utility.h
absl/utility/utility_test.cc
#ifndef ABSL_UTILITY_UTILITY_H_ #define ABSL_UTILITY_UTILITY_H_ #include <cstddef> #include <cstdlib> #include <tuple> #include <utility> #include "absl/base/config.h" #include "absl/base/internal/inline_variable.h" #include "absl/base/internal/invoke.h" #include "absl/meta/type_traits.h" namespace absl { ABSL_NAMESPAC...
#include "absl/utility/utility.h" #include <memory> #include <sstream> #include <string> #include <tuple> #include <type_traits> #include <utility> #include <vector> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/base/attributes.h" #include "absl/memory/memory.h" #include "absl/strings/str_cat.h" name...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/utility/utility.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/utility/utility_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
5e496d9c-b87f-43ee-8d8a-c81eda25d937
cpp
abseil/abseil-cpp
if_constexpr
absl/utility/internal/if_constexpr.h
absl/utility/internal/if_constexpr_test.cc
#ifndef ABSL_UTILITY_INTERNAL_IF_CONSTEXPR_H_ #define ABSL_UTILITY_INTERNAL_IF_CONSTEXPR_H_ #include <tuple> #include <utility> #include "absl/base/config.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace utility_internal { template <bool condition, typename TrueFunc, typename FalseFunc, typename... Args> au...
#include "absl/utility/internal/if_constexpr.h" #include <utility> #include "gtest/gtest.h" namespace { struct Empty {}; struct HasFoo { int foo() const { return 1; } }; TEST(IfConstexpr, Basic) { int i = 0; absl::utility_internal::IfConstexpr<false>( [&](const auto& t) { i = t.foo(); }, Empty{}); EXPECT_...
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/utility/internal/if_constexpr.h
https://github.com/abseil/abseil-cpp/blob/03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4/absl/utility/internal/if_constexpr_test.cc
03b8d6ea3dc6a0b8c6bcf42503c2053754dab2e4
1eef252f-b593-42e7-a947-2258d0d1a228
cpp
google/libphonenumber
generate_geocoding_data
tools/cpp/src/cpp-build/generate_geocoding_data.cc
tools/cpp/test/cpp-build/generate_geocoding_data_test.cc
#include "cpp-build/generate_geocoding_data.h" #include <dirent.h> #include <errno.h> #include <locale> #include <sys/stat.h> #include <algorithm> #include <cctype> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iterator> #include <map> #include <set> #include <sstream> #include <str...
#include "cpp-build/generate_geocoding_data.h" #include <gtest/gtest.h> namespace i18n { namespace phonenumbers { TEST(GenerateGeocodingDataTest, TestMakeStringLiteral) { EXPECT_EQ("\"\"", MakeStringLiteral("")); EXPECT_EQ("\"Op\"\"\\xc3\"\"\\xa9\"\"ra\"", MakeStringLiteral("Op\xc3\xa9ra")); } TEST(Gene...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/tools/cpp/src/cpp-build/generate_geocoding_data.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/tools/cpp/test/cpp-build/generate_geocoding_data_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
6475b107-a6ce-4c24-b567-5dba680f88ba
cpp
google/libphonenumber
phonenumbermatch
cpp/src/phonenumbers/phonenumbermatch.cc
cpp/test/phonenumbers/phonenumbermatch_test.cc
#include "phonenumbers/phonenumbermatch.h" #include <string> #include "phonenumbers/phonenumber.h" #include "phonenumbers/phonenumber.pb.h" #include "phonenumbers/stringutil.h" namespace i18n { namespace phonenumbers { PhoneNumberMatch::PhoneNumberMatch(int start, const string& raw_st...
#include "phonenumbers/phonenumber.h" #include "phonenumbers/phonenumbermatch.h" #include <gtest/gtest.h> #include "phonenumbers/phonenumber.pb.h" namespace i18n { namespace phonenumbers { TEST(PhoneNumberMatch, TestGetterMethods) { PhoneNumber number; const int start_index = 10; const string raw_phone_number("1 ...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/phonenumbermatch.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/phonenumbermatch_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
17e61239-1dca-4b8b-a5dd-20c400f1ed09
cpp
google/libphonenumber
phonenumberutil
cpp/src/phonenumbers/phonenumberutil.cc
cpp/test/phonenumbers/phonenumberutil_test.cc
#include "phonenumbers/phonenumberutil.h" #include <algorithm> #include <cctype> #include <cstring> #include <iterator> #include <map> #include <utility> #include <vector> #include <unicode/uchar.h> #include <unicode/utf8.h> #include "phonenumbers/asyoutypeformatter.h" #include "phonenumbers/base/basictypes.h" #include...
#include "phonenumbers/phonenumberutil.h" #include <algorithm> #include <iostream> #include <list> #include <set> #include <string> #include <gtest/gtest.h> #include <unicode/uchar.h> #include "phonenumbers/default_logger.h" #include "phonenumbers/normalize_utf8.h" #include "phonenumbers/phonemetadata.pb.h" #include "p...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/phonenumberutil.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/phonenumberutil_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
d8c489fc-5b92-47f3-b9d8-612e250f0197
cpp
google/libphonenumber
asyoutypeformatter
cpp/src/phonenumbers/asyoutypeformatter.cc
cpp/test/phonenumbers/asyoutypeformatter_test.cc
#include "phonenumbers/asyoutypeformatter.h" #include <math.h> #include <cctype> #include <list> #include <string> #include <google/protobuf/message_lite.h> #include "phonenumbers/base/logging.h" #include "phonenumbers/phonemetadata.pb.h" #include "phonenumbers/phonenumberutil.h" #include "phonenumbers/regexp_cache.h" ...
#include "phonenumbers/asyoutypeformatter.h" #include <gtest/gtest.h> #include "phonenumbers/base/logging.h" #include "phonenumbers/base/memory/scoped_ptr.h" #include "phonenumbers/default_logger.h" #include "phonenumbers/phonenumberutil.h" #include "phonenumbers/test_util.h" namespace i18n { namespace phonenumbers { c...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/asyoutypeformatter.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/asyoutypeformatter_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
ececb0ff-9d9f-410b-8980-048362fe68f2
cpp
google/libphonenumber
unicodestring
cpp/src/phonenumbers/unicodestring.cc
cpp/test/phonenumbers/unicodestring_test.cc
#include "phonenumbers/unicodestring.h" #include <algorithm> #include <cassert> #include <iterator> using std::advance; using std::equal; namespace i18n { namespace phonenumbers { UnicodeString& UnicodeString::operator=(const UnicodeString& src) { if (&src != this) { invalidateCachedIndex(); text_ = src.text_...
#include <iostream> #include <gtest/gtest.h> #include "phonenumbers/unicodestring.h" using std::ostream; namespace i18n { namespace phonenumbers { ostream& operator<<(ostream& out, const UnicodeString& s) { string utf8; s.toUTF8String(utf8); out << utf8; return out; } TEST(UnicodeString, ToUTF8StringWithEmptySt...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/unicodestring.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/unicodestring_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
bf51d14e-553a-4e21-83cb-2f920752ad17
cpp
google/libphonenumber
regexp_cache
cpp/src/phonenumbers/regexp_cache.cc
cpp/test/phonenumbers/regexp_cache_test.cc
#include "phonenumbers/regexp_cache.h" #include <cstddef> #include <string> #include <utility> #include "phonenumbers/base/synchronization/lock.h" #include "phonenumbers/regexp_adapter.h" using std::string; namespace i18n { namespace phonenumbers { RegExpCache::RegExpCache(const AbstractRegExpFactory& regexp_factory, ...
#include <cstddef> #include <string> #include <gtest/gtest.h> #include "phonenumbers/base/synchronization/lock.h" #include "phonenumbers/regexp_cache.h" #include "phonenumbers/regexp_factory.h" namespace i18n { namespace phonenumbers { using std::string; class RegExpCacheTest : public testing::Test { protected: stat...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/regexp_cache.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/regexp_cache_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
c74a6817-3eb7-4344-996d-e523ce4fc6bf
cpp
google/libphonenumber
shortnumberinfo
cpp/src/phonenumbers/shortnumberinfo.cc
cpp/test/phonenumbers/shortnumberinfo_test.cc
#include "phonenumbers/shortnumberinfo.h" #include <algorithm> #include <string.h> #include <iterator> #include <map> #include "phonenumbers/default_logger.h" #include "phonenumbers/matcher_api.h" #include "phonenumbers/phonemetadata.pb.h" #include "phonenumbers/phonenumberutil.h" #include "phonenumbers/regex_based_mat...
#include "phonenumbers/shortnumberinfo.h" #include <gtest/gtest.h> #include "phonenumbers/base/logging.h" #include "phonenumbers/default_logger.h" #include "phonenumbers/phonenumberutil.h" #include "phonenumbers/stringutil.h" #include "phonenumbers/test_util.h" namespace i18n { namespace phonenumbers { class ShortNumbe...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/shortnumberinfo.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/shortnumberinfo_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
2bc2b96f-d502-4c20-9eae-a838f751e478
cpp
google/libphonenumber
logger
cpp/src/phonenumbers/logger.cc
cpp/test/phonenumbers/logger_test.cc
#include "phonenumbers/logger.h" #include <cstddef> namespace i18n { namespace phonenumbers { Logger* Logger::impl_ = NULL; } }
#include <string> #include <gtest/gtest.h> #include "phonenumbers/base/memory/scoped_ptr.h" #include "phonenumbers/default_logger.h" #include "phonenumbers/logger.h" namespace i18n { namespace phonenumbers { class StringLogger : public Logger { public: virtual ~StringLogger() {} const string& message() const { ...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/logger.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/logger_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
884a1873-2492-4e33-affb-1854f596ef62
cpp
google/libphonenumber
phonenumbermatcher
cpp/src/phonenumbers/phonenumbermatcher.cc
cpp/test/phonenumbers/phonenumbermatcher_test.cc
#include "phonenumbers/phonenumbermatcher.h" #ifndef I18N_PHONENUMBERS_USE_ICU_REGEXP #error phonenumbermatcher depends on ICU \ (i.e. I18N_PHONENUMBERS_USE_ICU_REGEXP must be set) #endif #include <ctype.h> #include <stddef.h> #include <limits> #include <map> #include <memory> #include <string> #include <utility>...
#include "phonenumbers/phonenumbermatcher.h" #include <string> #include <vector> #include <gtest/gtest.h> #include <unicode/unistr.h> #include "phonenumbers/base/basictypes.h" #include "phonenumbers/base/memory/scoped_ptr.h" #include "phonenumbers/base/memory/singleton.h" #include "phonenumbers/default_logger.h" #inclu...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/phonenumbermatcher.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/phonenumbermatcher_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
5b0e460d-7d88-4bf8-8b86-7f3ab7ca4561
cpp
google/libphonenumber
stringutil
cpp/src/phonenumbers/stringutil.cc
cpp/test/phonenumbers/stringutil_test.cc
#include <algorithm> #include <cassert> #include <cstring> #include <sstream> #include "phonenumbers/stringutil.h" #include "absl/strings/str_replace.h" #include "absl/strings/substitute.h" #include "absl/strings/match.h" namespace i18n { namespace phonenumbers { using std::equal; using std::stringstream; string operat...
#include "phonenumbers/stringutil.h" #include <string> #include <vector> #include <gtest/gtest.h> using std::string; using std::vector; namespace i18n { namespace phonenumbers { TEST(StringUtilTest, OperatorPlus) { EXPECT_EQ("hello10", string("hello") + 10); } TEST(StringUtilTest, SimpleItoa) { EXPECT_EQ("10", Simp...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/stringutil.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/stringutil_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
3ec29614-5909-4ff3-94b0-a536b979a79e
cpp
google/libphonenumber
unicodetext
cpp/src/phonenumbers/utf/unicodetext.cc
cpp/test/phonenumbers/utf/unicodetext_test.cc
#include <algorithm> #include <sstream> #include <cassert> #include <cstdio> #include "phonenumbers/default_logger.h" #include "phonenumbers/utf/unicodetext.h" #include "phonenumbers/utf/stringpiece.h" #include "phonenumbers/utf/utf.h" #include "phonenumbers/utf/unilib.h" namespace i18n { namespace phonenumbers { using...
#include <gtest/gtest.h> #include "phonenumbers/utf/unicodetext.h" namespace i18n { namespace phonenumbers { TEST(UnicodeTextTest, Iterator) { struct value { const char* utf8; char32 code_point; } values[] = { { "\x31", 0x31 }, { "\xC2\xBD", 0x00BD }, { "\xEF\xBC\x91", 0xFF11 }, { "\xF0\x...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/utf/unicodetext.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/utf/unicodetext_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
53829aa9-260b-47ea-86e1-9a547c472f1e
cpp
google/libphonenumber
mapping_file_provider
cpp/src/phonenumbers/geocoding/mapping_file_provider.cc
cpp/test/phonenumbers/geocoding/mapping_file_provider_test.cc
#include "phonenumbers/geocoding/mapping_file_provider.h" #include <algorithm> #include <cstddef> #include <cstring> #include <sstream> #include <string> #include "phonenumbers/geocoding/geocoding_data.h" namespace i18n { namespace phonenumbers { using std::string; namespace { struct NormalizedLocale { const char* lo...
#include "phonenumbers/geocoding/mapping_file_provider.h" #include <gtest/gtest.h> #include "phonenumbers/geocoding/geocoding_data.h" namespace i18n { namespace phonenumbers { using std::string; namespace { #define COUNTRY_LANGUAGES(code, languagelist) \ const char* country_languages_##c...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/geocoding/mapping_file_provider.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/geocoding/mapping_file_provider_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
90e26224-4975-4dca-8430-82008ab8aee2
cpp
google/libphonenumber
area_code_map
cpp/src/phonenumbers/geocoding/area_code_map.cc
cpp/test/phonenumbers/geocoding/area_code_map_test.cc
#include "phonenumbers/geocoding/area_code_map.h" #include <cstddef> #include "phonenumbers/geocoding/default_map_storage.h" #include "phonenumbers/phonenumber.pb.h" #include "phonenumbers/phonenumberutil.h" #include "phonenumbers/stringutil.h" namespace i18n { namespace phonenumbers { AreaCodeMap::AreaCodeMap() : ph...
#include "phonenumbers/geocoding/area_code_map.h" #include <cstddef> #include <vector> #include <gtest/gtest.h> #include "phonenumbers/geocoding/geocoding_data.h" #include "phonenumbers/phonenumber.pb.h" namespace i18n { namespace phonenumbers { namespace { void MakeCodeMap(const PrefixDescriptions* descriptions, ...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/geocoding/area_code_map.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/geocoding/area_code_map_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
aa95446b-57f9-41a9-b640-95014161ac37
cpp
google/libphonenumber
phonenumber_offline_geocoder
cpp/src/phonenumbers/geocoding/phonenumber_offline_geocoder.cc
cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc
#include "phonenumbers/geocoding/phonenumber_offline_geocoder.h" #include <algorithm> #include <string> #include <unicode/unistr.h> #include "phonenumbers/geocoding/area_code_map.h" #include "phonenumbers/geocoding/geocoding_data.h" #include "phonenumbers/geocoding/mapping_file_provider.h" #include "phonenumbers/phon...
#include "phonenumbers/geocoding/phonenumber_offline_geocoder.h" #include <gtest/gtest.h> #include <unicode/locid.h> #include "phonenumbers/geocoding/geocoding_test_data.h" #include "phonenumbers/phonenumber.h" #include "phonenumbers/phonenumber.pb.h" namespace i18n { namespace phonenumbers { using icu::Locale; namespa...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/geocoding/phonenumber_offline_geocoder.cc
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
829c19fc-b072-493f-add4-3d8563d80635
cpp
google/libphonenumber
regexp_adapter
cpp/src/phonenumbers/regexp_adapter.h
cpp/test/phonenumbers/regexp_adapter_test.cc
#ifndef I18N_PHONENUMBERS_REGEXP_ADAPTER_H_ #define I18N_PHONENUMBERS_REGEXP_ADAPTER_H_ #include <cstddef> #include <string> namespace i18n { namespace phonenumbers { using std::string; class RegExpInput { public: virtual ~RegExpInput() {} virtual string ToString() const = 0; }; class RegExp { public: virtual ~...
#include "phonenumbers/regexp_adapter.h" #include <string> #include <vector> #include <gtest/gtest.h> #include "phonenumbers/base/memory/scoped_ptr.h" #include "phonenumbers/stl_util.h" #include "phonenumbers/stringutil.h" #ifdef I18N_PHONENUMBERS_USE_RE2 #include "phonenumbers/regexp_adapter_re2.h" #else #include "pho...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/regexp_adapter.h
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/regexp_adapter_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
20c2a41d-cae1-4ee1-b9da-0a950d5bb1dc
cpp
google/libphonenumber
geocoding_data
cpp/src/phonenumbers/geocoding/geocoding_data.h
cpp/test/phonenumbers/geocoding/geocoding_data_test.cc
#ifndef I18N_PHONENUMBERS_GEOCODING_DATA #define I18N_PHONENUMBERS_GEOCODING_DATA #include <cstdint> namespace i18n { namespace phonenumbers { struct CountryLanguages { const char** available_languages; const int available_languages_size; }; struct PrefixDescriptions { const int32_t* prefixes; const int prefixe...
#include <cmath> #include <set> #include <string> #include <gtest/gtest.h> #include "phonenumbers/base/basictypes.h" #include "phonenumbers/geocoding/geocoding_data.h" #include "phonenumbers/geocoding/geocoding_test_data.h" #include "absl/container/btree_set.h" namespace i18n { namespace phonenumbers { using std::set...
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/src/phonenumbers/geocoding/geocoding_data.h
https://github.com/google/libphonenumber/blob/9aa9aaa39ad8098aef56071d2df4f6f8d251c98b/cpp/test/phonenumbers/geocoding/geocoding_data_test.cc
9aa9aaa39ad8098aef56071d2df4f6f8d251c98b
e162909f-8720-485d-a783-1593f03d6009
cpp
google/langsvr
buffer_writer
src/buffer_writer.cc
src/buffer_writer_test.cc
#include "langsvr/buffer_writer.h" namespace langsvr { BufferWriter::BufferWriter() = default; Result<SuccessType> BufferWriter::Write(const std::byte* in, size_t count) { size_t at = buffer.size(); buffer.resize(at + count); memcpy(&buffer[at], in, count); return Success; } std::string_view BufferWrite...
#include "langsvr/buffer_writer.h" #include "gmock/gmock.h" namespace langsvr { namespace { template <typename T, typename U> std::vector<T> Cast(const std::vector<U>& in) { std::vector<T> out; out.resize(in.size()); for (size_t i = 0, n = in.size(); i < n; i++) { out[i] = static_cast<T>(in[i]); ...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/buffer_writer.cc
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/buffer_writer_test.cc
303c526231a90049a3e384549720f3fbd453cf66
4a4ecea8-5f00-46ff-b387-1843c5c83db4
cpp
google/langsvr
buffer_reader
src/buffer_reader.cc
src/buffer_reader_test.cc
#include "langsvr/buffer_reader.h" #include <cstring> namespace langsvr { BufferReader::~BufferReader() = default; size_t BufferReader::Read(std::byte* out, size_t count) { size_t n = std::min(count, bytes_remaining_); memcpy(out, data_, n); data_ += n; bytes_remaining_ -= n; return n; } }
#include "langsvr/buffer_reader.h" #include "gtest/gtest.h" namespace langsvr { namespace { template <typename... ARGS> auto Data(ARGS&&... args) { return std::vector{std::byte{static_cast<uint8_t>(args)}...}; } TEST(BufferReaderTest, String) { BufferReader reader{"hello world"}; auto first = reader.String(...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/buffer_reader.cc
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/buffer_reader_test.cc
303c526231a90049a3e384549720f3fbd453cf66
b0c69f73-dc57-4fc8-8147-50f1158eaf32
cpp
google/langsvr
session
src/session.cc
src/session_test.cc
#include "langsvr/session.h" #include <string> #include "langsvr/json/builder.h" namespace langsvr { Result<SuccessType> Session::Receive(std::string_view json) { auto json_builder = json::Builder::Create(); auto object = json_builder->Parse(json); if (object != Success) { return object.Failure(); ...
#include "langsvr/lsp/lsp.h" #include "langsvr/session.h" #include <gtest/gtest.h> #include "langsvr/json/builder.h" #include "langsvr/lsp/decode.h" #include "gmock/gmock.h" #include "langsvr/result.h" namespace langsvr { namespace { Result<lsp::InitializeRequest> GetInitializeRequest() { static constexpr std::stri...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/session.cc
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/session_test.cc
303c526231a90049a3e384549720f3fbd453cf66
f529b4b2-96b8-494a-bfea-07202301e8d3
cpp
google/langsvr
content_stream
src/content_stream.cc
src/content_stream_test.cc
#include "langsvr/content_stream.h" #include <sstream> #include <string> #include "langsvr/reader.h" #include "langsvr/writer.h" #include "src/utils/replace_all.h" namespace langsvr { namespace { static constexpr std::string_view kContentLength = "Content-Length: "; Result<SuccessType> Match(Reader& reader, std::string...
#include "langsvr/content_stream.h" #include "gtest/gtest.h" #include "langsvr/buffer_reader.h" #include "langsvr/buffer_writer.h" namespace langsvr { namespace { TEST(ReadContent, Empty) { BufferReader reader(""); auto got = ReadContent(reader); EXPECT_NE(got, Success); EXPECT_EQ(got.Failure().reason, ...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/content_stream.cc
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/content_stream_test.cc
303c526231a90049a3e384549720f3fbd453cf66
3a0f99c2-f130-42c7-848e-16e5e583a8ca
cpp
google/langsvr
decode
src/lsp/decode.cc
src/lsp/decode_test.cc
#include "langsvr/lsp/decode.h" namespace langsvr::lsp { Result<SuccessType> Decode(const json::Value& v, Null&) { return v.Null(); } Result<SuccessType> Decode(const json::Value& v, Boolean& out) { auto res = v.Bool(); if (res == Success) [[likely]] { out = res.Get(); return Success; } ...
#include "langsvr/json/builder.h" #include "langsvr/lsp/lsp.h" #include "langsvr/lsp/printer.h" #include "gmock/gmock.h" namespace langsvr::lsp { namespace { TEST(DecodeTest, ShowDocumentParams) { auto b = json::Builder::Create(); auto parse_res = b->Parse( R"({"selection":{"end":{"character":4,"line":3...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/lsp/decode.cc
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/lsp/decode_test.cc
303c526231a90049a3e384549720f3fbd453cf66
6f7ffe16-c5ff-47d3-844e-a0bf0bc88a11
cpp
google/langsvr
encode
src/lsp/encode.cc
src/lsp/encode_test.cc
#include "langsvr/lsp/encode.h" namespace langsvr::lsp { Result<const json::Value*> Encode(Null, json::Builder& b) { return b.Null(); } Result<const json::Value*> Encode(Boolean in, json::Builder& b) { return b.Bool(in); } Result<const json::Value*> Encode(Integer in, json::Builder& b) { return b.I64(in); }...
#include "langsvr/json/builder.h" #include "langsvr/lsp/lsp.h" #include "gmock/gmock.h" namespace langsvr::lsp { namespace { TEST(EncodeTest, ShowDocumentParams) { ShowDocumentParams params; params.uri = "file.txt"; params.selection = Range{{1, 2}, {3, 4}}; auto b = json::Builder::Create(); auto res...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/lsp/encode.cc
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/lsp/encode_test.cc
303c526231a90049a3e384549720f3fbd453cf66
7019c30e-0cbb-4217-afdf-ec0d4e20abb2
cpp
google/langsvr
traits
include/langsvr/traits.h
src/traits_test.cc
#ifndef LANGSVR_TRAITS_H_ #define LANGSVR_TRAITS_H_ #include <string> #include <tuple> namespace langsvr { template <typename SUCCESS_TYPE, typename FAILURE_TYPE> struct Result; } namespace langsvr::detail { template <int N, typename... Types> using NthTypeOf = typename std::tuple_element<N, std::tuple<Types...>>::type...
#include "langsvr/traits.h" #include <functional> namespace langsvr { namespace { static_assert(TypeIndex<int, int, bool, float> == 0); static_assert(TypeIndex<bool, int, bool, float> == 1); static_assert(TypeIndex<float, int, bool, float> == 2); struct S {}; void F1(S) {} void F3(int, S, float) {} struct StaticTests {...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/include/langsvr/traits.h
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/traits_test.cc
303c526231a90049a3e384549720f3fbd453cf66
243c6b17-25a6-4704-95ee-94c556bbfcf9
cpp
google/langsvr
result
include/langsvr/result.h
src/result_test.cc
#ifndef LANGSVR_UTILS_RESULT_RESULT_H_ #define LANGSVR_UTILS_RESULT_RESULT_H_ #include <cassert> #include <ostream> #include <string> #include <utility> #include <variant> #include "langsvr/traits.h" namespace langsvr { struct SuccessType {}; static constexpr const SuccessType Success; struct Failure { std::string ...
#include "langsvr/result.h" #include <string> #include "gmock/gmock.h" namespace langsvr { namespace { struct S { int value; }; static inline bool operator==(const S& a, const S& b) { return a.value == b.value; } TEST(ResultTest, SuccessInt) { auto r = Result<int>(123); ASSERT_EQ(r, Success); EXPECT...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/include/langsvr/result.h
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/result_test.cc
303c526231a90049a3e384549720f3fbd453cf66
b428a4e6-f411-4fe5-b691-f4f37449cc1c
cpp
google/langsvr
optional
include/langsvr/optional.h
src/optional_test.cc
#ifndef LANGSVR_OPTIONAL_H_ #define LANGSVR_OPTIONAL_H_ #include <cassert> #include <type_traits> #include <utility> namespace langsvr { template <typename T> struct Optional { Optional() = default; ~Optional() { Reset(); } Optional(const Optional& other) { *this = other; } Optional(Optional&& other) { ...
#include "langsvr/optional.h" #include "gmock/gmock.h" namespace langsvr { namespace { TEST(OptionalTest, CtorNoArgs) { Optional<std::string> opt; EXPECT_FALSE(opt); EXPECT_TRUE(!opt); EXPECT_NE(opt, "hello"); } TEST(OptionalTest, CopyCtorWithValue) { std::string val{"hello"}; Optional<std::stri...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/include/langsvr/optional.h
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/optional_test.cc
303c526231a90049a3e384549720f3fbd453cf66
a3ced6ed-efb3-49e4-9e6d-da590ac7fa65
cpp
google/langsvr
one_of
include/langsvr/one_of.h
src/one_of_test.cc
#ifndef LANGSVR_ONE_OF_H_ #define LANGSVR_ONE_OF_H_ #include <memory> #include <type_traits> #include <utility> #include "langsvr/traits.h" namespace langsvr { template <typename... TYPES> struct OneOf { template <typename T> static constexpr bool IsValidType = TypeIsIn<std::decay_t<T>, TYPES...>; OneOf() =...
#include "langsvr/one_of.h" #include "gmock/gmock.h" namespace langsvr { namespace { TEST(OneOfTest, CtorNoArgs) { OneOf<int, std::string, float> oneof; EXPECT_FALSE(oneof.Is<int>()); EXPECT_FALSE(oneof.Is<std::string>()); EXPECT_FALSE(oneof.Is<float>()); oneof.Visit([&](auto&) { FAIL() << "should n...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/include/langsvr/one_of.h
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/one_of_test.cc
303c526231a90049a3e384549720f3fbd453cf66
44f531c3-4137-4b29-8a03-3fd609e926f9
cpp
google/langsvr
span
include/langsvr/span.h
src/span_test.cc
#ifndef LANGSVR_SPAN_H_ #define LANGSVR_SPAN_H_ #include <array> #include <cstddef> #include <vector> namespace langsvr { template <typename T> class Span { public: Span(T* first, size_t count) : elements_(first), count_(count) {} Span(const std::vector<T>& vec) : elements_(vec.data()), count_(vec.size()) {} ...
#include "langsvr/span.h" #include <vector> #include "gmock/gmock.h" namespace langsvr { namespace { TEST(SpanTest, CtorPtrCount) { int data[]{0, 1, 2, 3}; Span<int> span{&data[0], 4}; EXPECT_EQ(span[0], 0); EXPECT_EQ(span[1], 1); EXPECT_EQ(span[2], 2); EXPECT_EQ(span[3], 3); EXPECT_EQ(span....
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/include/langsvr/span.h
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/span_test.cc
303c526231a90049a3e384549720f3fbd453cf66
7c4f1970-d8d3-4a57-b484-7690362ef1d8
cpp
google/langsvr
comparators
include/langsvr/lsp/comparators.h
src/lsp/comparators_test.cc
#ifndef LANGSVR_LSP_COMPARATORS_H_ #define LANGSVR_LSP_COMPARATORS_H_ #include "langsvr/lsp/lsp.h" namespace langsvr::lsp { inline int Compare(Position a, Position b) { if (a.line < b.line) { return -1; } if (a.line > b.line) { return 1; } if (a.character < b.character) { ret...
#include "include/langsvr/lsp/comparators.h" #include "langsvr/lsp/lsp.h" #include "langsvr/lsp/printer.h" #include "gmock/gmock.h" namespace langsvr::lsp { namespace { TEST(ComparatorsTest, Position) { const Position pos_1_1{1, 1}; const Position pos_1_2{1, 2}; const Position pos_2_1{2, 1}; const Posit...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/include/langsvr/lsp/comparators.h
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/lsp/comparators_test.cc
303c526231a90049a3e384549720f3fbd453cf66
c4f6349c-d229-4b92-b60f-2e85745f5542
cpp
google/langsvr
builder
include/langsvr/json/builder.h
src/json/builder_test.cc
#ifndef LANGSVR_JSON_BUILDER_ #define LANGSVR_JSON_BUILDER_ #include <memory> #include <type_traits> #include "langsvr/json/value.h" #include "langsvr/span.h" #include "langsvr/traits.h" namespace langsvr::json { class Value; } namespace langsvr::json { class Builder { public: virtual ~Builder(); static std::...
#include "langsvr/json/builder.h" #include "gtest/gtest.h" #include "src/utils/replace_all.h" namespace langsvr::json { namespace { TEST(JsonBuilder, ParseNull) { auto b = Builder::Create(); auto null_res = b->Parse("null"); ASSERT_EQ(null_res, Success); auto& null = null_res.Get(); EXPECT_EQ(null->...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/include/langsvr/json/builder.h
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/json/builder_test.cc
303c526231a90049a3e384549720f3fbd453cf66
88c2c198-269a-40f5-b83c-69515f289132
cpp
google/langsvr
block_allocator
src/utils/block_allocator.h
src/utils/block_allocator_test.cc
#ifndef SRC_LANGSVR_UTILS_BLOCK_ALLOCATOR_H_ #define SRC_LANGSVR_UTILS_BLOCK_ALLOCATOR_H_ #include <stdint.h> #include <array> #include <cstring> #include <utility> namespace langsvr { template <typename T> inline constexpr T RoundUp(T alignment, T value) { return ((value + alignment - 1) / alignment) * alignment; ...
#include "src/utils/block_allocator.h" #include <vector> #include "gtest/gtest.h" namespace langsvr { namespace { struct LifetimeCounter { explicit LifetimeCounter(size_t* count) : count_(count) { (*count)++; } ~LifetimeCounter() { (*count_)--; } size_t* const count_; }; using BlockAllocatorTest = testing::...
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/utils/block_allocator.h
https://github.com/google/langsvr/blob/303c526231a90049a3e384549720f3fbd453cf66/src/utils/block_allocator_test.cc
303c526231a90049a3e384549720f3fbd453cf66
04744e90-f803-47c0-9f89-9e06a981cff5
cpp
google/tensorstore
dim_expression
python/tensorstore/dim_expression.cc
tensorstore/index_space/dim_expression_test.cc
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include "python/tensorstore/dim_expression.h" #include <memory> #include <string> #include <string_view> #include <utility> #include <variant> #include <vector> #include "absl/base/optimization.h" #include "absl/container/inlined_vector.h" #include "absl/status/...
#include "tensorstore/index_space/dim_expression.h" #include <string_view> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorstore/array.h" #include "tensorstore/box.h" #include "tensorstore/index.h" #include "tensorstore/index_space/index_transform.h" #include "tensorstore/index_space/transformed_array...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/python/tensorstore/dim_expression.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/index_space/dim_expression_test.cc
4f887a6430414cd6088e1743555015b10f116d50
697358e5-9e87-487b-a7f6-e0a7ac0f0008
cpp
google/tensorstore
future
tensorstore/util/future.cc
tensorstore/util/future_test.cc
#include "tensorstore/util/future.h" #include <stddef.h> #include <stdint.h> #include <atomic> #include <cassert> #include <thread> #include <utility> #include "absl/base/attributes.h" #include "absl/base/const_init.h" #include "absl/base/no_destructor.h" #include "absl/base/optimization.h" #include "absl/hash/hash.h...
#include "tensorstore/util/future.h" #include <stddef.h> #include <atomic> #include <chrono> #include <functional> #include <memory> #include <thread> #include <type_traits> #include <utility> #include <benchmark/benchmark.h> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/util/future.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/util/future_test.cc
4f887a6430414cd6088e1743555015b10f116d50
4b460faa-3e02-4fe9-9e44-a87764cff48c
cpp
google/tensorstore
status
tensorstore/serialization/status.cc
tensorstore/serialization/status_test.cc
#include "absl/status/status.h" #include "tensorstore/serialization/serialization.h" #include "tensorstore/serialization/status.h" namespace tensorstore { namespace serialization { bool ErrorStatusSerializer::Encode(EncodeSink& sink, const absl::Status& status) { assert(!status.ok()...
#include "tensorstore/serialization/status.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/strings/cord.h" #include "tensorstore/serialization/serialization.h" #include "tensorstore/serialization/test_util.h" namespace { using ::tensorstore::serialization::TestSeriali...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/serialization/status.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/serialization/status_test.cc
4f887a6430414cd6088e1743555015b10f116d50
0c94eaf6-93e0-4025-945c-871916febf5b
cpp
google/tensorstore
serialization
tensorstore/serialization/serialization.cc
tensorstore/serialization/serialization_test.cc
#include "tensorstore/serialization/serialization.h" #include <cstring> #include <string_view> #include "absl/status/status.h" #include "tensorstore/util/span.h" #include "tensorstore/util/str_cat.h" namespace tensorstore { namespace serialization { namespace internal_serialization { void FailNonNull(DecodeSource& sour...
#include "tensorstore/serialization/serialization.h" #include <cstdint> #include <map> #include <set> #include <string> #include <tuple> #include <variant> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorstore/serialization/std_map.h" #include "tensorstore/serialization/std_optional....
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/serialization/serialization.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/serialization/serialization_test.cc
4f887a6430414cd6088e1743555015b10f116d50
539747d9-ddc4-43ed-b586-0406c8dbf82e
cpp
google/tensorstore
context
tensorstore/context.cc
tensorstore/context_test.cc
#include "tensorstore/context.h" #include <stddef.h> #include <algorithm> #include <cassert> #include <memory> #include <string> #include <string_view> #include <utility> #include <vector> #include "absl/base/no_destructor.h" #include "absl/base/thread_annotations.h" #include "absl/log/absl_check.h" #include "absl/log/...
#include "tensorstore/context.h" #include <cstddef> #include <cstdint> #include <optional> #include <string> #include <tuple> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include <nlohmann/json.hpp> #include "tensorstore/context_impl.h" #include "tensorstore/conte...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/context.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/context_test.cc
4f887a6430414cd6088e1743555015b10f116d50
c9209c28-d4bd-437f-92df-e2eb3d2bf2b6
cpp
google/tensorstore
unit
tensorstore/internal/json_binding/unit.cc
tensorstore/util/unit_test.cc
#include "tensorstore/internal/json_binding/unit.h" #include <cmath> #include <string> #include "absl/status/status.h" #include <nlohmann/json_fwd.hpp> #include "tensorstore/internal/json/value_as.h" #include "tensorstore/internal/json_binding/bindable.h" #include "tensorstore/internal/json_binding/json_binding.h" #inc...
#include "tensorstore/util/unit.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/strings/str_cat.h" #include "tensorstore/internal/json_binding/gtest.h" #include "tensorstore/internal/json_binding/unit.h" #include "tensorstore/internal/json_gtest.h" #include "tensorstore/serialization/serialization.h...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/json_binding/unit.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/util/unit_test.cc
4f887a6430414cd6088e1743555015b10f116d50
6709acfa-25b3-45ca-86e4-21b8908657e7
cpp
google/tensorstore
batch
tensorstore/serialization/batch.cc
tensorstore/batch_test.cc
#include "tensorstore/serialization/batch.h" #include "absl/status/status.h" #include "tensorstore/serialization/serialization.h" #include "tensorstore/util/status.h" #include "tensorstore/util/str_cat.h" namespace tensorstore { namespace serialization { BatchEncodeSink::BatchEncodeSink(riegeli::Writer& writer) : E...
#include "tensorstore/batch.h" #include <stddef.h> #include <functional> #include <string> #include <utility> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "tensorstore/batch_impl.h" namespace { using ::tensorstore::Ba...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/serialization/batch.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/batch_test.cc
4f887a6430414cd6088e1743555015b10f116d50
d5254719-24c1-4a2c-931b-bfce7b9085fb
cpp
google/tensorstore
virtual_chunked
tensorstore/driver/virtual_chunked/virtual_chunked.cc
tensorstore/driver/virtual_chunked/virtual_chunked_test.cc
#include "tensorstore/virtual_chunked.h" #include <stddef.h> #include <algorithm> #include <atomic> #include <memory> #include <numeric> #include <optional> #include <string> #include <utility> #include <vector> #include "absl/base/optimization.h" #include "absl/status/status.h" #include "absl/time/clock.h" #include "a...
#include "tensorstore/virtual_chunked.h" #include <memory> #include <utility> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/synchronization/mutex.h" #include "absl/time/clock.h" #include "absl/time/time.h" #include "tensorstore/array.h" #include "tens...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/driver/virtual_chunked/virtual_chunked.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/driver/virtual_chunked/virtual_chunked_test.cc
4f887a6430414cd6088e1743555015b10f116d50
7bcdd45e-32f6-4fdb-87c7-38510f150311
cpp
google/tensorstore
transaction
tensorstore/kvstore/transaction.cc
tensorstore/kvstore/transaction_test.cc
#include "tensorstore/kvstore/transaction.h" #include <stddef.h> #include <stdint.h> #include <cassert> #include <iterator> #include <memory> #include <new> #include <optional> #include <string> #include <string_view> #include <utility> #include "absl/base/optimization.h" #include "absl/container/btree_map.h" #include ...
#include "tensorstore/transaction.h" #include <utility> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "absl/strings/cord.h" #include "absl/time/clock.h" #include "tensorstore/internal/intrusive_ptr.h" #include "tensorstore/kvstore/byte_range.h" #include "tensorstore/kvstore/...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/kvstore/transaction.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/kvstore/transaction_test.cc
4f887a6430414cd6088e1743555015b10f116d50
425d073d-3f27-40e9-99b6-df84309bd750
cpp
google/tensorstore
data_type
tensorstore/internal/json_binding/data_type.cc
tensorstore/internal/json_binding/data_type_test.cc
#include "tensorstore/internal/json_binding/data_type.h" #include <string> #include "absl/status/status.h" #include <nlohmann/json.hpp> #include "tensorstore/data_type.h" #include "tensorstore/internal/json/json.h" #include "tensorstore/internal/json_binding/bindable.h" #include "tensorstore/internal/json_binding/json_...
#include "tensorstore/internal/json_binding/data_type.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include <nlohmann/json.hpp> #include "tensorstore/data_type.h" #include "tensorstore/internal/json_binding/bindable.h" #include "tensorstore/internal/json_binding/gtest.h" #include...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/json_binding/data_type.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/json_binding/data_type_test.cc
4f887a6430414cd6088e1743555015b10f116d50
dda443db-0507-43c0-b3f0-6587d86c0f40
cpp
google/tensorstore
spec
tensorstore/kvstore/spec.cc
tensorstore/driver/zarr/spec_test.cc
#include "tensorstore/kvstore/spec.h" #include <string> #include <string_view> #include <utility> #include "absl/status/status.h" #include <nlohmann/json.hpp> #include "tensorstore/context.h" #include "tensorstore/internal/intrusive_ptr.h" #include "tensorstore/internal/json_binding/bindable.h" #include "tensorstore/in...
#include "tensorstore/driver/zarr/spec.h" #include <stdint.h> #include <optional> #include <string> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <nlohmann/json.hpp> #include "tensorstore/codec_spec.h" #include "tensorstore/driver/zarr/metadata.h" #include "tensorstore/index_space/index_domain_builder.h" #...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/kvstore/spec.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/driver/zarr/spec_test.cc
4f887a6430414cd6088e1743555015b10f116d50
cfb1aa9b-3c0d-4dc7-a715-a854d74496a6
cpp
google/tensorstore
chunk_layout
tensorstore/chunk_layout.cc
tensorstore/chunk_layout_test.cc
#include "tensorstore/chunk_layout.h" #include <stddef.h> #include <stdint.h> #include <algorithm> #include <atomic> #include <cassert> #include <cstdlib> #include <cstring> #include <limits> #include <memory> #include <ostream> #include <string_view> #include <type_traits> #include <utility> #include "absl/base/optimi...
#include "tensorstore/chunk_layout.h" #include <stddef.h> #include <algorithm> #include <array> #include <cstdlib> #include <random> #include <string> #include <vector> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/container/flat_hash_map.h" #include "absl/random/bit_gen_ref.h" #include "absl/random/...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/chunk_layout.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/chunk_layout_test.cc
4f887a6430414cd6088e1743555015b10f116d50
416c9ceb-73a8-4e36-b70f-7ac1a8c89534
cpp
google/tensorstore
cast
tensorstore/driver/cast/cast.cc
tensorstore/driver/cast/cast_test.cc
#include "tensorstore/driver/cast/cast.h" #include <cassert> #include <utility> #include "absl/status/status.h" #include "tensorstore/array.h" #include "tensorstore/array_storage_statistics.h" #include "tensorstore/chunk_layout.h" #include "tensorstore/codec_spec.h" #include "tensorstore/context.h" #include "tensorstor...
#include "tensorstore/cast.h" #include <cstddef> #include <cstdint> #include <string> #include <utility> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "tensorstore/array.h" #include "tensorstore/box.h" #include "tensorstore/chunk_layout.h" #include "tensorstore/codec_spec.h"...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/driver/cast/cast.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/driver/cast/cast_test.cc
4f887a6430414cd6088e1743555015b10f116d50
c5b5d6df-a040-4c59-a775-cf98fef10b84
cpp
google/tensorstore
kvstore
tensorstore/kvstore/kvstore.cc
tensorstore/kvstore/kvstore_test.cc
#include "tensorstore/kvstore/kvstore.h" #include <stddef.h> #include <stdint.h> #include <algorithm> #include <atomic> #include <cassert> #include <optional> #include <string> #include <string_view> #include <utility> #include "absl/base/attributes.h" #include "absl/base/no_destructor.h" #include "absl/base/thread_a...
#include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include "tensorstore/context.h" #include "tensorstore/kvstore/kvstore.h" #include "tensorstore/util/future.h" #include "tensorstore/util/result.h" #include "tensorstore/util/status.h" #include "tensorstore/util/status_testutil.h" #includ...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/kvstore/kvstore.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/kvstore/kvstore_test.cc
4f887a6430414cd6088e1743555015b10f116d50
5eb65c3c-b5da-4d15-bec0-f019bbe5d977
cpp
google/tensorstore
index
python/tensorstore/index.cc
python/tensorstore/index_test.cc
#include <pybind11/pybind11.h> #include "python/tensorstore/index.h" #include <cstddef> #include <string> #include <variant> #include <vector> #include "python/tensorstore/sequence_parameter.h" #include "tensorstore/index.h" #include "tensorstore/index_space/index_vector_or_scalar.h" #include "tensorstore/index_space/i...
#include "python/tensorstore/index.h" #include <vector> #include <gtest/gtest.h> #include "tensorstore/index.h" namespace { TEST(OptionallyImplicitIndexReprTest, Basic) { using tensorstore::kImplicit; using tensorstore::internal_python::OptionallyImplicitIndexRepr; EXPECT_EQ("None", OptionallyImplicitIndexRepr(kI...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/python/tensorstore/index.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/python/tensorstore/index_test.cc
4f887a6430414cd6088e1743555015b10f116d50
7e2c7a0e-34b4-43d0-83f0-bea87162eae3
cpp
google/tensorstore
downsample
tensorstore/driver/downsample/downsample.cc
tensorstore/driver/downsample/downsample_test.cc
#include "tensorstore/driver/downsample/downsample.h" #include <stddef.h> #include <algorithm> #include <cassert> #include <mutex> #include <utility> #include <vector> #include "absl/base/thread_annotations.h" #include "absl/container/inlined_vector.h" #include "absl/status/status.h" #include "absl/synchronization/mute...
#include "tensorstore/downsample.h" #include <stdint.h> #include <memory> #include <string> #include <utility> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "absl/status/status.h" #include <nlohmann/json.hpp> #include "tensorstore/array.h" #include "tensorstore/chunk_layout.h" #include "tensorstore/context...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/driver/downsample/downsample.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/driver/downsample/downsample_test.cc
4f887a6430414cd6088e1743555015b10f116d50
0f10e362-7fd0-45fb-9e53-3b3d601049b6
cpp
google/tensorstore
array
tensorstore/internal/json/array.cc
tensorstore/internal/json_binding/array_test.cc
#include "tensorstore/internal/json/array.h" #include <stddef.h> #include <algorithm> #include <cassert> #include <utility> #include <vector> #include "absl/functional/function_ref.h" #include "absl/status/status.h" #include <nlohmann/json.hpp> #include "tensorstore/array.h" #include "tensorstore/contiguous_layout.h" #...
#include "tensorstore/internal/json_binding/array.h" #include <memory> #include <utility> #include <gtest/gtest.h> #include <nlohmann/json_fwd.hpp> #include "tensorstore/array.h" #include "tensorstore/data_type.h" #include "tensorstore/internal/json/json.h" #include "tensorstore/internal/json_binding/gtest.h" #include ...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/json/array.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/internal/json_binding/array_test.cc
4f887a6430414cd6088e1743555015b10f116d50
080feecb-ebad-4a7e-98c1-4692f8c306fe
cpp
google/tensorstore
progress
tensorstore/progress.cc
tensorstore/progress_test.cc
#include "tensorstore/progress.h" #include <ostream> namespace tensorstore { bool operator==(const ReadProgress& a, const ReadProgress& b) { return a.total_elements == b.total_elements && a.copied_elements == b.copied_elements; } bool operator!=(const ReadProgress& a, const ReadProgress& b) { return !(a ==...
#include "tensorstore/progress.h" #include <gmock/gmock.h> #include <gtest/gtest.h> #include "tensorstore/util/str_cat.h" namespace { using ::tensorstore::CopyProgress; using ::tensorstore::ReadProgress; using ::tensorstore::WriteProgress; TEST(ReadProgressTest, Comparison) { ReadProgress a{1, 1}; ReadProgress b{2,...
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/progress.cc
https://github.com/google/tensorstore/blob/4f887a6430414cd6088e1743555015b10f116d50/tensorstore/progress_test.cc
4f887a6430414cd6088e1743555015b10f116d50