aboutsummaryrefslogtreecommitdiff
path: root/test/testdata/unknown_name_test/input.bzl
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/unknown_name_test/input.bzl')
-rw-r--r--test/testdata/unknown_name_test/input.bzl13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/testdata/unknown_name_test/input.bzl b/test/testdata/unknown_name_test/input.bzl
new file mode 100644
index 0000000..062f49d
--- /dev/null
+++ b/test/testdata/unknown_name_test/input.bzl
@@ -0,0 +1,13 @@
+# buildifier: disable=module-docstring
+def my_rule_impl(ctx):
+ return []
+
+rule(
+ implementation = my_rule_impl,
+ attrs = {
+ "first": attr.label(mandatory = True, allow_single_file = True),
+ "second": attr.string_dict(mandatory = True),
+ "third": attr.output(mandatory = True),
+ "fourth": attr.bool(default = False, mandatory = False),
+ },
+)