Package list golang-github-imdario-mergo / 6f1d03b issue50_test.go
6f1d03b

Tree @6f1d03b (Download .tar.gz)

issue50_test.go @6f1d03braw · 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()
	}
}