Codebase list golang-github-imdario-mergo / 16b80114-a155-46c1-917b-951a5f6e9fd0/main issue50_test.go
16b80114-a155-46c1-917b-951a5f6e9fd0/main

Tree @16b80114-a155-46c1-917b-951a5f6e9fd0/main (Download .tar.gz)

issue50_test.go @16b80114-a155-46c1-917b-951a5f6e9fd0/main

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