MCPcopy Create free account
hub / github.com/git-bug/git-bug / TestLabelChangeSerialize

Function TestLabelChangeSerialize

entities/bug/op_label_change_test.go:12–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func 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}

Callers

nothing calls this directly

Calls 2

SerializeRoundTripTestFunction · 0.92
NewLabelChangeOperationFunction · 0.85

Tested by

no test coverage detected