From d4ad3229b2d25dd8cc315f28a78cd1536eb206ab Mon Sep 17 00:00:00 2001 From: Norbert Kwizera Date: Fri, 13 Dec 2024 13:27:09 +0200 Subject: [PATCH] Add MockCWService for testing --- aws/cwatch/{ => test}/mock.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename aws/cwatch/{ => test}/mock.go (89%) diff --git a/aws/cwatch/mock.go b/aws/cwatch/test/mock.go similarity index 89% rename from aws/cwatch/mock.go rename to aws/cwatch/test/mock.go index 29e6d08..93a90bd 100644 --- a/aws/cwatch/mock.go +++ b/aws/cwatch/test/mock.go @@ -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 { @@ -41,4 +42,4 @@ func (s *MockCWService) StopQueue() { s.Stopped = true } -var _ CWService = (*MockCWService)(nil) +var _ cwatch.CWService = (*MockCWService)(nil)