Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setStrictFakeConnClose (0.12 sec)

  1. src/database/sql/fakedb_test.go

    	hookPostCloseConn.Lock()
    	defer hookPostCloseConn.Unlock()
    	hookPostCloseConn.fn = fn
    }
    
    var testStrictClose *testing.T
    
    // setStrictFakeConnClose sets the t to Errorf on when fakeConn.Close
    // fails to close. If nil, the check is disabled.
    func setStrictFakeConnClose(t *testing.T) {
    	testStrictClose = t
    }
    
    func (c *fakeConn) ResetSession(ctx context.Context) error {
    	c.dirtySession = false
    	c.currTx = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top