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 <firstname.lastname@example.org>
Reviewed-by: Kevin Shelton <email@example.com>
Commit-Queue: Greg Edelston <firstname.lastname@example.org>
1 file changed