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

Function TestEditCommentSerialize

entities/bug/op_edit_comment_test.go:78–85  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

76}
77
78func TestEditCommentSerialize(t *testing.T) {
79 dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*EditCommentOperation, entity.Resolvers) {
80 return NewEditCommentOp(author, unixTime, "target", "message", nil), nil
81 })
82 dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*EditCommentOperation, entity.Resolvers) {
83 return NewEditCommentOp(author, unixTime, "target", "message", []repository.Hash{"hash1", "hash2"}), nil
84 })
85}

Callers

nothing calls this directly

Calls 2

SerializeRoundTripTestFunction · 0.92
NewEditCommentOpFunction · 0.85

Tested by

no test coverage detected