Skip to content

Commit

Permalink
fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
axenteoctavian committed Apr 22, 2024
1 parent dce22b3 commit 58b9d04
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@ import (
"github.com/multiversx/mx-chain-go/dataRetriever"
)

// ShardResolversContainerFactoryMock -
type ShardResolversContainerFactoryMock struct {
CreateCalled func() (dataRetriever.ResolversContainer, error)
}

// Create -
func (s *ShardResolversContainerFactoryMock) Create() (dataRetriever.ResolversContainer, error) {
if s.CreateCalled != nil {
return s.Create()
}
return &ResolversContainerStub{}, nil
}

// IsInterfaceNil -
func (s *ShardResolversContainerFactoryMock) IsInterfaceNil() bool {
return s == nil
}

0 comments on commit 58b9d04

Please sign in to comment.