Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fixup test sizes to resolve warnings #911

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/tests/base64_tests.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""unit tests for base64"""

load("@bazel_skylib//lib:partial.bzl", "partial")
load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest")
load("//lib/private:base64.bzl", "decode", "encode")
load("//lib/private:strings.bzl", "INT_TO_CHAR")
Expand Down Expand Up @@ -45,5 +46,5 @@ base64_test = unittest.make(_base64_test_impl)
def base64_test_suite():
unittest.suite(
"base64_tests",
base64_test,
partial.make(base64_test, timeout = "short"),
)
17 changes: 9 additions & 8 deletions lib/tests/lists_test.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""unit tests for lists"""

load("@bazel_skylib//lib:partial.bzl", "partial")
load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest")
load("//lib/private:lists.bzl", "every", "filter", "find", "map", "once", "pick", "some", "unique")

Expand Down Expand Up @@ -82,12 +83,12 @@ unique_test = unittest.make(_unique_test_impl)
def lists_test_suite():
unittest.suite(
"lists_tests",
every_test,
filter_test,
find_test,
map_test,
once_test,
pick_test,
some_test,
unique_test,
partial.make(every_test, timeout = "short"),
partial.make(filter_test, timeout = "short"),
partial.make(find_test, timeout = "short"),
partial.make(map_test, timeout = "short"),
partial.make(once_test, timeout = "short"),
partial.make(pick_test, timeout = "short"),
partial.make(some_test, timeout = "short"),
partial.make(unique_test, timeout = "short"),
)
7 changes: 4 additions & 3 deletions lib/tests/strings_tests.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""unit tests for string"""

load("@bazel_skylib//lib:partial.bzl", "partial")
load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest")
load("//lib/private:strings.bzl", "chr", "hex", "ord")

Expand Down Expand Up @@ -58,7 +59,7 @@ hex_test = unittest.make(_hex_test_impl)
def strings_test_suite():
unittest.suite(
"strings_tests",
ord_test,
chr_test,
hex_test,
partial.make(ord_test, timeout = "short"),
partial.make(chr_test, timeout = "short"),
partial.make(hex_test, timeout = "short"),
)