Skip to content

Commit

Permalink
Buildifier
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Sep 20, 2021
1 parent 82f8cfc commit 88c3f7d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/unittest_tests.bzl
Expand Up @@ -197,15 +197,16 @@ inspect_actions_test = analysistest.make(
####################################
####### inspect_aspect_test #######
####################################
AddedByAspect = provider(
_AddedByAspectInfo = provider(
docs = "Example provider added by example aspect",
fields = {
"value": "(str)",
},
)

def _example_aspect_impl(target, ctx):
return [
AddedByAspect(value = "attached by aspect"),
_AddedByAspectInfo(value = "attached by aspect"),
]

example_aspect = aspect(
Expand All @@ -217,7 +218,7 @@ def _inspect_aspect_test(ctx):
env = analysistest.begin(ctx)

tut = env.ctx.attr.target_under_test
asserts.equals(env, "attached by aspect", tut[AddedByAspect].value)
asserts.equals(env, "attached by aspect", tut[_AddedByAspectInfo].value)
return analysistest.end(env)

def _inspect_aspect_fake_rule(ctx):
Expand Down

0 comments on commit 88c3f7d

Please sign in to comment.