Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for wantnil (0.23 sec)

  1. src/database/sql/convert_test.go

    		}
    		if ct.wantraw != nil && string(ct.wantraw) != string(scanraw) {
    			errf("want RawBytes %q, got %q", ct.wantraw, scanraw)
    		}
    		if ct.wantint != 0 && ct.wantint != intValue(ct.d) {
    			errf("want int %d, got %d", ct.wantint, intValue(ct.d))
    		}
    		if ct.wantuint != 0 && ct.wantuint != uintValue(ct.d) {
    			errf("want uint %d, got %d", ct.wantuint, uintValue(ct.d))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. src/iter/pull_test.go

    				}
    				wantNG(1)
    			}
    			wantNG(1)
    			if end < 3 {
    				stop()
    				wantNG(0)
    			}
    			for range 2 {
    				v, ok := next()
    				if v != 0 || ok != false {
    					t.Fatalf("next() = %d, %v, want %d, %v", v, ok, 0, false)
    				}
    				wantNG(0)
    			}
    			wantNG(0)
    
    			stop()
    			stop()
    			stop()
    			wantNG(0)
    		})
    	}
    }
    
    func TestPull2(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. src/cmd/vet/vet_test.go

    	}
    }
    
    // TestTags verifies that the -tags argument controls which files to check.
    func TestTags(t *testing.T) {
    	t.Parallel()
    	for tag, wantFile := range map[string]int{
    		"testtag":     1, // file1
    		"x testtag y": 1,
    		"othertag":    2,
    	} {
    		tag, wantFile := tag, wantFile
    		t.Run(tag, func(t *testing.T) {
    			t.Parallel()
    			t.Logf("-tags=%s", tag)
    			cmd := vetCmd(t, "-tags="+tag, "tagtest")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. src/testing/testing_test.go

    	// marked as failed, and that failure should propagate up to the parents.
    	cFail := bytes.Count(out, []byte("--- FAIL:"))
    	wantFail := 0
    	if race.Enabled {
    		wantFail = 4
    	}
    	if cFail != wantFail {
    		t.Errorf(`got %d "--- FAIL:" lines, want %d`, cReport, wantReport)
    	}
    }
    
    func TestRaceInCleanup(t *testing.T) {
    	if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. pilot/pkg/security/authz/builder/builder_test.go

    	for i, got := range gots {
    		gotYaml, err := protomarshal.ToYAML(got)
    		if err != nil {
    			t.Fatalf("failed to convert to YAML: %v", err)
    		}
    
    		wantFile := basePath + baseDir + wants[i]
    		util.RefreshGoldenFile(t, []byte(gotYaml), wantFile)
    		want := yamlConfig(t, wantFile, forTCP)
    		wantYaml, err := protomarshal.ToYAML(want)
    		if err != nil {
    			t.Fatalf("failed to convert to YAML: %v", err)
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. src/net/splice_linux_test.go

    		t.Errorf("want %d bytes spliced, got %d", want, n)
    	}
    
    	if tc.limitReadSize > 0 {
    		wantN := 0
    		if tc.limitReadSize > size {
    			wantN = tc.limitReadSize - size
    		}
    
    		if n := r.(*io.LimitedReader).N; n != int64(wantN) {
    			t.Errorf("r.N = %d, want %d", n, wantN)
    		}
    	}
    
    	// poll.Splice is expected to be called when the source is not
    	// a wrapper or the destination is TCPConn.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/pgo_inl_test.go

    	testenv.MustHaveGoRun(t)
    	t.Parallel()
    
    	const pkg = "example.com/pgo/inline"
    
    	want := []string{
    		"(*BS).NS",
    	}
    
    	// The functions which are not expected to be inlined are as follows.
    	wantNot := []string{
    		// The calling edge main->A is hot and the cost of A is large
    		// than inlineHotCalleeMaxBudget.
    		"A",
    		// The calling edge BenchmarkA" -> benchmarkB is cold and the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. cmd/streaming-signature-v4.go

    	}
    	sig = sig[len("x-amz-trailer-signature:"):]
    	sig = bytes.TrimSpace(sig)
    	cr.chunkSHA256Writer.Write(valueBuffer.Bytes())
    	wantSig := cr.getTrailerChunkSignature()
    	if !compareSignatureV4(string(sig), wantSig) {
    		if cr.debug {
    			fmt.Printf("signature, want: %q, got %q\nSignature buffer: %q\n", wantSig, string(sig), valueBuffer.String())
    		}
    		return errSignatureMismatch
    	}
    
    	// Parse trailers.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. internal/grid/grid_test.go

    			},
    			OutCapacity: 1,
    			InCapacity:  1,
    		}))
    	}
    	register(local)
    	register(remote)
    	// Double remote DL
    	local.debugMsg(debugAddToDeadline, wantDL)
    	defer local.debugMsg(debugAddToDeadline, time.Duration(0))
    	remote.debugMsg(debugAddToDeadline, wantDL)
    	defer remote.debugMsg(debugAddToDeadline, time.Duration(0))
    
    	testHandler := func(t *testing.T, handler HandlerID) {
    		remoteConn := local.Connection(remoteHost)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  10. cmd/xl-storage-disk-id-check.go

    // checkID will check if the disk ID matches the provided ID.
    func (p *xlStorageDiskIDCheck) checkID(wantID string) (err error) {
    	if wantID == "" {
    		return nil
    	}
    	id, err := p.storage.GetDiskID()
    	if err != nil {
    		return err
    	}
    	if id != wantID {
    		return fmt.Errorf("disk ID %s does not match. disk reports %s", wantID, id)
    	}
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top