Skip to content

Commit 38f5a24

Browse files
committed
test: fix regexp for Windows
1 parent 3e7722e commit 38f5a24

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/testdata/musttag.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
// builtin functions:
1010
func musttagJSON() {
11-
var user struct { // want "`anonymous struct` should be annotated with the `json` tag as it is passed to `json.Marshal` at test/testdata/musttag.go:15:2"
11+
var user struct { // want "`anonymous struct` should be annotated with the `json` tag as it is passed to `json.Marshal` at test(/|\\\\)testdata(/|\\\\)musttag.go:15:2"
1212
Name string
1313
Email string `json:"email"`
1414
}

test/testdata/musttag_custom.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
// builtin functions:
1111
func musttagJSONCustom() {
12-
var user struct { // want "`anonymous struct` should be annotated with the `json` tag as it is passed to `json.Marshal` at test/testdata/musttag_custom.go:16:2"
12+
var user struct { // want "`anonymous struct` should be annotated with the `json` tag as it is passed to `json.Marshal` at test(/|\\\\)testdata(/|\\\\)musttag_custom.go:16:2"
1313
Name string
1414
Email string `json:"email"`
1515
}
@@ -18,7 +18,7 @@ func musttagJSONCustom() {
1818

1919
// custom functions from config:
2020
func musttagASN1Custom() {
21-
var user struct { // want "`anonymous struct` should be annotated with the `asn1` tag as it is passed to `asn1.Marshal` at test/testdata/musttag_custom.go:25:2"
21+
var user struct { // want "`anonymous struct` should be annotated with the `asn1` tag as it is passed to `asn1.Marshal` at test(/|\\\\)testdata(/|\\\\)musttag_custom.go:25:2"
2222
Name string
2323
Email string `asn1:"email"`
2424
}

0 commit comments

Comments
 (0)