Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added mocks for interfaces and also unit tests for functions used in history handler #5882

Merged
merged 10 commits into from
Apr 6, 2024
2 changes: 2 additions & 0 deletions common/taskTokenSerializerInterfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination taskTokenSerializerInterfaces_mock.go -self_package github.com/uber/cadence/common

package common

type (
Expand Down
116 changes: 116 additions & 0 deletions common/taskTokenSerializerInterfaces_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions service/history/events/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const (
eventsChanSize = 1000
)

//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination notifier_mock.go -self_package github.com/uber/cadence/service/history/events

type (
// Notifier is a pub-sub for sending and receiving notifications on new history events
Notifier interface {
Expand Down
124 changes: 124 additions & 0 deletions service/history/events/notifier_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading