Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for predict (0.17 sec)

  1. tests/associations_test.go

    		t.Errorf("Failed, got error: %v", err)
    	}
    
    	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}}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  2. internal/config/config.go

    	}
    	if !isFound {
    		return
    	}
    
    	if target == "" {
    		target = Default
    	}
    
    	if redactSecrets {
    		// If the configuration parameter is a secret, make sure to redact it when
    		// we return.
    		helpKV, _ := HelpSubSysMap[subSys].Lookup(cfgParam)
    		if helpKV.Secret {
    			defer func() {
    				value = ""
    				isRedacted = true
    			}()
    		}
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 37.3K 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 Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Dec 15 08:31:23 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  4. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 18:43:58 GMT 2024
    - 8.2K bytes
    - Viewed (2)
  5. cmd/xl-storage-format_test.go

    	if err := json.Unmarshal(xlMetaJSON, &jsoniterXLMeta); err != nil {
    		t.Errorf("jsoniter parsing of XLMeta failed: %v", err)
    	}
    
    	compareXLMetaV1(t, unMarshalXLMeta, jsoniterXLMeta)
    }
    
    // Test the predicted part size from the part index
    func TestGetPartSizeFromIdx(t *testing.T) {
    	// Create test cases
    	testCases := []struct {
    		totalSize    int64
    		partSize     int64
    		partIndex    int
    		expectedSize int64
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  6. 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)
  7. internal/http/headers.go

    	// In case of SSEC objects getting replicated (multipart) actual size would be needed at target
    	MinIOReplicationActualObjectSize = "X-Minio-Replication-Actual-Object-Size"
    
    	// predicted date/time of transition
    	MinIOTransition            = "X-Minio-Transition"
    	MinIOLifecycleCfgUpdatedAt = "X-Minio-LifecycleConfig-UpdatedAt"
    	// MinIOCompressed is returned when object is compressed
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  8. tests/hooks_test.go

    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	// Code changed, price should changed
    	DB.Model(&product).Select("Name", "Code", "Price").Updates(map[string]interface{}{"Name": "Product New3", "code": "L1213"})
    
    	if product.Name != "Product New3" || product.Price != 220 || product.Code != "L1213" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Feb 18 01:20:29 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  9. src/bytes/bytes_test.go

    			}
    		}
    	}
    }
    
    type predicate struct {
    	f    func(r rune) bool
    	name string
    }
    
    var isSpace = predicate{unicode.IsSpace, "IsSpace"}
    var isDigit = predicate{unicode.IsDigit, "IsDigit"}
    var isUpper = predicate{unicode.IsUpper, "IsUpper"}
    var isValidRune = predicate{
    	func(r rune) bool {
    		return r != utf8.RuneError
    	},
    	"IsValidRune",
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  10. cmd/http-tracer.go

    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/mcontext"
    )
    
    var ldapPwdRegex = regexp.MustCompile("(^.*?)LDAPPassword=([^&]*?)(&(.*?))?$")
    
    // redact LDAP password if part of string
    func redactLDAPPwd(s string) string {
    	parts := ldapPwdRegex.FindStringSubmatch(s)
    	if len(parts) > 3 {
    		return parts[1] + "LDAPPassword=*REDACTED*" + parts[3]
    	}
    	return s
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
Back to top