Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for partlen (0.24 sec)

  1. src/database/sql/sql_test.go

    	}
    	reset := func() { s = connRequestSet{} }
    
    	t.Run("add-delete", func(t *testing.T) {
    		reset()
    		wantLen(0)
    		dh := s.Add(nil)
    		wantLen(1)
    		if !s.Delete(dh) {
    			t.Fatal("failed to delete")
    		}
    		wantLen(0)
    		if s.Delete(dh) {
    			t.Error("delete worked twice")
    		}
    		wantLen(0)
    	})
    	t.Run("take-before-delete", func(t *testing.T) {
    		reset()
    		ch1 := make(chan connRequest)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/exec.go

    	cleanup = func() {} // no cleanup by default
    
    	var argLen int
    	for _, arg := range cmd.Args {
    		argLen += len(arg)
    	}
    
    	// If we're not approaching 32KB of args, just pass args normally.
    	// (use 30KB instead to be conservative; not sure how accounting is done)
    	if !useResponseFile(cmd.Path, argLen) {
    		return
    	}
    
    	tf, err := os.CreateTemp("", "args")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/queue/scheduling_queue_test.go

    			q.Activate(logger, map[string]*v1.Pod{"test_pod": tt.qPodInfoToActivate.PodInfo.Pod})
    
    			// Check the result after activation by the length of activeQ
    			if wantLen := len(tt.want); q.activeQ.Len() != wantLen {
    				t.Errorf("length compare: want %v, got %v", wantLen, q.activeQ.Len())
    			}
    
    			// Check if the specific pod exists in activeQ
    			for _, want := range tt.want {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  4. api/maven-api-model/src/main/mdo/maven.mdo

                tools placing it in the repository. Valid values are: {@code none} (default),
                {@code converted} (repository manager converted this from an Maven 1 POM),
                {@code partner}
                (directly synced from a partner Maven 2 repository), {@code deployed} (was deployed from a Maven 2
                instance), {@code verified} (has been hand verified as correct and final).
              </description>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Apr 23 13:29:46 UTC 2024
    - 115.1K bytes
    - Viewed (0)
  5. src/net/http/transport_test.go

    			// since Closing this early in the loop would risk
    			// making connections be re-used for the wrong reason.
    			defer res.Body.Close()
    
    			if res.ContentLength != int64(wantLen) {
    				t.Errorf("%s res.ContentLength = %d; want %d", path, res.ContentLength, wantLen)
    			}
    			got, err := io.ReadAll(res.Body)
    			if string(got) != msg || err != nil {
    				t.Errorf("%s ReadAll(Body) = %q, %v; want %q, nil", path, string(got), err, msg)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top