Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 6,499 for happen (0.17 sec)

  1. cmd/bucket-policy.go

    	data, err := json.Marshal(bucketPolicy)
    	if err != nil {
    		// This should not happen because bucketPolicy is valid to convert to JSON data.
    		return nil, err
    	}
    
    	var policyInfo miniogopolicy.BucketAccessPolicy
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	if err = json.Unmarshal(data, &policyInfo); err != nil {
    		// This should not happen because data is valid to JSON data.
    		return nil, err
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. pkg/test/util/assert/tracker.go

    	t.mu.Lock()
    	defer t.mu.Unlock()
    	t.events = append(t.events, event)
    }
    
    // Empty asserts the tracker is empty
    func (t *Tracker[T]) Empty() {
    	t.t.Helper()
    	t.mu.Lock()
    	defer t.mu.Unlock()
    	if len(t.events) != 0 {
    		t.t.Fatalf("unexpected events: %v", t.events)
    	}
    }
    
    // WaitOrdered waits for an event to happen, in order
    func (t *Tracker[T]) WaitOrdered(events ...T) {
    	t.t.Helper()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. tests/embedded_struct_test.go

    		t.Errorf("no error should happen when query with embedded struct, but got %v", err)
    	} else if egNews.BasePost.Title != "engadget_news" {
    		t.Errorf("embedded struct's value should be scanned correctly")
    	}
    
    	var egPosts []EngadgetPost
    	if err := DB.Order("author_name asc").Find(&egPosts).Error; err != nil {
    		t.Fatalf("no error should happen when query with embedded struct, but got %v", err)
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. pkg/proxy/nftables/README.md

        "input path".)
    
      - `LoadBalancerSourceRanges` firewalling has to happen before service DNAT, so we do
        that on `prerouting` and `output` as well, with a lower (i.e. more urgent) priority
        than the DNAT chains.
    
      - The `drop` and `reject` rules for services with no endpoints don't need to happen
        explicitly before or after any other rules (since they match packets that wouldn't be
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 21 14:37:56 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/fixedbugs_test.go

    		// read by the write barrier code.
    		g = makeT()
    		sink = make([]byte, 1000) // force write barriers to eventually happen
    	}
    }
    func TestIssue15854b(t *testing.T) {
    	const N = 10000
    	a := make([]T, N)
    	for i := 0; i < N; i++ {
    		a = append(a, makeT())
    		sink = make([]byte, 1000) // force write barriers to eventually happen
    	}
    	for i, v := range a {
    		if v.x[0] != 0 {
    			t.Fatalf("a[%d].x[0] clobbered with %x\n", i, v.x[0])
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. tests/prepared_stmt_test.go

    	txCtx.Create(&user)
    
    	var result1 User
    	if err := txCtx.Find(&result1, user.ID).Error; err != nil {
    		t.Fatalf("no error should happen but got %v", err)
    	}
    
    	time.Sleep(time.Second)
    
    	var result2 User
    	if err := tx.Find(&result2, user.ID).Error; err != nil {
    		t.Fatalf("no error should happen but got %v", err)
    	}
    
    	user2 := *GetUser("prepared_stmt2", Config{})
    	if err := txCtx.Create(&user2).Error; err == nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 21 07:55:43 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. tests/upsert_test.go

    		t.Errorf("no error should happen when find languages with code, but got %v", err)
    	} else if len(langs2) != 3 {
    		t.Errorf("should only find only 3 languages, but got %+v", langs2)
    	}
    
    	DB.Clauses(clause.OnConflict{DoNothing: true}).Create(&langs)
    	var langs3 []Language
    	if err := DB.Find(&langs3, "code LIKE ?", "upsert-slice%").Error; err != nil {
    		t.Errorf("no error should happen when find languages with code, but got %v", err)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Sep 05 07:39:19 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  8. schema/field_test.go

    		"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)
    
    	// test valuer and other type
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 19 09:02:53 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/nchw_convolution_to_nhwc.mlir

    // CHECK: %[[TRANSPOSE_2:.+]] = stablehlo.transpose %[[CONV]], dims = [0, 3, 1, 2] : (tensor<1x4x4x8xf32>) -> tensor<1x8x4x4xf32>
    
    // -----
    
    // Tests that the conversion doesn't happen when the input dimension numbers
    // are not [b, f, 0, 1].
    
    // CHECK-LABEL: conv_input_dim_numbers_mismatch
    func.func @conv_input_dim_numbers_mismatch(%arg0: tensor<1x4x4x8xf32>) -> tensor<1x8x4x4xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 23:00:47 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. releasenotes/notes/29414.yaml

    apiVersion: release-notes/v2
    kind: bug-fix
    area: networking
    issue:
      - 29414
    releaseNotes:
      - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 07 17:30:27 UTC 2020
    - 281 bytes
    - Viewed (0)
Back to top