mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-19 11:30:24 +00:00
19 lines
227 B
Go
19 lines
227 B
Go
|
package mergo
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type testStruct struct {
|
||
|
time.Duration
|
||
|
}
|
||
|
|
||
|
func TestIssue50Merge(t *testing.T) {
|
||
|
to := testStruct{}
|
||
|
from := testStruct{}
|
||
|
if err := Merge(&to, from); err != nil {
|
||
|
t.Fail()
|
||
|
}
|
||
|
}
|