A golden test to verify attribute default values.
This is my rule. It does stuff.
ATTRIBUTES
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
name | A unique name for this target. | Name | required | |
a | Some bool | Boolean | optional | False |
b | Some int | Integer | optional | 2 |
c | Some int_list | List of integers | optional | [0, 1] |
d | Some label | Label | optional | "@io_bazel_stardoc//foo:bar" |
e | Some label_keyed_string_dict | Dictionary: Label -> String | optional | {"@io_bazel_stardoc//foo:bar": "hello", "@io_bazel_stardoc//bar:baz": "goodbye"} |
f | Some label_list | List of labels | optional | ["@io_bazel_stardoc//foo:bar", "@io_bazel_stardoc//bar:baz"] |
g | Some string | String | optional | "" |
h | Some string_dict | Dictionary: String -> String | optional | {"animal": "bunny", "color": "orange"} |
i | Some string_list | List of strings | optional | ["cat", "dog"] |
j | Some string_list_dict | Dictionary: String -> List of strings | optional | {"animal": ["cat", "bunny"], "color": ["blue", "orange"]} |
k | Some bool | Boolean | required | |
l | Some int | Integer | required | |
m | Some int_list | List of integers | required | |
n | Some label | Label | required | |
o | Some label_keyed_string_dict | Dictionary: Label -> String | required | |
p | Some label_list | List of labels | required | |
q | Some string | String | required | |
r | Some string_dict | Dictionary: String -> String | required | |
s | Some string_list | List of strings | required | |
t | Some string_list_dict | Dictionary: String -> List of strings | required | |
u | - | String | optional | "" |
v | - | Label | optional | None |
w | - | Integer | optional | 0 |
This is my aspect. It does stuff.
ASPECT ATTRIBUTES
Name | Type |
---|---|
deps | String |
attr_aspect | String |
ATTRIBUTES
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
name | A unique name for this target. | Name | required | |
y | some string | String | optional | "why" |
z | - | String | required |