File: 11-usb-device-methods.t

package info (click to toggle)
libdevice-usb-perl 0.38-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 408 kB
  • sloc: perl: 1,819; makefile: 11
file content (23 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!perl -T

use Test::More tests => 2;
use Device::USB;
use strict;
use warnings;

#
# Just testing the existence of methods at this point, not their
#  functionality.
#

# Synthetics
can_ok( "Device::USB::Device",
        qw/DESTROY manufacturer product serial_number/ );

# libusb methods
can_ok( "Device::USB::Device",
        qw/open set_configuration set_altinterface clear_halt reset
           claim_interface release_interface control_msg get_string
           get_string_simple get_descriptor get_descriptor_by_endpoint
           bulk_read interrupt_read bulk_write interrupt_write/ );