DifferentBufferSizes,
FileGenBufferedTest,
::testing::Values(0, 1, 2, 4, 8, 64, 4096));
-
-int main(int argc, char *argv[]) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
EXPECT_EQ(lines, from(chunks) | resplit('\n') | eachTo<std::string>() |
batch(3) | rconcat | as<vector>());
}
-
-int main(int argc, char *argv[]) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
queue.appendToString(s);
EXPECT_EQ("hello world", s);
}
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
-
- return RUN_ALL_TESTS();
-}
writableStr(*buf2)[0] = 'x';
EXPECT_EQ("jelloxorldhelloxorld", toString(*buf1));
}
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
-
- return RUN_ALL_TESTS();
-}
}
}} // namespaces
-
-int main(int argc, char *argv[]) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
#include <folly/AtomicStruct.h>
-#include <gflags/gflags.h>
#include <gtest/gtest.h>
using namespace folly;
EXPECT_EQ(sizeof(AtomicStruct<S7>), 8);
EXPECT_EQ(sizeof(AtomicStruct<S8>), 8);
}
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
#include <folly/DynamicConverter.h>
#include <algorithm>
-#include <gflags/gflags.h>
#include <gtest/gtest.h>
#include <map>
#include <vector>
-#include <folly/Benchmark.h>
-
using namespace folly;
using namespace folly::dynamicconverter_detail;
dynamic d2 = floatOver;
EXPECT_THROW(convertTo<float>(d2), std::range_error);
}
-
-int main(int argc, char ** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- if (FLAGS_benchmark) {
- folly::runBenchmarks();
- }
- return RUN_ALL_TESTS();
-}
#include <folly/dynamic.h>
#include <boost/next_prior.hpp>
-#include <gflags/gflags.h>
#include <gtest/gtest.h>
using folly::dynamic;
ss << folly::dynamic(nullptr);
EXPECT_EQ("null", ss.str());
}
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
}
}} // namespaces
-
-int main(int argc, char *argv[]) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
#include <folly/FBString.h>
#include <folly/FBVector.h>
-#include <gflags/gflags.h>
-
#include <gtest/gtest.h>
#include <list>
#include <map>
EXPECT_EQ(fb1.size(), 0);
EXPECT_EQ(fb1.capacity(), 0);
}
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
#include <glog/logging.h>
#include <gtest/gtest.h>
-#include <folly/Benchmark.h>
#include <folly/String.h>
#include <folly/Subprocess.h>
#include <folly/experimental/io/FsUtil.h>
#include <deque>
#include <glog/logging.h>
-#include <gflags/gflags.h>
#include <gtest/gtest.h>
-#include <folly/Benchmark.h>
#include <folly/Range.h>
#include <folly/String.h>
}
}} // namespaces
-
-int main(int argc, char *argv[]) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
#include <ratio>
#include <thread>
-#include <gflags/gflags.h>
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <time.h>
run_basic_tests<DeterministicAtomic>();
run_wait_until_tests<DeterministicAtomic>();
}
-
-int main(int argc, char ** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
#include <thread>
#include <unistd.h>
#include <semaphore.h>
-#include <gflags/gflags.h>
#include <gtest/gtest.h>
using namespace folly;
}
EXPECT_EQ(NonTrivialStruct::count, 0);
}
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
#include <boost/next_prior.hpp>
#include <folly/json.h>
-#include <gflags/gflags.h>
#include <gtest/gtest.h>
using folly::dynamic;
PrintTo(value, &oss);
EXPECT_EQ(expected, oss.str());
}
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
#include <sys/time.h>
#include <sys/resource.h>
-#include <gflags/gflags.h>
#include <gtest/gtest.h>
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_1(boost::intrusive_ptr);
TEST(MPMCQueue, explicit_zero_capacity_fail) {
ASSERT_THROW(MPMCQueue<int> cq(0), std::invalid_argument);
}
-
-
-int main(int argc, char ** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
#include <folly/ScopeGuard.h>
#include <folly/Portability.h>
-#include <gflags/gflags.h>
#include <gtest/gtest.h>
#include <glog/logging.h>
};
EXPECT_THROW(lambda(), std::runtime_error);
}
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- return RUN_ALL_TESTS();
-}
// If serial_count value is the same, then singleton was not replaced.
EXPECT_NE(serial_count_first, serial_count_mock);
}
-
-int main(int argc, char* argv[]) {
- testing::InitGoogleTest(&argc, argv);
- google::InitGoogleLogging(argv[0]);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
-
- SingletonVault::singleton()->registrationComplete();
-
- auto ret = RUN_ALL_TESTS();
-
- return ret;
-}
* limitations under the License.
*/
-#include <folly/Benchmark.h>
#include <folly/Traits.h>
-#include <gflags/gflags.h>
#include <gtest/gtest.h>
using namespace folly;
EXPECT_FALSE(bool(has_member_type_x<membership_no>::value));
EXPECT_TRUE(bool(has_member_type_x<membership_yes>::value));
}
-
-int main(int argc, char ** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
- if (FLAGS_benchmark) {
- folly::runBenchmarks();
- }
- return RUN_ALL_TESTS();
-}