radius-project / radius

Radius is a cloud-native, portable application platform that makes app development easier for teams building cloud-native apps.
https://radapp.io
Apache License 2.0
1.46k stars 93 forks source link

Use typed mocks #7592

Closed rynowak closed 4 months ago

rynowak commented 4 months ago

Area for Improvement

We can update our use of gomock to generate typed functions by passing in -typed.

From the command line help:

  -typed
        Generate Type-safe 'Return', 'Do', 'DoAndReturn' function

Observed behavior

We don't pass in -typed so none of the gomock generated code is strongly typed. This slows down development for us, because it's possible to get the wrong signatures.

Desired behavior

Use -typed everywhere we create a mock. This shouldn't break us if we already wrote correct code.

Proposed Fix

rad Version

asdf

Operating system

No response

Additional context

No response

Would you like to support us?

AB#12367

radius-triage-bot[bot] commented 4 months ago

:wave: @rynowak Thanks for filing this issue.

A project maintainer will review this issue and get back to you soon.

We also welcome community contributions! If you would like to pick this item up sooner and submit a pull request, please visit our contribution guidelines and assign this to yourself by commenting "/assign" on this issue.

For more information on our triage process please visit our triage overview

radius-triage-bot[bot] commented 4 months ago

This issue is a great one to pickup for new contributors. It should only require small changes and not assume a deep knowledge of the Radius architecture.

We always welcome community contributions! If you would like to pick this item up sooner and submit a pull request, please visit our contribution guidelines and assign this to yourself by commenting "/assign" on this issue.

For more information on our triage process please visit our triage overview

radius-triage-bot[bot] commented 4 months ago

:+1: We've reviewed this issue and have agreed to add it to our backlog. Please subscribe to this issue for notifications, we'll provide updates when we pick it up.

We also welcome community contributions! If you would like to pick this item up sooner and submit a pull request, please visit our contribution guidelines and assign this to yourself by commenting "/assign" on this issue.

For more information on our triage process please visit our triage overview

kachawla commented 4 months ago

/assign superbeeny

kachawla commented 4 months ago

@superbeeny could you comment on this with /assign to assign this issue to yourself, since you have a PR for this :)

superbeeny commented 4 months ago

/assign