Package list golang-github-imdario-mergo / 3c18c8ce-9d8a-43c1-ba04-68a249c1ae47/main issue50_test.go
3c18c8ce-9d8a-43c1-ba04-68a249c1ae47/main

Tree @3c18c8ce-9d8a-43c1-ba04-68a249c1ae47/main (Download .tar.gz)

issue50_test.go @3c18c8ce-9d8a-43c1-ba04-68a249c1ae47/main

6720d30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package mergo

import (
	"testing"
	"time"
)

type testStruct struct {
	time.Duration
}

func TestIssue50Merge(t *testing.T) {
	to := testStruct{}
	from := testStruct{}
	if err := Merge(&to, from); err != nil {
		t.Fail()
	}
}