2
0
Fork 0
mirror of https://github.com/bazelbuild/bazel-skylib synced 2024-11-26 04:30:24 +00:00
bazel-skylib/tests
Taras Tsugrii b09d5d41b2 Add type checking functions.
Even though it's not great to use type checks, they are frequently useful for
checking input types of macros.

Because there is no standard way of checking types, at least 2 types of checks
are used:
- `type(foo) == type([])`
- `type(foo) == "list"`

The first option is not very readable and the second option seem to be relying
on an Bazel implementation detail. Encapsulating type checks into this library
enables consistent and easy to understand type checking without explicitly
relying on implementation details.
2018-05-09 10:55:40 -07:00
..
BUILD Add type checking functions. 2018-05-09 10:55:40 -07:00
collections_tests.bzl Initial check-in. 2017-10-10 07:59:31 -07:00
dicts_tests.bzl Initial check-in. 2017-10-10 07:59:31 -07:00
new_sets_tests.bzl Add support for repr/str to new_sets (#42) 2018-05-04 15:39:54 -07:00
partial_tests.bzl Add support for 'functools.partial' like functionality. (#34) 2018-04-17 09:33:38 -07:00
paths_tests.bzl Don't special case current directory relative paths. 2018-03-07 14:30:43 -05:00
selects_tests.bzl Initial check-in. 2017-10-10 07:59:31 -07:00
sets_tests.bzl Address skylint warnings on the tests. (#39) 2018-05-01 14:12:52 -04:00
shell_tests.bzl Skylint: stop using ctx.outputs.executable. 2018-05-01 14:34:36 -04:00
structs_tests.bzl Initial check-in. 2017-10-10 07:59:31 -07:00
types_tests.bzl Add type checking functions. 2018-05-09 10:55:40 -07:00
versions_tests.bzl Added a lib for version checking and comparison (#13) 2018-01-12 09:18:55 -08:00