Codebase list golang-github-imdario-mergo / c0bd9d15-5c14-408d-92dc-10704832b2fd/upstream/0.3.13+git20230113.1.12567bf issue174_test.go
c0bd9d15-5c14-408d-92dc-10704832b2fd/upstream/0.3.13+git20230113.1.12567bf

Tree @c0bd9d15-5c14-408d-92dc-10704832b2fd/upstream/0.3.13+git20230113.1.12567bf (Download .tar.gz)

issue174_test.go @c0bd9d15-5c14-408d-92dc-10704832b2fd/upstream/0.3.13+git20230113.1.12567bfraw · 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)
	}
}