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 28, 2024
1 parent bf55a83 commit 199ec02
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 @@ -435,6 +435,12 @@ func TestMessage(t *testing.T) {
require.Equal(t, "100", data.F4.Value())
})

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 199ec02

Please sign in to comment.