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