Search Options

Results per page
Sort
Preferred Languages
Advance

Results 791 - 800 of 1,123 for Nil (0.01 sec)

  1. clause/where.go

    		copy(exprs, w.Exprs)
    		copy(exprs[len(w.Exprs):], where.Exprs)
    		where.Exprs = exprs
    	}
    
    	clause.Expression = where
    }
    
    func And(exprs ...Expression) Expression {
    	if len(exprs) == 0 {
    		return nil
    	}
    
    	if len(exprs) == 1 {
    		if _, ok := exprs[0].(OrConditions); !ok {
    			return exprs[0]
    		}
    	}
    
    	return AndConditions{Exprs: exprs}
    }
    
    type AndConditions struct {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Apr 25 12:22:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. utils/utils.go

    	for _, e := range elems {
    		if elem == e {
    			return true
    		}
    	}
    	return false
    }
    
    func AssertEqual(x, y interface{}) bool {
    	if reflect.DeepEqual(x, y) {
    		return true
    	}
    	if x == nil || y == nil {
    		return false
    	}
    
    	xval := reflect.ValueOf(x)
    	yval := reflect.ValueOf(y)
    	if xval.Kind() == reflect.Ptr && xval.IsNil() ||
    		yval.Kind() == reflect.Ptr && yval.IsNil() {
    		return false
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. istioctl/pkg/internaldebug/internal-debug_test.go

    	}
    
    	if c.wantException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception for 'istioctl %s', didn't get one, output was %q",
    				strings.Join(c.args, " "), output)
    		}
    	} else {
    		if fErr != nil {
    			t.Fatalf("Unwanted exception for 'istioctl %s': %v", strings.Join(c.args, " "), fErr)
    		}
    	}
    }
    
    func init() {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. internal/config/config.go

    		text := scanner.Text()
    		if text == "" || strings.HasPrefix(text, KvComment) {
    			continue
    		}
    		_, _, tgt, err := GetSubSys(text)
    		if err != nil {
    			return nil, err
    		}
    		ids[tgt] = true
    	}
    	if err := scanner.Err(); err != nil {
    		return nil, err
    	}
    	return
    }
    
    // ReadConfig - read content from input and write into c.
    // Returns whether all parameters were dynamic.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  5. schema/field_test.go

    		"name":       "valuer_and_setter_2",
    		"id":         2,
    		"created_at": time.Now(),
    		"updated_at": nil,
    		"deleted_at": time.Now(),
    		"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)
    		}
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Feb 19 09:02:53 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  6. cmd/metrics-v3-bucket-replication.go

    func loadBucketReplicationMetrics(ctx context.Context, m MetricValues, c *metricsCache, buckets []string) error {
    	if globalSiteReplicationSys.isEnabled() {
    		return nil
    	}
    
    	dataUsageInfo, err := c.dataUsageInfo.Get()
    	if err != nil {
    		metricsLogIf(ctx, err)
    		return nil
    	}
    
    	bucketReplStats := globalReplicationStats.Load().getAllLatest(dataUsageInfo.BucketsUsage)
    	for _, bucket := range buckets {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. cmd/signature-v2.go

    	for _, query := range strings.Split(encodedQuery, "&") {
    		var unescapedQuery string
    		unescapedQuery, err = url.QueryUnescape(query)
    		if err != nil {
    			return nil, err
    		}
    		unescapedQueries = append(unescapedQueries, unescapedQuery)
    	}
    	return unescapedQueries, nil
    }
    
    // doesPresignV2SignatureMatch - Verify query headers with presigned signature
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. cmd/http-stats.go

    func (stats *HTTPAPIStats) Inc(api string) {
    	if stats == nil {
    		return
    	}
    	stats.Lock()
    	defer stats.Unlock()
    	if stats.apiStats == nil {
    		stats.apiStats = make(map[string]int)
    	}
    	stats.apiStats[api]++
    }
    
    // Dec increments the api stats counter.
    func (stats *HTTPAPIStats) Dec(api string) {
    	if stats == nil {
    		return
    	}
    	stats.Lock()
    	defer stats.Unlock()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. internal/bucket/lifecycle/noncurrentversion_test.go

    				NoncurrentDays:          90,
    				NewerNoncurrentVersions: 0,
    				set:                     true,
    			},
    			err: nil,
    		},
    		{
    			n: NoncurrentVersionExpiration{
    				NoncurrentDays:          90,
    				NewerNoncurrentVersions: 2,
    				set:                     true,
    			},
    			err: nil,
    		},
    		{
    			n: NoncurrentVersionExpiration{
    				NoncurrentDays: -1,
    				set:            true,
    			},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 14 17:41:44 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  10. cmd/object-handlers-common.go

    	ifModifiedSinceHeader := r.Header.Get(xhttp.AmzCopySourceIfModifiedSince)
    	if ifModifiedSinceHeader != "" {
    		if givenTime, err := amztime.ParseHeader(ifModifiedSinceHeader); err == nil {
    			if !ifModifiedSince(objInfo.ModTime, givenTime) {
    				// If the object is not modified since the specified time.
    				writeHeaders()
    				writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrPreconditionFailed), r.URL)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top