- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,714 for errp (0.04 sec)
-
src/database/sql/sql.go
} var si driver.Stmt var err error withLock(dc, func() { si, err = ctxDriverPrepare(ctx, dc.ci, query) }) if err != nil { releaseConn(err) return nil, err } ds := &driverStmt{Locker: dc, si: si} rowsi, err := rowsiFromStatement(ctx, dc.ci, ds, args...) if err != nil { ds.Close() releaseConn(err) return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 103.6K bytes - Viewed (0) -
pkg/util/goroutinemap/goroutinemap_test.go
operation := func() error { return nil } // Act err1 := grm.Run(operation1Name, operation) err2 := grm.Run(operation2Name, operation) // Assert if err1 != nil { t.Fatalf("NewGoRoutine %q failed. Expected: <no error> Actual: <%v>", operation1Name, err1) } if err2 != nil { t.Fatalf("NewGoRoutine %q failed. Expected: <no error> Actual: <%v>", operation2Name, err2) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 11 14:09:48 UTC 2017 - 14.9K 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) -
src/syscall/exec_linux.go
if err1 != 0 { goto childerror } if pid != unsafe.Sizeof(err2) { err1 = EINVAL goto childerror } if err2 != 0 { err1 = err2 goto childerror } } // Session ID if sys.Setsid { _, _, err1 = RawSyscall(SYS_SETSID, 0, 0, 0) if err1 != 0 { goto childerror } } // Set process group
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 07:45:37 UTC 2024 - 23K 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)