You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
291 B
16 lines
291 B
3 years ago
|
package field_test
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
"gitoa.ru/go-4devs/log/field"
|
||
|
)
|
||
|
|
||
|
func TestFields_Append(t *testing.T) {
|
||
|
fields := field.Fields{field.Any("any", "value")}
|
||
|
fields = fields.Append(field.String("string", "value"))
|
||
|
|
||
|
require.Len(t, fields, 2)
|
||
|
}
|