Codebase list golang-github-imdario-mergo / 5afda208-0b5b-4262-ac70-8e6d877a4395/main issue50_test.go
5afda208-0b5b-4262-ac70-8e6d877a4395/main

Tree @5afda208-0b5b-4262-ac70-8e6d877a4395/main (Download .tar.gz)

issue50_test.go @5afda208-0b5b-4262-ac70-8e6d877a4395/mainraw · history · blame

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