Skip to content

Commit

Permalink
add one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
alovak committed Oct 26, 2024
1 parent 8521110 commit bf0055d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,12 @@ func TestMessage(t *testing.T) {
require.Equal(t, wantMsg, rawMsg)
})

t.Run("Unset doesn't return error for fields that are not set", func(t *testing.T) {
message := NewMessage(spec)
err := message.UnsetFields("2", "3", "4")
require.NoError(t, err)
})

t.Run("Unset unsets fields", func(t *testing.T) {
type TestISOF3Data struct {
F1 *field.String
Expand Down

0 comments on commit bf0055d

Please sign in to comment.