File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -66,29 +66,6 @@ func TestMappingRequest_Marshal(t *testing.T) {
6666 assert .Equal (t , req .MatrixID , req2 .MatrixID )
6767}
6868
69- func TestMessage_Marshal (t * testing.T ) {
70- msg := Message {
71- ID : "$event123" ,
72- SendingDate : "2025-01-01T00:00:00Z" ,
73- Sender : "@user:example.com" ,
74- Recipient : "!room:example.com" ,
75- Text : "Test message" ,
76- ContentType : "m.text" ,
77- StreamID : "!room:example.com" ,
78- }
79-
80- data , err := json .Marshal (msg )
81- assert .NoError (t , err )
82- assert .NotEmpty (t , data )
83-
84- var msg2 Message
85- err = json .Unmarshal (data , & msg2 )
86- assert .NoError (t , err )
87- assert .Equal (t , msg .ID , msg2 .ID )
88- assert .Equal (t , msg .Text , msg2 .Text )
89- assert .Equal (t , msg .Sender , msg2 .Sender )
90- }
91-
9269func TestSendMessageResponse_Marshal (t * testing.T ) {
9370 resp := SendMessageResponse {
9471 ID : "$event123" ,
You can’t perform that action at this time.
0 commit comments