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

test: added additional tests #12

Merged
merged 6 commits into from Mar 15, 2024
Merged

test: added additional tests #12

merged 6 commits into from Mar 15, 2024

Conversation

andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Mar 15, 2024

Proposed changes

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works

Further comments

@andreaangiolillo andreaangiolillo requested a review from a team as a code owner March 15, 2024 11:13
@@ -559,6 +559,230 @@ func Test_MergeResponses(t *testing.T) {
}
}

func Test_MergeSchemas(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
func Test_MergeSchemas(t *testing.T) {
func TestOasDiff_mergeSchemas(t *testing.T) {

Comment on lines 778 to 781
err := o.mergeSchemas()
if err != nil && !tc.error {
t.Errorf("No error expected but got the error %v", err)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
err := o.mergeSchemas()
if err != nil && !tc.error {
t.Errorf("No error expected but got the error %v", err)
}
tc.wantErr(o.mergeSchemas())

Copy link
Collaborator

Choose a reason for hiding this comment

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

the above may produce lint warnings/unexpected test results do to parallel and need some clousure with tc

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated

@andreaangiolillo andreaangiolillo merged commit 246f9ef into main Mar 15, 2024
5 checks passed
@andreaangiolillo andreaangiolillo deleted the add_unit_test_2 branch March 15, 2024 16:13
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.

None yet

2 participants