Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newTestDBConnector (0.18 sec)

  1. src/database/sql/sql_test.go

    const pollDuration = 5 * time.Millisecond
    
    const fakeDBName = "foo"
    
    var chrisBirthday = time.Unix(123456789, 0)
    
    func newTestDB(t testing.TB, name string) *DB {
    	return newTestDBConnector(t, &fakeConnector{name: fakeDBName}, name)
    }
    
    func newTestDBConnector(t testing.TB, fc *fakeConnector, name string) *DB {
    	fc.name = fakeDBName
    	db := OpenDB(fc)
    	if _, err := db.Exec("WIPE"); err != nil {
    		t.Fatalf("exec wipe: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top