github.com/sleungcy-sap/cli@v7.1.0+incompatible/util/generic/executable_filename_unix_test.go (about)

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