...

Source file src/github.com/imdario/mergo/issue50_test.go

Documentation: github.com/imdario/mergo

     1  package mergo_test
     2  
     3  import (
     4  	"testing"
     5  	"time"
     6  
     7  	"github.com/imdario/mergo"
     8  )
     9  
    10  type testStruct struct {
    11  	time.Duration
    12  }
    13  
    14  func TestIssue50Merge(t *testing.T) {
    15  	to := testStruct{}
    16  	from := testStruct{}
    17  
    18  	if err := mergo.Merge(&to, from); err != nil {
    19  		t.Fail()
    20  	}
    21  }
    22  

View as plain text