github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/util/generic/executable_filename_unix_test.go (about) 1 //go:build !windows 2 // +build !windows 3 4 package generic_test 5 6 import ( 7 "path/filepath" 8 9 . "code.cloudfoundry.org/cli/util/generic" 10 . "github.com/onsi/ginkgo" 11 . "github.com/onsi/gomega" 12 ) 13 14 var _ = Describe("ExecutableFilename", func() { 15 When("a filename which must be turned into an executable filename is input", func() { 16 It("does nothing on unix", func() { 17 myPath := filepath.Join("foo", "bar") 18 Expect(ExecutableFilename(myPath)).To(Equal(myPath)) 19 }) 20 }) 21 })