Skip to content

Unit test - #115

Closed
JusteenR wants to merge 2 commits into
mainfrom
unitTest
Closed

JusteenR wants to merge 2 commits into
mainfrom
unitTest

Conversation

@JusteenR

@JusteenR JusteenR commented May 15, 2020 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it?:

  • Increased test coverage for unit testing for utils.go
  • Increased test coverage from 50% to 90% for utils

@JusteenR
JusteenR requested a review from leochr May 19, 2020 18:04
@leochr
leochr requested a review from edavidj June 18, 2020 19:38
Comment thread pkg/utils/utils_test.go
return label, annotations
}
func createRuntimeComponent(n, ns string, spec appstacksv1beta1.RuntimeComponentSpec) *appstacksv1beta1.RuntimeComponent {
func createRuntimeComponent(n, ns string, spec appstacksv1beta1.RuntimeComponentSpec, labels map[string]string, annotations map[string]string) *appstacksv1beta1.RuntimeComponent {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It might be cleaner to have this take a metav1.ObjectMeta as a parameter instead of four separate params.

@edavidj edavidj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, just left one comment on the createRuntimeComponent function 👍

@leochr leochr mentioned this pull request Nov 1, 2021
3 tasks
@halim-lee halim-lee closed this Nov 1, 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.

4 participants