- Sort Score
- Result 10 results
- Languages All
Results 501 - 510 of 603 for Err (0.01 sec)
-
cmd/os-readdir-common.go
followDirSymlink bool } // Return all the entries at the directory dirPath. func readDir(dirPath string) (entries []string, err error) { return readDirWithOpts(dirPath, readDirOpts{count: -1}) } // Return up to count entries at the directory dirPath. func readDirN(dirPath string, count int) (entries []string, err error) { return readDirWithOpts(dirPath, readDirOpts{count: count})
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Jul 09 23:20:51 UTC 2021 - 1.3K bytes - Viewed (0) -
tests/gorm_test.go
import ( "testing" "gorm.io/driver/mysql" "gorm.io/gorm" ) func TestOpen(t *testing.T) { dsn := "gorm:gorm@tcp(localhost:9910)/gorm?loc=Asia%2FHongKong" // invalid loc _, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) if err == nil { t.Fatalf("should returns error but got nil") } } func TestReturningWithNullToZeroValues(t *testing.T) { dialect := DB.Dialector.Name() switch dialect {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Jun 01 07:22:21 UTC 2023 - 3.3K bytes - Viewed (0) -
cmd/erasure-metadata_test.go
} // Test them. for _, testCase := range testCases { index, offset, err := fi.ObjectToPartOffset(t.Context(), testCase.offset) if err != testCase.expectedErr { t.Fatalf("%+v: expected = %s, got: %s", testCase, testCase.expectedErr, err) } if index != testCase.expectedIndex { t.Fatalf("%+v: index: expected = %d, got: %d", testCase, testCase.expectedIndex, index)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 13.4K bytes - Viewed (0) -
cmd/signature-v4.go
// Copy request req := *r // Parse request query string. pSignValues, err := parsePreSignV4(req.Form, region, stype) if err != ErrNone { return err } cred, _, s3Err := checkKeyValid(r, pSignValues.Credential.accessKey) if s3Err != ErrNone { return s3Err }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Dec 13 22:19:12 UTC 2024 - 12.4K bytes - Viewed (0) -
buildscripts/multipart-quorum-test.sh
} ] } EOF err=$(aws --endpoint-url http://localhost:"$start_port" s3api complete-multipart-upload --upload-id "$uploadId" --bucket bucket --key obj-1 --multipart-upload file://./parts.json 2>&1) rv=$? if [ $rv -eq 0 ]; then echo "Failed to receive an error" exit 1 fi echo "Received an error during complete-multipart as expected: $err" } function main() {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Sep 06 10:51:23 UTC 2024 - 2.9K bytes - Viewed (0) -
src/cmd/asm/internal/lex/lex.go
} } // NewLexer returns a lexer for the named file and the given link context. func NewLexer(name string) TokenReader { input := NewInput(name) fd, err := os.Open(name) if err != nil { log.Fatalf("%s\n", err) } input.Push(NewTokenizer(name, fd, fd)) return input } // The other files in this directory each contain an implementation of TokenReader.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 4.1K bytes - Viewed (0) -
cmd/bucket-replication-utils_test.go
} func TestParseReplicateDecision(t *testing.T) { for i, test := range parseReplicationDecisionTest { dsc, err := parseReplicateDecision(t.Context(), "bucket", test.expDsc.String()) if err != nil { if test.expErr != err { t.Errorf("Test%d (%s): Expected parse error got %t , want %t", i+1, test.name, err, test.expErr) } continue } if len(dsc.targetsMap) != len(test.expDsc.targetsMap) {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 9.3K bytes - Viewed (0) -
src/cmd/asm/internal/arch/riscv64.go
} // RISCV64ValidateVectorType reports whether the given configuration is a // valid vector type. func RISCV64ValidateVectorType(vsew, vlmul, vtail, vmask int64) error { _, err := riscv.EncodeVectorType(vsew, vlmul, vtail, vmask) return err
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Feb 14 15:13:11 UTC 2025 - 1.8K bytes - Viewed (0) -
cmd/metacache-entries_test.go
}, }, } inputSerialized := make([]metaCacheEntry, len(inputs)) for i, xl := range inputs { xl.sortByModTime() var err error entry := metaCacheEntry{ name: "testobject", } entry.metadata, err = xl.AppendTo(nil) if err != nil { t.Fatal(err) } inputSerialized[i] = entry } tests := []struct { name string m metaCacheEntries
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 31.6K bytes - Viewed (0) -
cmd/site-replication-metrics.go
}, ErrCounts: errCounts, } } func (rt *RTimedMetrics) addsize(size int64, err error) { // failures seen since uptime atomic.AddInt64(&rt.SinceUptime.Bytes, size) atomic.AddInt64(&rt.SinceUptime.Count, 1) rt.LastMinute.addsize(size) rt.LastHour.addsize(size) if err != nil && minio.ToErrorResponse(err).Code == "AccessDenied" { if rt.ErrCounts == nil { rt.ErrCounts = make(map[string]int) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 8.2K bytes - Viewed (0)