Package list golang-github-imdario-mergo / 5a44df57-ad70-4d2f-8aa5-d3d88e4eaa4f/upstream issue174_test.go
5a44df57-ad70-4d2f-8aa5-d3d88e4eaa4f/upstream

Tree @5a44df57-ad70-4d2f-8aa5-d3d88e4eaa4f/upstream (Download .tar.gz)

issue174_test.go @5a44df57-ad70-4d2f-8aa5-d3d88e4eaa4f/upstreamraw · 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)
	}
}