// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify

package mocks

import (
	mock "github.com/stretchr/testify/mock"

	v1 "github.com/projectcalico/calico/whisker-backend/pkg/apis/v1"
)

// NewFlowStream creates a new instance of FlowStream. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewFlowStream(t interface {
	mock.TestingT
	Cleanup(func())
}) *FlowStream {
	mock := &FlowStream{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}

// FlowStream is an autogenerated mock type for the FlowStream type
type FlowStream struct {
	mock.Mock
}

// Recv provides a mock function for the type FlowStream
func (_mock *FlowStream) Recv() (*v1.FlowResponse, error) {
	ret := _mock.Called()

	if len(ret) == 0 {
		panic("no return value specified for Recv")
	}

	var r0 *v1.FlowResponse
	if ret.Get(0) != nil {
		r0 = ret.Get(0).(*v1.FlowResponse)
	}

	return r0, ret.Error(1)
}
