- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,062 for errp (0.1 sec)
-
src/errors/wrap_test.go
{&errorUncomparable{}, err1, false}, {multiErr{}, err1, false}, {multiErr{err1, err3}, err1, true}, {multiErr{err3, err1}, err1, true}, {multiErr{err1, err3}, errors.New("x"), false}, {multiErr{err3, errb}, errb, true}, {multiErr{err3, errb}, erra, true}, {multiErr{err3, errb}, err1, true}, {multiErr{errb, err3}, err1, true}, {multiErr{poser}, err1, true}, {multiErr{poser}, err3, true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:49:49 UTC 2024 - 6K bytes - Viewed (0) -
src/path/filepath/match_test.go
p = strings.Replace(p, `:`, `:\`, 1) if err := test.globAbs(tmpDir, p); err != nil { t.Error(err) } } // test relative paths wd, err := os.Getwd() if err != nil { t.Fatal(err) } err = os.Chdir(tmpDir) if err != nil { t.Fatal(err) } defer func() { err := os.Chdir(wd) if err != nil { t.Fatal(err) } }() for _, test := range tests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:38:19 UTC 2024 - 8.6K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/errors_test.go
dir, err := os.MkdirTemp("", filepath.Base(t.Name())) if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) dst := filepath.Join(dir, strings.TrimSuffix(file, ".go")) cmd := exec.Command("go", "build", "-gcflags=-L -e", "-o="+dst, path(file)) // TODO(gri) no need for -gcflags=-L if go tool is adjusted out, err := cmd.CombinedOutput() if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 4K bytes - Viewed (0) -
src/errors/join_test.go
errs []error want []error }{{ errs: []error{err1}, want: []error{err1}, }, { errs: []error{err1, err2}, want: []error{err1, err2}, }, { errs: []error{err1, nil, err2}, want: []error{err1, err2}, }} { got := errors.Join(test.errs...).(interface{ Unwrap() []error }).Unwrap() if !reflect.DeepEqual(got, test.want) { t.Errorf("Join(%v) = %v; want %v", test.errs, got, test.want) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 17 21:48:12 UTC 2022 - 1.7K bytes - Viewed (0) -
cmd/httprange_test.go
for i, irs := range invalidRangeSpecs { var err1, err2 error var rs *HTTPRangeSpec var o, l int64 rs, err1 = parseRequestRangeSpec(irs) if err1 == nil { o, l, err2 = rs.GetOffsetLength(resourceSize) } if isErrInvalidRange(err1) || (err1 == nil && isErrInvalidRange(err2)) { continue } t.Errorf("Case %d: Expected errInvalidRange but: %v %v %d %d %v", i, rs, err1, o, l, err2) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun May 05 16:56:21 UTC 2024 - 3.7K bytes - Viewed (0) -
src/io/fs/readdir_test.go
dirs, err := ReadDir(readDirOnly{testFsys}, ".") check("readDirOnly", dirs, err) // Test that ReadDir uses Open when the method is not present. dirs, err = ReadDir(openOnly{testFsys}, ".") check("openOnly", dirs, err) // Test that ReadDir on Sub of . works (sub_test checks non-trivial subs). sub, err := Sub(testFsys, ".") if err != nil { t.Fatal(err) } dirs, err = ReadDir(sub, ".") check("sub(.)", dirs, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 16:25:41 UTC 2023 - 2.6K bytes - Viewed (0) -
src/go/parser/testdata/resolution/resolution.src
case c /* @cdecl */: default: } loop /* =@loop */: for { if true { break loop /* @loop */ } } select { case err /* =@err1 */ := <-_: return err /* @err1 */ case err /* =@err2 */ := <-_: return err /* @err2 */ } _ = func(p1 /* =@p1 */ int, p2 /* =@p2 */ p1) { closed /* =@closed */ := p1 // @p1 shadowed /* =@shadowed1 */ := p2 // @p2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 16 21:19:23 UTC 2021 - 1.5K bytes - Viewed (0) -
cmd/kubelet/app/server_test.go
}, } for _, test := range testCases { _, err1 := parseResourceList(test.kubeReserved) _, err2 := parseResourceList(test.systemReserved) if test.errorExpected { if err1 == nil && err2 == nil { t.Errorf("%s: error expected", test.name) } } else { if err1 != nil || err2 != nil { t.Errorf("%s: unexpected error: %v, %v", test.name, err1, err2) } } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 21:48:29 UTC 2023 - 8.1K bytes - Viewed (0) -
pkg/config/analysis/analyzers/util/find_errorline_utils_test.go
g := NewWithT(t) r := &resource.Instance{Origin: &legacykube.Origin{FieldsMap: fieldMap}} test1, err1 := ErrorLine(r, "{.metadata.name}") test2, err2 := ErrorLine(r, "{.metadata.fake}") g.Expect(test1).To(Equal(1)) g.Expect(err1).To(Equal(true)) g.Expect(test2).To(Equal(0)) g.Expect(err2).To(Equal(false)) } func TestConstants(t *testing.T) { g := NewWithT(t) constantsPath := []string{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 3.5K bytes - Viewed (0) -
src/io/fs/readfile_test.go
} // Test that ReadFile on Sub of . works (sub_test checks non-trivial subs). sub, err := Sub(testFsys, ".") if err != nil { t.Fatal(err) } data, err = ReadFile(sub, "hello.txt") if string(data) != "hello, world" || err != nil { t.Fatalf(`ReadFile(sub(.), "hello.txt") = %q, %v, want %q, nil`, data, err, "hello, world") } } func TestReadFilePath(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 16:25:41 UTC 2023 - 1.8K bytes - Viewed (0)