212ac2f0d5
* Refactor of cameradar library * Old unit tests updated & improved. New unit tests inc * Update documentation & issue template * Update dependencies * Update TravisCI build script to reflect argument change * Remove outdated contributing guide * Update README with more examples and remove part on library * Add second camera to Travis build script & improve error detection * Fix typo in travis script & add missing image to readme * Remember that travis uses bash syntax not fish * Use relative paths for images in the README
21 lines
340 B
Go
21 lines
340 B
Go
package cameradar
|
|
|
|
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)
|
|
}
|
|
}
|