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:
Winni Neessen 2024-03-12 16:43:20 +01:00
parent a03f170738
commit 2973ff4c39
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -148,11 +148,8 @@ func TestGenerator_RandomString(t *testing.T) {
}
func TestGetCharRangeFromConfig(t *testing.T) {
// Arrange
config := NewConfig()
generator := New(config)
// Test cases
testCases := []struct {
Name string
ConfigMode ModeMask
@ -205,7 +202,6 @@ func TestGetCharRangeFromConfig(t *testing.T) {
},
}
// Act and assert for each test case
for _, tc := range testCases {
t.Run(tc.Name, func(t *testing.T) {
generator.config.Mode = tc.ConfigMode