From e180658d3506fad5f148e39bc09b43af0eba185c Mon Sep 17 00:00:00 2001 From: Pablo La Greca Date: Mon, 14 Oct 2024 15:52:27 -0300 Subject: [PATCH] Fixing PR comments - renaming enabledTests to disabledTests in TestSelectionSupport --- pkg/types/interfacetests/utils.go | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/pkg/types/interfacetests/utils.go b/pkg/types/interfacetests/utils.go index 4cdb95e24..52b5486b0 100644 --- a/pkg/types/interfacetests/utils.go +++ b/pkg/types/interfacetests/utils.go @@ -25,19 +25,19 @@ type BasicTester[T any] interface { } type TestSelectionSupport struct { - enabledTests map[string]bool + disabledTests map[string]bool } func (t TestSelectionSupport) IsDisabled(testID string) bool { - return t.enabledTests[testID] + return t.disabledTests[testID] } func (t *TestSelectionSupport) DisableTests(testIDs []string) { - if t.enabledTests == nil { - t.enabledTests = map[string]bool{} + if t.disabledTests == nil { + t.disabledTests = map[string]bool{} } for _, testID := range testIDs { - t.enabledTests[testID] = true + t.disabledTests[testID] = true } } @@ -225,12 +225,14 @@ type FilterEventParams struct { Field int32 } -type BatchCallEntry map[types.BoundContract]ContractBatchEntry -type ContractBatchEntry []ReadEntry -type ReadEntry struct { - Name string - ReturnValue any -} +type ( + BatchCallEntry map[types.BoundContract]ContractBatchEntry + ContractBatchEntry []ReadEntry + ReadEntry struct { + Name string + ReturnValue any + } +) func CreateTestStruct[T any](i int, tester BasicTester[T]) TestStruct { s := fmt.Sprintf("field%v", i)