Skip to content

Commit

Permalink
fix(testing): Sort test cases per data package (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
grayside authored Jan 31, 2023
1 parent 322c786 commit 030cf6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generators/protoc-gen-go-googlecetypes/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os"
"path/filepath"
"regexp"
"sort"
"strconv"
"strings"
"text/template"
Expand Down Expand Up @@ -125,6 +126,7 @@ func generateTests(gen *protogen.Plugin, file *protogen.File) *protogen.Generate
for i := range dataTypeMap {
dataTypeSlice = append(dataTypeSlice, i)
}
sort.Strings(dataTypeSlice)
params.DataTypes = dataTypeSlice

// Create TestDataPath like "google/events/cloud/functions/v1"
Expand Down

0 comments on commit 030cf6d

Please sign in to comment.