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

Add unit tests for framer.go #819

Merged
merged 1 commit into from
Aug 21, 2023
Merged

Conversation

resoluteCoder
Copy link
Contributor

No description provided.

pkg/framer/framer_test.go Outdated Show resolved Hide resolved

for _, testCase := range messageReadyTestCases {
f := framer.New()
f.RecvData(testCase.inputBuffer)
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets wrap this code block in a t.Run()

Copy link
Contributor

Choose a reason for hiding this comment

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

Same on line 37, lets wrap this in a t.Run() block

@AaronH88
Copy link
Contributor

In the PR message the rest is very unclear, we need to understand via the commit history whats changed. Can I suggest something like Add unit tests for framer.go .

This way your commit history will be the one from yesterday that called out the sendData() function and now this.

@resoluteCoder resoluteCoder changed the title Test the rest of the framer.go methods Add unit tests for framer.go Aug 18, 2023
@sonarcloud
Copy link

sonarcloud bot commented Aug 21, 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

@AaronH88 AaronH88 merged commit e62e746 into ansible:devel Aug 21, 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