Codebase list golang-github-imdario-mergo / upstream/0.3.12+git20210420.1.b968a17 issue50_test.go
upstream/0.3.12+git20210420.1.b968a17

Tree @upstream/0.3.12+git20210420.1.b968a17 (Download .tar.gz)

issue50_test.go @upstream/0.3.12+git20210420.1.b968a17

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