Codebase list golang-github-imdario-mergo / e1fcb303-93b9-485d-b119-c5ef1c4f3e29/upstream/0.3.13+git20230126.1.6d2237a issue174_test.go
e1fcb303-93b9-485d-b119-c5ef1c4f3e29/upstream/0.3.13+git20230126.1.6d2237a

Tree @e1fcb303-93b9-485d-b119-c5ef1c4f3e29/upstream/0.3.13+git20230126.1.6d2237a (Download .tar.gz)

issue174_test.go @e1fcb303-93b9-485d-b119-c5ef1c4f3e29/upstream/0.3.13+git20230126.1.6d2237araw · 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)
	}
}