Home | History | Annotate | Download | only in template

Lines Matching full:binaryfunc

72 	BinaryFunc      func(string, string) string
154 BinaryFunc: func(a, b string) string { return fmt.Sprintf("[%s=%s]", a, b) },
357 {".BinaryFunc", "{{call .BinaryFunc `1` `2`}}", "[1=2]", tVal, true},
361 {"if .BinaryFunc call", "{{ if .BinaryFunc}}{{call .BinaryFunc `1` `2`}}{{end}}", "[1=2]", tVal, true},
362 {"if not .BinaryFunc call", "{{ if not .BinaryFunc}}{{call .BinaryFunc `1` `2`}}{{else}}No{{end}}", "No", tVal, true},
368 {".BinaryFuncTooFew", "{{call .BinaryFunc `1`}}", "", tVal, false},
369 {".BinaryFuncTooMany", "{{call .BinaryFunc `1` `2` `3`}}", "", tVal, false},
370 {".BinaryFuncBad0", "{{call .BinaryFunc 1 3}}", "", tVal, false},
371 {".BinaryFuncBad1", "{{call .BinaryFunc `1` 3}}", "", tVal, false},