[reporting] Add basic test for resultdb reporter

Call `CheckCompleted` a couple times and make sure the results get
reported to the result sink.

This would have caught the bug that was fixed in
commit 63b7c4940017488453a853975706f6c8aaed550c.

Coverage of the "reporting" package improves from 50.0% to 82.7%.

Change-Id: I925e93eb5a6594b53e4e76d552bd0e33b831c22d
Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/866436
Reviewed-by: Marc-Antoine Ruel <maruel@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com>
3 files changed
tree: 1f4260219ed662d585c198b74c8977ef61b560c2
  1. .github/
  2. doc/
  3. images/
  4. internal/
  5. scripts/
  6. .gitignore
  7. AUTHORS
  8. check_doc.star
  9. codecov.yml
  10. CONTRIBUTING.md
  11. go.mod
  12. go.star
  13. go.sum
  14. LICENSE
  15. licenses.star
  16. main.go
  17. OWNERS
  18. PATENTS
  19. README.md
  20. shac.star
  21. shac.textproto
README.md

shac

Shac (Scalable Hermetic Analysis and Checks) is a unified and ergonomic tool and framework for writing and running static analysis checks.

Shac checks are written in Starlark.

usage demonstration

Usage

go install go.fuchsia.dev/shac-project/shac@latest
shac check
shac doc shac.star | less

Documentation

Contributing

⚠ The source of truth is at https://fuchsia.googlesource.com/shac-project/shac.git and uses Gerrit for code review.

See CONTRIBUTING.md to submit changes.