Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Product (0.19 sec)

  1. tests/hooks_test.go

    	DB.Model(&product).Updates(Product3{Code: "L1214"})
    	if product.Price != 270 || product.Code != "L1214" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	// Code changed, price should changed
    	DB.Model(&product).Select("Name", "Code", "Price").Updates(Product3{Name: "Product New4", Code: ""})
    	if product.Name != "Product New4" || product.Price != 320 || product.Code != "" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Feb 18 01:20:29 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  2. tests/migrate_test.go

    	}
    	err = DB.Table("coupon_product_1").AutoMigrate(&CouponProduct{})
    	if err != nil {
    		t.Fatalf("AutoMigrate err:%v", err)
    	}
    	err = DB.Table("coupon_product_2").AutoMigrate(&CouponProduct{})
    	if err != nil {
    		t.Fatalf("AutoMigrate err:%v", err)
    	}
    
    	AssertEqual(t, true, DB.Migrator().HasTable("coupons"))
    	AssertEqual(t, true, DB.Migrator().HasTable("coupon_product_1"))
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  3. schema/schema_test.go

    		Code         string
    		Name         string
    	}
    
    	product, err := schema.Parse(&Product{}, &sync.Map{}, schema.NamingStrategy{})
    	if err != nil {
    		t.Fatalf("failed to parse product struct with composite primary key, got error %v", err)
    	}
    
    	prioritizedPrimaryField := schema.Field{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:31:23 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  4. operator/cmd/mesh/manifest-generate_test.go

    			return "", true
    		}
    		if ls.pod.Get("sidecar.istio.io/inject") == "false" {
    			return "", true
    		}
    		return "", false
    	}
    
    	// We test the cross product namespace and pod labels:
    	// 1. revision label (istio.io/rev)
    	// 2. inject label true (istio-injection on namespace, sidecar.istio.io/inject on pod)
    	// 3. inject label false
    	// 4. inject label true and revision label
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  5. cmd/veeam-sos-api.go

    //     compression). This is an optional area; by default, there should be no <SystemRecommendations> section in the
    //     system.xml. Vendors can work with Veeam Product Management and the Alliances team on getting approval to integrate
    //     specific system recommendations based on current support case statistics and storage performance possibilities.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 18:43:58 GMT 2024
    - 8.2K bytes
    - Viewed (2)
  6. tests/associations_test.go

    	}
    
    	if DB.First(&Coupon{}, "id = ?", coupon.ID).Error != nil {
    		t.Errorf("Failed to query saved coupon")
    	}
    
    	if DB.First(&CouponProduct{}, "coupon_id = ? AND product_id = ?", coupon.ID, "full-save-association-product1").Error != nil {
    		t.Errorf("Failed to query saved association")
    	}
    
    	orders := []Order{{Num: "order1", Coupon: coupon}, {Num: "order2", Coupon: coupon}}
    	if err := DB.Create(&orders).Error; err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  7. cmd/object-api-utils.go

    func hasSuffixByte(s string, suffix byte) bool {
    	return len(s) > 0 && s[len(s)-1] == suffix
    }
    
    // pathNeedsClean returns whether path.Clean may change the path.
    // Will detect all cases that will be cleaned,
    // but may produce false positives on non-trivial paths.
    func pathNeedsClean(path []byte) bool {
    	if len(path) == 0 {
    		return true
    	}
    
    	rooted := path[0] == '/'
    	n := len(path)
    
    	r, w := 0, 0
    	if rooted {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  8. internal/crypto/error.go

    	errInvalidInternalSealAlgorithm = Errorf("The internal seal algorithm is invalid and not supported")
    )
    
    // errOutOfEntropy indicates that the a source of randomness (PRNG) wasn't able
    // to produce enough random data. This is fatal error and should cause a panic.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  9. src/archive/tar/common.go

    // The value returned is the logical OR of multiple possible formats.
    // If the value is FormatUnknown, then the input Header cannot be encoded
    // and an error is returned explaining why.
    //
    // As a by-product of checking the fields, this function returns paxHdrs, which
    // contain all fields that could not be directly encoded.
    // A value receiver ensures that this method does not mutate the source Header.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  10. istioctl/pkg/writer/ztunnel/configdump/configdump_test.go

    			if tt.callPrime {
    				cw.Prime(cd)
    			}
    			if tt.wantOutputSecret != "" {
    				err := cw.PrintSecretSummary()
    				if err == nil && tt.wantErr {
    					t.Errorf("PrintSecretSummary (%v) did not produce expected err", tt.name)
    				} else if err != nil && !tt.wantErr {
    					t.Errorf("PrintSecretSummary (%v) produced unexpected err: %v", tt.name, err)
    				}
    				util.CompareContent(t, gotOut.Bytes(), tt.wantOutputSecret)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Feb 02 18:21:48 GMT 2024
    - 3.6K bytes
    - Viewed (0)
Back to top