chore: fixup test sizes to resolve warnings (#911)

This commit is contained in:
Greg Magolan 2024-08-19 15:33:54 -04:00 committed by GitHub
parent eb55a3c03f
commit 62b2fd06aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 12 deletions

View File

@ -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")
@ -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"),
)

View File

@ -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")
@ -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"),
)

View File

@ -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")
@ -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"),
)