Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for render_template (0.15 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/comparison/LineSearchFailures.java

            /* package */ static final String HEADER_TEMPLATE = "Expected: %d lines, but found: %d lines.";
    
            public DifferentSizesLineListComparisonFailure(List<String> expectedLines, List<String> actualLines) {
                super(expectedLines, actualLines);
            }
    
            @Override
            public String getMessage() {
                return String.format(HEADER_TEMPLATE, expectedLines.size(), actualLines.size());
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. operator/pkg/util/util.go

    		sb.WriteString(fmt.Sprintf("%s (repeated %v times)\n", item, logCountMap[item]))
    		// reset seen log count
    		logCountMap[item] = 0
    	}
    	return sb.String()
    }
    
    // RenderTemplate is a helper method to render a template with the given values.
    func RenderTemplate(tmpl string, ts any) (string, error) {
    	t, err := template.New("").Parse(tmpl)
    	if err != nil {
    		return "", err
    	}
    	buf := new(bytes.Buffer)
    	err = t.Execute(buf, ts)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 02 13:01:43 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. operator/cmd/mesh/operator-common.go

    		Hub:               ocArgs.hub,
    		Tag:               ocArgs.tag,
    		ImagePullSecrets:  ocArgs.imagePullSecrets,
    		Revision:          ocArgs.revision,
    	}
    	vals, err := util.RenderTemplate(tmpl, tv)
    	if err != nil {
    		return "", "", err
    	}
    	manifest, err := r.RenderManifest(vals)
    	return vals, manifest, err
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Dec 17 02:25:04 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/logging/comparison/ExhaustiveLinesSearcherTest.groovy

            ["a", "b", "c"]         | ["d"]                 || InsufficientSizeLineListComparisonFailure    || String.format(InsufficientSizeLineListComparisonFailure.HEADER_TEMPLATE, 3, 1);
        }
    
        def "failing lines contained in comparison due to mismatched lines with single potential match: #expectedLines vs #actualLines"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. operator/pkg/helm/helm.go

    	hubTagYAMLTemplate := `
    spec:
      hub: {{.Hub}}
      tag: {{.Tag}}
    `
    	ts := struct {
    		Hub string
    		Tag string
    	}{
    		Hub: hub,
    		Tag: tag,
    	}
    	return util.RenderTemplate(hubTagYAMLTemplate, ts)
    }
    
    // DefaultFilenameForProfile returns the profile name of the default profile for the given profile.
    func DefaultFilenameForProfile(profile string) string {
    	switch {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 05:10:03 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top