Package list golang-github-imdario-mergo / upstream/0.3.12 issue174_test.go
upstream/0.3.12

Tree @upstream/0.3.12 (Download .tar.gz)

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