MCPcopy Index your code
hub / github.com/git-bug/git-bug / TestCreateSerialize

Function TestCreateSerialize

entities/bug/op_create_test.go:42–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

40}
41
42func TestCreateSerialize(t *testing.T) {
43 dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*CreateOperation, entity.Resolvers) {
44 return NewCreateOp(author, unixTime, "title", "message", nil), nil
45 })
46 dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*CreateOperation, entity.Resolvers) {
47 return NewCreateOp(author, unixTime, "title", "message", []repository.Hash{"hash1", "hash2"}), nil
48 })
49}

Callers

nothing calls this directly

Calls 2

SerializeRoundTripTestFunction · 0.92
NewCreateOpFunction · 0.85

Tested by

no test coverage detected