Package list golang-github-imdario-mergo / 79ab7d2c-b633-469c-86e9-b8a7ab72de7e/main issue174_test.go
79ab7d2c-b633-469c-86e9-b8a7ab72de7e/main

Tree @79ab7d2c-b633-469c-86e9-b8a7ab72de7e/main (Download .tar.gz)

issue174_test.go @79ab7d2c-b633-469c-86e9-b8a7ab72de7e/mainraw · history · blame

package mergo_test

import (
	"testing"

	"github.com/imdario/mergo"
)

type structWithBlankField struct {
	_ struct{}
	A struct{}
}

func TestIssue174(t *testing.T) {
	dst := structWithBlankField{}
	src := structWithBlankField{}

	if err := mergo.Merge(&dst, src, mergo.WithOverride); err != nil {
		t.Error(err)
	}
}