Skip to content

Conversation

@YuriiYakovenko
Copy link
Contributor

No description provided.

"failed_decoding": {
requestBody: `{"email":"johngold@gmail.com","first_name":"John","last_name":"Gold","password":"123456789Qw}`,
usecaseConstructor: func(ctrl *gomock.Controller) UserUsecase {

Copy link
Contributor

@Rusli4k Rusli4k Nov 17, 2022

Choose a reason for hiding this comment

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

extra empty line )
I am RusLinter now )))

//maybe for test cases with too long domain or local part in email we should create separate variable for requestBody?
longLocalPartEmail = "1234567890123456789012345678901234567890123456789012345678901234567890@gmail.com"
lenOfLongLocalPartEmail = "70"
longDomainPartEmail = "1234567890@12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890.com"
Copy link
Member

Choose a reason for hiding this comment

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

You can try strings.Repeat("a", 250) as an example to generate a long string

@sonarqubecloud
Copy link

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 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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