Skip to content

Commit fe2965f

Browse files
committed
remaining mentions of old method
Signed-off-by: Daniel Hochman <danielhochman@users.noreply.github.com>
1 parent 2db7c69 commit fe2965f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

templates/goshared/msg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (m {{ (msgTyp .).Pointer }}) validate(all bool) error {
6464
6565
{{ if needs . "uuid" }}{{ template "uuid" . }}{{ end }}
6666
67-
{{ cmt (multierrname .) " is an error wrapping multiple validation errors returned by " (msgTyp .) ".Validate(true) if the designated constraints aren't met." -}}
67+
{{ cmt (multierrname .) " is an error wrapping multiple validation errors returned by " (msgTyp .) ".ValidateAll() if the designated constraints aren't met." -}}
6868
type {{ multierrname . }} []error
6969
7070
// Error returns a concatenation of all the error messages it wraps.

tests/harness/go/main/harness.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import (
88

99
"github.com/envoyproxy/protoc-gen-validate/tests/harness/cases/go"
1010
_ "github.com/envoyproxy/protoc-gen-validate/tests/harness/cases/go"
11+
cases "github.com/envoyproxy/protoc-gen-validate/tests/harness/cases/go"
1112
_ "github.com/envoyproxy/protoc-gen-validate/tests/harness/cases/other_package/go"
12-
"github.com/envoyproxy/protoc-gen-validate/tests/harness/go"
13+
harness "github.com/envoyproxy/protoc-gen-validate/tests/harness/go"
1314
"google.golang.org/protobuf/proto"
1415
)
1516

@@ -76,7 +77,7 @@ func checkValid(err, multierr error) {
7677
rootCause = caused.Cause()
7778
}
7879

79-
// Retrieve the messages from "extensive" Validate(true) and compare first one with the "lazy" message
80+
// Retrieve the messages from "extensive" ValidateAll() and compare first one with the "lazy" message
8081
m, ok := multierr.(hasAllErrors)
8182
if !ok {
8283
checkErr(fmt.Errorf("ValidateAll() returned error without AllErrors() method: %#v", multierr))

0 commit comments

Comments
 (0)