From a0aca4b7caa08cb3cc069c354ec5f65a174f26d6 Mon Sep 17 00:00:00 2001 From: Nicholas Ormrod Date: Thu, 11 Jul 2024 10:01:19 -0700 Subject: [PATCH] Move coro testers to folly/coro/test Summary: The following targets were moved to folly/coro/test: ``` //folly/experimental/coro/test:RustAdaptorsTest //folly/experimental/coro/test:PromiseTest ``` `arc f` was applied This is a codemod. It was automatically generated and will be landed once it is approved and tests are passing in sandcastle. You have been added as a reviewer by Sentinel or Butterfly. p:mectts.folly Differential Revision: D59606801 fbshipit-source-id: 0e5f90caacf51be042b98ef8696202264956248f --- folly/coro/test/BUCK | 33 +++++++++++++++++ .../coro/test/PromiseTest.cpp | 0 .../coro/test/RustAdaptorsTest.cpp | 0 folly/experimental/coro/test/BUCK | 36 ------------------- 4 files changed, 33 insertions(+), 36 deletions(-) rename folly/{experimental => }/coro/test/PromiseTest.cpp (100%) rename folly/{experimental => }/coro/test/RustAdaptorsTest.cpp (100%) delete mode 100644 folly/experimental/coro/test/BUCK diff --git a/folly/coro/test/BUCK b/folly/coro/test/BUCK index 4222c6a7af0..0669a8e323c 100644 --- a/folly/coro/test/BUCK +++ b/folly/coro/test/BUCK @@ -309,3 +309,36 @@ cpp_benchmark( "//folly/experimental/coro:task", ], ) + +cpp_unittest( + name = "RustAdaptorsTest", + srcs = [ + "RustAdaptorsTest.cpp", + ], + deps = [ + "//folly:cancellation_token", + "//folly:portability", + "//folly/experimental/coro:baton", + "//folly/experimental/coro:rust_adaptors", + "//folly/experimental/coro:sleep", + "//folly/portability:gtest", + "//folly/synchronization:baton", + ], +) + +cpp_unittest( + name = "PromiseTest", + srcs = [ + "PromiseTest.cpp", + ], + deps = [ + "//folly:portability", + "//folly/experimental/coro:blocking_wait", + "//folly/experimental/coro:collect", + "//folly/experimental/coro:gtest_helpers", + "//folly/experimental/coro:promise", + "//folly/experimental/coro:task", + "//folly/experimental/coro:with_cancellation", + "//folly/portability:gtest", + ], +) diff --git a/folly/experimental/coro/test/PromiseTest.cpp b/folly/coro/test/PromiseTest.cpp similarity index 100% rename from folly/experimental/coro/test/PromiseTest.cpp rename to folly/coro/test/PromiseTest.cpp diff --git a/folly/experimental/coro/test/RustAdaptorsTest.cpp b/folly/coro/test/RustAdaptorsTest.cpp similarity index 100% rename from folly/experimental/coro/test/RustAdaptorsTest.cpp rename to folly/coro/test/RustAdaptorsTest.cpp diff --git a/folly/experimental/coro/test/BUCK b/folly/experimental/coro/test/BUCK deleted file mode 100644 index e454b875319..00000000000 --- a/folly/experimental/coro/test/BUCK +++ /dev/null @@ -1,36 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("fbcode_entropy_wardens_folly") - -cpp_unittest( - name = "RustAdaptorsTest", - srcs = [ - "RustAdaptorsTest.cpp", - ], - deps = [ - "//folly:cancellation_token", - "//folly:portability", - "//folly/experimental/coro:baton", - "//folly/experimental/coro:rust_adaptors", - "//folly/experimental/coro:sleep", - "//folly/portability:gtest", - "//folly/synchronization:baton", - ], -) - -cpp_unittest( - name = "PromiseTest", - srcs = [ - "PromiseTest.cpp", - ], - deps = [ - "//folly:portability", - "//folly/experimental/coro:blocking_wait", - "//folly/experimental/coro:collect", - "//folly/experimental/coro:gtest_helpers", - "//folly/experimental/coro:promise", - "//folly/experimental/coro:task", - "//folly/experimental/coro:with_cancellation", - "//folly/portability:gtest", - ], -)