-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove
return
statement which is not inside a function (#7)
* ci: update .deepsource.toml * ci: update .deepsource.toml * refactor: make JUnit5 test classes and methods package-private JUnit5 test classes and methods should be package-private. * refactor: fix unused method receiver Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused. * refactor: fix unused method receiver (#5) Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused. Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> * refactor: remove `return` statement which is not inside a function A `return` statement should not be used outside of a function or method. This will raise a `SyntaxError`. Make sure that your code and indentation are correct. --------- Co-authored-by: deepsource-io[bot] <42547082+deepsource-io[bot]@users.noreply.github.com> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: perumandla sai veerender <[email protected]>
- Loading branch information
1 parent
902d668
commit cf4e003
Showing
6 changed files
with
30 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
@SpringBootTest | ||
@Testcontainers | ||
@ExtendWith(MockitoExtension.class) | ||
public class AccountServiceTest { | ||
class AccountServiceTest { | ||
@Container | ||
private static final PostgreSQLContainer postgreSQLContainer = new PostgreSQLContainer("postgres:11.1"); | ||
|
||
|
@@ -29,7 +29,7 @@ public void setup() { | |
} | ||
|
||
@Test | ||
public void testGetAccount() { | ||
void testGetAccount() { | ||
// Given | ||
Long accountId = 1L; | ||
Account account = new Account(accountId, "John Doe", "[email protected]"); | ||
|
@@ -43,7 +43,7 @@ public void testGetAccount() { | |
} | ||
|
||
@Test | ||
public void testCreateAccount() { | ||
void testCreateAccount() { | ||
// Given | ||
Account account = new Account("John Doe", "[email protected]"); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
@SpringBootTest | ||
@Testcontainers | ||
@ExtendWith(MockitoExtension.class) | ||
public class UserServiceTest { | ||
This comment has been minimized.
Sorry, something went wrong. |
||
class UserServiceTest { | ||
@Container | ||
private static final Neo4jContainer neo4jContainer = new Neo4jContainer("neo4j:4.2.1"); | ||
|
||
|
@@ -29,7 +29,7 @@ public void setup() { | |
} | ||
|
||
@Test | ||
public void testFindByUsername() { | ||
void testFindByUsername() { | ||
// Given | ||
String username = "john.doe"; | ||
User user = new User(username, "John Doe", "[email protected]"); | ||
|
@@ -43,7 +43,7 @@ public void testFindByUsername() { | |
} | ||
|
||
@Test | ||
public void testFindByEmail() { | ||
void testFindByEmail() { | ||
// Given | ||
String email = "[email protected]"; | ||
User user = new User("john.doe", "John Doe", email); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit cf4e003
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recreate the resonance the word that would be transferred and transferred for the lead occupied nano management and fixed ratio that had been coded and deployed