Package list golang-github-imdario-mergo / ab3602d6-8d26-45de-9a8e-d70b0ccf1f23/upstream issue50_test.go
ab3602d6-8d26-45de-9a8e-d70b0ccf1f23/upstream

Tree @ab3602d6-8d26-45de-9a8e-d70b0ccf1f23/upstream (Download .tar.gz)

issue50_test.go @ab3602d6-8d26-45de-9a8e-d70b0ccf1f23/upstream

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