graph/formats/dot/internal: regenerate with latest goccmack/gocc

Make use of go.mod to pin gocc version and go mod tidy.
This commit is contained in:
Dan Kortschak
2023-04-27 22:33:00 +09:30
parent 91a06ac64c
commit 258a51e069
15 changed files with 2044 additions and 1849 deletions

View File

@@ -126,7 +126,7 @@ func TestParseError(t *testing.T) {
}{
{
path: "../testdata/error.dot",
want: `Error in S30: INVALID(0,~), Pos(offset=13, line=2, column=7), expected one of: { } graphx ; -- -> node edge [ = subgraph : id `,
want: `2:7: error: expected one of "{", "}", graphx, ";", "--", "->", node, edge, "[", "=", subgraph, ":", or id; got: unknown/invalid token "~"`,
},
}
for _, g := range golden {
@@ -137,7 +137,7 @@ func TestParseError(t *testing.T) {
}
got := err.Error()
if got != g.want {
t.Errorf("%q: error mismatch; expected `%v`, got `%v`", g.path, g.want, got)
t.Errorf("%q: error mismatch; expected %#q, got %#q", g.path, g.want, got)
continue
}
}