Package list golang-github-imdario-mergo / 7deb9a0c-95ac-4160-873f-958ff2a9142a/upstream issue50_test.go
7deb9a0c-95ac-4160-873f-958ff2a9142a/upstream

Tree @7deb9a0c-95ac-4160-873f-958ff2a9142a/upstream (Download .tar.gz)

issue50_test.go @7deb9a0c-95ac-4160-873f-958ff2a9142a/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()
	}
}