op_set_status_test.go

 1package bug
 2
 3import (
 4	"testing"
 5
 6	"github.com/MichaelMure/git-bug/entities/common"
 7	"github.com/MichaelMure/git-bug/entity"
 8	"github.com/MichaelMure/git-bug/entity/dag"
 9)
10
11func TestSetStatusSerialize(t *testing.T) {
12	dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author entity.Identity, unixTime int64) (*SetStatusOperation, entity.Resolvers) {
13		return NewSetStatusOp(author, unixTime, common.ClosedStatus), nil
14	})
15}