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

Refactor - Use interface for rekor #98

Conversation

naveensrinivasan
Copy link
Contributor

  • Use rekor interface instead of concrete implementation so that it can
    be mocked and tested.

Signed-off-by: naveensrinivasan [email protected]

@naveensrinivasan
Copy link
Contributor Author

@laurentsimon 👀

@naveensrinivasan naveensrinivasan force-pushed the naveen/feat/refactor-rekorinterface branch from bcb26d3 to 4b06a74 Compare June 19, 2022 02:08
@naveensrinivasan naveensrinivasan changed the title Refactor - Use interface of Rekor Refactor - Use interface for rekor Jun 19, 2022
- Use rekor interface instead of concrete implementation so that it can
  be mocked and tested.
- Included the mock for the interfaces that will be used for unit
  testing the methods that doesn't have test coverage.

Signed-off-by: naveensrinivasan <[email protected]>
)

// MockEntriesClientService is a mock of ClientService interface.
type MockEntriesClientService struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe provide a Makefile target or instructions somewhere on how to regenerate these?

@@ -0,0 +1,124 @@
package pkg
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put generated mocks in a separate package.

@ianlewis
Copy link
Member

ianlewis commented Apr 9, 2023

I'm going to close this as it's pretty old. Feel free to resubmit the PR if we need this.

@ianlewis ianlewis closed this Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants