github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/command/flag/command_test.go (about)

     1  package flag_test
     2  
     3  import (
     4  	. "code.cloudfoundry.org/cli/command/flag"
     5  	. "github.com/onsi/ginkgo"
     6  	. "github.com/onsi/gomega"
     7  )
     8  
     9  var _ = Describe("Command", func() {
    10  	var command Command
    11  
    12  	BeforeEach(func() {
    13  		command = Command{}
    14  	})
    15  
    16  	Describe("UnmarshalFlag", func() {
    17  		It("unmarshals into a filtered string", func() {
    18  			err := command.UnmarshalFlag("default")
    19  			Expect(err).ToNot(HaveOccurred())
    20  			Expect(command.IsSet).To(BeTrue())
    21  			Expect(command.Value).To(BeEmpty())
    22  		})
    23  	})
    24  })