Skip to content

Commit

Permalink
Debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
dws committed Nov 12, 2020
1 parent 348c5ca commit 062c9bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/unittest.bzl
Expand Up @@ -272,6 +272,8 @@ def _suite(name, *test_rules):
test_name = "%s_test_%d" % (name, index)
if types.is_partial(test_rule):
partial.call(test_rule, name = test_name)
elif type(test_rule) == type(struct()):
fail("unexpected struct: {};\ntype(function): {};\ntype(args): {};\ntype(kwargs): {}".format(repr(test_rule), repr(type(test_rule.function)), repr(type(test_rule.args)), repr(type(test_rule.kwargs)) ))
else:
test_rule(name = test_name)
test_names.append(test_name)
Expand Down

0 comments on commit 062c9bf

Please sign in to comment.