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

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

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