summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl
diff options
context:
space:
mode:
authorJoe Mooring <joe.mooring@veriphor.com>2023-12-28 14:25:29 -0800
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-12-29 19:37:27 +0100
commite40b9fbbcf28c07ad90ae1048e144888414074d7 (patch)
treecc2babd1851fa23c375c2e48beb45d6898b5ef1f /tpl/tplimpl
parent9cd8fbb3324cb58e06095167cbea952619dd3201 (diff)
tpl/math: Add math.Rand template function
Closes #11833
Diffstat (limited to 'tpl/tplimpl')
-rw-r--r--tpl/tplimpl/template_funcs_test.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/tpl/tplimpl/template_funcs_test.go b/tpl/tplimpl/template_funcs_test.go
index 9cc84934b..f1ab3d659 100644
--- a/tpl/tplimpl/template_funcs_test.go
+++ b/tpl/tplimpl/template_funcs_test.go
@@ -61,12 +61,10 @@ title: "**BatMan**"
ns := nsf(d)
for _, mm := range ns.MethodMappings {
for _, example := range mm.Examples {
- if strings.Contains(example[0], "errorf") {
- // This will fail the build, so skip for now.
- continue
- }
- if strings.Contains(example[0], "transform.XMLEscape") {
- // This will fail the build, so skip for now.
+ // These will fail the build, so skip.
+ if strings.Contains(example[0], "errorf") ||
+ strings.Contains(example[0], "transform.XMLEscape") ||
+ strings.Contains(example[0], "math.Rand") {
continue
}
templates = append(templates, example[0])