Codebase list golang-github-imdario-mergo / 441979eb-b1cf-4155-b77f-2a116b387c91/upstream issue50_test.go
441979eb-b1cf-4155-b77f-2a116b387c91/upstream

Tree @441979eb-b1cf-4155-b77f-2a116b387c91/upstream (Download .tar.gz)

issue50_test.go @441979eb-b1cf-4155-b77f-2a116b387c91/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()
	}
}