From 2973ff4c39a361e0c9265370387e06249f169404 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 12 Mar 2024 16:43:20 +0100 Subject: [PATCH] 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. --- random_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/random_test.go b/random_test.go index d49776d..15de2a3 100644 --- a/random_test.go +++ b/random_test.go @@ -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