Skip to content

Commit

Permalink
chore: added more stub tests
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Dec 27, 2024
1 parent ecb5ee9 commit 12ba04e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pkg/messages/msg_not_existing_message_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package messages

import (
"main/pkg/types"
"testing"

"github.com/stretchr/testify/require"
)

func TestMsgNotExistingMessageBase(t *testing.T) {
t.Parallel()

msg := MsgNotExistingMessage{}

require.Equal(t, "MsgNotExistingMessage", msg.Type())

msg.AddParsedMessage(nil)
msg.SetParsedMessages([]types.Message{})
msg.GetAdditionalData(nil, "subscription")

require.Empty(t, msg.GetValues())
require.Empty(t, msg.GetParsedMessages())
require.Empty(t, msg.GetRawMessages())
}

0 comments on commit 12ba04e

Please sign in to comment.