Codebase list golang-github-imdario-mergo / 79ab7d2c-b633-469c-86e9-b8a7ab72de7e/main issue50_test.go
79ab7d2c-b633-469c-86e9-b8a7ab72de7e/main

Tree @79ab7d2c-b633-469c-86e9-b8a7ab72de7e/main (Download .tar.gz)

issue50_test.go @79ab7d2c-b633-469c-86e9-b8a7ab72de7e/main

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()
	}
}