Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for Tmpl (0.05 sec)

  1. src/text/template/exec_test.go

    	}
    	for _, test := range execTests {
    		var tmpl *Template
    		var err error
    		if template == nil {
    			tmpl, err = New(test.name).Funcs(funcs).Parse(test.input)
    		} else {
    			tmpl, err = template.New(test.name).Funcs(funcs).Parse(test.input)
    		}
    		if err != nil {
    			t.Errorf("%s: parse error: %s", test.name, err)
    			continue
    		}
    		b.Reset()
    		err = tmpl.Execute(b, test.data)
    		switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  2. src/html/template/exec_test.go

    		"zeroArgs":    zeroArgs,
    	}
    	for _, test := range execTests {
    		var tmpl *Template
    		var err error
    		if template == nil {
    			tmpl, err = New(test.name).Funcs(funcs).Parse(test.input)
    		} else {
    			tmpl, err = template.Clone()
    			if err != nil {
    				t.Errorf("%s: clone error: %s", test.name, err)
    				continue
    			}
    			tmpl, err = tmpl.New(test.name).Funcs(funcs).Parse(test.input)
    		}
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  3. src/html/template/escape_test.go

    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			tmpl := New(test.name)
    			tmpl = Must(tmpl.Parse(test.input))
    			// Check for bug 6459: Tree field was not set in Parse.
    			if tmpl.Tree != tmpl.text.Tree {
    				t.Fatalf("%s: tree not set properly", test.name)
    			}
    			b := new(strings.Builder)
    			if err := tmpl.Execute(b, data); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 16 03:29:27 UTC 2023
    - 56.2K bytes
    - Viewed (0)
  4. tests/integration/security/authz_test.go

    			config.New(t).
    				Source(config.File("testdata/authz/mtls.yaml.tmpl")).
    				Source(config.File("testdata/authz/deny-global.yaml.tmpl").WithParams(param.Params{
    					param.Namespace.String(): istio.ClaimSystemNamespaceOrFail(t, t),
    				})).
    				Source(config.File("testdata/authz/deny-principal.yaml.tmpl").WithParams(
    					param.Params{
    						"Denied": denied,
    					})).
    				BuildAll(nil, to).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    			// substitution.
    			if !subst {
    				st.subs.add(a)
    			}
    			args := st.templateArgs()
    			tmpl := &Template{Name: a, Args: args}
    			if isCast {
    				st.setTemplate(a, tmpl)
    				st.clearTemplateArgs(args)
    				isCast = false
    			}
    			a = tmpl
    		}
    		if isCast {
    			st.setTemplate(a, nil)
    		}
    		return a, false
    	}
    
    	a, isCast := st.unqualifiedName(module)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  6. src/crypto/tls/tls_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	keyPEM := pem.EncodeToMemory(&pem.Block{Type: "PRIVATE KEY", Bytes: keyDER})
    	tmpl := &x509.Certificate{
    		SerialNumber: big.NewInt(1),
    		Subject:      pkix.Name{CommonName: "test"},
    	}
    	certDER, err := x509.CreateCertificate(rand.Reader, tmpl, tmpl, key.Public(), key)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/validation_test.go

    	tearDown, apiExtensionClient, _, etcdClient, etcdPrefix, err := fixtures.StartDefaultServerWithClientsAndEtcd(t)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer tearDown()
    
    	tmpl := `
    apiVersion: apiextensions.k8s.io/v1beta1
    kind: CustomResourceDefinition
    spec:
      preserveUnknownFields: PRESERVE_UNKNOWN_FIELDS
      version: v1beta1
      names:
        plural: foos
        singular: foo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 26 20:48:36 UTC 2021
    - 63.6K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/sidecar_simulation_test.go

    	"istio.io/istio/pkg/config/mesh"
    	"istio.io/istio/pkg/config/protocol"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/tmpl"
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    func flattenInstances(il ...[]*model.ServiceInstance) []*model.ServiceInstance {
    	ret := []*model.ServiceInstance{}
    	for _, i := range il {
    		ret = append(ret, i...)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_client_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	tmpl := &x509.Certificate{
    		SerialNumber: big.NewInt(1),
    		Subject:      pkix.Name{CommonName: "test"},
    		DNSNames:     []string{"example.golang"},
    		NotBefore:    testConfig.Time().Add(-time.Hour),
    		NotAfter:     testConfig.Time().Add(time.Hour),
    	}
    	certDER, err := x509.CreateCertificate(rand.Reader, tmpl, tmpl, k.Public(), k)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  10. src/cmd/go/go_test.go

    		t.Run(tt.v, func(t *testing.T) {
    			tg := testgo(t)
    			tg.parallel()
    			defer tg.cleanup()
    			tmpl := "{{context." + tt.v + "}}"
    			tg.run("list", "-f", tmpl)
    			if tt.want == "" {
    				return
    			}
    			if got := strings.TrimSpace(tg.getStdout()); got != tt.want {
    				t.Errorf("go list -f %q: got %q; want %q", tmpl, got, tt.want)
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
Back to top