feat: Add DefaultInfoSubject

This is a subject for the `DefaultInfo` provider. Normally accessing its
information is done through TargetSubject, however, if an object has a
direct reference to DefaultInfo instance, then there isn't a target
directly associated with it. Such a situation can occur when using
toolchain info forwarding rules (e.g. :current_foo_toolchain).

Fixes https://github.com/bazelbuild/rules_testing/issues/52
7 files changed
tree: 41e1e7b893417e75592853314cb0fb7530d387a8
  1. .bazelci/
  2. .bcr/
  3. .github/
  4. docgen/
  5. docs/
  6. e2e/
  7. lib/
  8. tests/
  9. .bazelignore
  10. .bazelrc
  11. .gitignore
  12. .readthedocs.yaml
  13. addlicense.sh
  14. AUTHORS
  15. BUILD
  16. CHANGELOG.md
  17. CODEOWNERS
  18. CONTRIBUTING.md
  19. dev_extension.bzl
  20. LICENSE
  21. MODULE.bazel
  22. README.md
  23. RELEASING.md
  24. WORKSPACE.bazel
  25. WORKSPACE.bzlmod
README.md

Buildstatus

Framworks and utilities for testing Bazel Starlark

rules_testing provides frameworks and utilities to make testing Starlark code easier and convenient.

For detailed docs, see the docs website