Codebase list golang-github-imdario-mergo / d0d14806-a2a3-4a60-a2cc-cd04b7d1e09a/main issue50_test.go
d0d14806-a2a3-4a60-a2cc-cd04b7d1e09a/main

Tree @d0d14806-a2a3-4a60-a2cc-cd04b7d1e09a/main (Download .tar.gz)

issue50_test.go @d0d14806-a2a3-4a60-a2cc-cd04b7d1e09a/main

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