bump(github.com/goraft/raft): 6bf34b9
Move from coreos/raft to goraft/raft and update to latest.
This commit is contained in:
19
third_party/github.com/goraft/raft/statemachine_test.go
vendored
Normal file
19
third_party/github.com/goraft/raft/statemachine_test.go
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
package raft
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/mock"
|
||||
)
|
||||
|
||||
type mockStateMachine struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
func (m *mockStateMachine) Save() ([]byte, error) {
|
||||
args := m.Called()
|
||||
return args.Get(0).([]byte), args.Error(1)
|
||||
}
|
||||
|
||||
func (m *mockStateMachine) Recovery(b []byte) error {
|
||||
args := m.Called(b)
|
||||
return args.Error(0)
|
||||
}
|
Reference in New Issue
Block a user