Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 52 for wantnil (0.17 sec)

  1. 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)
  2. src/os/os_unix_test.go

    		{"//a", "/", "a"},
    		{"//a/", "/", "a"},
    		{"///a", "/", "a"},
    		{"///a/", "/", "a"},
    	} {
    		if dir, base := SplitPath(tt.path); dir != tt.wantDir || base != tt.wantBase {
    			t.Errorf("splitPath(%q) = %q, %q, want %q, %q", tt.path, dir, base, tt.wantDir, tt.wantBase)
    		}
    	}
    }
    
    // Test that copying to files opened with O_APPEND works and
    // the copy_file_range syscall isn't used on Linux.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  3. src/testing/slogtest/slogtest.go

    		}
    		return ""
    	}
    }
    
    func hasAttr(key string, wantVal any) check {
    	return func(m map[string]any) string {
    		if s := hasKey(key)(m); s != "" {
    			return s
    		}
    		gotVal := m[key]
    		if !reflect.DeepEqual(gotVal, wantVal) {
    			return fmt.Sprintf("%q: got %#v, want %#v", key, gotVal, wantVal)
    		}
    		return ""
    	}
    }
    
    func inGroup(name string, c check) check {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    				l:            &sync.Mutex{},
    				lastResponse: &kmsPluginHealthzResponse{},
    			},
    			wantTTL: kmsPluginHealthzNegativeTTL,
    		},
    	}
    
    	for _, tt := range testCases {
    		t.Run(tt.desc, func(t *testing.T) {
    			_ = tt.probe.check()
    			if tt.probe.ttl != tt.wantTTL {
    				t.Fatalf("want ttl %v, got ttl %v", tt.wantTTL, tt.probe.ttl)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  5. src/archive/tar/strconv_test.go

    			} else {
    				t.Errorf("parsePAXRecord(%q): got parsing success, want failure", v.in)
    			}
    		}
    		if v.ok && (key != v.wantKey || val != v.wantVal) {
    			t.Errorf("parsePAXRecord(%q): got (%q: %q), want (%q: %q)",
    				v.in, key, val, v.wantKey, v.wantVal)
    		}
    		if res != v.wantRes {
    			t.Errorf("parsePAXRecord(%q): got residual %q, want residual %q",
    				v.in, res, v.wantRes)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 09 05:28:50 UTC 2021
    - 14K bytes
    - Viewed (0)
  6. CONTRIBUTING.md

    How to contribute
    =================
    
    Thank you so much for wanting to contribute to Guava! Here are a few important
    things you should know about contributing:
    
    1.  API changes require discussion, use cases, etc. Code comes later.
    2.  Pull requests are great for small fixes for bugs, documentation, etc.
    3.  Pull requests are not merged directly into the master branch.
    4.  Code contributions require signing a Google CLA.
    
    API changes
    -----------
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Nov 17 18:47:47 UTC 2023
    - 3.7K 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. src/log/slog/logger_test.go

    		t.Helper()
    		const wantFunc = "log/slog.TestCallDepth"
    		const wantFile = "logger_test.go"
    		wantLine := startLine + count*2
    		got := h.r.source()
    		gotFile := filepath.Base(got.File)
    		if got.Function != wantFunc || gotFile != wantFile || got.Line != wantLine {
    			t.Errorf("got (%s, %s, %d), want (%s, %s, %d)",
    				got.Function, gotFile, got.Line, wantFunc, wantFile, wantLine)
    		}
    	}
    
    	defer SetDefault(Default()) // restore
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  10. src/go/parser/parser_test.go

    				sel = n
    			}
    			return true
    		})
    		if sel == nil {
    			t.Error("found no *ast.SelectorExpr")
    			continue
    		}
    		const wantSel = "&{fmt _}"
    		if fmt.Sprint(sel) != wantSel {
    			t.Errorf("found selector %s, want %s", sel, wantSel)
    			continue
    		}
    	}
    }
    
    func TestLastLineComment(t *testing.T) {
    	const src = `package main
    type x int // comment
    `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
Back to top