Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGenericsWithTransaction (0.15 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 Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
Back to top