Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Alice (0.13 sec)

  1. tests/query_test.go

    	}
    
    	AssertEqual(t, result, user)
    
    	users := []User{
    		*GetUser("scan_null_value_for_slice_1", Config{}),
    		*GetUser("scan_null_value_for_slice_2", Config{}),
    		*GetUser("scan_null_value_for_slice_3", Config{}),
    	}
    	DB.Create(&users)
    
    	if err := DB.Model(&users[0]).Update("age", nil).Error; err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    		}
    
    		if string(b) != tt.s {
    			t.Errorf("slice changed to %s; want %s", b, tt.s)
    		}
    		if len(tt.a) > 0 {
    			if want := tt.a[len(tt.a)-1] + "z"; string(x) != want {
    				t.Errorf("last appended result was %s; want %s", x, want)
    			}
    		}
    	}
    }
    
    // Test case for any function which accepts and returns a byte slice.
    // For ease of creation, we write the input byte slice as a string.
    type StringTest struct {
    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)
  3. cmd/iam-store.go

    	policies := make(map[string]MappedPolicy, m.Size())
    	m.Range(func(k string, v MappedPolicy) bool {
    		policies[k] = v
    		return true
    	})
    	return policies
    }
    
    // converts a mapped policy into a slice of distinct policies
    func (mp MappedPolicy) toSlice() []string {
    	var policies []string
    	for _, policy := range strings.Split(mp.Policies, ",") {
    		if strings.TrimSpace(policy) == "" {
    			continue
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  4. cmd/xl-storage-format-v2.go

    const metaDataReadDefault = 4 << 10
    
    // Return used metadata byte slices here.
    var metaDataPool = sync.Pool{New: func() interface{} { return make([]byte, 0, metaDataReadDefault) }}
    
    // metaDataPoolGet will return a byte slice with capacity at least metaDataReadDefault.
    // It will be length 0.
    func metaDataPoolGet() []byte {
    	return metaDataPool.Get().([]byte)[:0]
    }
    
    // metaDataPoolPut will put an unused small buffer back into the pool.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  5. cmd/erasure-server-pool.go

    	}
    
    	var wg sync.WaitGroup
    	for i, pool := range z.serverPools {
    		wg.Add(1)
    		go func(i int, pool *erasureSets, opts ObjectOptions) {
    			defer wg.Done()
    			// remember the pool index, we may sort the slice original index might be lost.
    			pinfo := PoolObjInfo{
    				Index: i,
    			}
    			// do not remove this check as it can lead to inconsistencies
    			// for all callers of bucket replication.
    			if !opts.MetadataChg {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  6. istioctl/pkg/describe/describe.go

    		extra = append(extra, "outlier detection")
    	}
    	if len(extra) > 0 {
    		return fmt.Sprintf("Policies: %s\n", strings.Join(extra, "/"))
    	}
    	return ""
    }
    
    // httpRouteMatchSvc returns true if it matches and a slice of facts about the match
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  7. cmd/bucket-handlers.go

    			return
    		}
    		for _, dnsRecords := range dnsBuckets {
    			bucketsInfo = append(bucketsInfo, BucketInfo{
    				Name:    dnsRecords[0].Key,
    				Created: dnsRecords[0].CreationDate,
    			})
    		}
    
    		sort.Slice(bucketsInfo, func(i, j int) bool {
    			return bucketsInfo[i].Name < bucketsInfo[j].Name
    		})
    
    	} else {
    		// Invoke the list buckets.
    		var err error
    		bucketsInfo, err = listBuckets(ctx, BucketOptions{})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    		return s.WriteAll(ctx, volume, pathJoin(path, xlStorageFormatFile), buf)
    	}
    
    	return s.deleteFile(volumeDir, pathJoin(volumeDir, path, xlStorageFormatFile), true, false)
    }
    
    // DeleteVersions deletes slice of versions, it can be same object
    // or multiple objects.
    func (s *xlStorage) DeleteVersions(ctx context.Context, volume string, versions []FileInfoVersions, opts DeleteOptions) []error {
    	errs := make([]error, len(versions))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_test.cc

      }
      TF_DeleteTensor(a);
    }
    
    TEST(CAPI, TestTensorIsNotAligned) {
      // Test unaligned access via a Slice.
      Tensor x(DT_FLOAT, TensorShape({30}));
      x.flat<float>().setConstant(0.0);
    
      // Take an unaligned slice.
      Tensor y = x.Slice(1, 13);
      Status status;
      TF_Tensor* a = TF_TensorFromTensor(y, &status);
      if (TF_TensorDefaultAlignment() > 0) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  10. src/archive/zip/reader_test.go

    	}
    }
    
    func TestCVE202133196(t *testing.T) {
    	// Archive that indicates it has 1 << 128 -1 files,
    	// this would previously cause a panic due to attempting
    	// to allocate a slice with 1 << 128 -1 elements.
    	data := []byte{
    		0x50, 0x4b, 0x03, 0x04, 0x14, 0x00, 0x08, 0x08,
    		0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
Back to top