Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.325 kb
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)
}
Jump to Line
Something went wrong with that request. Please try again.