Skip to content

Commit

Permalink
Add MockCWService for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Dec 13, 2024
1 parent 50605cb commit d4ad322
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aws/cwatch/mock.go → aws/cwatch/test/mock.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package cwatch
package test

import (
"sync"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/cloudwatch/types"
"github.com/nyaruka/gocommon/aws/cwatch"
)

type MockCWService struct {
Expand Down Expand Up @@ -41,4 +42,4 @@ func (s *MockCWService) StopQueue() {
s.Stopped = true

Check warning on line 42 in aws/cwatch/test/mock.go

View check run for this annotation

Codecov / codecov/patch

aws/cwatch/test/mock.go#L41-L42

Added lines #L41 - L42 were not covered by tests
}

var _ CWService = (*MockCWService)(nil)
var _ cwatch.CWService = (*MockCWService)(nil)

0 comments on commit d4ad322

Please sign in to comment.