- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 2,461 for Case (0.02 sec)
-
association.go
return association.Error } // set old associations's foreign key to null switch rel.Type { case schema.BelongsTo: if len(values) == 0 { updateMap := map[string]interface{}{} switch reflectValue.Kind() { case reflect.Slice, reflect.Array: for i := 0; i < reflectValue.Len(); i++ {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 21.5K bytes - Viewed (0) -
cni/pkg/install/cniconfig_test.go
// Create temp directory for files tempDir := t.TempDir() // Create existing config files if specified in test case for _, filename := range c.existingConfFiles { if err := file.AtomicCopy(filepath.Join("testdata", filepath.Base(filename)), tempDir, filepath.Base(filename)); err != nil { t.Fatal(err) } } var expectedFilepath string if len(c.expectedConfName) > 0 {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 18:38:14 UTC 2024 - 15.3K bytes - Viewed (0) -
src/cmd/asm/internal/arch/ppc64.go
switch name { case "CR": if 0 <= n && n <= 7 { return ppc64.REG_CR0 + n, true } case "A": if 0 <= n && n <= 8 { return ppc64.REG_A0 + n, true } case "VS": if 0 <= n && n <= 63 { return ppc64.REG_VS0 + n, true } case "V": if 0 <= n && n <= 31 { return ppc64.REG_V0 + n, true } case "F": if 0 <= n && n <= 31 {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri May 17 21:53:50 UTC 2024 - 2.2K bytes - Viewed (0) -
cmd/storage-datatypes_gen.go
return } switch msgp.UnsafeString(field) { case "id": z.DiskID, err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "DiskID") return } case "v": z.Volume, err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "Volume") return } case "fp": z.FilePath, err = dc.ReadString() if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 22 15:30:50 UTC 2024 - 150.2K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject_test.go
cases := []testutil.TestCase{ { // case 0 Args: []string{}, ExpectedRegexp: regexp.MustCompile(`filename not specified \(see --filename or -f\)`), WantException: true, }, { // case 1 Args: strings.Split("-f missing.yaml", " "), ExpectedRegexp: regexp.MustCompile(`open missing.yaml: no such file or directory`), WantException: true, }, { // case 2 Args: strings.Split(
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 3.4K bytes - Viewed (0) -
cmd/mrf_gen.go
err = msgp.WrapError(err) return } switch msgp.UnsafeString(field) { case "Bucket": z.Bucket, err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "Bucket") return } case "Object": z.Object, err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "Object") return } case "VersionID": z.VersionID, err = dc.ReadString() if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:26:05 UTC 2024 - 6.8K bytes - Viewed (0) -
cmd/signature-v2_test.go
expectedError APIErrorCode }{ // Test case - 1. // Case with empty V2AuthString. { authString: "", expectedError: ErrAuthHeaderEmpty, }, // Test case - 2. // Test case with `signV2Algorithm` ("AWS") not being the prefix. { authString: "NoV2Prefix", expectedError: ErrSignatureVersionNotSupported, }, // Test case - 3. // Test case with missing parts in the Auth string.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 14 10:08:40 UTC 2022 - 8K bytes - Viewed (0) -
internal/s3select/sql/stringfuncs.go
cutSet := " " if trimChars != "" { cutSet = trimChars } trimFunc := strings.Trim switch { case where == nil: case *where == trimBoth: case *where == trimLeading: trimFunc = strings.TrimLeft case *where == trimTrailing: trimFunc = strings.TrimRight default: return "", errInvalidTrimArg } return trimFunc(text, cutSet), nil
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 4.2K bytes - Viewed (0) -
internal/s3select/sql/jsonpath.go
return v, false, nil } switch { case p[0].Key != nil: key := p[0].Key.keyString() switch kvs := v.(type) { case jstream.KVS: for _, kv := range kvs { if kv.Key == key { return jsonpathEval(p[1:], kv.Value) } } // Key not found - return nil result return Missing{}, false, nil case simdjson.Object: elem := kvs.FindKey(key, nil) if elem == nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 3.5K bytes - Viewed (0) -
internal/s3select/sql/record.go
switch iter.Type() { case simdjson.TypeString: v, err := iter.String() if err != nil { return nil, err } return v, nil case simdjson.TypeFloat: v, err := iter.Float() if err != nil { return nil, err } return v, nil case simdjson.TypeInt: v, err := iter.Int() if err != nil { return nil, err } return v, nil case simdjson.TypeUint: v, err := iter.Int()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.4K bytes - Viewed (0)