(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestLabelChangeSerialize(t *testing.T) { |
| 13 | dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*LabelChangeOperation, entity.Resolvers) { |
| 14 | return NewLabelChangeOperation(author, unixTime, []common.Label{"added"}, []common.Label{"removed"}), nil |
| 15 | }) |
| 16 | dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*LabelChangeOperation, entity.Resolvers) { |
| 17 | return NewLabelChangeOperation(author, unixTime, []common.Label{"added"}, nil), nil |
| 18 | }) |
| 19 | dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*LabelChangeOperation, entity.Resolvers) { |
| 20 | return NewLabelChangeOperation(author, unixTime, nil, []common.Label{"removed"}), nil |
| 21 | }) |
| 22 | } |
nothing calls this directly
no test coverage detected