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

fix: generated code must compile #1059

Merged

Conversation

mdelapenya
Copy link
Collaborator

  • fix: update template for tests
  • chore: run go vet when generating code

What does this PR do?

This PR adds a check at the end of the generated code to run go vet in the generated module, updating the template generating the default test file for the new functions of the module design.

Why is it important?

The template included code for the old behaviour, and now the generated code compiles, running the check at the end of the code generation.

Related issues

@mdelapenya mdelapenya requested a review from a team as a code owner April 17, 2023 05:56
@mdelapenya mdelapenya added the bug An issue with the library label Apr 17, 2023
@mdelapenya mdelapenya self-assigned this Apr 17, 2023
@netlify
Copy link

netlify bot commented Apr 17, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 3c2bda6
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/643cdf9b1c85a90008289adf
😎 Deploy Preview https://deploy-preview-1059--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sonarcloud
Copy link

sonarcloud bot commented Apr 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mdelapenya mdelapenya merged commit 56b41d1 into testcontainers:main Apr 17, 2023
53 checks passed
@mdelapenya mdelapenya deleted the fix-code-generation-runcontainer branch April 17, 2023 07:42
weeco pushed a commit to weeco/testcontainers-go that referenced this pull request Apr 24, 2023
* fix: update template for tests

* chore: run go vet when generating code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant