Skip to content

Commit

Permalink
Fixing PR comments - renaming enabledTests to disabledTests in TestSe…
Browse files Browse the repository at this point in the history
…lectionSupport
  • Loading branch information
Pablo La Greca committed Oct 14, 2024
1 parent efdd896 commit e180658
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions pkg/types/interfacetests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e180658

Please sign in to comment.