Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for replaceable (0.26 sec)

  1. 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)
  2. src/time/time_test.go

    			t.Errorf("(%v).MarshalText() = %q, want nil", tt.time, b)
    		case err == nil || err.Error() != want:
    			t.Errorf("(%v).MarshalJSON() error = %v, want %v", tt.time, err, want)
    		}
    
    		want = strings.ReplaceAll(tt.want, "JSON", "Text")
    		b, err = tt.time.MarshalText()
    		switch {
    		case b != nil:
    			t.Errorf("(%v).MarshalText() = %q, want nil", tt.time, b)
    		case err == nil || err.Error() != want:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFile.java

                    if (name.charAt(i) != ' ') {
                        break;
                    }
                    suffix.append("%20");
                }
                name = name.replaceAll(" +$", suffix.toString());
            }
            return "URL:" + name.replace("?", "%3f");
        }
    
    
        /**
         * @return
         */
        private static boolean isWorkgroup ( SmbResource r ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (1)
  4. maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

            assertEquals(
                    32 * 1024,
                    pom.getValue("properties/prop2")
                            .toString()
                            .trim()
                            .replaceAll("[\n\r]", "")
                            .length());
        }
    
        @Test
        void testFullInterpolationOfNestedExpressions() throws Exception {
            PomTestWrapper pom = buildPom("full-interpolation");
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 93.2K bytes
    - Viewed (0)
  5. tests/integration/ambient/baseline_test.go

    		istio.GetOrFail(t, t).UpdateInjectionConfig(t, func(cfg *inject.Config) error {
    			mainTemplate := file.MustAsString(filepath.Join(env.IstioSrc, templateFile))
    			cfg.RawTemplates["waypoint"] = strings.ReplaceAll(mainTemplate, "terminationGracePeriodSeconds: 2", "terminationGracePeriodSeconds: 3")
    			return nil
    		}, cleanup.Always)
    
    		retry.UntilOrFail(t, func() bool {
    			return getGracePeriod(3)
    		})
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    			}
    			msg := ""
    			if o != nil {
    				msg, err = protomarshal.ToYAML(o)
    				assert.NoError(t, err)
    			}
    			golden := filepath.Join("testdata", strings.ReplaceAll(name, "-in", ""))
    			util.CompareContent(t, []byte(msg), golden)
    		})
    	}
    }
    
    func TestEmptyVIPsExcluded(t *testing.T) {
    	testSVC := corev1.Service{
    		Spec: corev1.ServiceSpec{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  7. src/runtime/pprof/pprof_test.go

    		}
    
    		if strings.HasSuffix(prof, "#\t0x0\n\n") {
    			t.Errorf("Useless 0 suffix:\n%v", prof)
    		}
    
    		for _, test := range tests {
    			if !regexp.MustCompile(strings.ReplaceAll(test.re, "\t", "\t+")).MatchString(prof) {
    				t.Errorf("Bad %v entry, expect:\n%v\ngot:\n%v", test.name, test.re, prof)
    			}
    		}
    	})
    
    	t.Run("proto", func(t *testing.T) {
    		// proto format
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/api_test.go

    				src, got, test.wantErr)
    		}
    
    		// Assert that declarations were type checked nonetheless.
    		var gotObjs []string
    		for id, obj := range info.Defs {
    			if obj != nil {
    				objStr := strings.ReplaceAll(fmt.Sprintf("%s:%T", id.Value, obj), "types2", "types")
    				gotObjs = append(gotObjs, objStr)
    			}
    		}
    		wantObjs := "f:*types.Func"
    		if !strings.Contains(fmt.Sprint(gotObjs), wantObjs) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  9. src/go/types/api_test.go

    				src, got, test.wantErr)
    		}
    
    		// Assert that declarations were type checked nonetheless.
    		var gotObjs []string
    		for id, obj := range info.Defs {
    			if obj != nil {
    				objStr := strings.ReplaceAll(fmt.Sprintf("%s:%T", id.Name, obj), "types2", "types")
    				gotObjs = append(gotObjs, objStr)
    			}
    		}
    		wantObjs := "f:*types.Func"
    		if !strings.Contains(fmt.Sprint(gotObjs), wantObjs) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
Back to top