Codebase list golang-github-imdario-mergo / run/e1fcb303-93b9-485d-b119-c5ef1c4f3e29/upstream issue50_test.go
run/e1fcb303-93b9-485d-b119-c5ef1c4f3e29/upstream

Tree @run/e1fcb303-93b9-485d-b119-c5ef1c4f3e29/upstream (Download .tar.gz)

issue50_test.go @run/e1fcb303-93b9-485d-b119-c5ef1c4f3e29/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()
	}
}