Package list golang-github-imdario-mergo / 1b0ca7e2-597c-4e42-b83d-7f35bcd7ba7a/upstream issue50_test.go
1b0ca7e2-597c-4e42-b83d-7f35bcd7ba7a/upstream

Tree @1b0ca7e2-597c-4e42-b83d-7f35bcd7ba7a/upstream (Download .tar.gz)

issue50_test.go @1b0ca7e2-597c-4e42-b83d-7f35bcd7ba7a/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()
	}
}