Search Options

Results per page
Sort
Preferred Languages
Advance

Results 841 - 850 of 2,412 for ErrorS (0.05 sec)

  1. tests/table_test.go

    	if !regexp.MustCompile("SELECT \\* FROM `user`").MatchString(r.Statement.SQL.String()) {
    		t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    	}
    
    	r = dryDB.Table("user as u").Select("name").Find(&User{}).Statement
    	if !regexp.MustCompile("SELECT .name. FROM user as u WHERE .u.\\..deleted_at. IS NULL").MatchString(r.Statement.SQL.String()) {
    		t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Mar 09 09:31:28 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  2. schema/field.go

    				schema.err = fmt.Errorf("failed to parse %s as default value for uint, got error: %v", field.DefaultValue, err)
    			}
    		}
    	case reflect.Float32, reflect.Float64:
    		field.DataType = Float
    		if field.HasDefaultValue && !skipParseDefaultValue {
    			if field.DefaultValueInterface, err = strconv.ParseFloat(field.DefaultValue, 64); err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/tag.go

    }
    
    var (
    	errInvalidTagKey   = Errorf("The TagKey you have provided is invalid")
    	errInvalidTagValue = Errorf("The TagValue you have provided is invalid")
    
    	errDuplicatedXMLTag = Errorf("duplicated XML Tag")
    	errUnknownXMLTag    = Errorf("unknown XML Tag")
    )
    
    // UnmarshalXML - decodes XML data.
    func (tag *Tag) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) {
    	var keyAlreadyParsed, valueAlreadyParsed bool
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. cmd/erasure-sets_test.go

    		if sipHashElement := hashKey("SIPMOD", testCase.objectName, 200, testUUID); sipHashElement != testCase.sipHash {
    			t.Errorf("Test case %d: Expected \"%v\" but failed \"%v\"", i+1, testCase.sipHash, sipHashElement)
    		}
    	}
    
    	if sipHashElement := hashKey("SIPMOD", "This will fail", -1, testUUID); sipHashElement != -1 {
    		t.Errorf("Test: Expected \"-1\" but got \"%v\"", sipHashElement)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 12 07:21:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. tests/serializer_test.go

    		t.Fatalf("no error should happen when migrate scanner, valuer struct, got error %v", err)
    	}
    
    	data := SerializerStruct{}
    
    	if err := DB.Create(&data).Error; err != nil {
    		t.Fatalf("failed to create data, got error %v", err)
    	}
    
    	var result SerializerStruct
    	if err := DB.First(&result, data.ID).Error; err != nil {
    		t.Fatalf("failed to query data, got error %v", err)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Apr 21 14:09:38 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  6. istioctl/pkg/cli/context.go

    	CLIClient() (kube.CLIClient, error)
    	// CLIClientWithRevision returns a client for the given revision
    	CLIClientWithRevision(rev string) (kube.CLIClient, error)
    	// InferPodInfoFromTypedResource returns the pod name and namespace for the given typed resource
    	InferPodInfoFromTypedResource(name, namespace string) (pod string, ns string, err error)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 23 19:31:32 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. internal/hash/reader_test.go

    			}
    			_, err = io.Copy(io.Discard, r)
    			if err != nil {
    				if testCase.err == nil {
    					t.Errorf("Test %q; got unexpected error: %v", testCase.desc, err)
    					return
    				}
    				if err.Error() != testCase.err.Error() {
    					t.Errorf("Test %q: Expected error %s, got error %s", testCase.desc, testCase.err, err)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/podcgroupns.go

    func GetPodUIDAndContainerID(procCgroupData bytes.Buffer) (types.UID, string, error) {
    	cgroups, err := GetCgroups(procCgroupData)
    	if err != nil {
    		return "", "", fmt.Errorf("unable to obtain cgroups: %v", err)
    	}
    
    	return getPodUIDAndContainerIDFromCGroups(cgroups)
    }
    
    func getPodUIDAndContainerIDFromCGroups(cgroups []Cgroup) (types.UID, string, error) {
    	var podUID types.UID
    	var containerID string
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. schema/field_test.go

    		"age":        20,
    		"birthday":   time.Now(),
    		"active":     f,
    	}
    
    	for k, v := range newValues {
    		if err := userSchema.FieldsByDBName[k].Set(context.Background(), reflectValue, v); err != nil {
    			t.Errorf("no error should happen when assign value to field %v, but got %v", k, err)
    		}
    	}
    	newValues["updated_at"] = time.Time{}
    	newValues["active"] = false
    	checkField(t, userSchema, reflectValue, newValues)
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Feb 19 09:02:53 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  10. tests/customize_field_test.go

    	if err := DB.AutoMigrate(&CustomizeFieldStruct{}); err != nil {
    		t.Errorf("Failed to migrate, got error: %v", err)
    	}
    
    	if DB.Migrator().HasColumn(&CustomizeFieldStruct{}, "FieldIgnore") {
    		t.Errorf("FieldIgnore should not be created")
    	}
    
    	if DB.Migrator().HasColumn(&CustomizeFieldStruct{}, "field_ignore") {
    		t.Errorf("FieldIgnore should not be created")
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Sep 11 09:33:31 UTC 2020
    - 6.9K bytes
    - Viewed (0)
Back to top