- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for printError (0.11 sec)
-
operator/pkg/validate/common.go
valStr := fmt.Sprint(val) if len(r.FindString(valStr)) != len(valStr) { errs = util.AppendErr(errs, fmt.Errorf("invalid value %s: %v", path, val)) printError(errs.ToError()) } return errs } // validateStringList returns a validator function that works on a string list, using the supplied ValidatorFunc vf on // each element.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 10 15:35:03 UTC 2023 - 11K bytes - Viewed (0) -
src/go/scanner/scanner_test.go
t.Errorf("found %d raw errors, expected 9", len(list)) PrintError(os.Stderr, list) } list.Sort() if len(list) != 9 { t.Errorf("found %d sorted errors, expected 9", len(list)) PrintError(os.Stderr, list) } list.RemoveMultiples() if len(list) != 4 { t.Errorf("found %d one-per-line errors, expected 4", len(list)) PrintError(os.Stderr, list) } } type errorCollector struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 15:38:31 UTC 2023 - 34.6K bytes - Viewed (0) -
src/cmd/gofmt/gofmt.go
// changing its exit code to a nonzero value. func (r *reporter) Report(err error) { if err == nil { panic("Report with nil error") } st := r.getState() scanner.PrintError(st.err, err) st.exitCode = 2 } func (r *reporter) ExitCode() int { return r.getState().exitCode } // If info == nil, we are formatting stdin instead of a file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 15.1K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java
set, projectArtifact, remoteRepositories(), localRepository(), mds); printErrors(result); i = result.getArtifacts().iterator(); assertEquals(m, i.next(), "m should be first"); assertEquals(n, i.next(), "n should be second"); } private void printErrors(ArtifactResolutionResult result) { if (result.hasMissingArtifacts()) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu Apr 25 05:46:50 UTC 2024 - 10.1K bytes - Viewed (0)