Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for selectPage (0.1 sec)

  1. src/reflect/all_test.go

    	}
    }
    
    func TestSelectMaxCases(t *testing.T) {
    	var sCases []SelectCase
    	channel := make(chan int)
    	close(channel)
    	for i := 0; i < 65536; i++ {
    		sCases = append(sCases, SelectCase{
    			Dir:  SelectRecv,
    			Chan: ValueOf(channel),
    		})
    	}
    	// Should not panic
    	_, _, _ = Select(sCases)
    	sCases = append(sCases, SelectCase{
    		Dir:  SelectRecv,
    		Chan: ValueOf(channel),
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. src/database/sql/sql_test.go

    		t.Fatal(err)
    	}
    	err = tx.Commit()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	var selectName string
    	err = conn.QueryRowContext(ctx, "SELECT|people|name|age=?", insertAge).Scan(&selectName)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if selectName != insertName {
    		t.Fatalf("got %q want %q", selectName, insertName)
    	}
    }
    
    // TestConnIsValid verifies that a database connection that should be discarded,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  3. src/reflect/value.go

    const (
    	_             SelectDir = iota
    	SelectSend              // case Chan <- Send
    	SelectRecv              // case <-Chan:
    	SelectDefault           // default
    )
    
    // A SelectCase describes a single case in a select operation.
    // The kind of case depends on Dir, the communication direction.
    //
    // If Dir is SelectDefault, the case represents a default case.
    // Chan and Send must be zero Values.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top