mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-10 00:02:54 +01:00
Remove unnecessary comments in random_test.go
Removed redundant comments in random_test.go, specifically in TestGetCharRangeFromConfig function. This change simplifies and tidies the code, while maintaining its comprehensibility and the clarity of the test cases structure.
This commit is contained in:
parent
a03f170738
commit
2973ff4c39
1 changed files with 0 additions and 4 deletions
|
@ -148,11 +148,8 @@ func TestGenerator_RandomString(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGetCharRangeFromConfig(t *testing.T) {
|
func TestGetCharRangeFromConfig(t *testing.T) {
|
||||||
// Arrange
|
|
||||||
config := NewConfig()
|
config := NewConfig()
|
||||||
generator := New(config)
|
generator := New(config)
|
||||||
|
|
||||||
// Test cases
|
|
||||||
testCases := []struct {
|
testCases := []struct {
|
||||||
Name string
|
Name string
|
||||||
ConfigMode ModeMask
|
ConfigMode ModeMask
|
||||||
|
@ -205,7 +202,6 @@ func TestGetCharRangeFromConfig(t *testing.T) {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Act and assert for each test case
|
|
||||||
for _, tc := range testCases {
|
for _, tc := range testCases {
|
||||||
t.Run(tc.Name, func(t *testing.T) {
|
t.Run(tc.Name, func(t *testing.T) {
|
||||||
generator.config.Mode = tc.ConfigMode
|
generator.config.Mode = tc.ConfigMode
|
||||||
|
|
Loading…
Reference in a new issue