Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for conversionTests (0.65 sec)

  1. src/database/sql/convert_test.go

    	scanuint16 uint16
    	scanbool   bool
    	scanf32    float32
    	scanf64    float64
    	scantime   time.Time
    	scanptr    *int64
    	scaniface  any
    )
    
    func conversionTests() []conversionTest {
    	// Return a fresh instance to test so "go test -count 2" works correctly.
    	return []conversionTest{
    		// Exact conversions (destination pointer type matches source type)
    		{s: "foo", d: &scanstr, wantstr: "foo"},
    		{s: 123, d: &scanint, wantint: 123},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top