Codebase list golang-github-imdario-mergo / 56d3ee2 issue50_test.go
56d3ee2

Tree @56d3ee2 (Download .tar.gz)

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