Skip to content

Commit 1e84b18

Browse files
committed
refactor: change the name of test functions
1 parent d2193e1 commit 1e84b18

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

mapkeyvalue_test.go

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func TestNewMapKeyValue(t *testing.T) {
178178
})
179179
}
180180

181-
func TestSet(t *testing.T) {
181+
func TestSet_MapKeyValue(t *testing.T) {
182182
t.Run("test Set for NewMapKeyValue[string, struct] key exist", func(t *testing.T) {
183183
type testStruct struct {
184184
Name string
@@ -203,7 +203,7 @@ func TestSet(t *testing.T) {
203203
})
204204
}
205205

206-
func TestGetAndCheck(t *testing.T) {
206+
func TestGetAndCheck_MapKeyValue(t *testing.T) {
207207
t.Run("test GetAndCheck for NewMapKeyValue[string, struct] key exist", func(t *testing.T) {
208208
type testStruct struct {
209209
Name string
@@ -250,7 +250,7 @@ func TestGetAndCheck(t *testing.T) {
250250
})
251251
}
252252

253-
func TestGet(t *testing.T) {
253+
func TestGet_MapKeyValue(t *testing.T) {
254254
t.Run("test Get for NewMapKeyValue[string, struct] key exist", func(t *testing.T) {
255255
type testStruct struct {
256256
Name string
@@ -294,7 +294,7 @@ func TestGet(t *testing.T) {
294294
})
295295
}
296296

297-
func TestGetAnDelete(t *testing.T) {
297+
func TestGetAnDelete_MapKeyValue(t *testing.T) {
298298
t.Run("test GetAnDelete for NewMapKeyValue[string, struct] key exist", func(t *testing.T) {
299299
type testStruct struct {
300300
Name string
@@ -355,7 +355,7 @@ func TestGetAnDelete(t *testing.T) {
355355
})
356356
}
357357

358-
func TestDelete(t *testing.T) {
358+
func TestDelete_MapKeyValue(t *testing.T) {
359359
t.Run("test Delete for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
360360
type testStruct struct {
361361
Name string
@@ -415,7 +415,7 @@ func TestDelete(t *testing.T) {
415415
})
416416
}
417417

418-
func TestClear(t *testing.T) {
418+
func TestClear_MapKeyValue(t *testing.T) {
419419
t.Run("test Clear for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
420420
type testStruct struct {
421421
Name string
@@ -466,7 +466,7 @@ func TestClear(t *testing.T) {
466466
})
467467
}
468468

469-
func TestSize(t *testing.T) {
469+
func TestSize_MapKeyValue(t *testing.T) {
470470
t.Run("test Size for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
471471
type testStruct struct {
472472
Name string
@@ -520,7 +520,7 @@ func TestSize(t *testing.T) {
520520
})
521521
}
522522

523-
func TestIsEmpty(t *testing.T) {
523+
func TestIsEmpty_MapKeyValue(t *testing.T) {
524524
t.Run("test IsEmpty for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
525525
type testStruct struct {
526526
Name string
@@ -548,7 +548,7 @@ func TestIsEmpty(t *testing.T) {
548548
})
549549
}
550550

551-
func TestIsFull(t *testing.T) {
551+
func TestIsFull_MapKeyValue(t *testing.T) {
552552
t.Run("test IsFull for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
553553
type testStruct struct {
554554
Name string
@@ -576,7 +576,7 @@ func TestIsFull(t *testing.T) {
576576
})
577577
}
578578

579-
func TestContainsKey(t *testing.T) {
579+
func TestContainsKey_MapKeyValue(t *testing.T) {
580580
t.Run("test ContainsKey for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
581581
type testStruct struct {
582582
Name string
@@ -612,7 +612,7 @@ func TestContainsKey(t *testing.T) {
612612
})
613613
}
614614

615-
func TestContainsValue(t *testing.T) {
615+
func TestContainsValue_MapKeyValue(t *testing.T) {
616616
t.Run("test ContainsValue for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
617617
type testStruct struct {
618618
Name string
@@ -648,7 +648,7 @@ func TestContainsValue(t *testing.T) {
648648
})
649649
}
650650

651-
func TestKey(t *testing.T) {
651+
func TestKey_MapKeyValue(t *testing.T) {
652652
t.Run("test Key for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
653653
type testStruct struct {
654654
Name string
@@ -674,7 +674,7 @@ func TestKey(t *testing.T) {
674674
})
675675
}
676676

677-
func TestKeys(t *testing.T) {
677+
func TestKeys_MapKeyValue(t *testing.T) {
678678
t.Run("test Keys for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
679679
type testStruct struct {
680680
Name string
@@ -718,7 +718,7 @@ func TestKeys(t *testing.T) {
718718
})
719719
}
720720

721-
func TestValues(t *testing.T) {
721+
func TestValues_MapKeyValue(t *testing.T) {
722722
t.Run("test Values for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
723723
type testStruct struct {
724724
Name string
@@ -766,7 +766,7 @@ func TestValues(t *testing.T) {
766766
})
767767
}
768768

769-
func TestEach(t *testing.T) {
769+
func TestEach_MapKeyValue(t *testing.T) {
770770
t.Run("test Each for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
771771
type testStruct struct {
772772
Name string
@@ -810,7 +810,7 @@ func TestEach(t *testing.T) {
810810
})
811811
}
812812

813-
func TestEachKey(t *testing.T) {
813+
func TestEachKey_MapKeyValue(t *testing.T) {
814814
t.Run("test EachKey for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
815815
type testStruct struct {
816816
Name string
@@ -846,7 +846,7 @@ func TestEachKey(t *testing.T) {
846846
})
847847
}
848848

849-
func TestEachValue(t *testing.T) {
849+
func TestEachValue_MapKeyValue(t *testing.T) {
850850
t.Run("test EachValue for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
851851
type testStruct struct {
852852
Name string
@@ -886,7 +886,7 @@ func TestEachValue(t *testing.T) {
886886
})
887887
}
888888

889-
func TestClone(t *testing.T) {
889+
func TestClone_MapKeyValue(t *testing.T) {
890890
t.Run("test Clone for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
891891
type testStruct struct {
892892
Name string
@@ -950,7 +950,7 @@ func TestClone(t *testing.T) {
950950
})
951951
}
952952

953-
func TestCloneAndClear(t *testing.T) {
953+
func TestCloneAndClear_MapKeyValue(t *testing.T) {
954954
t.Run("test CloneAndClear for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
955955
type testStruct struct {
956956
Name string
@@ -1014,7 +1014,7 @@ func TestCloneAndClear(t *testing.T) {
10141014
})
10151015
}
10161016

1017-
func TestDeepEqual(t *testing.T) {
1017+
func TestDeepEqual_MapKeyValue(t *testing.T) {
10181018
t.Run("test DeepEqual for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
10191019
type testStruct struct {
10201020
Name string
@@ -1133,7 +1133,7 @@ func TestDeepEqual(t *testing.T) {
11331133
})
11341134
}
11351135

1136-
func TestMap(t *testing.T) {
1136+
func TestMap_MapKeyValue(t *testing.T) {
11371137
t.Run("test Map for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
11381138
type testStruct struct {
11391139
Name string
@@ -1191,7 +1191,7 @@ func TestMap(t *testing.T) {
11911191
})
11921192
}
11931193

1194-
func TestMapKey(t *testing.T) {
1194+
func TestMapKey_MapKeyValue(t *testing.T) {
11951195
t.Run("test MapKey for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
11961196
type testStruct struct {
11971197
Name string
@@ -1244,7 +1244,7 @@ func TestMapKey(t *testing.T) {
12441244
})
12451245
}
12461246

1247-
func TestMapValue(t *testing.T) {
1247+
func TestMapValue_MapKeyValue(t *testing.T) {
12481248
t.Run("test MapValue for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
12491249
type testStruct struct {
12501250
Name string
@@ -1301,7 +1301,7 @@ func TestMapValue(t *testing.T) {
13011301
})
13021302
}
13031303

1304-
func TestFilter(t *testing.T) {
1304+
func TestFilter_MapKeyValue(t *testing.T) {
13051305
t.Run("test Filter for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
13061306
type testStruct struct {
13071307
Name string
@@ -1354,7 +1354,7 @@ func TestFilter(t *testing.T) {
13541354
})
13551355
}
13561356

1357-
func TestFilterKey(t *testing.T) {
1357+
func TestFilterKey_MapKeyValue(t *testing.T) {
13581358
t.Run("test FilterKey for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
13591359
type testStruct struct {
13601360
Name string
@@ -1407,7 +1407,7 @@ func TestFilterKey(t *testing.T) {
14071407
})
14081408
}
14091409

1410-
func TestFilterValue(t *testing.T) {
1410+
func TestFilterValue_MapKeyValue(t *testing.T) {
14111411
t.Run("test FilterValue for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
14121412
type testStruct struct {
14131413
Name string
@@ -1464,7 +1464,7 @@ func TestFilterValue(t *testing.T) {
14641464
})
14651465
}
14661466

1467-
func TestPartition(t *testing.T) {
1467+
func TestPartition_MapKeyValue(t *testing.T) {
14681468
t.Run("test Partition for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
14691469
type testStruct struct {
14701470
Name string
@@ -1540,7 +1540,7 @@ func TestPartition(t *testing.T) {
15401540
})
15411541
}
15421542

1543-
func TestPartitionKey(t *testing.T) {
1543+
func TestPartitionKey_MapKeyValue(t *testing.T) {
15441544
t.Run("test PartitionKey for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
15451545
type testStruct struct {
15461546
Name string
@@ -1616,7 +1616,7 @@ func TestPartitionKey(t *testing.T) {
16161616
})
16171617
}
16181618

1619-
func TestPartitionValue(t *testing.T) {
1619+
func TestPartitionValue_MapKeyValue(t *testing.T) {
16201620
t.Run("test PartitionValue for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
16211621
type testStruct struct {
16221622
Name string
@@ -1692,7 +1692,7 @@ func TestPartitionValue(t *testing.T) {
16921692
})
16931693
}
16941694

1695-
func TestSortKeys(t *testing.T) {
1695+
func TestSortKeys_MapKeyValue(t *testing.T) {
16961696
t.Run("test SortKeys for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
16971697
type testStruct struct {
16981698
Name string
@@ -1741,7 +1741,7 @@ func TestSortKeys(t *testing.T) {
17411741
})
17421742
}
17431743

1744-
func TestSortValues(t *testing.T) {
1744+
func TestSortValues_MapKeyValue(t *testing.T) {
17451745
t.Run("test SortValues for NewMapKeyValue[string, struct] with keys", func(t *testing.T) {
17461746
type testStruct struct {
17471747
Name string

0 commit comments

Comments
 (0)