Codebase list golang-github-imdario-mergo / 243d408b-2382-4434-bc78-91417ddb3340/main issue50_test.go
243d408b-2382-4434-bc78-91417ddb3340/main

Tree @243d408b-2382-4434-bc78-91417ddb3340/main (Download .tar.gz)

issue50_test.go @243d408b-2382-4434-bc78-91417ddb3340/main

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