Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 195 for Got (0.09 seconds)

  1. tests/scan_test.go

    		t.Errorf("Failed to run join query, got error: %v", err)
    	}
    
    	personMatched := false
    	addressMatched := false
    
    	for _, info := range personAddressInfoList {
    		if info.Person == nil {
    			t.Fatalf("Failed, expected not nil, got person nil")
    		}
    		if info.Address == nil {
    			t.Fatalf("Failed, expected not nil, got address nil")
    		}
    		if info.Person.ID == person1.ID {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Wed Jun 12 10:57:36 GMT 2024
    - 10.9K bytes
    - Click Count (0)
  2. tests/delete_test.go

    		t.Errorf("should raise record not found error, but got error %v", err)
    	}
    
    	var result3 UserWithDelete
    	if err := DB.Table("deleted_users").Unscoped().First(&result3, user.ID).Error; err != nil {
    		t.Fatalf("failed to find record, got error %v", err)
    	}
    
    	if err := DB.Table("deleted_users").Unscoped().Delete(&result).Error; err != nil {
    		t.Errorf("failed to delete user with unscoped, got error %v", err)
    	}
    
    	var result4 UserWithDelete
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Jul 21 02:46:58 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  3. tests/chainable_api_test.go

    	db := newTestDB()
    
    	// Model
    	m := &struct{ ID int }{}
    	tx := db.Model(m)
    	if tx.Statement.Model != m {
    		t.Fatalf("Model not set, got %v", tx.Statement.Model)
    	}
    
    	// Table
    	tx = tx.Table("users")
    	if tx.Statement.Table != "users" {
    		t.Fatalf("Table not set, got %v", tx.Statement.Table)
    	}
    	if tx.Statement.TableExpr == nil {
    		t.Fatalf("TableExpr expected to be set")
    	}
    
    	// Distinct + Select
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Jan 31 08:39:40 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  4. tests/prepared_stmt_test.go

    		t.Errorf("Failed to start transaction, got error %v\n", err)
    	}
    
    	if err := tx.Where("name=?", "zzjin").Delete(&User{}).Error; err != nil {
    		tx.Rollback()
    		t.Errorf("Failed to run one transaction, got error %v\n", err)
    	}
    
    	if err := tx.Create(&User{Name: "zzjin"}).Error; err != nil {
    		tx.Rollback()
    		t.Errorf("Failed to run one transaction, got error %v\n", err)
    	}
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Fri Apr 25 08:22:26 GMT 2025
    - 8K bytes
    - Click Count (0)
  5. tests/associations_has_one_test.go

    		t.Fatalf("Error happened when delete account, got %v", err)
    	}
    	AssertAssociationCount(t, user2, "Account", 1, "after delete non-existing data")
    
    	if err := DB.Model(&user2).Association("Account").Delete(&account2); err != nil {
    		t.Fatalf("Error happened when delete Account, got %v", err)
    	}
    	AssertAssociationCount(t, user2, "Account", 0, "after delete")
    
    	// Prepare Data for Clear
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Wed Jun 12 10:49:45 GMT 2024
    - 7.1K bytes
    - Click Count (0)
  6. tests/helper_test.go

    			if pet == nil || expect.Pets[idx] == nil {
    				t.Errorf("pets#%v should equal, expect: %v, got %v", idx, expect.Pets[idx], pet)
    			} else {
    				doCheckPet(t, *pet, *expect.Pets[idx], unscoped)
    			}
    		}
    	})
    
    	t.Run("Toys", func(t *testing.T) {
    		if len(user.Toys) != len(expect.Toys) {
    			t.Fatalf("toys should equal, expect: %v, got %v", len(expect.Toys), len(user.Toys))
    		}
    
    		sort.Slice(user.Toys, func(i, j int) bool {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:27:38 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  7. tests/non_std_test.go

    		t.Errorf("Name fields shouldn't be changed if untouched, but got %v", animal.Name)
    	}
    
    	// When changing a field with a default value, the change must occur
    	animal.Name = "amazing horse"
    	DB.Save(&animal)
    	DB.First(&animal, animal.Counter)
    	if animal.Name != "amazing horse" {
    		t.Errorf("Update a filed with a default value should occur. But got %v\n", animal.Name)
    	}
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Wed May 08 04:07:58 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  8. schema/schema_helper_test.go

    			if r.Name != relation.Name {
    				t.Errorf("schema %v relation name expects %v, but got %v", s, r.Name, relation.Name)
    			}
    
    			if r.Type != relation.Type {
    				t.Errorf("schema %v relation name expects %v, but got %v", s, r.Type, relation.Type)
    			}
    
    			if r.Schema.Name != relation.Schema {
    				t.Errorf("schema %v relation's schema expects %v, but got %v", s, relation.Schema, r.Schema.Name)
    			}
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Thu Aug 28 02:57:17 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  9. docs_src/stream_data/tutorial001_py310.py

    
    message = """
    Rick: (stumbles in drunkenly, and turns on the lights) Morty! You gotta come on. You got--... you gotta come with me.
    Morty: (rubs his eyes) What, Rick? What's going on?
    Rick: I got a surprise for you, Morty.
    Morty: It's the middle of the night. What are you talking about?
    Rick: (spills alcohol on Morty's bed) Come on, I got a surprise for you. (drags Morty by the ankle) Come on, hurry up. (pulls Morty out of his bed and into the hall)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  10. tests/update_test.go

    		t.Errorf("errors happened when update: %v", res.Error)
    	} else if res.RowsAffected != 1 {
    		t.Errorf("rows affected should be 1, but got : %v", res.RowsAffected)
    	} else if user.Age != 5 {
    		t.Errorf("Age should equals to 5, but got %v", user.Age)
    	} else if user.Active != true {
    		t.Errorf("Active should be true, but got %v", user.Active)
    	}
    	checkUpdatedAtChanged("Updates with map", user.UpdatedAt)
    	checkOtherData("Updates with map")
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Jul 21 02:46:58 GMT 2025
    - 30.4K bytes
    - Click Count (0)
Back to Top