(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func TestSetMetadataSerialize(t *testing.T) { |
| 108 | SerializeRoundTripTest(t, func(raw json.RawMessage, resolver entity.Resolvers) (Operation, error) { |
| 109 | var op SetMetadataOperation[*snapshotMock] |
| 110 | err := json.Unmarshal(raw, &op) |
| 111 | return &op, err |
| 112 | }, func(author identity.Interface, unixTime int64) (*SetMetadataOperation[*snapshotMock], entity.Resolvers) { |
| 113 | return NewSetMetadataOp[*snapshotMock](1, author, unixTime, "message", map[string]string{ |
| 114 | "key1": "value1", |
| 115 | "key2": "value2", |
| 116 | }), nil |
| 117 | }) |
| 118 | } |
nothing calls this directly
no test coverage detected