Package list golang-github-imdario-mergo / bfced72c-299d-4d55-bb95-f343384fe808/upstream issue50_test.go
bfced72c-299d-4d55-bb95-f343384fe808/upstream

Tree @bfced72c-299d-4d55-bb95-f343384fe808/upstream (Download .tar.gz)

issue50_test.go @bfced72c-299d-4d55-bb95-f343384fe808/upstream

13ba3e3
6720d30
 
 
 
13ba3e3
 
6720d30
 
 
 
 
 
 
 
 
13ba3e3
 
6720d30
 
 
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()
	}
}