Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestInlineCondDelete (0.15 sec)

  1. tests/delete_test.go

    	if err := DB.Table("deleted_users").Unscoped().First(&result4, user.ID).Error; !errors.Is(err, gorm.ErrRecordNotFound) {
    		t.Errorf("should raise record not found error, but got error %v", err)
    	}
    }
    
    func TestInlineCondDelete(t *testing.T) {
    	user1 := *GetUser("inline_delete_1", Config{})
    	user2 := *GetUser("inline_delete_2", Config{})
    	DB.Save(&user1).Save(&user2)
    
    	if DB.Delete(&User{}, user1.ID).Error != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Oct 10 07:03:34 UTC 2023
    - 9.4K bytes
    - Viewed (0)
Back to top