Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,027 for resc (0.92 sec)

  1. src/net/http/response_test.go

    func TestReadResponse(t *testing.T) {
    	for i, tt := range respTests {
    		resp, err := ReadResponse(bufio.NewReader(strings.NewReader(tt.Raw)), tt.Resp.Request)
    		if err != nil {
    			t.Errorf("#%d: %v", i, err)
    			continue
    		}
    		rbody := resp.Body
    		resp.Body = nil
    		diff(t, fmt.Sprintf("#%d Response", i), resp, &tt.Resp)
    		var bout strings.Builder
    		if rbody != nil {
    			_, err = io.Copy(&bout, rbody)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 19:01:29 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  2. operator/pkg/cache/cache_test.go

    	"istio.io/istio/operator/pkg/object"
    )
    
    func TestFlushObjectCaches(t *testing.T) {
    	tests := []struct {
    		desc     string
    		wantSize int
    	}{
    		{
    			desc:     "flush-cache",
    			wantSize: 0,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.desc, func(t *testing.T) {
    			unstObjs := make(map[string]any)
    			tUnstructured := &unstructured.Unstructured{Object: unstObjs}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 20 18:46:12 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. internal/hash/reader_test.go

    	testCases := []struct {
    		desc              string
    		src               io.Reader
    		size              int64
    		actualSize        int64
    		md5hex, sha256hex string
    		err               error
    	}{
    		0: {
    			desc:       "Success, no checksum verification provided.",
    			src:        bytes.NewReader([]byte("abcd")),
    			size:       4,
    			actualSize: 4,
    		},
    		{
    			desc:       "Failure md5 mismatch.",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  4. src/encoding/base64/base64_test.go

    	dec := NewDecoder(StdEncoding, strings.NewReader(encoded))
    	res1, err := io.ReadAll(dec)
    	if err != nil {
    		t.Errorf("ReadAll failed: %v", err)
    	}
    
    	dec = NewDecoder(StdEncoding, strings.NewReader(encodedShort))
    	var res2 []byte
    	res2, err = io.ReadAll(dec)
    	if err != nil {
    		t.Errorf("ReadAll failed: %v", err)
    	}
    
    	if !bytes.Equal(res1, res2) {
    		t.Error("Decoded results not equal")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 03 18:57:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/bytecode/AsmExtensions.kt

        visitMethodInsn_(Opcodes.INVOKEINTERFACE, owner, name, desc, itf)
    }
    
    
    internal
    fun MethodVisitor.INVOKESTATIC(owner: InternalName, name: String, desc: String) {
        visitMethodInsn_(Opcodes.INVOKESTATIC, owner, name, desc, false)
    }
    
    
    private
    fun MethodVisitor.visitMethodInsn_(opcode: Int, owner: InternalName, name: String, desc: String, itf: Boolean) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tf_tfl_translate_cl.cc

        llvm::cl::desc("Enable converting TF to Stablehlo."),
        llvm::cl::init(false));
    
    // NOLINTNEXTLINE
    opt<bool> post_training_quantization(
        "post-training-quantization",
        llvm::cl::desc("Enable post_training_quantization."),
        llvm::cl::init(false));
    
    // NOLINTNEXTLINE
    opt<bool> legalize_custom_tensor_list_ops(
        "legalize-custom-tensor-list-ops",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 20:53:17 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. operator/cmd/mesh/profile-dump_test.go

    func TestProfileDump(t *testing.T) {
    	testDataDir := filepath.Join(operatorRootDir, "cmd/mesh/testdata/profile-dump")
    	tests := []struct {
    		desc       string
    		configPath string
    	}{
    		{
    			desc: "all_off",
    		},
    		{
    			desc:       "config_path",
    			configPath: "components",
    		},
    		{
    			desc:       "list_path",
    			configPath: "values.gateways.istio-egressgateway.secretVolumes",
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 20 11:44:25 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  8. pkg/util/flag/flags_test.go

    	testCases := []struct {
    		desc      string
    		argc      string
    		expectErr bool
    		expectVal string
    	}{
    
    		{
    			desc:      "valid ipv4 1",
    			argc:      "blah --ipport=0.0.0.0",
    			expectVal: "0.0.0.0",
    		},
    		{
    			desc:      "valid ipv4 2",
    			argc:      "blah --ipport=127.0.0.1",
    			expectVal: "127.0.0.1",
    		},
    
    		{
    			desc:      "invalid IP",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 14 10:45:23 UTC 2021
    - 8.8K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/security_context_others_test.go

    	runAsNonRootTrue := true
    	runAsNonRootFalse := false
    	for _, test := range []struct {
    		desc     string
    		sc       *v1.SecurityContext
    		uid      *int64
    		username string
    		fail     bool
    	}{
    		{
    			desc: "Pass if SecurityContext is not set",
    			sc:   nil,
    			uid:  &rootUser,
    			fail: false,
    		},
    		{
    			desc: "Pass if RunAsUser is non-root and RunAsNonRoot is true",
    			sc: &v1.SecurityContext{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 10:06:54 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  10. pkg/proxy/util/utils_test.go

    	testCases := []struct {
    		desc            string
    		ipString        []string
    		wantIPv6        bool
    		expectCorrect   []string
    		expectIncorrect []string
    	}{
    		{
    			desc:            "empty input IPv4",
    			ipString:        []string{},
    			wantIPv6:        false,
    			expectCorrect:   nil,
    			expectIncorrect: nil,
    		},
    		{
    			desc:            "empty input IPv6",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top