Package list golang-github-imdario-mergo / 6c9785ee-345b-4ec8-967f-e663b9c4f399/main issue50_test.go
6c9785ee-345b-4ec8-967f-e663b9c4f399/main

Tree @6c9785ee-345b-4ec8-967f-e663b9c4f399/main (Download .tar.gz)

issue50_test.go @6c9785ee-345b-4ec8-967f-e663b9c4f399/mainraw · 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()
	}
}