Skip to content

Commit

Permalink
Split visitor tests
Browse files Browse the repository at this point in the history
Summary: working on thrift visitor and don't need other tests. split this to iterate faster

Reviewed By: Linerd

Differential Revision: D63871045

fbshipit-source-id: e8b986aa4a344063dac59686bb0124d2cdb64edc
  • Loading branch information
Wei-Cheng Lin authored and facebook-github-bot committed Oct 7, 2024
1 parent 22db1de commit cf50833
Showing 1 changed file with 44 additions and 5 deletions.
49 changes: 44 additions & 5 deletions fboss/thrift_visitors/tests/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,62 @@ cpp_unittest(
)

cpp_unittest(
name = "visitor_tests",
name = "delta_visitor_tests",
srcs = [
"DeltaVisitorTests.cpp",
"NameToPathVisitorTests.cpp",
"PathVisitorTests.cpp",
"ThriftLeafVisitorTests.cpp",
],
deps = [
"fbsource//third-party/googletest:gmock",
"//fboss/fsdb/tests:thriftpath_test_thrift-cpp2-types",
"//fboss/thrift_visitors:visitors",
"//folly:string",
"//folly/json:dynamic",
"//folly/logging:logging",
"//thrift/lib/cpp2/folly_dynamic:folly_dynamic",
],
)

cpp_unittest(
name = "path_visitor_tests",
srcs = [
"PathVisitorTests.cpp",
],
deps = [
"//fboss/fsdb/tests:thriftpath_test_thrift-cpp2-types",
"//fboss/thrift_visitors:visitors",
"//folly:string",
"//folly/json:dynamic",
"//folly/logging:logging",
"//thrift/lib/cpp2/folly_dynamic:folly_dynamic",
"//thrift/lib/cpp2/protocol:protocol",
],
)

cpp_unittest(
name = "name_to_path_visitor_tests",
srcs = [
"NameToPathVisitorTests.cpp",
],
deps = [
"//fboss/fsdb/tests:thriftpath_test_thrift-cpp2-thriftpath",
"//fboss/fsdb/tests:thriftpath_test_thrift-cpp2-types",
"//fboss/thrift_visitors:visitors",
"//folly:demangle",
"//folly:string",
"//folly/logging:logging",
],
)

cpp_unittest(
name = "thrift_leaf_visitor_tests",
srcs = [
"ThriftLeafVisitorTests.cpp",
],
deps = [
"//fboss/fsdb/tests:thriftpath_test_thrift-cpp2-types",
"//fboss/thrift_visitors:visitors",
"//folly/json:dynamic",
"//folly/logging:logging",
"//thrift/lib/cpp2/folly_dynamic:folly_dynamic",
"//thrift/lib/cpp2/protocol:protocol",
],
)

0 comments on commit cf50833

Please sign in to comment.