Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for replaceable (0.34 sec)

  1. src/strings/strings_test.go

    			t.Errorf("Replace(%q, %q, %q, %d) = %q, want %q", tt.in, tt.old, tt.new, tt.n, s, tt.out)
    		}
    		if tt.n == -1 {
    			s := ReplaceAll(tt.in, tt.old, tt.new)
    			if s != tt.out {
    				t.Errorf("ReplaceAll(%q, %q, %q) = %q, want %q", tt.in, tt.old, tt.new, s, tt.out)
    			}
    		}
    	}
    }
    
    var TitleTests = []struct {
    	in, out string
    }{
    	{"", ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. pkg/kubelet/stats/cri_stats_provider_test.go

    			CreatedAt: time.Now().UnixNano(),
    		},
    	}
    	if terminated {
    		p.PodSandboxStatus.State = runtimeapi.PodSandboxState_SANDBOX_NOTREADY
    	}
    	p.PodSandboxStatus.Id = strings.ReplaceAll(string(uuid.NewUUID()), "-", "")
    	return p
    }
    
    func makeFakeContainer(sandbox *critest.FakePodSandbox, name string, attempt uint32, terminated bool) *critest.FakeContainer {
    	sandboxID := sandbox.PodSandboxStatus.Id
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  3. src/net/url/url_test.go

    		out := tt.out
    		if strings.Contains(tt.in, "+") {
    			in = strings.ReplaceAll(tt.in, "+", "%20")
    			actual, err := PathUnescape(in)
    			if actual != tt.out || (err != nil) != (tt.err != nil) {
    				t.Errorf("PathUnescape(%q) = %q, %s; want %q, %s", in, actual, err, tt.out, tt.err)
    			}
    			if tt.err == nil {
    				s, err := QueryUnescape(strings.ReplaceAll(tt.in, "+", "XXX"))
    				if err != nil {
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    			buf.WriteByte('\n')
    		}
    	}
    	canonicalHeaders := buf.String()
    
    	// Get signed headers.
    	signedHeaders := strings.Join(headers, ";")
    
    	// Get canonical query string.
    	req.URL.RawQuery = strings.ReplaceAll(req.URL.Query().Encode(), "+", "%20")
    
    	// Get canonical URI.
    	canonicalURI := s3utils.EncodePath(req.URL.Path)
    
    	// Get canonical request.
    	// canonicalRequest =
    	//  <HTTPMethod>\n
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

        try {
          unmod.putAll(Collections.singletonMap(4, "four"));
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          unmod.replaceAll((k, v) -> v);
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          unmod.putIfAbsent(3, "three");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  6. src/bytes/bytes_test.go

    			t.Errorf("Replace(%q, %q, %q, %d) didn't copy", tt.in, tt.old, tt.new, tt.n)
    		}
    		if tt.n == -1 {
    			out := ReplaceAll(in, []byte(tt.old), []byte(tt.new))
    			if s := string(out); s != tt.out {
    				t.Errorf("ReplaceAll(%q, %q, %q) = %q, want %q", tt.in, tt.old, tt.new, s, tt.out)
    			}
    		}
    	}
    }
    
    type TitleTest struct {
    	in, out string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    		}
    		lines[i] = line[len(prefix):]
    	}
    	joined := string(bytes.Join(lines, []byte{'\n'}))
    
    	// Convert rest of tabs to spaces since yaml doesnt like yabs
    	// (assuming 2 space alignment)
    	return strings.ReplaceAll(joined, "\t", "  ")
    }
    
    type applyPatchOperation struct {
    	description string
    	gvr         schema.GroupVersionResource
    	name        string
    	patch       interface{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  8. pkg/proxy/nftables/proxier.go

    	// endpoints), we can't know for sure that any part of them is redundant.
    
    	endpointIP, endpointPort, _ := net.SplitHostPort(endpoint)
    	if strings.Contains(endpointIP, ":") {
    		endpointIP = strings.ReplaceAll(endpointIP, ":", ".")
    	}
    
    	// As above, we use "/" to separate parts of the name, and "__" to separate the
    	// "service" part from the "endpoint" part.
    	name := fmt.Sprintf("%s/%s/%s/%s__%s/%s",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  9. cmd/bucket-handlers.go

    	if fileName != "" && strings.Contains(formValues.Get("Key"), "${filename}") {
    		// S3 feature to replace ${filename} found in Key form field
    		// by the filename attribute passed in multipart
    		formValues.Set("Key", strings.ReplaceAll(formValues.Get("Key"), "${filename}", fileName))
    	}
    	object := trimLeadingSlash(formValues.Get("Key"))
    
    	successRedirect := formValues.Get("success_action_redirect")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  10. src/crypto/tls/tls_test.go

    	if !reflect.DeepEqual(got, want) {
    		t.Fatalf("Certificates were mutated by BuildNameToCertificate\nGot: %#v\nWant: %#v\n", got, want)
    	}
    }
    
    func testingKey(s string) string { return strings.ReplaceAll(s, "TESTING KEY", "PRIVATE KEY") }
    
    func TestClientHelloInfo_SupportsCertificate(t *testing.T) {
    	rsaCert := &Certificate{
    		Certificate: [][]byte{testRSACertificate},
    		PrivateKey:  testRSAPrivateKey,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
Back to top