- Sort Score
- Result 10 results
- Languages All
Results 661 - 670 of 942 for errC (0.05 sec)
-
internal/hash/errors.go
func (e ChecksumMismatch) Error() string { return "Bad checksum: Want " + e.Want + " does not match calculated " + e.Got } // IsChecksumMismatch matches if 'err' is hash.ChecksumMismatch func IsChecksumMismatch(err error) bool { var herr ChecksumMismatch return errors.As(err, &herr)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon May 15 21:08:54 UTC 2023 - 2.4K bytes - Viewed (0) -
src/archive/tar/strconv_test.go
{"đĩđ´đŗđ˛đą.đ°đ¯đŽđđŦ", time.Time{}, false}, // Unicode numbers (U+1D7EC to U+1D7F5) {"98765īš43210", time.Time{}, false}, // Unicode period (U+FE52) } for _, v := range vectors { ts, err := parsePAXTime(v.in) ok := (err == nil) if v.ok != ok { if v.ok { t.Errorf("parsePAXTime(%q): got parsing failure, want success", v.in) } else { t.Errorf("parsePAXTime(%q): got parsing success, want failure", v.in)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Feb 09 05:28:50 UTC 2021 - 14K bytes - Viewed (0) -
internal/s3select/jstream/scanner_test.go
} }) } func benchmarkBufioReader(b []byte) { br := bufio.NewReader(bytes.NewReader(b)) loop: for { _, err := br.ReadByte() switch err { case nil: continue loop case io.EOF: break loop default: panic(err) } } } func BenchmarkScanner(b *testing.B) { b.Run("small", func(b *testing.B) { for i := 0; i < b.N; i++ {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 3.2K bytes - Viewed (0) -
cmd/batch-handlers_test.go
- "bar" `, }, want: []string{"foo", "bar"}, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if err := yaml.Unmarshal([]byte(tt.args.yamlStr), &tt.b); (err != nil) != tt.wantErr { t.Errorf("UnmarshalYAML() error = %v, wantErr %v", err, tt.wantErr) } if !slices.Equal(tt.b.Prefix.F(), tt.want) { t.Errorf("UnmarshalYAML() = %v, want %v", tt.b.Prefix.F(), tt.want) } }) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 01 12:53:30 UTC 2024 - 1.7K bytes - Viewed (0) -
cmd/xl-storage-free-version.go
// Free-version will be added if fi.VersionID has transitioned. func (x *xlMetaV2) AddFreeVersion(fi FileInfo) error { var uv uuid.UUID var err error switch fi.VersionID { case "", nullVersionID: default: uv, err = uuid.Parse(fi.VersionID) if err != nil { return err } } for i, version := range x.versions { if version.header.VersionID != uv || version.header.Type != ObjectType { continue }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Mar 02 05:11:03 UTC 2024 - 3.4K bytes - Viewed (0) -
internal/config/bool-flag_test.go
} for _, testCase := range testCases { var flag BoolFlag err := (&flag).UnmarshalJSON(testCase.data) if !testCase.expectedErr && err != nil { t.Fatalf("error: expected = <nil>, got = %v", err) } if testCase.expectedErr && err == nil { t.Fatalf("error: expected error, got = <nil>") } if err == nil && testCase.expectedResult != flag {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.5K bytes - Viewed (0) -
cmd/admin-heal-ops.go
if err := h.queueHealTask(healSource{bucket: bucket}, madmin.HealItemBucket); err != nil { return err } if bucketsOnly { return nil } if !h.settings.Recursive { if h.object != "" { if err := h.healObject(bucket, h.object, "", h.settings.ScanMode); err != nil { return err } } return nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:58:27 UTC 2024 - 25.6K bytes - Viewed (0) -
internal/config/bool-flag.go
// UnmarshalJSON - parses given data into BoolFlag. func (bf *BoolFlag) UnmarshalJSON(data []byte) (err error) { var s string if err = json.Unmarshal(data, &s); err == nil { b := BoolFlag(true) if s == "" { // Empty string is treated as valid. *bf = b } else if b, err = ParseBoolFlag(s); err == nil { *bf = b } } return err } // FormatBool prints stringified version of boolean.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 07 15:10:40 UTC 2022 - 2.3K bytes - Viewed (0) -
callbacks/create.go
) if err != nil { db.AddError(err) return } db.RowsAffected, _ = result.RowsAffected() if db.RowsAffected == 0 { return } var ( pkField *schema.Field pkFieldName = "@id" ) insertID, err := result.LastInsertId() insertOk := err == nil && insertID > 0 if !insertOk { if !supportReturning { db.AddError(err) } return
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Apr 08 03:29:55 UTC 2024 - 12.5K bytes - Viewed (0) -
internal/http/response-recorder.go
lrw.body = bytes.Buffer{} } else { // Always logging error responses. lrw.body.Write(p) } } if err != nil { return n, err } return n, err } // Write the headers into the given buffer func (lrw *ResponseRecorder) writeHeaders(w io.Writer, statusCode int, headers http.Header) { n, _ := fmt.Fprintf(w, "%d %s\n", statusCode, http.StatusText(statusCode)) lrw.headerBytesWritten += n
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 5.5K bytes - Viewed (0)