From e6391c464ee0ac5fbdce427c6b55d5c524b4f18f Mon Sep 17 00:00:00 2001 From: Thomas Rooney Date: Thu, 13 Jun 2024 12:22:32 +0100 Subject: [PATCH] chore: codecov (more) --- utils/nodes_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/nodes_test.go b/utils/nodes_test.go index 75454848..21fb5d6e 100644 --- a/utils/nodes_test.go +++ b/utils/nodes_test.go @@ -27,6 +27,12 @@ func TestCreateEmptySequenceNode(t *testing.T) { assert.Len(t, s.Content, 0) } +func TestCreateEmptyScalarNode(t *testing.T) { + s := CreateEmptyScalarNode() + assert.Equal(t, "!!null", s.Tag) + assert.Equal(t, "", s.Value) +} + func TestCreateFloatNode(t *testing.T) { f := CreateFloatNode("3.14") assert.Equal(t, "!!float", f.Tag)