import ( "github.com/cloudfoundry/dropsonde/dropsonde_unmarshaller" "github.com/cloudfoundry/loggregatorlib/loggertesthelper" "runtime" "sync" "github.com/cloudfoundry/sonde-go/events" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("DropsondeUnmarshallerCollection", func() { var ( inputChan chan []byte outputChan chan *events.Envelope collection dropsonde_unmarshaller.DropsondeUnmarshallerCollection waitGroup *sync.WaitGroup ) BeforeEach(func() { inputChan = make(chan []byte, 10) outputChan = make(chan *events.Envelope, 10) collection = dropsonde_unmarshaller.NewDropsondeUnmarshallerCollection(loggertesthelper.Logger(), 5) waitGroup = &sync.WaitGroup{} }) Context("DropsondeUnmarshallerCollection", func() { It("creates the right number of unmarshallers", func() { Expect(collection.Size()).To(Equal(5)) }) })
"github.com/cloudfoundry/loggregatorlib/loggertesthelper" "fmt" "github.com/cloudfoundry/dropsonde/events" "github.com/cloudfoundry/dropsonde/factories" "github.com/gogo/protobuf/proto" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "runtime" "sync" ) var _ = Describe("DropsondeUnmarshallerCollection", func() { var ( inputChan chan []byte outputChan chan *events.Envelope collection dropsonde_unmarshaller.DropsondeUnmarshallerCollection waitGroup *sync.WaitGroup ) BeforeEach(func() { inputChan = make(chan []byte, 10) outputChan = make(chan *events.Envelope, 10) collection = dropsonde_unmarshaller.NewDropsondeUnmarshallerCollection(loggertesthelper.Logger(), 5) waitGroup = &sync.WaitGroup{} }) Context("DropsondeUnmarshallerCollection", func() { It("creates the right number of unmarshallers", func() { Expect(collection.Size()).To(Equal(5)) }) })