github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/cf/commands/service/service_suite_test.go (about)

     1  package service_test
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/cf/i18n"
     5  	"code.cloudfoundry.org/cli/util/testhelpers/configuration"
     6  	. "github.com/onsi/ginkgo"
     7  	. "github.com/onsi/gomega"
     8  
     9  	"testing"
    10  )
    11  
    12  func TestService(t *testing.T) {
    13  	config := configuration.NewRepositoryWithDefaults()
    14  	i18n.T = i18n.Init(config)
    15  
    16  	RegisterFailHandler(Fail)
    17  	RunSpecs(t, "Service Suite")
    18  }
    19  
    20  type passingRequirement struct {
    21  	Name string
    22  }
    23  
    24  func (r passingRequirement) Execute() error {
    25  	return nil
    26  }