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

Function TestAddCommentSerialize

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

Source from the content-addressed store, hash-verified

10)
11
12func TestAddCommentSerialize(t *testing.T) {
13 dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*AddCommentOperation, entity.Resolvers) {
14 return NewAddCommentOp(author, unixTime, "message", nil), nil
15 })
16 dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*AddCommentOperation, entity.Resolvers) {
17 return NewAddCommentOp(author, unixTime, "message", []repository.Hash{"hash1", "hash2"}), nil
18 })
19}

Callers

nothing calls this directly

Calls 2

SerializeRoundTripTestFunction · 0.92
NewAddCommentOpFunction · 0.85

Tested by

no test coverage detected