Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGenericsWithTransaction (0.09 sec)

  1. tests/generics_test.go

    			} else if len(users) != 2 {
    				t.Errorf("should find 2 users, but got %d", len(users))
    			}
    			sg.Done()
    		}()
    	}
    	sg.Wait()
    }
    
    func TestGenericsWithTransaction(t *testing.T) {
    	ctx := context.Background()
    	tx := DB.Begin()
    	if tx.Error != nil {
    		t.Fatalf("failed to begin transaction: %v", tx.Error)
    	}
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 33.7K bytes
    - Viewed (0)
Back to top