@@ -309,3 +309,22 @@ var _ = Describe("ExecutableList", func() {
309309 })
310310 })
311311})
312+
313+ var _ = DescribeTable ("HasFlowFileExt" , func (file string , expected bool ) {
314+ Expect (executable .HasFlowFileExt (file )).To (Equal (expected ))
315+ },
316+ Entry ("ends with .flow" , "development.flow" , true ),
317+ Entry ("ends with .flow.yaml" , "development.flow.yaml" , true ),
318+ Entry ("ends with .flow.yml" , "development.flow.yml" , true ),
319+ Entry ("ends with something else" , "development.txt" , false ),
320+ )
321+
322+ var _ = DescribeTable ("HasFlowFileTemplateExt" , func (file string , expected bool ) {
323+ Expect (executable .HasFlowFileTemplateExt (file )).To (Equal (expected ))
324+ },
325+ Entry ("ends with .flow.tmpl" , "development.flow.tmpl" , true ),
326+ Entry ("ends with .flow.tmpl.yaml" , "development.flow.tmpl.yaml" , true ),
327+ Entry ("ends with .flow.tmpl.yml" , "development.flow.tmpl.yml" , true ),
328+ Entry ("ends with .flow" , "development.flow" , false ),
329+ Entry ("ends with something else" , "development.flow.txt" , false ),
330+ )
0 commit comments