From 2aa242e364a7f9a96d02aef08c9049f32dbd194e Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Tue, 23 Jan 2024 12:00:01 -0800 Subject: [PATCH] update mockgen instructions --- webapp/backend/pkg/database/interface.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/backend/pkg/database/interface.go b/webapp/backend/pkg/database/interface.go index 2b34a1f..8613eae 100644 --- a/webapp/backend/pkg/database/interface.go +++ b/webapp/backend/pkg/database/interface.go @@ -9,6 +9,8 @@ import ( "github.com/analogj/scrutiny/webapp/backend/pkg/models/measurements" ) +// Create mock using: +// mockgen -source=webapp/backend/pkg/database/interface.go -destination=webapp/backend/pkg/database/mock/mock_database.go type DeviceRepo interface { Close() error HealthCheck(ctx context.Context) error