Codebase list golang-github-imdario-mergo / 79ab7d2c-b633-469c-86e9-b8a7ab72de7e/upstream issue50_test.go
79ab7d2c-b633-469c-86e9-b8a7ab72de7e/upstream

Tree @79ab7d2c-b633-469c-86e9-b8a7ab72de7e/upstream (Download .tar.gz)

issue50_test.go @79ab7d2c-b633-469c-86e9-b8a7ab72de7e/upstreamraw · history · blame

package mergo_test

import (
	"testing"
	"time"

	"github.com/imdario/mergo"
)

type testStruct struct {
	time.Duration
}

func TestIssue50Merge(t *testing.T) {
	to := testStruct{}
	from := testStruct{}

	if err := mergo.Merge(&to, from); err != nil {
		t.Fail()
	}
}