chore(go): adjust verifier goal regex to be compatible with latest gofmt
Our verifier assertions previously had a prefix of "//-", which the
latest gofmt changes to "// -" in some cases. This change
applies gofmt to all go indexer testdata files and adjusts the
goal_regex to accept both prefix styles.
@@ -231,7 +231,7 @@ def go_verifier_test(
log_entries = False,
has_marked_source = False,
allow_duplicates = False):
- opts = ["--use_file_nodes", "--show_goals", "--check_for_singletons"]
+ opts = ["--use_file_nodes", "--show_goals", "--check_for_singletons", "--goal_regex='\\s*//\\s*-(.*)'"]
if log_entries:
opts.append("--show_protos")
if allow_duplicates or len(deps) > 0:
