- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,714 for errp (0.21 sec)
-
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) -
operator/pkg/util/path_test.go
t.Errorf("%s: expect %v %v got %v %v", tt.desc, tt.expect, tt.expectStat, got, stat) } }) } } func errNilCheck(err1, err2 error) bool { return (err1 == nil && err2 != nil) || (err1 != nil && err2 == nil)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Aug 29 00:15:38 UTC 2020 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/controller.go
oldMeta, err1 := meta.Accessor(oldObj) newMeta, err2 := meta.Accessor(newObj) if err1 != nil || err2 != nil { if err1 != nil { utilruntime.HandleError(err1) } if err2 != nil { utilruntime.HandleError(err2) } return } else if oldMeta.GetResourceVersion() == newMeta.GetResourceVersion() { if len(oldMeta.GetResourceVersion()) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 7.5K bytes - Viewed (0) -
src/hash/maphash/maphash_test.go
writeByte := func(h *Hash, b byte) { err := h.WriteByte(b) if err != nil { t.Fatalf("WriteByte: %v", err) } } writeSingleByte := func(h *Hash, b byte) { _, err := h.Write([]byte{b}) if err != nil { t.Fatalf("Write single byte: %v", err) } } writeStringSingleByte := func(h *Hash, b byte) { _, err := h.WriteString(string([]byte{b})) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 5.2K bytes - Viewed (0) -
src/compress/zlib/writer_test.go
_, err = zlibw.Write(b0) } if err == nil { err = zlibw.Close() } if err != nil { t.Errorf("%s (level=%d): %v", fn, level, err) return } out := buf.String() // Reset and compress again. buf2 := new(bytes.Buffer) zlibw.Reset(buf2) _, err = zlibw.Write(b0) if err == nil { err = zlibw.Close() } if err != nil { t.Errorf("%s (level=%d): %v", fn, level, err) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 19:12:23 UTC 2020 - 5.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/testdata/err5.go
Ian Lance Taylor <******@****.***> 1695251789 -0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:40:57 UTC 2023 - 304 bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/testdata/err4.go
Austin Clements <******@****.***> 1683216807 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 259 bytes - Viewed (0) -
operator/pkg/util/errs.go
} // NewErrs returns a slice of error with a single element err. // If err is nil, returns nil. func NewErrs(err error) Errors { if err == nil { return nil } return []error{err} } // AppendErr appends err to errors if it is not nil and returns the result. // If err is nil, it is not appended. func AppendErr(errors []error, err error) Errors { if err == nil { if len(errors) == 0 { return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 3.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/testdata/err1.go
Austin Clements <******@****.***> 1683216807 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 404 bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/testdata/err2.go
Austin Clements <******@****.***> 1683216807 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 2.5K bytes - Viewed (0)