github.com/reviewdog/reviewdog@v0.17.5-0.20240516205324-0cd103a83d58/service/bitbucket/api_client_test.go (about) 1 package bitbucket 2 3 import ( 4 "context" 5 6 "github.com/stretchr/testify/mock" 7 ) 8 9 type MockAPIClient struct { 10 mock.Mock 11 } 12 13 func (m *MockAPIClient) CreateOrUpdateReport(ctx context.Context, report *ReportRequest) error { 14 return m.Called(ctx, report).Error(0) 15 } 16 17 func (m *MockAPIClient) CreateOrUpdateAnnotations(ctx context.Context, annotations *AnnotationsRequest) error { 18 return m.Called(ctx, annotations).Error(0) 19 }