state: implement SignedDataSource on ChangeStateRequest message

This commit is contained in:
Leonard Lyubich 2020-05-11 16:31:39 +03:00
parent 5545b25a95
commit ab198b4049
4 changed files with 89 additions and 0 deletions

18
state/types_test.go Normal file
View file

@ -0,0 +1,18 @@
package state
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestChangeStateRequestGettersSetters(t *testing.T) {
t.Run("state", func(t *testing.T) {
st := ChangeStateRequest_State(1)
m := new(ChangeStateRequest)
m.SetState(st)
require.Equal(t, st, m.GetState())
})
}