-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cd7ced
commit d7d54b8
Showing
5 changed files
with
100 additions
and
21 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
cmd/sovereignnode/systemTestDemo/mockNotifier/disabledGRPCServer.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package main | ||
|
||
type disabledGRPCServer struct { | ||
} | ||
|
||
// NewDisabledGRPCServer - | ||
func NewDisabledGRPCServer() *disabledGRPCServer { | ||
return &disabledGRPCServer{} | ||
} | ||
|
||
// Stop does nothing | ||
func (dgs *disabledGRPCServer) Stop() { | ||
} |
19 changes: 19 additions & 0 deletions
19
cmd/sovereignnode/systemTestDemo/mockNotifier/disabledMockGRPCServer.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package main | ||
|
||
type disabledMockServer struct { | ||
} | ||
|
||
// NewDisabledMockServer - | ||
func NewDisabledMockServer() *disabledMockServer { | ||
return &disabledMockServer{} | ||
} | ||
|
||
// ExtractRandomBridgeTopicsForConfirmation returns empty confirmed bridge op | ||
func (dms *disabledMockServer) ExtractRandomBridgeTopicsForConfirmation() ([]*ConfirmedBridgeOp, error) { | ||
return make([]*ConfirmedBridgeOp, 0), nil | ||
} | ||
|
||
// IsInterfaceNil - | ||
func (dms *disabledMockServer) IsInterfaceNil() bool { | ||
return dms == nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package main | ||
|
||
type MockServer interface { | ||
ExtractRandomBridgeTopicsForConfirmation() ([]*ConfirmedBridgeOp, error) | ||
} | ||
|
||
type GRPCServerMock interface { | ||
Stop() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters