File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 9
9
)
10
10
11
11
func TestSupportedFormatWorksForExamples (t * testing.T ) {
12
+ t .Parallel ()
12
13
for _ , supportedFormat := range approvals .GetSupportedFormats () {
13
14
dateScrubber := approvals .NewDateScrubber (supportedFormat .Regex )
14
15
for _ , example := range supportedFormat .Examples {
@@ -21,6 +22,7 @@ func TestSupportedFormatWorksForExamples(t *testing.T) {
21
22
}
22
23
23
24
func TestGetDateScrubber (t * testing.T ) {
25
+ t .Parallel ()
24
26
formats := approvals .GetSupportedFormats ()
25
27
output := ""
26
28
for _ , format := range formats {
@@ -39,6 +41,7 @@ func TestGetDateScrubber(t *testing.T) {
39
41
}
40
42
41
43
func TestExampleForDocumentation (t * testing.T ) {
44
+ t .Parallel ()
42
45
// begin-snippet: scrub_date_example
43
46
scrubber , err := approvals .GetDateScrubberFor ("00:00:00" )
44
47
if err != nil {
@@ -49,6 +52,7 @@ func TestExampleForDocumentation(t *testing.T) {
49
52
}
50
53
51
54
func TestSupportedFormats (t * testing.T ) {
55
+ t .Parallel ()
52
56
formats := approvals .GetSupportedFormats ()
53
57
54
58
table := "| Example Date | RegEx Pattern |\n "
Original file line number Diff line number Diff line change 2
2
set -euo pipefail
3
3
4
4
go build -v ./...
5
+ go clean -testcache
5
6
go test ./... -race -coverprofile=coverage.txt -covermode=atomic
You can’t perform that action at this time.
0 commit comments