- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 29 for errList (0.15 sec)
-
src/cmd/compile/internal/syntax/testing_test.go
import /* ERROR "8:9" */ // indented with blanks ` m := CommentMap(strings.NewReader(src), regexp.MustCompile("^ ERROR ")) found := 0 // number of errors found for line, errlist := range m { for _, err := range errlist { if err.Pos.Line() != line { t.Errorf("%v: got map line %d; want %d", err, err.Pos.Line(), line) continue } // err.Pos.Line() == line
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:53:18 UTC 2023 - 1.4K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/stacks.go
"github.com/google/pprof/internal/report" ) // stackView generates the flamegraph view. func (ui *webInterface) stackView(w http.ResponseWriter, req *http.Request) { // Get all data in a report. rpt, errList := ui.makeReport(w, req, []string{"svg"}, func(cfg *config) { cfg.CallTree = true cfg.Trim = false cfg.Granularity = "filefunctions" }) if rpt == nil { return // error already reported }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 1.7K bytes - Viewed (0) -
pkg/registry/core/event/strategy_test.go
Source: api.EventSource{Component: "test"}, Type: api.EventTypeNormal, } } eventA := makeEvent("eventA") eventB := makeEvent("eventB") errList := Strategy.ValidateUpdate(context.Background(), eventA, eventB) if len(errList) == 0 { t.Errorf("ValidateUpdate should fail on name change") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 4.3K bytes - Viewed (0) -
src/go/types/commentMap_test.go
import /* ERROR "8:9" */ // indented with blanks ` m := commentMap([]byte(src), regexp.MustCompile("^ ERROR ")) found := 0 // number of errors found for line, errlist := range m { for _, err := range errlist { if err.line != line { t.Errorf("%v: got map line %d; want %d", err, err.line, line) continue } // err.line == line got := strings.TrimSpace(err.text[len(" ERROR "):])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/errors/errors.go
// It will check if any of the element of input error list is nil, to avoid // nil pointer panic when call Error(). func NewAggregate(errlist []error) Aggregate { if len(errlist) == 0 { return nil } // In case of input error list contains nil var errs []error for _, e := range errlist { if e != nil { errs = append(errs, e) } } if len(errs) == 0 { return nil } return aggregate(errs) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 29 09:44:02 UTC 2023 - 6.3K bytes - Viewed (0) -
operator/pkg/controller/istiocontrolplane/errdict.go
John Howard <******@****.***> 1714485406 -0700
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 13:56:46 UTC 2024 - 4.7K bytes - Viewed (0) -
src/os/error_test.go
{&os.SyscallError{Err: fs.ErrExist}, true, false}, {nil, false, false}, } func TestIsExist(t *testing.T) { for _, tt := range isExistTests { if is := os.IsExist(tt.err); is != tt.is { t.Errorf("os.IsExist(%T %v) = %v, want %v", tt.err, tt.err, is, tt.is) } if is := errors.Is(tt.err, fs.ErrExist); is != tt.is { t.Errorf("errors.Is(%T %v, fs.ErrExist) = %v, want %v", tt.err, tt.err, is, tt.is) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 00:41:52 UTC 2023 - 4.9K bytes - Viewed (0) -
src/cmd/asm/internal/asm/pseudo_test.go
} for _, o := range strings.Split(s, ",") { res = append(res, lex.Tokenize(o)) } return res } func TestErroneous(t *testing.T) { type errtest struct { pseudo string operands string expected string } nonRuntimeTests := []errtest{ {"TEXT", "", "expect two or three operands for TEXT"}, {"TEXT", "%", "expect two or three operands for TEXT"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 3.1K bytes - Viewed (0) -
src/errors/errors.go
// matches the second. It reports whether it finds a match. It should be // used in preference to simple equality checks: // // if errors.Is(err, fs.ErrExist) // // is preferable to // // if err == fs.ErrExist // // because the former will succeed if err wraps [io/fs.ErrExist]. // // [As] examines the tree of its first argument looking for an error that can be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 19:45:41 UTC 2023 - 2.9K bytes - Viewed (0) -
src/os/error.go
// that a file or directory already exists. It is satisfied by [ErrExist] as // well as some syscall errors. // // This function predates [errors.Is]. It only supports errors returned by // the os package. New code should use errors.Is(err, fs.ErrExist). func IsExist(err error) bool { return underlyingErrorIs(err, ErrExist) } // IsNotExist returns a boolean indicating whether the error is known to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 4.8K bytes - Viewed (0)