@@ -122,15 +122,6 @@ func TestBuilderBasicSetters(t *testing.T) {
122122 t .Run ("Secondary" , func (t * testing.T ) {
123123 c0 := makeBasicBuilder ().Build ()
124124 assert .Equal (t , ldvalue.OptionalString {}, c0 .Secondary ())
125-
126- c1 := makeBasicBuilder ().Secondary ("value" ).Build ()
127- assert .Equal (t , ldvalue .NewOptionalString ("value" ), c1 .Secondary ())
128-
129- c2 := makeBasicBuilder ().OptSecondary (ldvalue.OptionalString {}).Build ()
130- assert .Equal (t , ldvalue.OptionalString {}, c2 .Secondary ())
131-
132- c3 := makeBasicBuilder ().OptSecondary (ldvalue .NewOptionalString ("value" )).Build ()
133- assert .Equal (t , ldvalue .NewOptionalString ("value" ), c3 .Secondary ())
134125 })
135126
136127 t .Run ("Anonymous" , func (t * testing.T ) {
@@ -410,7 +401,7 @@ func TestBuilderPrivate(t *testing.T) {
410401func TestNewBuilderFromContext (t * testing.T ) {
411402 value1 , value2 := ldvalue .String ("value1" ), ldvalue .String ("value2" )
412403
413- b1 := NewBuilder ("key1" ).Kind ("kind1" ).Name ("name1" ).Secondary ( "sec1" ). Anonymous (true ).SetValue ("attr" , value1 )
404+ b1 := NewBuilder ("key1" ).Kind ("kind1" ).Name ("name1" ).Anonymous (true ).SetValue ("attr" , value1 )
414405 b1 .Private ("private1" )
415406 c1 := b1 .Build ()
416407 jsonhelpers .AssertEqual (t , value1 , c1 .attributes .Get ("attr" ))
@@ -420,7 +411,6 @@ func TestNewBuilderFromContext(t *testing.T) {
420411 c2 := b2 .Build ()
421412 assert .Equal (t , Kind ("kind1" ), c2 .Kind ())
422413 assert .Equal (t , "key1" , c2 .Key ())
423- assert .Equal (t , ldvalue .NewOptionalString ("sec1" ), c2 .Secondary ())
424414 assert .True (t , c2 .Anonymous ())
425415 jsonhelpers .AssertEqual (t , value1 , c2 .attributes .Get ("attr" ))
426416 assert .Equal (t , c1 .privateAttrs , c2 .privateAttrs )
@@ -450,7 +440,6 @@ func TestBuilderSafety(t *testing.T) {
450440 var nilPtr * Builder
451441 assert .Nil (t , nilPtr .Key ("a" ))
452442 assert .Nil (t , nilPtr .Name ("a" ))
453- assert .Nil (t , nilPtr .Secondary ("a" ))
454443 assert .Nil (t , nilPtr .Anonymous (true ))
455444 assert .Nil (t , nilPtr .SetValue ("a" , ldvalue .Bool (true )))
456445 assert .Nil (t , nilPtr .Private ("a" ))
0 commit comments