INNER CODE UNIT · Go
templatesWithInvalidInputs
ovh/utask · api/api_test.go:620
func templatesWithInvalidInputs() []tasktemplate.TaskTemplate {
var tt []tasktemplate.TaskTemplate
for _, inp := range []input.Input{
{
Name: "input-with-redundant-regex",
LegalValues: []interface{}{"a", "b", "c"},
Regex: strPtr("^d.+$"),
},
{
Name: "input-with-bad-regex",
Regex: strPtr("^^[d.+$"),
},
{
Name: "input-with-bad-type",
Type: "bad-type",
},
{
Name: "input-with-bad-legal-values",