Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestQueryContext (0.21 sec)

  1. src/database/sql/sql_test.go

    	}
    	if prepares := numPrepares(t, db) - prepares0; prepares != 1 {
    		t.Errorf("executed %d Prepare statements; want 1", prepares)
    	}
    }
    
    // TestQueryContext tests canceling the context while scanning the rows.
    func TestQueryContext(t *testing.T) {
    	db := newTestDB(t, "people")
    	defer closeDB(t, db)
    	prepares0 := numPrepares(t, db)
    
    	ctx, cancel := context.WithCancel(context.Background())
    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