fix test for Layer3::Cisco.pm

This commit is contained in:
Oliver Gorwits
2021-09-22 22:33:59 +01:00
parent 807cd20da0
commit d4269ad79b

View File

@@ -86,6 +86,16 @@ sub setup : Tests(setup) {
$test->{info}->cache($cache_data);
}
# This class is a collection of roles and not meant to instantiated for a
# specific device. Don't test device class and no need to setup data
sub device_type : Tests(1) {
my $test = shift;
my $class = $test->class;
can_ok($test->{info}, 'device_type');
}
# Only going to test the non-VTP path in this class and assume CiscoVTP will
# test the SUPER::i_vlan method, since this class will handle traditional
# routers that usually don't have VTP.