Go naming for error codes. Export USBError type.

This commit is contained in:
Sebastian Zagrodzki
2017-04-09 19:27:33 +02:00
parent 54aed557d8
commit 87c7a873e9
5 changed files with 63 additions and 57 deletions

View File

@@ -55,7 +55,7 @@ func TestEndpoint(t *testing.T) {
desc: "128B buffer, 10 transferred and then error",
buf: make([]byte, 128),
ret: 10,
status: LIBUSB_TRANSFER_ERROR,
status: TransferError,
want: 10,
wantErr: true,
},