E2E summarizer: Put test-reading logic in function
Previously, the only purpose of the coverage summarizer was to collect
information about existing Autotest tests. Therefore, it made sense to
keep the logic about reading tests in main().
However, as we look forward to expanding this script to also account for
unwritten tests, this is no longer the only purpose of main().
This CL improves readability by putting the test-reading logic in a
TEST=go run fw_e2e_coverage_summarizer.go
Tested-by: Greg Edelston <email@example.com>
Reviewed-by: Kevin Shelton <firstname.lastname@example.org>
Commit-Queue: Greg Edelston <email@example.com>
1 file changed