Run buildifier --lint=fix over the files. (#88)

Fixes some dict order issues with the current version of buildifier.
This commit is contained in:
Thomas Van Lenten 2019-01-02 17:47:44 -05:00 committed by Tony Allevato
parent c00ef49386
commit 4795fd6146
2 changed files with 8 additions and 8 deletions

View File

@ -52,10 +52,10 @@ def _unittest_toolchain_impl(ctx):
unittest_toolchain = rule( unittest_toolchain = rule(
implementation = _unittest_toolchain_impl, implementation = _unittest_toolchain_impl,
attrs = { attrs = {
"file_ext": attr.string(mandatory = True),
"success_templ": attr.string(mandatory = True),
"failure_templ": attr.string(mandatory = True), "failure_templ": attr.string(mandatory = True),
"file_ext": attr.string(mandatory = True),
"join_on": attr.string(mandatory = True), "join_on": attr.string(mandatory = True),
"success_templ": attr.string(mandatory = True),
}, },
) )

View File

@ -25,30 +25,30 @@ def _with_or_test(ctx):
# dictionary from a select(). # dictionary from a select().
# Test select()-compatible input syntax. # Test select()-compatible input syntax.
input_dict = {":foo": ":d1", "//conditions:default": ":d1"} input_dict = {"//conditions:default": ":d1", ":foo": ":d1"}
asserts.equals(env, input_dict, selects.with_or_dict(input_dict)) asserts.equals(env, input_dict, selects.with_or_dict(input_dict))
# Test OR syntax. # Test OR syntax.
or_dict = {(":foo", ":bar"): ":d1"} or_dict = {(":foo", ":bar"): ":d1"}
asserts.equals( asserts.equals(
env, env,
{":foo": ":d1", ":bar": ":d1"}, {":bar": ":d1", ":foo": ":d1"},
selects.with_or_dict(or_dict), selects.with_or_dict(or_dict),
) )
# Test mixed syntax. # Test mixed syntax.
mixed_dict = { mixed_dict = {
":foo": ":d1",
(":bar", ":baz"): ":d2",
"//conditions:default": ":d3", "//conditions:default": ":d3",
(":bar", ":baz"): ":d2",
":foo": ":d1",
} }
asserts.equals( asserts.equals(
env, env,
{ {
":foo": ":d1", "//conditions:default": ":d3",
":bar": ":d2", ":bar": ":d2",
":baz": ":d2", ":baz": ":d2",
"//conditions:default": ":d3", ":foo": ":d1",
}, },
selects.with_or_dict(mixed_dict), selects.with_or_dict(mixed_dict),
) )