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.
18 lines
316 B
18 lines
316 B
package field_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"gitoa.ru/go-4devs/log/field"
|
|
)
|
|
|
|
func TestFields_Append(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
fields := field.Fields{field.Any("any", "value")}
|
|
fields = fields.Append(field.String("string", "value"))
|
|
|
|
if len(fields) != 2 {
|
|
t.Fatalf("require 2 field got %v", len(fields))
|
|
}
|
|
}
|
|
|