21 lines
336 B
Go
21 lines
336 B
Go
package cmrdr
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
|
|
curl "github.com/ullaakut/go-curl"
|
|
)
|
|
|
|
func TestCurl(t *testing.T) {
|
|
handle := Curl{
|
|
CURL: curl.EasyInit(),
|
|
}
|
|
|
|
handle2 := handle.Duphandle()
|
|
|
|
if reflect.DeepEqual(handle, handle2) {
|
|
t.Errorf("unexpected identical handle from duphandle: expected %+v got %+v", handle, handle2)
|
|
}
|
|
}
|