Skip to content

Commit

Permalink
Split runtime array tests from static array tests.
Browse files Browse the repository at this point in the history
Also, break out method array ref test (similar to fields) for better organisation.

PiperOrigin-RevId: 583674129
  • Loading branch information
jwhpryor authored and copybara-github committed Nov 19, 2023
1 parent db5ecf9 commit 50d5a72
Show file tree
Hide file tree
Showing 11 changed files with 1,230 additions and 853 deletions.
62 changes: 58 additions & 4 deletions implementation/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ cc_library(
],
)

cc_test(
name = "array_test",
srcs = ["array_test.cc"],
deps = [
":fake_test_constants",
"//:jni_bind",
"//:jni_test",
"@googletest//:gtest_main",
],
)

cc_library(
name = "array_ref",
hdrs = ["array_ref.h"],
Expand All @@ -45,8 +56,41 @@ cc_library(
)

cc_test(
name = "array_test",
srcs = ["array_test.cc"],
name = "local_array_iteration_test",
srcs = ["local_array_iteration_test.cc"],
deps = [
":fake_test_constants",
"//:jni_bind",
"//:jni_test",
"@googletest//:gtest_main",
],
)

cc_test(
name = "local_array_method_test",
srcs = ["local_array_method_test.cc"],
deps = [
":fake_test_constants",
"//:jni_bind",
"//:jni_test",
"@googletest//:gtest_main",
],
)

cc_test(
name = "local_array_method_multidimensional_test",
srcs = ["local_array_method_multidimensional_test.cc"],
deps = [
":fake_test_constants",
"//:jni_bind",
"//:jni_test",
"@googletest//:gtest_main",
],
)

cc_test(
name = "local_array_string_test",
srcs = ["local_array_string_test.cc"],
deps = [
":fake_test_constants",
"//:jni_bind",
Expand Down Expand Up @@ -987,8 +1031,18 @@ cc_library(
)

cc_test(
name = "signature_test",
srcs = ["signature_test.cc"],
name = "signature_method_test",
srcs = ["signature_method_test.cc"],
deps = [
"//:jni_bind",
"//:jni_test",
"@googletest//:gtest_main",
],
)

cc_test(
name = "signature_field_test",
srcs = ["signature_field_test.cc"],
deps = [
"//:jni_bind",
"//:jni_test",
Expand Down
Loading

0 comments on commit 50d5a72

Please sign in to comment.