Codebase list golang-github-imdario-mergo / debian/0.3.12-1 issue174_test.go
debian/0.3.12-1

Tree @debian/0.3.12-1 (Download .tar.gz)

issue174_test.go @debian/0.3.12-1raw · 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)
	}
}